IGN-ARM Pasang ke MicroSD
Daftar isi
- 1 IGOS Nusantara ARM
- 2 Download the Disk Image & Copy to Media
- 3 Write U-Boot to Media
- 3.1 For the Banana Pi (Allwinner A20)
- 3.2 WARNING for Cubie* users
- 3.3 For the CubieBoard v1 (Allwinner A10)
- 3.4 For the CubieBoard v2 (Allwinner A20)
- 3.5 For the CubieTruck (Allwinner A20)
- 3.6 For the BeagleBone ( Black & White )
- 3.7 For the CompuLab TrimSlice
- 3.8 For the Wandboard (Freescale i.MX6)
- 3.9 For the Pandaboard
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
Download the Disk Image & Copy to 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/
Scripted
Execute the following script as a user with sudo privileges. It will copy the selected disk image and write the appropriate U-Boot for the target hardware platform. Optionally you can also enable and disable SE Linux and remove the root password requirement (allowing log in without completing initial setup). 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.
./IGN-arm-image-installer.sh Usage: IGN-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 Example: IGN-arm-image-installer.sh --image=IGN-Rawhide.xz --target=panda --media=/dev/mmcblk0 --selinux=OFF
Note, this is not the Templat:Package package.
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
After writing the image, read the new partition table and mount the root partition
partprobe $MEDIA PART= #/dev/<location-of-your-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.
Write U-Boot to Media
Follow theses steps to write the appropriate U-Boot for your Hardware.
For the Banana Pi (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/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= #/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)
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.
For the BeagleBone ( Black & White )
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.
For the CompuLab TrimSlice
Templat:Admon/warning The Trimslice requires no additional steps, U-Boot is included on the device.
For the 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
For the 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.