Difference between revisions of "IMX233/ArchLinuxARM"

m (Install the root filesystem)
m (Install the bootloader)
Line 33: Line 33:
 
Write it to the first partition at 2 kiB offset:
 
Write it to the first partition at 2 kiB offset:
 
  <nowiki>dd if=u-boot.sb of=/dev/sdcardpartition_1 bs=512 seek=4</nowiki>
 
  <nowiki>dd if=u-boot.sb of=/dev/sdcardpartition_1 bs=512 seek=4</nowiki>
 +
 +
TODO: Configuration of U-Boot, links to docs, uEnv.txt.
  
 
=== Install the root filesystem ===
 
=== Install the root filesystem ===

Revision as of 12:49, 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 using parted, fdisk, cfdisk or something else:

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

There are step by step instructions here. The first partition is of the special 0x53 type, 2 MiB are enough. 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

TODO: Configuration of U-Boot, links to docs, uEnv.txt.

Install the root filesystem

Download the rootfs tarball from this listing on archlinuxarm.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