Difference between revisions of "Compile Kernel: Ubuntu 16.04 - Source dari apt install"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with "Siapkan kernel package apt update apt install kernel-package libncurses5-dev fakeroot wget bzip2 \ kernel-wedge build-essential makedumpfile libncurses5 libssl-dev D...") |
Onnowpurbo (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Edit sources.list== | ||
+ | |||
+ | Edit source | ||
+ | |||
+ | * deb-src di uncomment | ||
+ | * update | ||
+ | |||
+ | apt update | ||
+ | |||
+ | ==Siapkan pendukung== | ||
+ | |||
Siapkan [[kernel]] package | Siapkan [[kernel]] package | ||
Line 5: | Line 16: | ||
kernel-wedge build-essential makedumpfile libncurses5 libssl-dev | kernel-wedge build-essential makedumpfile libncurses5 libssl-dev | ||
+ | |||
+ | ==Download source code== | ||
Download source code linux | Download source code linux | ||
− | |||
cd /usr/src | cd /usr/src | ||
− | + | apt-get source linux-image-$(uname -r) | |
− | + | apt-get build-dep linux-image-$(uname -r) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==Compile== | |
− | + | 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-cloud-tools-4.4.0-97_4.4.0-97.120_amd64.deb | |
− | + | linux-cloud-tools-4.4.0-97-generic_4.4.0-97.120_amd64.deb | |
+ | linux-headers-4.4.0-97_4.4.0-97.120_all.deb | ||
+ | linux-headers-4.4.0-97-generic_4.4.0-97.120_amd64.deb | ||
+ | linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb | ||
+ | linux-image-extra-4.4.0-97-generic_4.4.0-97.120_amd64.deb | ||
+ | linux-tools-4.4.0-97_4.4.0-97.120_amd64.deb | ||
+ | linux-tools-4.4.0-97-generic_4.4.0-97.120_amd64.deb | ||
− | |||
− | + | ==Install & Test== | |
− | |||
− | |||
− | + | sudo dpkg -i linux*4.4.0*.deb | |
+ | sudo reboot | ||
− | + | ==Debug== | |
+ | Jika ingin ada fasilitas debug | ||
− | + | sudo apt-get install pkg-config-dbgsym | |
+ | fakeroot debian/rules clean | ||
+ | fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false |
Latest revision as of 12:57, 17 October 2017
Edit sources.list
Edit source
- deb-src di uncomment
- update
apt update
Siapkan pendukung
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
Download source code linux
cd /usr/src apt-get source linux-image-$(uname -r) apt-get build-dep linux-image-$(uname -r)
Compile
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-cloud-tools-4.4.0-97_4.4.0-97.120_amd64.deb linux-cloud-tools-4.4.0-97-generic_4.4.0-97.120_amd64.deb linux-headers-4.4.0-97_4.4.0-97.120_all.deb linux-headers-4.4.0-97-generic_4.4.0-97.120_amd64.deb linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb linux-image-extra-4.4.0-97-generic_4.4.0-97.120_amd64.deb linux-tools-4.4.0-97_4.4.0-97.120_amd64.deb linux-tools-4.4.0-97-generic_4.4.0-97.120_amd64.deb
Install & Test
sudo dpkg -i linux*4.4.0*.deb sudo reboot
Debug
Jika ingin ada fasilitas debug
sudo apt-get install pkg-config-dbgsym fakeroot debian/rules clean fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false