Difference between revisions of "Compile Kernel: Ubuntu 16.04 - Source dari apt install"

From OnnoWiki
Jump to navigation Jump to search
Line 42: Line 42:
 
  sudo dpkg -i linux*4.8.0-17.19*.deb
 
  sudo dpkg -i linux*4.8.0-17.19*.deb
 
  sudo reboo
 
  sudo reboo
 +
 +
 +
==Debug==
 +
 +
sudo apt-get install pkg-config-dbgsym
 +
fakeroot debian/rules clean
 +
fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false

Revision as of 10:11, 17 October 2017

Edit source

  • deb-src di uncomment
  • update
apt update

Siapkan kernel package

apt update
apt install kernel-package libncurses5-dev fakeroot wget bzip2 \
kernel-wedge build-essential makedumpfile libncurses5 libssl-dev

Download source code linux

cd /usr/src
apt-get source linux-image-$(uname -r)
apt-get build-dep linux-image-$(uname -r)

Compile kernel di Linux

cd /usr/src/linux-4.4.0
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic binary-perarch
# if you need linux-tools or lowlatency kernel, run instead:
# fakeroot debian/rules binary


Cek hasil akhir-nya

cd ..
ls *.deb
linux-headers-4.8.0-17_4.8.0-17.19_all.deb
linux-headers-4.8.0-17-generic_4.8.0-17.19_amd64.deb
linux-image-4.8.0-17-generic_4.8.0-17.19_amd64.deb


Install & Test

sudo dpkg -i linux*4.8.0-17.19*.deb
sudo reboo


Debug

sudo apt-get install pkg-config-dbgsym
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false