IGN-ARM Pasang ke MicroSD: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
(Manual)
 
(11 revisi antara oleh pengguna yang sama tidak ditampilkan)
Baris 13: Baris 13:
  
 
====Dukungan Hardware ARM====
 
====Dukungan Hardware ARM====
* [http://igos-nusantara.od.id/wiki/Hardware_Status Dukungan Hardware]
+
Board yang dapat memakai IGN ARM
 +
http://igos-nusantara.or.id/wiki/index.php?title=IGN-ARM_dan_Dukungan_Hardware
  
=Download the Disk Image & Copy to Media=
+
=Unduh Image=
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.
+
Image ada di:
 +
http://igos-nusantara.or.id/arm/images/rc/
  
*Unduh:
+
Image untuk Raspberry Pi 2:  IGN-ARM-1.0-rpi2-*
http://igos-nusantara.or.id/arm/images/
+
IGN-ARM-1.0-rpi2-ignsdk-sda-2015-04-08.img.xz 09-Apr-2015 11:03 152M
 +
IGN-ARM-1.0-rpi2-mate-sda-2015-04-08.img.xz 09-Apr-2015 11:13 288M
 +
IGN-ARM-1.0-rpi2-mini-sda-2015-04-08.img.xz 09-Apr-2015 11:18 96M
  
== Scripted ==
+
Image untuk board lain: IGN-ARM-1.0-armhfp-*
{{admon/note|Note | The examples provided here are from a IGN 19/20 host and may need to be adjusted depending on your host environment.}}
+
IGN-ARM-1.0-armhfp-ignsdk-sda-2015-04-08.raw.xz 07-Apr-2015 15:06 202M
 +
IGN-ARM-1.0-armhfp-mate-sda-2015-04-08.raw.xz 08-Apr-2015 17:50 356M
 +
IGN-ARM-1.0-armhfp-mini-sda-2015-04-08.raw.xz 07-Apr-2015 12:55 153M
  
Execute the following script as a user with sudo privileges. It will copy the
+
=Menulis Image=
selected disk image and write the appropriate U-Boot for the target hardware
+
Ada dua cara pemasangan image IGN ARM
platform. Optionally you can also enable and disable SE Linux and remove the
+
* Pasang Image untuk Raspberry
root password requirement (allowing log in without completing initial setup).
+
* Pasang Image untuk bukan Raspberry
To add a board not listed, simply create a bash scriptlet with the commands
+
 
needed to copy U-Boot to media and add to the 'boards.d' directory.
+
==Menulis Image untuk Raspberry==
* https://pwhalen.IGNpeople.org/IGN-arm-installer-0.06.tar.bz2
+
Menulis Image ke MicroSD memakai perintah dd. Supaya perintah dd menampilkan indikator proses, gunakan pipe ke pv. Pasang lebih dulu paket pv
 +
#
 +
yum -y install pv
 +
 
 +
Menulis image IGN-ARM-1.0-rpi2-mate-sda-2015-04-10.img ke MicroSD yang berada di /dev/mmcblk0
 +
#
 +
dd if=IGN-ARM-1.0-rpi2-mate-sda-2015-04-10.img|pv|dd of=/dev/mmcblk0
 +
 
 +
Tampilan proses:
 +
4327424+0 records in4MiB/s] [              <=>                ]
 +
4327424+0 records out
 +
2215641088 bytes (2.2 GB) copied, 520.007 s, 4.3 MB/s
 +
2.06GiB 0:08:40 [4.06MiB/s]  [              <=>                ]
 +
4327424+0 records in
 +
4327424+0 records out
 +
2215641088 bytes (2.2 GB) copied, 520.019 s, 4.3 MB/s
 +
 
 +
 
 +
==Menulis Image untuk board lain==
 +
Setelah menulis image dan berkas U-boot, masukkan media ke platform target dan lakukan boot.
 +
 
 +
=== Pakai Skrip ===
 +
{{admon/note|Note | Contoh berikut memasukkan Image ke Media dengan memakai IGOS Nusantara Desktop versi 10.}}
 +
 
 +
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"
 +
 
 +
