IGN-ARM Pasang ke MicroSD: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
Baris 16: Baris 16:
  
 
=Unduh image dan Salin ke media=
 
=Unduh image dan Salin ke media=
The image-based installation process involves downloading an image file
+
Proses instalasi image meliputi pengunduhan berkas image, memasukkan media ke
(depending upon desktop/non-desktop option desired), inserting removable media
+
sistem host (misal ARM atau PC Desktop, laptop, dsb.) dan melakukan
into a "host" system (e.g. an ARM or x86_64 PC class desktop, laptop, etc.) and
+
beberapa perintah sederhana untuk menulis image ke media. Media ini kemudian
performing a few simple commands to write this image onto the media. This media
+
dipakai oleh platform target untuk boot ke lingkungan IGN ARM
is then used by the ARM "target" system to boot the IGOS Nusantara environment.
+
  
After writing the image and correct U-boot file(s), insert the media into the target platform and boot.
+
Setelah menulis image dan berkas U-boot, masukkan media ke platform target dan lakukan boot.
  
 
*Unduh:
 
*Unduh:
Baris 72: Baris 71:
 
         # for example /dev/sdc3, /dev/sdg3, /dev/mmcblk0p3, ...
 
         # for example /dev/sdc3, /dev/sdg3, /dev/mmcblk0p3, ...
 
  mkdir /tmp/root; sudo mount $PART /tmp/root
 
  mkdir /tmp/root; sudo mount $PART /tmp/root
Copy the appropriate U-Boot files for your target hardware listed below.
+
 
 +
Salin U-boot yang sesuai ke hardware target
  
 
=Tulis U-Boot ke Media=
 
=Tulis U-Boot ke Media=
Follow theses steps to write the appropriate U-Boot for your Hardware.
+
Ikuti tahap berikut untuk menulis U-boot yang sesuai dengan hardware yang dimiliki
 +
 
 
===Banana Pi (Allwinner A20)===
 
===Banana Pi (Allwinner A20)===
{{admon/warning|IMPORTANT | At this time you must have a serial console cable for the Banana Pi. For those that do not, please see the FAQ at the bottom of the page}}
+
 
  MEDIA= #/dev/<location-of-your-media>
+
{{admon/warning|IMPORTANT | Pada tahapAt this time you must have a serial console cable for the Banana Pi. For those that do not, please see the FAQ at the bottom of the page}}
 +
 
 +
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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
 
  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.
 
Media should now be ready to boot on the Banana Pi. Insert into the device and boot.
 +
 
===WARNING for Cubie* users===
 
===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.
 
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)===
 
===CubieBoard v1 (Allwinner A10)===
  MEDIA= #/dev/<location-of-your-media>
+
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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
 
  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.
 
Media should now be ready to boot on the Cubieboard. Insert into the device and boot.
  
 
===CubieBoard v2 (Allwinner A20)===
 
===CubieBoard v2 (Allwinner A20)===
  MEDIA= #/dev/<location-of-your-media>
+
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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
 
  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.
 
Media should now be ready to boot on the Cubieboard. Insert into the device and boot.
  
 
===CubieTruck (Allwinner A20)===
 
===CubieTruck (Allwinner A20)===
  MEDIA= #/dev/<location-of-your-media>
+
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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
 
  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.
 
Media should now be ready to boot on the Cubietruck. Insert into the device and boot.
  
 
===BeagleBone ( Black & White ) ===
 
===BeagleBone ( Black & White ) ===
 
{{admon/warning|IMPORTANT | At this time you must have a serial console cable for the BeagleBone. For those that do not, please see the FAQ at the bottom of the page}}
 
{{admon/warning|IMPORTANT | At this time you must have a serial console cable for the BeagleBone. For those that do not, please see the FAQ at the bottom of the page}}
  MEDIA= #/dev/<location-of-your-media>
+
 
 +
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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/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
 
  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.  
 
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.  
  
Baris 133: Baris 148:
 
===CompuLab TrimSlice===
 
===CompuLab TrimSlice===
 
{{admon/warning|IMPORTANT | You must use the latest Device Tree enabled U-Boot to boot the IGOS Nusantara Trimslice image, which you can find [http://www.trimslice.com/wiki/index.php/Trim-Slice_Firmware_Updater#v2012.04-1.02 here]. And environmental variables described [http://www.trimslice.com/wiki/index.php/Trim-Slice_Firmware_Updater#U-Boot_environment_variable here]. <b>Failure to do so will result in a non-booting system.</b>}}
 
{{admon/warning|IMPORTANT | You must use the latest Device Tree enabled U-Boot to boot the IGOS Nusantara Trimslice image, which you can find [http://www.trimslice.com/wiki/index.php/Trim-Slice_Firmware_Updater#v2012.04-1.02 here]. And environmental variables described [http://www.trimslice.com/wiki/index.php/Trim-Slice_Firmware_Updater#U-Boot_environment_variable here]. <b>Failure to do so will result in a non-booting system.</b>}}
 +
 
The Trimslice requires no additional steps, U-Boot is included on the device.
 
The Trimslice requires no additional steps, U-Boot is included on the device.
  
Baris 138: Baris 154:
 
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
 
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).
 
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:
 
Copy the U-boot for the Wandboard hardware in use:
 +
 
  BOARD= # Choose 'solo', 'dl' or 'quad'
 
  BOARD= # Choose 'solo', 'dl' or 'quad'
  MEDIA= #/dev/<location-of-your-media>
+
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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
 
  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.
 
Remove the media and insert into the Wandboard and boot.
 
{{admon/warning|IMPORTANT |<b>MicroSD for booting is located under the heatsink</b>}}
 
{{admon/warning|IMPORTANT |<b>MicroSD for booting is located under the heatsink</b>}}
  
 
===Pandaboard===
 
===Pandaboard===
  MEDIA= #/dev/<location-of-your-media>
+
  MEDIA= #/dev/<lokasi-media>
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # for example /dev/sdc, /dev/sdg, ...
 
         # read /var/log/messages to learn which device was assigned to your media
 
         # 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/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
 
  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.
 
Media should now be ready to boot on the Pandaboard. Insert into the device and boot.

Revisi per 7 April 2015 08.00

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.