IGN-ARM Pasang ke MicroSD: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
Baris 27: Baris 27:
 
http://igos-nusantara.or.id/arm/images/
 
http://igos-nusantara.or.id/arm/images/
  
== Scripted ==
+
== Pakai Skrip ==
 
{{admon/note|Note | Contoh berikut memasukkan Image ke Media dengan memakai IGOS Nusantara Desktop versi 10.}}
 
{{admon/note|Note | Contoh berikut memasukkan Image ke Media dengan memakai IGOS Nusantara Desktop versi 10.}}
  
Execute the following script as a user with sudo privileges. It will copy the
+
Jalankan skrip berikut dengan hak akses root atau memakai sudo. Skrip akan
selected disk image and write the appropriate U-Boot for the target hardware
+
menyalin disk image dan menyalin U-boot yang sesuai dengan platform harware tujuan.
platform. Optionally you can also enable and disable SE Linux and remove the
+
Opsional untuk mengaktifkan atau nonaktihkan SELinux dan menghapus
root password requirement (allowing log in without completing initial setup).
+
password root bila diperlukan. Untuk menambahkan board yang tidak terdaftar,
To add a board not listed, simply create a bash scriptlet with the commands
+
buatlah skrip bash dengan perintah yang diperlukan untuk menyalin U-boot ke media
needed to copy U-Boot to media and add to the 'boards.d' directory.
+
dan tambahkan ke direktori "boards.d"
  
 
* https://pwhalen.fedorapeople.org/fedira-arm-installer-0.06.tar.bz2
 
* https://pwhalen.fedorapeople.org/fedira-arm-installer-0.06.tar.bz2
Baris 56: Baris 56:
  
 
== Manual==
 
== Manual==
Choose a disk image.
+
Unduh disk image
  http://download.IGNproject.org/pub/IGN/linux/releases/21/Images/armhfp/
+
  http://...
Write the image to your media
+
 
  TYPE=  # options include KDE, LXDE, XFCE, SoaS, Mate and Minimal
+
Tulis image ke media
  MEDIA= #/dev/<location-of-your-media>
+
  TYPE=  # Tentukan jenis IGN-ARM
 +
  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
 
  xzcat IGN-$TYPE-armhfp-21-5-sda.raw.xz | sudo dd of=$MEDIA; sync
 
  xzcat IGN-$TYPE-armhfp-21-5-sda.raw.xz | sudo dd of=$MEDIA; sync
After writing the image, read the new partition table and mount the root partition
+
 
 +
Setelah menulis image, baca tabel partisi baru dan mount partisi root
 
  partprobe $MEDIA
 
  partprobe $MEDIA
  PART=  #/dev/<location-of-your-media><partition-number>
+
  PART=  #/dev/<lokasi-media><partition-number>
 
         # this needs to be the root partition on the written media
 
         # this needs to be the root partition on the written media
 
         # for example /dev/sdc3, /dev/sdg3, /dev/mmcblk0p3, ...
 
         # for example /dev/sdc3, /dev/sdg3, /dev/mmcblk0p3, ...

Revisi per 7 April 2015 07.51

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

The image-based installation process involves downloading an image file (depending upon desktop/non-desktop option desired), inserting removable media into a "host" system (e.g. an ARM or x86_64 PC class desktop, laptop, etc.) and performing a few simple commands to write this image onto the media. This media 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.

  • 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

Copy the appropriate U-Boot files for your target hardware listed below.

Tulis U-Boot ke Media

Follow theses steps to write the appropriate U-Boot for your Hardware.

Banana Pi (Allwinner A20)

Templat:Admon/warning

MEDIA= #/dev/<location-of-your-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/<location-of-your-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/<location-of-your-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/<location-of-your-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/<location-of-your-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/<location-of-your-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/<location-of-your-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.