Difference between revisions of "IMX233/ArchLinuxARM"

m (U-Boot enabled install)
m (ArchLinuxARM on iMX233-OLinuXino)
Line 25: Line 25:
 
The first partition is of the special 0x53 type, used by the processor to boot. It will contain the bootloader and its environment.
 
The first partition is of the special 0x53 type, used by the processor to boot. It will contain the bootloader and its environment.
  
The second is your root partition. You may create additional ones if you like.
+
The second is your rootfs partition. You may create additional ones if you like and edit  /etc/fstab to your liking.
  
 
=== Install the bootloader ===
 
=== Install the bootloader ===
  
Either find a prebuilt u-boot.sb file to flash, or follow the instructions [http://www.eewiki.net/display/linuxonarm/iMX233-OLinuXino#iMX233-OLinuXino-Bootloader here] to build one.
+
Download a prebuilt u-boot.sb file or follow the instructions [http://www.eewiki.net/display/linuxonarm/iMX233-OLinuXino#iMX233-OLinuXino-Bootloader here] to build one.
  
Write it to the first partition at 2 kb offset:
+
Write it to the first partition at 2 kiB offset:
  <nowiki>dd if=u-boot.sb of=/dev/yourfirstpartition bs=512 seek=4</nowiki>
+
  <nowiki>dd if=u-boot.sb of=/dev/sdcardpartition_1 bs=512 seek=4</nowiki>
  
 
=== Install the root filesystem ===
 
=== Install the root filesystem ===
 +
 +
Download the [http://os.archlinuxarm.org/os/ArchLinuxARM-olinuxino-latest.img.gz rootfs tarball] from [http://os.archlinuxarm.org/os/ this listing on ofarchlinuxarm.org] and extract it on the mounted rootfs partition. It is important to do the extraction root, not with sudo.
 +
 +
<nowiki>wget http://os.archlinuxarm.org/os/ArchLinuxARM-olinuxino-latest.img.gz
 +
sudo mount /dev/sdcardpartition_2 /mnt/rootfs
 +
sudo su
 +
tar -xzvpf ArchLinuxARM-olinuxino-latest.img.gz -C /mnt/rootfs
 +
sync
 +
umount /mnt/rootfs
 +
</nowiki>
  
 
==== Generate a custom filesystem ====
 
==== Generate a custom filesystem ====

Revision as of 11:41, 6 May 2013

ArchLinuxARM on iMX233-OLinuXino

This page explains the ways to install ArchLinuxARM (alarm for short) on iMX233-OLinuXino boards. Instructions should work on all 3 variants: maxi, mini and micro.

The official image

The easiest way to install alarm: just follow the official instructions. The image is pre-partitioned and has everything in place. It uses bootlets, so any time the kernel cmdline or DT binary need to be changed the bootstream needs to be rebuilt and reflashed.

When upgrading the kernel or installing a custom kernel package it is essential that you hit "y" when asked "Do you want the new kernel flashed onto mmcblk0p1? [y|N]". If not, the bootstream containing the new kernel will not be used after a reboot, with its modules already uninstalled.

U-Boot makes the board much more hacker-friendly.

U-Boot install

This will hopefully soon become the official installation method, but it requires a few advanced steps at this point.

Partition the SD card

Achieve the following partition layout:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048        6143        2048   53  OnTrack DM6 Aux3
/dev/sdd2            6144     3842047     1917952   83  Linux

The first partition is of the special 0x53 type, used by the processor to boot. It will contain the bootloader and its environment.

The second is your rootfs partition. You may create additional ones if you like and edit /etc/fstab to your liking.

Install the bootloader

Download a prebuilt u-boot.sb file or follow the instructions here to build one.

Write it to the first partition at 2 kiB offset:

dd if=u-boot.sb of=/dev/sdcardpartition_1 bs=512 seek=4

Install the root filesystem

Download the rootfs tarball from this listing on ofarchlinuxarm.org and extract it on the mounted rootfs partition. It is important to do the extraction root, not with sudo.

wget http://os.archlinuxarm.org/os/ArchLinuxARM-olinuxino-latest.img.gz
sudo mount /dev/sdcardpartition_2 /mnt/rootfs
sudo su
tar -xzvpf ArchLinuxARM-olinuxino-latest.img.gz -C /mnt/rootfs
sync
umount /mnt/rootfs

Generate a custom filesystem