IGOS Nusantara dan CROSS COMPILE untuk kernel: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
Baris 33: Baris 33:
 
  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_install INSTALL_MOD_PATH=../modules/
+
  ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules_install  
 
+
 
+
./imagetool-uncompressed.py ../../linux/arch/arm/boot/Image
+
  
 
== Salin kernel ==
 
== Salin kernel ==

Revisi per 23 April 2015 08.30

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_install 

Salin kernel

#
echo "Salin kernel.img, modules dan firwmare"
cp arch/arm/boot/Image /boot/kernel.img

Referensi