Tuesday, June 30, 2009

A new revelation (Zubuntu RC1)

After a hint speculatrix gave me, I followed this post to install Zubuntu RC1 (8.04) on my Zaurus. I first reflashed the zaurus with a rom including kexec.
This little nifty app enables the zaurus to boot from the SD/CF card.
I got me a 4GB SDHC card. On a desktop (actually a virtual machine) I repartitioned it using gparted (one ext2 and one swap partition). and extracted the rootfs to the SD,

# tar zxvf zubuntu-desktop-rc1.tar.gz -C /media/disk
and the kernel modules for my boxer,
# tar zxvf c7x0-root-addition.tar.gz -C /media/disk
and voila, I have ubuntu on my zaurus. I needed to fix the touchscreen by changing in ~/.profile:
export TSLIB_TSDEVICE=/dev/input/event2
to
export TSLIB_TSDEVICE=/dev/input/event1
alternatively the following command will change it:
sed -i "s#export TSLIB_TSDEVICE=/dev/input/event2#export TSLIB_TSDEVICE=/dev/input/event1#" root/.profile
And also removed from ~/.xinitrc
xrandr -o right
or
sed -i "s/xrandr -o right/#xrandr -o right/" root/.xinitrc
to keep the screen in portrait mode when starting.

To enable usb networking , i edited /etc/network/interfaces as I did before. I also had to add to /etc/resolve.conf:
nameserver 192.168.1.1
to have access to the internet.

The only major problem I have now is that the CF slot is dead so I cant use the bluetooth or wifi cards.

eventually I found this link (in german) after
# modprobe pxa2xx_cs
the port came back to life. I added g_ether (USB networking), pxa2xx_cs (CF slot) and snd-soc-corgi (Sound card) to /etc/modules.
this can be done by,
grep snd-soc-corgi etc/modules || echo "snd-soc-corgi">>etc/modules
grep pxa2xx_cs etc/modules || echo "pxa2xx_cs">>etc/modules
grep g_ether etc/modules || echo "g_ether">>etc/modules