* https://pwhalen.fedorapeople.org/fedira-arm-installer-0.06.tar.bz2
 
<pre>
 
<pre>
./IGN-arm-image-installer.sh
+
./fedora-arm-image-installer.sh
  
Usage: IGN-arm-image-installer.sh <options>
+
Usage: fedora-arm-image-installer.sh <options>
  
 
   --image=IMAGE    - xz compressed image file name
 
   --image=IMAGE    - xz compressed image file name
Baris 50: Baris 86:
 
     -y     - Assumes yes, will not wait for confirmation
 
     -y     - Assumes yes, will not wait for confirmation
 
   --version     - Display version and exit
 
   --version     - Display version and exit
 
Example: IGN-arm-image-installer.sh --image=IGN-Rawhide.xz --target=panda --media=/dev/mmcblk0 --selinux=OFF
 
 
</pre>
 
</pre>
  
Note, this is not the {{Package|IGN-arm-installer}} package.
+
Contoh:
 +
fedora-arm-image-installer.sh --image=IGN-ARM-xx.xz --target=panda --media=/dev/mmcblk0 --selinux=OFF
 +
 
 +
 
 +
=== Manual===
 +
Masuk ke:
 +
http://repo.informatika.lipi.go.id/arm/image/
 +
 
 +
Unduh disk image IGN-ARM-1.0-armhfp-*
 +
 
 +
Tulis image ke media
 +
TYPE=  # Tentukan jenis IGN-ARM
 +
MEDIA= #/dev/<lokasi-media>
 +
        # contoh /dev/sdc, /dev/sdg, ...
 +
        # baca /var/log/messages untuk mengetahui posisi divais terkait ke media
  
== Manual==
 
Choose a disk image.
 
http://download.IGNproject.org/pub/IGN/linux/releases/21/Images/armhfp/
 
Write the image to your media
 
TYPE=  # options include KDE, LXDE, XFCE, SoaS, Mate and Minimal
 
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
 
 
  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, ...
+
         # contoh /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.
 
  
=Write U-Boot to Media=
+
Salin U-boot yang sesuai ke hardware target
Follow theses steps to write the appropriate U-Boot for your Hardware.
+
 
===For the Banana Pi (Allwinner A20)===
+
=Tulis U-Boot ke Media=
{{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}}
+
Ikuti tahap berikut untuk menulis U-boot yang sesuai dengan hardware yang dimiliki
  MEDIA= #/dev/<location-of-your-media>
+
 
         # for example /dev/sdc, /dev/sdg, ...
+
====Banana Pi (Allwinner A20)====
         # read /var/log/messages to learn which device was assigned to your media
