Arch Linux ARM image for Zipit Z2

2012-09-12 20:30:34
Quite some time ago, I have written a blog entry about how to install Arch Linux on the Zipit Z2, but I did not provide an image back then. Now I have prepared a ready-to-use image of Arch Linux ARM for the Z2.

Z2

It is based on official up-to-date packages. Only for the kernel I had to build one compatible with the Z2.
I have chosen the 3.6.0-rc3 vanilla kernel (config).

I have pre-configured zram for use as swap. zram allows portions of a computer's RAM to be used as a block device. This alone would not be of much use, but zram compresses the data of the block device in RAM, so when using a zram block device as a swap device the total amount of available memory increases. This is essential on the Z2 as the device's 32 MB of RAM alone are not enough for pacman and some other programs. With zram swap pacman runs fine most of the time. One could also use the SD card for swapping, but I do not recommend that as swapping to SD card is very slow and also reduces the card's lifespan considerably.

I have also included my own little repository in pacman's config file, so in case I update the kernel or prepare some other packages for the Z2 not found in the main repositories, you can still easily install/update those through pacman.

You need a Zipit with the U-Boot bootloader installed to use this image. Installation of the image is pretty simple. All you need is some kind of Linux computer to prepare an SD card with the ext2 file system, then extract the archive onto that SD card. A SD card with 1 or 2 GB is fine. Larger cards are okay too, if U-Boot recognizes them correctly.

The system comes with only one user: root. The password for root is 'root'. You should probably change that. Also, you should create a non-priviledged user with useradd.

To connect to a wireless network, you can use wifi-menu and netcfg-menu.

To select a wireless network from the available networks run:
# ifconfig wlan0 up
# wifi-menu
To later connect to a previously configured one run:
# netcfg-menu
archlinuxarm-zipit-z2-wej-20120912.tar.xz
Size: 105 MB, md5sum: 3448e0ee37e38a6e3bbef7685fe87f2e


If you want to try this image, but are not familiar with Arch Linux, I recommend having a look at the official ArchWiki.
Share:
 
eric (web) says:
2012-09-13 08:37:28
Great, thank you!
Perfect for lazy guys like me ;-)
Will try it ASAP.
What paches did you use for the kernel?
Do you provide a PKGBUILD?

wej (web) says:
2012-09-13 08:58:34
I did not patch the kernel. There is support for the Z2 in the mainline kernel. :)
You can find the PKGBUILD here: http://wejp.k.vu/arch/pkgbuilds/linux-z2/PKGBUILD.txt
Beware though, that it does the actual packaging only, as it is much faster to cross-compile the kernel. Of course you can easily add the actual compilation steps to the PKGBUILD if you really want to.
nanenj (web) says:
2012-11-22 18:58:06
I've been playing with this since I'm in love with Archlinux in general. However, when using the image you've provided and trying to update the system with pacman glibc decides it hates the world and refuses to install. I've tried following some of the guides on properly updating glibc, but, nothing seems to go, any suggestions or help on getting this to go through properly? Thanks!
wej (web) says:
2012-11-23 14:38:20
nanenj: Could you be a little more specific, what exactly happens when you try to update glibc?
bicboi (web) says:
2012-11-30 14:21:37
:O I love you. This is amazing and I'm glad to see support continuing for the z2.
nanenj (web) says:
2012-12-03 16:02:18
Unfortunately I've migrated away from arch at the moment, I'll see if I can fiddle around and get arch back on, but, it's basically the problem discussed here: https://wiki.archlinux.org/index.php/DeveloperWiki%3Ausrlib

Unfortunately, even when following the instructions there it doesn't seem to work, every time I've tried so far it's resulted in a non-working system after reboot. I'm quite aware I must be doing something wrong, but, not sure what.
wej (web) says:
2012-12-04 15:38:15
nanenj: What I have done in that situation was roughly the following:
1) Install busybox and start a busybox shell. This is important because your usual shell and tools depend on a working libc each time they are invoked, which will break as soon as you delete/rename the old /lib directory.
2) Run pacman -Syu --ignore glibc
3) Manually extract the latest glibc package in your root directory (glibc's files should be placed under /usr/lib).
4) Move the old /lib folder to something like /lib-old
5) Create the /lib symlink to /usr/lib
6) Correctly install the glibc package with pacman -Sf

At this point your system should be in a working and consistent state again.

Leave a comment

Name
E-Mail
Website
Homepage
Comment