Quantcast
Channel: All Business PCs, Workstations and Point of Sale Systems posts
Viewing all articles
Browse latest Browse all 36018

Re: THINPRO 5.2 linux-headers-3.8.13-hp

$
0
0

Ok, i do it myself. Please take a look. I think it can be useful to someone.

 

Use resize-image command to add some free space on thin client. 

Then you need to download kernel source  "linux_3.8.13-hp.tgz" from ftp://ftp.hp.com/pub/tcdebian/pool/thinpro52/source/

Put it in  /home/user/Downloads folder

Uncomment ubuntu repositories in /etc/apt/sources.list

 

Then open terminal:

 

1)ставим зависимости
fsunlock
apt-get update
apt-get install dpkg-dev gcc make libc6-dev kernel-package
(и apt-get install ncurses-dev если хочется как то изменить текущий конфиг (make menuconfig))

 

2)извлекаем архив
tar -zxvf linux_3.8.13-hp.tgz
dpkg-source -x linux-lts-raring_3.8.0-32.47~precise1.dsc

 

3)применяем патчи, подсовываем текущий конфиг ядра, изменяем имя ядра на такое-же как и сейчас
cp ./patches/* ./linux-lts-raring-3.8.0/
cd linux-lts-raring-3.8.0/
в команде patch можно использовать ключ --dry-run чтобы убедиться что патч сработал
patch -p1 -i hid_quanta_touchscreen.patch
patch -p1 -i btrfs_subvol_modify.patch
patch -p1 -i xhci.patch
rm ./*.patch
cp /boot/config-3.8.13-hp ./.config
запускаем make menuconfig если нужно внести изменения в текущий конфиг
открываем редактором файл ./makefile и меняем переменную EXTRAVERSION = .10 на EXTRAVERSION =

(^ open ./makefile and change EXTRAVERSION = .10 to EXTRAVERSION = )

 

4)собираем ядро и хидеры
make-kpkg --initrd --append-to-version=-hp kernel_image kernel_headers
cd ..
dpkg-deb -x linux-headers-3.8.13-hp_3.8.13-hp-10.00.Custom_i386.deb ./temp
dpkg-deb --control linux-headers-3.8.13-hp_3.8.13-hp-10.00.Custom_i386.deb ./temp/DEBIAN
mkdir -p ./temp/lib/modules/3.8.13-hp
ln -s /usr/src/linux-headers-3.8.13-hp/ ./temp/lib/modules/3.8.13-hp/build
dpkg -b ./temp/linux-headers-3.8.13-hp.deb

 

 

Ready. Now you can install linux-headers-3.8.13-hp.deb where you need it, and everything should be good.


Viewing all articles
Browse latest Browse all 36018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>