IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi
Dari IGNwiki
(→Ambil source) |
|||
(14 revisi antara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 1: | Baris 1: | ||
+ | Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2 | ||
− | == | + | == Ketentuan == |
− | + | * Pakai IGOS Nusantara X.1 | |
− | + | * Pengguna memiliki direktori: /home/igos/ | |
− | + | ||
− | + | ||
− | == | + | == Proses1: Masuk IGOS Nusantara X.1 == |
+ | |||
+ | === Pasang === | ||
+ | $ | ||
+ | sudo yum -y install gcc-arm-linux-gnu | ||
+ | |||
+ | === Ambil source === | ||
+ | $ | ||
+ | cd /home/igos/ | ||
+ | wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip | ||
+ | unzip rpi-4.0.y.zip | ||
+ | |||
+ | === Konfigurasi === | ||
Jalankan: | Jalankan: | ||
− | + | $ | |
− | + | cd rpi-4.0.y | |
− | + | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make bcm2709_defconfig | |
− | + | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make menuconfig | |
+ | echo "Aktifkan konfigurasi tertentu... | ||
− | + | === Pasang label ign === | |
+ | $ | ||
+ | sed -i 's/EXTRAVERSION =.*/EXTRAVERSION = ign/' Makefile | ||
+ | |||
+ | === Build === | ||
+ | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6 | ||
+ | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules | ||
+ | == Proses2: Masuk Raspberry Pi 2 == | ||
− | + | === Masuk terminal Raspberry Pi 2 === | |
+ | # | ||
+ | yum -y install sshfs | ||
+ | mkdir -p /mnt/berry | ||
+ | sshfs user@host:/home/igos/rpi-4.0.y /mnt/berry | ||
+ | cd /mnt/berry | ||
+ | make modules_install | ||
+ | cp arch/arm/boot/zImage /boot/kernel7.img | ||
− | == | + | === Tes kernel baru === |
# | # | ||
− | echo " | + | echo "Lakukan boot ulang Raspberry Pi 2" |
+ | reboot | ||
== Referensi == | == Referensi == | ||
+ | * http://broken.build/2012/02/12/custom-kernel-on-fedora/ | ||
+ | * https://akanto.wordpress.com/2012/09/25/cross-compiling-kernel-for-raspberry-pi-on-fedora-17-part-1/ | ||
* 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 6 Mei 2015 07.22
Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2
Daftar isi
Ketentuan
- Pakai IGOS Nusantara X.1
- Pengguna memiliki direktori: /home/igos/
Proses1: Masuk IGOS Nusantara X.1
Pasang
$ sudo yum -y install gcc-arm-linux-gnu
Ambil source
$ cd /home/igos/ wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip unzip rpi-4.0.y.zip
Konfigurasi
Jalankan:
$ cd rpi-4.0.y ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make bcm2709_defconfig ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make menuconfig echo "Aktifkan konfigurasi tertentu...
Pasang label ign
$ sed -i 's/EXTRAVERSION =.*/EXTRAVERSION = ign/' Makefile
Build
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules
Proses2: Masuk Raspberry Pi 2
Masuk terminal Raspberry Pi 2
# yum -y install sshfs mkdir -p /mnt/berry sshfs user@host:/home/igos/rpi-4.0.y /mnt/berry cd /mnt/berry make modules_install cp arch/arm/boot/zImage /boot/kernel7.img
Tes kernel baru
# echo "Lakukan boot ulang Raspberry Pi 2" reboot