Saturday, April 29, 2006

Switching root from Flash to RS-MMC without Flasher

On my Nokia 770, I use a 128mb rs-mmc card formatted with ext3 to hold the development rootfs.

The most obvious way to boot off the rs-mmc card is to use the Flasher tool with this command line:
./flasher --set-root-device mmc
And to resume normal operation:
./flasher --set-root-device flash
However flasher needs a PC at hand- cal-tool to the rescue!

For development (on mmc):

sudo gainroot
chroot /mnt/initfs cal-tool -R mmc
init 6

For release (on flash):

sudo gainroot
chroot /mnt/initfs cal-tool -R flash
init 6
N.B. This command requires xterm and root permissions on both your release and development (so you can switch back) images.

Tuesday, April 25, 2006

Curl Package for Nokia 770

Last weekend I built the debian curl package for maemo (Nokia 770's platform). Eventually I'm going to use the package to build a mirroring utility.

Only minimal changes where required- such as disabling the generation of postinst and postrm scripts.

curl and libcurl3 both install using the Application Installer and work well. However not all of the build tests wouldn't run under qemu-arm (the HTTP tests were complaining the socket was already bound). I'll try again with CPU Transparency next weekend.

All the binaries and sources are here.

Update: Slight changes to packages (URLs changed above)

Furthermore using CPU Transparency didn't help with the build tests, although I haven't given up yet...

Thursday, April 20, 2006


A little while ago I took Brian Masney's pam_quota and did a quick hack to get it working with XFS for my college networking society (netsoc-dkit).

Then, I posted it to my public_html directory and prompty forgot about it- Until Now!

So if you need pam_quota for xfs download pam_quota_xfs.c,
build instructions are included in the file.

P.S. Even though it has been in constant production use on a busy Gentoo server without issue, be careful as I haven't tried to break it!