IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi
Dari IGNwiki
Baris 14: | Baris 14: | ||
Copyright (C) 2014 Free Software Foundation, Inc. | 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: | 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... | ||
+ | |||
+ | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6 | ||
− | + | ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules_install INSTALL_MOD_PATH=../modules/ | |
Baris 33: | Baris 42: | ||
== 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://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 per 23 April 2015 08.25
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...
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules_install INSTALL_MOD_PATH=../modules/
./imagetool-uncompressed.py ../../linux/arch/arm/boot/Image
Salin kernel
# echo "Salin kernel.img, modules dan firwmare"