IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
(Salin kernel)
Baris 40: Baris 40:
 
  #
 
  #
 
  echo "Salin kernel.img, modules dan firwmare"
 
  echo "Salin kernel.img, modules dan firwmare"
 +
cp arch/arm/boot/Image /boot/kernel.img
  
 
== Referensi ==
 
== Referensi ==

Revisi per 23 April 2015 08.27

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"
cp arch/arm/boot/Image /boot/kernel.img

Referensi