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 | ||
== Masuk IGOS Nusantara X.1 == | == Masuk IGOS Nusantara X.1 == | ||
Baris 32: | Baris 33: | ||
== 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_install | + | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make firmware_install |
+ | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- sudo make modules_install | ||
== Salin kernel == | == Salin kernel == |
Revisi per 23 April 2015 08.34
Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2
Daftar isi
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 ~/rpi2 cd ~/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 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make firmware_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- sudo make modules_install
Salin kernel
# echo "Salin kernel.img, modules dan firwmare" cp arch/arm/boot/Image /boot/kernel.img