+
 
 +
{{admon/warning|IMPORTANT | Pada tahapan ini harus memiliki kabel serial console ke Banana Pi.  
 +
 
 +
  MEDIA= #/dev/<lokasi-media>
 +
         # contoh /dev/sdc, /dev/sdg, ...
 +
         # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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.
 
===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.
 
===For the 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.
 
  
===For the CubieBoard v2 (Allwinner A20)===
+
Media sudah siap untuk boot Banana Pi. Masukkan ke divais dan boot.
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.
+
  
===For the CubieTruck (Allwinner A20)===
+
====PERINGATAN untuk pengguna Cubie* ====
MEDIA= #/dev/<location-of-your-media>
+
Pastikan memakai image U-boot yang sesuai board! Jika salah uboot akan menyebabkan kesalahan yang membuat bingung.
        # 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.
+
  
===For the BeagleBone ( Black & White ) ===
+
====CubieBoard v1 (Allwinner A10)====
{{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/<lokasi-media>
  MEDIA= #/dev/<location-of-your-media>
+
         # contoh /dev/sdc, /dev/sdg, ...
         # for example /dev/sdc, /dev/sdg, ...
+
         # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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/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====
+
sudo dd if=/tmp/root/usr/share/uboot/Cubieboard/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc
To Copy the IGN U-Boot to the eMMC on the Beaglebone Black execute the following steps:
+
  
<pre>
+
Media sudah siap untuk boot Cubieboard v1. Masukkan ke divais dan boot.
# 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
+
====CubieBoard v2 (Allwinner A20)====
cp /usr/share/uboot/beaglebone/{MLO,u-boot.img} /tmp/emmc/
+
MEDIA= #/dev/<lokasi-media>
</pre>
+
        # contoh /dev/sdc, /dev/sdg, ...
 +
        # baca /var/log/messages untuk mengetahui posisi divais terkait ke media
  
Once completed you will no longer need to press the "User Boot" button to select the IGN U-Boot.
+
sudo dd if=/tmp/root/usr/share/uboot/Cubieboard2/u-boot-sunxi-with-spl.bin of=$MEDIA bs=1024 seek=8 conv=fsync,notrunc
  
===For the CompuLab TrimSlice===
+
Media sudah siap untuk boot Cubieboard v2. Masukkan ke divais dan boot.
{{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.
+
  
=== For the Wandboard (Freescale i.MX6) ===
+
====CubieTruck (Allwinner A20)====
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
+
  MEDIA= #/dev/<lokasi-media>
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).
+
         # contoh /dev/sdc, /dev/sdg, ...
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
 
         # 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.
 
{{admon/warning|IMPORTANT |<b>MicroSD for booting is located under the heatsink</b>}}
 
  
=== For the Pandaboard ===
+
  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= #/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.
+
  
=For Versatile Express Emulation with QEMU=
+
Media sudah siap untuk boot Cubietruck. Masukkan ke divais dan boot.
No ARM hardware? No problem! Even without hardware, it is possible to run the IGN for ARM images using the QEMU emulator program. Any image can be used, and you can choose a scr
+
ipt method or manual depending on your preference.
+
=== Using an Existing Disk Image ===
+
Choose a disk image.
+
http://download.IGNproject.org/pub/IGN/linux/releases/21/Images/armhfp/
+
Extract the image:
+
<pre>
+
TYPE= # Type of image used. (eg Minimal, KDE, Xfce, SoaS, MATE)
+
unxz IGN-$TYPE-armhfp-21-5-sda.raw.xz
+
</pre>
+
Install 'libguestfs-tools' to use virt-copy
+
<pre>sudo yum install -y libguestfs-tools</pre>
+
Extract the kernel and initramfs for use with booting.
+
<pre>
+
virt-copy-out -a IGN-$TYPE-armhfp-21-5-sda.raw /boot .
+
</pre>
+
  
To boot (you will need to determine the kernel version used in the disk image):
+
====BeagleBone ( Black & White ) ====
<pre>
+
{{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}}
KERN= # kernel version. eg - '/path/to/vmlinuz*'
+
INITRD= # initrd version. eg - '/path/to/initramfs*'
+
DTB= # dtb version. eg - '/path/to/dtb*/vexpress-v2p-ca9.dtb
+
TYPE= # image used (Minimal recommended due to ongoing work with vexpress display)
+
sudo qemu-system-arm -machine vexpress-a9 -m 1024 -nographic -net nic -net user \
+
-append "console=ttyAMA0,115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0" \
+
-kernel $KERN \
+
-initrd $INITRD \
+
-sd IGN-$TYPE-armhfp-21-5-sda.raw \
+
-dtb $DTB
+
  
* NOTE - to use Cortex-A15 emulation you will need to use '-machine vexpress-a15' and the A15 DTB - 'vexpress-v2p-ca15-tc1.dtb'.  
+
MEDIA= #/dev/<lokasi-media>
</pre>
+
        # contoh /dev/sdc, /dev/sdg, ...
 +
        # baca /var/log/messages untuk mengetahui posisi divais terkait ke media
  
For convenience you can also download a script for booting the system [http://pwhalen.IGNpeople.org/IGN/20/boot-vexpress here].
+
sudo dd if=/tmp/root/usr/share/uboot/beaglebone/MLO of=$MEDIA count=1 seek=1 conv=notrunc bs=128k
To run the script:
+
sudo dd if=/tmp/root/usr/share/uboot/beaglebone/u-boot.img of=$MEDIA count=2 seek=1 conv=notrunc bs=384k
<pre>
+
chmod 755 boot-vexpress
+
./boot-vexpress -h
+
Usage: ./boot-vexpress [--gui] --kernel=vmlinuz... --ramfs=initramfs --image=fsimage --dtb=vexpress.dtb
+
</pre>
+
  
NOTE: Booting with device tree is required. Passing <b>--gui</b> for graphics will not work at this time (this is due to ongoing platform reword occurring within the Versatile Expr
+
Media sudah siap untuk boot BeagleBone. Masukkan ke divais dan boot.
ess kernel code).
+
  
===Expanding the Disk Image===
+
Untuk boot ke IGN ARM dengan U-boot yang ada di MicroSD, pada saat divais dinyalakan, tekan dan tahan tombol "User Boot" (berada di dekat slot MicroSD).  
You can easily expand the root partition of the disk image using <code>qemu-img</code>.
+
  
For example to increase the image size by 10GB you can issue:
+
==== Salin IGN U-Boot ke eMMC di Beaglebone Black====
  qemu-img resize IGN-$TYPE-armhfp-21-5-sda.raw +10G
+
Untuk menyalin U-Boot ke eMMC di Beaglebone Black lakukan tahapan berikut:
  
=== Interactive Network Installation ===
 
IGOS Nusantara  offers the ability to perform a network installation using either 'vexpress-a15' or 'vexpress-a9'. Using 'vexpress-a15' will allow you to leverage more RAM using the LPAE kernel.
 
 
<pre>
 
<pre>
# vexpress-a15
+
# Lakukan mount emmc boot partition
# Create the disk image
+
mkdir /tmp/emmc; mount /dev/mmcblk1p1 /tmp/emmc
qemu-img create IGN-QEMU-armhfp-21-sda.raw $SIZE #add a size EG 8G
+
# retrieve DTB
+
wget https://repo.igos-nusantara.or.id/armhfp/os/images/pxeboot/dtb/vexpress-v2p-ca15-tc1.dtb
+
# Begin Install
+
sudo virt-install \
+
--name IGN-QEMU-armhfp-21-A15 \
+
--ram 2048        \
+
--arch armv7l      \
+
--machine vexpress-a15 \
+
--location=https://repo.igos-nusantara.or.id/armhfp/os/ \
+
--disk IGN-QEMU-armhfp-21-sda.raw \
+
--extra-args="console=ttyAMA0 rw" \
+
--os-variant IGN21            \
+
--graphics none \
+
--boot dtb=`pwd`/vexpress-v2p-ca15-tc1.dtb
+
  
# vexpress-a9
+
# Opsional untuk buat backup U-Boot asli
# Create the disk image
+
mkdir /tmp/emmc/orig-uboot; cp /tmp/emmc/{MLO,u-boot.img} /tmp/emmc/orig-uboot/
sudo qemu-img create IGN-QEMU-armhfp-21-sda.raw $SIZE #add a size EG 8G
+
# retrieve DTB
+
wget https://repo.igos-nusantara.or.id/armhfp/os/images/pxeboot/dtb/vexpress-v2p-ca9.dtb
+
# Begin Install
+
sudo virt-install \
+
--name IGN-QEMU-armhfp-21-A9 \
+
--ram 1024 \
+
--arch armv7l      \
+
--machine vexpress-a9 \
+
--location=https://repo.igos-nusantara.or.id/armhfp/os/ \
+
--disk IGN-QEMU-armhfp-21-sda.raw \
+
--extra-args="console=ttyAMA0 rw" \
+
--os-variant IGN21            \
+
--graphics none \
+
--boot dtb=`pwd`/vexpress-v2p-ca9.dtb
+
</pre>
+
Complete a Text or VNC Installation choosing a software packge and partitioning scheme (note when choosing LVM or BTRFS you will need to edit the kernel arguments appropriately). T
+
he system will attempt to reboot but fail until the next step is completed.
+
  
=== Extracting Files from the Disk Image  ===
+
# Salin U-Boot
Once completed you will need to copy the kernel and initramfs and DTB from the disk image for use with Virt-Manager or command line.
+
cp /usr/share/uboot/beaglebone/{MLO,u-boot.img} /tmp/emmc/
<pre>
+
KERN= # kernel version
+
INITRD= # initrd version
+
sudo virt-copy-out -a IGN-QEMU-armhfp-21-5-sda.raw /boot/{$KERN,$INITRD} .
+
# vexpress-a15
+
sudo virt-copy-out -a IGN-QEMU-armhfp-21-5-sda.raw /boot/dtb-*/vexpress-v2p-ca15-tc1.dtb .
+
# vexpress-a9
+
sudo virt-copy-out -a IGN-QEMU-armhfp-21-5-sda.raw /boot/dtb-*/vexpress-v2p-ca9.dtb .
+
 
</pre>
 
</pre>
  
=== Booting the New System ===
+
Setelah selesai, maka tidak perlu lagi menekan tombol "User Boot" untuk memakai U-boot yang berasal dari IGN ARM.
Once the files have been extracted you can choose to use the system on commandline or with Virt-Manager. Virt-Manager offers additional flexibility and is recommended for most user
+
s.
+
==== Virt-Manager ====
+
* Open Virt-Manager and select the image created above. Click on "Edit-> Virtual Machine Details -> View -> Details"
+
* Under "Boot Options", add the kernel, initramfs and dtb extracted above (the DTB should point to the correct path)
+
* For kernel args add (note- if custom partitioning was used for the installation you will to make adjustments to 'root='):
+
<pre>
+
# If you selected Standard Partitioning
+
console=ttyAMA0,115200n8 rw root=/dev/vda3 rootwait
+
# If you selected LVM
+
console=ttyAMA0,115200n8 rw root=/dev/mapper/IGN-root rootwait
+
</pre>
+
  
* When using the A15 DTB and LPAE kernel it is possible to use more RAM.
+
====CompuLab TrimSlice====
 +
{{admon/warning|IMPORTANT | Pastikan sudah memiliki U-Boot Trimslice terbaru, ada di [http://www.trimslice.com/wiki/index.php/Trim-Slice_Firmware_Updater#v2012.04-1.02 here]. And environmental variables desc4444444444444444444 [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>}}
  
= Booting for the First Time =
+
Trimslice tidak memerlukan tahapan tambahan, U-Boot sudah ada di divais.
===Initial-setup===
+
* During the first boot the system will launch the 'initial-setup' utility. For graphical images this will occur on the display, for minimal images this will occur on the serial co
+
nsole. Failure to complete the initial-setup will prevent logging into the system. To log in to the root account without completing the initial-setup you will need to minimally edi
+
t '/etc/passwd' file and remove the 'x' from the line beginning with 'root' (this will allow you to log into the root account without entering a password).
+
=== Resize the Root Filesystem ===
+
To resize the root partition use 'gparted' on a IGN host.
+
  
= Known Issues & Usage Tips=
+
===Wandboard (Freescale i.MX6) ===
 +
Catatan - Wandboard meliputi konfigurasi Solo, Dual, dan Quad core.  Pastikan konfigurasi hardware memakai nilai yang benar. Wandboard Solo memakai dtb yang sama dengan Wandboard Dual (imx6dl-wandboard.dtb).
  
* Display is not currently working in vexpress emulation.
+
Salin U-boot untuk Wandboard:
* A15 emulation through QEMU provides no output on console in IGN 20(qemu-system-arm-1.6.2-9.fc20), working in IGOS Nusantara(qemu-system-arm-2.1.2-6.fc21).
+
* After installation with Anaconda you will need to manually edit '/etc/extlinux/extlinux.conf' and add 'fdtdir /dtb-<version>/' line. .
+
* The system may hang during the update of 'initial-setup'. If this occurs, open another terminal and 'systemctl stop initial-setup-text' or 'systemctl stop initial-setup-graphical' depending on which image is in use.
+
  
For a list of all common bugs please visit - http://IGNproject.org/wiki/Common_F21_bugs .
+
BOARD= # Choose 'solo', 'dl' or 'quad'
 +
MEDIA= #/dev/<lokasi-media>
 +
        # contoh /dev/sdc, /dev/sdg, ...
 +
        # baca /var/log/messages untuk mengetahui posisi divais terkait ke media
  
= FAQ =
+
sudo dd if=/tmp/root/usr/share/uboot/wandboard_$BOARD/u-boot.imx of=$MEDIA bs=1k seek=1 conv=fsync; sync
  
*  <b>QUESTION</b> : How do I use IGN ARM when I have no serial cable or display?
+
Cabut media dan masukkan ke Wandboard dan boot.
** <b>ANSWER</b>: Though not recommended it is possible to use IGN ARM without a serial cable or display. When doing so you may want to limit updates to reduce the possibility of not being able to boot. (This example is from a IGN 19 system, you may need to adjust the mounts used).
+
<pre>
+
USER= # your user account
+
rm /run/media/$USER/__/etc/systemd/system/graphical.target.wants/initial-setup-graphical.service
+
rm /run/media/$USER/__/etc/systemd/system/multi-user.target.wants/initial-setup-text.service
+
mkdir /run/media/$USER/__/root/.ssh/
+
cat /home/$USER/.ssh/id_rsa.pub >> /run/media/$USER/__/root/.ssh/authorized_keys
+
chmod -R u=rwX,o=,g= /run/media/$USER/__/root/.ssh/
+
</pre>
+
  
Give the system a few minutes to boot, when it obtains an IP you should be able to ssh to the root account.
+
{{admon/warning|IMPORTANT |<b>MicroSD untuk booting berada di bawah heatsink</b>}}
 +
 
 +
===Pandaboard===
 +
MEDIA= #/dev/<lokasi-media>
 +
        # contoh /dev/sdc, /dev/sdg, ...
 +
        # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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
  
*  <b>QUESTION</b> : Why does 'yum update' fail?
+
Media sudah siap untuk boot Pandaboard. Masukkan ke divais dan boot.
** <b>ANSWER</b>: The system time might be incorrect, plesae ensure it is correct.
+

Revisi terkini pada 11 April 2015 02.31

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

Board yang dapat memakai IGN ARM

http://igos-nusantara.or.id/wiki/index.php?title=IGN-ARM_dan_Dukungan_Hardware

Unduh Image

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

Image ada di:

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

Image untuk Raspberry Pi 2: IGN-ARM-1.0-rpi2-*

IGN-ARM-1.0-rpi2-ignsdk-sda-2015-04-08.img.xz	 09-Apr-2015 11:03 	152M	 
IGN-ARM-1.0-rpi2-mate-sda-2015-04-08.img.xz	 09-Apr-2015 11:13 	288M	 
IGN-ARM-1.0-rpi2-mini-sda-2015-04-08.img.xz	 09-Apr-2015 11:18 	96M	

Image untuk board lain: IGN-ARM-1.0-armhfp-*

IGN-ARM-1.0-armhfp-ignsdk-sda-2015-04-08.raw.xz 07-Apr-2015 15:06 	202M	 
IGN-ARM-1.0-armhfp-mate-sda-2015-04-08.raw.xz	 08-Apr-2015 17:50 	356M	 
IGN-ARM-1.0-armhfp-mini-sda-2015-04-08.raw.xz	 07-Apr-2015 12:55 	153M	 

Menulis Image

Ada dua cara pemasangan image IGN ARM

  • Pasang Image untuk Raspberry
  • Pasang Image untuk bukan Raspberry

Menulis Image untuk Raspberry

Menulis Image ke MicroSD memakai perintah dd. Supaya perintah dd menampilkan indikator proses, gunakan pipe ke pv. Pasang lebih dulu paket pv

#
yum -y install pv

Menulis image IGN-ARM-1.0-rpi2-mate-sda-2015-04-10.img ke MicroSD yang berada di /dev/mmcblk0

# 
dd if=IGN-ARM-1.0-rpi2-mate-sda-2015-04-10.img|pv|dd of=/dev/mmcblk0

Tampilan proses:

4327424+0 records in4MiB/s] [               <=>                ]
4327424+0 records out
2215641088 bytes (2.2 GB) copied, 520.007 s, 4.3 MB/s
2.06GiB 0:08:40 [4.06MiB/s]  [               <=>                ]
4327424+0 records in
4327424+0 records out
2215641088 bytes (2.2 GB) copied, 520.019 s, 4.3 MB/s


Menulis Image untuk board lain

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

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

Masuk ke:

http://repo.informatika.lipi.go.id/arm/image/

Unduh disk image IGN-ARM-1.0-armhfp-*

Tulis image ke media

TYPE=  # Tentukan jenis IGN-ARM
MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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
       # contoh /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)

{{admon/warning|IMPORTANT | Pada tahapan ini harus memiliki kabel serial console ke Banana Pi.

MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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 sudah siap untuk boot Banana Pi. Masukkan ke divais dan boot.

PERINGATAN untuk pengguna Cubie*

Pastikan memakai image U-boot yang sesuai board! Jika salah uboot akan menyebabkan kesalahan yang membuat bingung.

CubieBoard v1 (Allwinner A10)

MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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 sudah siap untuk boot Cubieboard v1. Masukkan ke divais dan boot.


CubieBoard v2 (Allwinner A20)

MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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 sudah siap untuk boot Cubieboard v2. Masukkan ke divais dan boot.

CubieTruck (Allwinner A20)

MEDIA= #/dev/<lokasi-media>
       # contoh /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 sudah siap untuk boot Cubietruck. Masukkan ke divais dan boot.

BeagleBone ( Black & White )

Templat:Admon/warning

MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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 sudah siap untuk boot BeagleBone. Masukkan ke divais dan boot.

Untuk boot ke IGN ARM dengan U-boot yang ada di MicroSD, pada saat divais dinyalakan, tekan dan tahan tombol "User Boot" (berada di dekat slot MicroSD).

Salin IGN U-Boot ke eMMC di Beaglebone Black

Untuk menyalin U-Boot ke eMMC di Beaglebone Black lakukan tahapan berikut:

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

# Opsional untuk buat backup U-Boot asli
mkdir /tmp/emmc/orig-uboot; cp /tmp/emmc/{MLO,u-boot.img} /tmp/emmc/orig-uboot/

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

Setelah selesai, maka tidak perlu lagi menekan tombol "User Boot" untuk memakai U-boot yang berasal dari IGN ARM.

CompuLab TrimSlice

Templat:Admon/warning

Trimslice tidak memerlukan tahapan tambahan, U-Boot sudah ada di divais.

Wandboard (Freescale i.MX6)

Catatan - Wandboard meliputi konfigurasi Solo, Dual, dan Quad core. Pastikan konfigurasi hardware memakai nilai yang benar. Wandboard Solo memakai dtb yang sama dengan Wandboard Dual (imx6dl-wandboard.dtb).

Salin U-boot untuk Wandboard:

BOARD= # Choose 'solo', 'dl' or 'quad'
MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke media
sudo dd if=/tmp/root/usr/share/uboot/wandboard_$BOARD/u-boot.imx of=$MEDIA bs=1k seek=1 conv=fsync; sync

Cabut media dan masukkan ke Wandboard dan boot.

Templat:Admon/warning

Pandaboard

MEDIA= #/dev/<lokasi-media>
       # contoh /dev/sdc, /dev/sdg, ...
       # baca /var/log/messages untuk mengetahui posisi divais terkait ke 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 sudah siap untuk boot Pandaboard. Masukkan ke divais dan boot.