48meg DOC
Henrik Nordstrom
hno at marasystems.com
Fri Aug 30 11:49:24 EDT 2002
Have been playing with a 24megs DOC2000 lately, and soon gave up on the stock
Linux drivers. Haven't had time to test the CVS version of the MTD drivers
yet.
What I have ended up doing for the time beeing until I have more time is the
simplest possible path.. M-Systems 5.1.2 firmware, a single DOS partition
covering the whole DOC drive, and a normal GRUB as boot loader loaded in the
normal manners via MBR (not the DOC enabled GRUB firmware).
GRUB loads the kernel and a compressed romfs root image from the DOS partition
and starts the system. To access the DOC from within Linux for configuration
data storage and upgrades the 5.0.0 Linux driver from M-Systems is used.
My final goal is to be able to partition the DOC in five pieces and to not
having to depend on binary only drivers (is a hassle to have to use a initrd
to be able to boot).. 1 binary flash partition for boot loader (GRUB), plus
4 partitions for system (ro) and configuration (rw), two of each.
Boot area (GRUB in the binary flash partition)
System image (RO while running, compressed)
Primary configuration database (RW)
+ secondary system image and configuration database.
The configuration databases should preferably be journaled and flash friendly,
but the write frequency is very low with small amounts of data so it is not
critical.
But I have not yet figured out how to do this in a stable manner. GRUB does
not like my DOC chips complaining about a UnitSizeFactor parameter in the
NFTL header (perhaps because of them being formatted by the new firmware? I
do not know. Was not aware there was firmware related problems), and if I
partition the DOC in more than one partition using fdisk then it seems the
M-Systems firmware craps out and I get all kinds of wierd results and the
system cannot be booted from DOC. (once booted however it seems to be fine
when accessed using the 5.0.0 version Linux driver, but I have occationally
lost the flash disk partition when playing with this so I am not sure...)
> I am not sure, what is map installer?
The LILO map installer is /sbin/lilo. This creates the boot map in /boot/map.
The boot map contains the block numbers of /boot/boot.b and your kernels or
initrd images.
Regards
Henrik
More information about the linux-mtd
mailing list