IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi
Dari IGNwiki
Baris 1: | Baris 1: | ||
Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2 | Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2 | ||
− | == Masuk IGOS Nusantara X.1 == | + | == 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 | sudo yum -y install gcc-arm-linux-gnu | ||
Baris 15: | Baris 19: | ||
Copyright (C) 2014 Free Software Foundation, Inc. | Copyright (C) 2014 Free Software Foundation, Inc. | ||
− | == Ambil source == | + | === Ambil source === |
$ | $ | ||
− | mkdir | + | mkdir /home/igos/rpi2 |
− | cd | + | cd /home/igos/rpi2 |
wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip | wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip | ||
unzip rpi-4.0.y.zip | unzip rpi-4.0.y.zip | ||
− | == Konfigurasi == | + | === Konfigurasi === |
Jalankan: | Jalankan: | ||
Baris 31: | Baris 35: | ||
echo "Aktifkan konfigurasi tertentu... | echo "Aktifkan konfigurasi tertentu... | ||
− | == Build == | + | === Build === |
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6 | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6 | ||
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules | 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 | |
− | cp arch/arm/boot/ | + | mkdir -p /mnt/berry |
+ | sshfs user@host:/home/igos/rpi2 /mnt/berry | ||
+ | cd /mnt/berry/rpi-4.0.y | ||
+ | make modules_install | ||
+ | cp arch/arm/boot/zImage /boot/kernel7.img | ||
+ | |||
+ | echo "Lakukan boot ulang Raspberry Pi 2" | ||
+ | reboot | ||
+ | |||
== Referensi == | == Referensi == |
Revisi per 23 April 2015 08.54
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
Periksa versi:
$ arm-linux-gnu-cpp --version
Hasil:
arm-linux-gnu-cpp (GCC) 4.9.1 20140717 (Red Hat Cross 4.9.1-1) Copyright (C) 2014 Free Software Foundation, Inc.
Ambil source
$ mkdir /home/igos/rpi2 cd /home/igos/rpi2 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...
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/rpi2 /mnt/berry cd /mnt/berry/rpi-4.0.y make modules_install cp arch/arm/boot/zImage /boot/kernel7.img
echo "Lakukan boot ulang Raspberry Pi 2" reboot