IGN-ARM Pasang ke MicroSD

Dari IGNwiki
Revisi per 7 April 2015 08.00 oleh Ns (bicara | kontrib)

Langsung ke: navigasi, cari

Templat:Autolang

IGOS Nusantara ARM

IGOS Nusantara ARM versi mini hanya menyediakan aplikasi minimal. Untuk versi desktop akan disediakan IGN ARM MATE. Tiap image IGN ARM dapat digunakan dengan memakai QEMU di IGOS Nusantara 64 bit untuk emulasi lingkungan ARM.

Instalasi image akan melibatkan:

  • Unduh Image IGN ARM
  • Memasukkan media removable (USB Flashdisk atau MicroSD) ke komputer host (misal dengan platform ARM atau PC x86_64, laptop, dsb.)
  • Menulis instruksi untuk menulis image ke media. Media ini dipakai untuk boot ke lingkungan IGOS Nusantara.

Dukungan Hardware ARM

Unduh image dan Salin ke media

Proses instalasi image meliputi pengunduhan berkas image, memasukkan media ke sistem host (misal ARM atau PC Desktop, laptop, dsb.) dan melakukan beberapa perintah sederhana untuk menulis image ke media. Media ini kemudian dipakai oleh platform target untuk boot ke lingkungan IGN ARM

Setelah menulis image dan berkas U-boot, masukkan media ke platform target dan lakukan boot.

  • Unduh:

http://igos-nusantara.or.id/arm/images/

Pakai Skrip

Templat:Admon/note

Jalankan skrip berikut dengan hak akses root atau memakai sudo. Skrip akan menyalin disk image dan menyalin U-boot yang sesuai dengan platform harware tujuan. Opsional untuk mengaktifkan atau nonaktihkan SELinux dan menghapus password root bila diperlukan. Untuk menambahkan board yang tidak terdaftar, buatlah skrip bash dengan perintah yang diperlukan untuk menyalin U-boot ke media dan tambahkan ke direktori "boards.d"

./fedora-arm-image-installer.sh

Usage: fedora-arm-image-installer.sh <options>

   --image=IMAGE    - xz compressed image file name
   --target=TARGET  - target board
		      [Bananapi|beaglebone|Cubietruck|none|panda|trimslice|wandboard_dual|wandboard_quad|wandboard_solo]
   --media=DEVICE   - media device file (/dev/[sdX|mmcblkX])
   --selinux=ON/OFF - Turn SELinux off/on as needed
   --norootpass     - Remove the root password
    -y		    - Assumes yes, will not wait for confirmation
   --version	    - Display version and exit

Contoh: fedora-arm-image-installer.sh --image=IGN-ARM-xx.xz --target=panda --media=/dev/mmcblk0 --selinux=OFF

Manual

Unduh disk image

http://...

Tulis image ke media

TYPE=  # Tentukan jenis IGN-ARM
MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
xzcat IGN-$TYPE-armhfp-21-5-sda.raw.xz | sudo dd of=$MEDIA; sync

Setelah menulis image, baca tabel partisi baru dan mount partisi root

partprobe $MEDIA
PART=  #/dev/<lokasi-media><partition-number>
       # this needs to be the root partition on the written media
       # for example /dev/sdc3, /dev/sdg3, /dev/mmcblk0p3, ...
mkdir /tmp/root; sudo mount $PART /tmp/root

Salin U-boot yang sesuai ke hardware target

Tulis U-Boot ke Media

Ikuti tahap berikut untuk menulis U-boot yang sesuai dengan hardware yang dimiliki

Banana Pi (Allwinner A20)

Templat:Admon/warning

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/Bananapi/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc

Media should now be ready to boot on the Banana Pi. Insert into the device and boot.

WARNING for Cubie* users

Be sure you are using the correct uboot image for your specific board! An incorrect uboot can cause unpredictable and confusing errors.

CubieBoard v1 (Allwinner A10)

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/Cubieboard/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc

Media should now be ready to boot on the Cubieboard. Insert into the device and boot.

CubieBoard v2 (Allwinner A20)

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/Cubieboard2/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc

Media should now be ready to boot on the Cubieboard. Insert into the device and boot.

CubieTruck (Allwinner A20)

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/Cubietruck/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc

Media should now be ready to boot on the Cubietruck. Insert into the device and boot.

BeagleBone ( Black & White )

Templat:Admon/warning

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/beaglebone/MLO of=$MEDIA count=1 seek=1 conv=notrunc bs=128k
sudo dd if=/tmp/root/usr/share/uboot/beaglebone/u-boot.img of=$MEDIA count=2 seek=1 conv=notrunc bs=384k

Media should now be ready to boot on the BeagleBone. Insert into the device and boot. To boot the IGOS Nusantara version of U-Boot on MicroSD you will need to hold the "User Boot" button (located near the MicroSD slot) when the device is powered on.

Copying IGN U-Boot to eMMC on the Beaglebone Black

To Copy the IGN U-Boot to the eMMC on the Beaglebone Black execute the following steps:

# mount emmc boot partition 
mkdir /tmp/emmc; mount /dev/mmcblk1p1 /tmp/emmc

# optionally back up original U-Boot
mkdir /tmp/emmc/orig-uboot; cp /tmp/emmc/{MLO,u-boot.img} /tmp/emmc/orig-uboot/

# copy IGN U-Boot
cp /usr/share/uboot/beaglebone/{MLO,u-boot.img} /tmp/emmc/

Once completed you will no longer need to press the "User Boot" button to select the IGN U-Boot.

CompuLab TrimSlice

Templat:Admon/warning

The Trimslice requires no additional steps, U-Boot is included on the device.

Wandboard (Freescale i.MX6)

Note - The Wandboard includes a Solo, Dual, and Quad core configuration. Determine your hardware configuration and use the appropriate value. While the Wandboard Quad has been tes ted and confirmed working, the Solo and Dual core models should also work as well. The Wandboard Solo uses the same dtb as the Dual(imx6dl-wandboard.dtb).

Copy the U-boot for the Wandboard hardware in use:

BOARD= # Choose 'solo', 'dl' or 'quad'
MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/wandboard_$BOARD/u-boot.imx of=$MEDIA bs=1k seek=1 conv=fsync; sync

Remove the media and insert into the Wandboard and boot. Templat:Admon/warning

Pandaboard

MEDIA= #/dev/<lokasi-media>
       # for example /dev/sdc, /dev/sdg, ...
       # read /var/log/messages to learn which device was assigned to your media
sudo dd if=/tmp/root/usr/share/uboot/panda/MLO of=$MEDIA count=1 seek=1 conv=notrunc bs=128k
sudo dd if=/tmp/root/usr/share/uboot/panda/u-boot.img of=$MEDIA count=2 seek=1 conv=notrunc bs=384k

Media should now be ready to boot on the Pandaboard. Insert into the device and boot.