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 21: Baris 21:
 
=== Ambil source ===
 
=== Ambil source ===
 
  $
 
  $
  mkdir /home/igos/rpi2
+
  mkdir /home/igos/
  cd /home/igos/rpi2
+
  cd /home/igos/
  wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.zip
+
  git clone https://github.com/anholt/linux/tree/vc4-kms-v3d-rpi2
  unzip rpi-4.0.y.zip
+
  unzip linux-vc4-kms-v3d-rpi2.zip
  
 
=== Konfigurasi ===
 
=== Konfigurasi ===
Baris 49: Baris 49:
 
  yum -y install sshfs
 
  yum -y install sshfs
 
  mkdir -p /mnt/berry
 
  mkdir -p /mnt/berry
  sshfs user@host:/home/igos/rpi2 /mnt/berry
+
  sshfs user@host:/home/igos/rpi-4.0.y /mnt/berry
 
  cd /mnt/berry
 
  cd /mnt/berry
 
  make modules_install
 
  make modules_install

Revisi per 23 April 2015 09.21

Panduan ini untuk melakukan kompilasi melalui IGOS Nusantara X.1 supaya menghasilkan kernel untuk Raspberry Pi 2

Ketentuan

  • Pakai IGOS Nusantara X.1
  • Pengguna memiliki direktori: /home/igos/

Proses1: 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 /home/igos/
cd /home/igos/
git clone https://github.com/anholt/linux/tree/vc4-kms-v3d-rpi2
unzip linux-vc4-kms-v3d-rpi2.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...

Pasang label ign

$
sed -i 's/EXTRAVERSION =.*/EXTRAVERSION = ign/' Makefile

Build

ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make -k -j6
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- make modules

Proses2: Masuk Raspberry Pi 2

Masuk terminal Raspberry Pi 2

#
yum -y install sshfs
mkdir -p /mnt/berry
sshfs user@host:/home/igos/rpi-4.0.y /mnt/berry
cd /mnt/berry
make modules_install
cp arch/arm/boot/zImage /boot/kernel7.img

Tes kernel baru

#
echo "Lakukan boot ulang Raspberry Pi 2"
reboot

Referensi