Ipaq The Intimate Project
news
project info
dev structure
download
installation
packages
screenshots
known bugs
suggestions
howto
blkmtd
mail archives
links
credits

blkmtd binaries and howto

blkmtd

 

On 26th June 2001, spse@secret.org.uk released the blkmtd driver to the world. This driver allows you to use any block device as an MTD storage device. The big advantage with doing this is that you can run the JFFS2 filesystem on a block device, and get compression and journalling where you couldn't normally do so.

An iPAQ binary version of the blkmtd driver is availaible here.

blkmtd.tgz

You load the blkmtd driver in the following way

insmod blkmtd-arm.o device=/dev/hda

You will then get a new mtdblock device created in /dev/mtdblock/ (if you're using devfs). If you are not using devfs, then you must create the device node manually. If you're using regular familiar 0.4, then the device that you get will be /dev/mtdblock/4 (or /dev/mtdblock4)

You can now mount a jffs2 filesystem from the new block device

mount -t jffs2 /dev/mtdblock/4 /mnt/test

Hey presto, you have your jffs2 CF card mounted on your iPAQ.

OK.. so you want to make a filesystem then.

fsutils.tgz

einfo will tell you the number of erase blocks in easch region. add them up then do erase /dev/mtd/xx 0 <number>

erase /dev/mtd/4 0 <no of eraseblocks>

Then do a mkfs.jffs2 -d<root dir> -o<output device> -e<erase sz in bytes>

 

 

 

 

Not Copyrighted © 2001 The Intimate Project. No Rights Reserved.