IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/igos-nusantara-web/wiki/includes/diff/DairikiDiff.php on line 438
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
  
== Kompilasi ==
+
== Konfigurasi ==
 
Jalankan:
 
Jalankan:
  
  #
+
  $
  make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcm2709_defconfig
+
cd rpi-4.0.y
  make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig // to enable eGalax driver
+
  ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make bcm2709_defconfig
  make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j6
+
  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
  
  make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-INSTALL_MOD_PATH=../modules/
+
  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"

Referensi