IGN-ARM dan Kernel 4.0: Perbedaan revisi
Dari IGNwiki
(→Kompilasi) |
|||
(3 revisi antara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 23: | Baris 23: | ||
echo "Pakai menuconfig" | echo "Pakai menuconfig" | ||
make menuconfig | make menuconfig | ||
+ | |||
+ | == Pasang label ign == | ||
+ | # | ||
+ | sed -i 's/EXTRAVERSION =.*/EXTRAVERSION = ign/' Makefile | ||
== Kompilasi == | == Kompilasi == | ||
+ | |||
+ | Raspberry Pi 2 | ||
+ | |||
# | # | ||
make | make | ||
Baris 31: | Baris 38: | ||
cp System.map /boot | cp System.map /boot | ||
cp arch/arm/boot/dts/bcm2709-rpi-2-b.dtb /boot | cp arch/arm/boot/dts/bcm2709-rpi-2-b.dtb /boot | ||
− | |||
echo "Backup kernel lama" | echo "Backup kernel lama" | ||
mv /boot/kernel7.img /boot/kernel7.img.old | mv /boot/kernel7.img /boot/kernel7.img.old | ||
cp arch/arm/boot/zImage /boot/kernel7.img | cp arch/arm/boot/zImage /boot/kernel7.img | ||
+ | |||
+ | Board lain | ||
+ | # | ||
+ | make | ||
+ | cp arch/arm/boot/zImage "/boot/vmlinuz-"`make kernelrelease` | ||
+ | make modules_install | ||
+ | cp System.map "/boot/System.map-"`make kernelrelease` | ||
+ | dracut "" `make kernelrelease` | ||
+ | lsinitrd /boot/initramfs-_kernelrelease_.img | ||
+ | grub2-mkconfig -o /boot/grub2/grub.cfg | ||
== Referensi == | == Referensi == | ||
* ARM – Raspberry Pi 2 – Kernel Compile -> http://rglinuxtech.com/?p=1324 | * ARM – Raspberry Pi 2 – Kernel Compile -> http://rglinuxtech.com/?p=1324 | ||
* https://devzone.nordicsemi.com/blogs/678/building-kernel-for-rpi2-with-bluetooth_6lowpan-fo/ | * https://devzone.nordicsemi.com/blogs/678/building-kernel-for-rpi2-with-bluetooth_6lowpan-fo/ |
Revisi terkini pada 23 April 2015 10.31
Kernel 4.0 diperoleh dengan melakukan build ulang dari source. Panduan ini untuk melakukan build melalui QEMU atau langsung dari Raspberry Pi 2 (RPI2). Panduan build kernel melalui CROSS_COMPILE ada di panduan lainnya.
Daftar isi
Masuk QEMU atau RPI2
Setelah masuk QEMU atau RPI2 agar praktis, semua perintah dilakukan dengan akses root.
Pasang Paket
# yum -y install gcc make unzip
Unduh source
# cd /root/ wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip unzip rpi-4.0.y.zip
Atur .config
Kongurasi:
# cd /root/rpi-4.0.y echo "Pakai konfigurasi bcm2709" make bcm2709_defconfig
echo "Pakai menuconfig" make menuconfig
Pasang label ign
# sed -i 's/EXTRAVERSION =.*/EXTRAVERSION = ign/' Makefile
Kompilasi
Raspberry Pi 2
# make make modules_install make firmware_install cp System.map /boot cp arch/arm/boot/dts/bcm2709-rpi-2-b.dtb /boot echo "Backup kernel lama" mv /boot/kernel7.img /boot/kernel7.img.old cp arch/arm/boot/zImage /boot/kernel7.img
Board lain
# make cp arch/arm/boot/zImage "/boot/vmlinuz-"`make kernelrelease` make modules_install cp System.map "/boot/System.map-"`make kernelrelease` dracut "" `make kernelrelease` lsinitrd /boot/initramfs-_kernelrelease_.img grub2-mkconfig -o /boot/grub2/grub.cfg
Referensi
- ARM – Raspberry Pi 2 – Kernel Compile -> http://rglinuxtech.com/?p=1324
- https://devzone.nordicsemi.com/blogs/678/building-kernel-for-rpi2-with-bluetooth_6lowpan-fo/