Booting directly to JFFS2 question

David Woodhouse dwmw2 at infradead.org
Thu Jan 15 05:51:48 EST 2004


On Thu, 2004-01-15 at 11:45 -0800, James Ewing wrote:
> After creating the partitions the system looks for the file system image by
> checking 64K boundaries of the 2nd flash partition looking for cramfs or
> squashfs magic numbers. The routine then returns a pointer to the fs system
> start byte and the init/do_mount.c code takes over.

This works by setting up the partitions dynamically according to what's
found in the image, right? 

> This pointer was to the super_block for the filesystem. Apparently jffs2
> doesn't have a super_block in the traditional sense so I am a bit stumped.

It should still be possible -- look for a JFFS2 node (0x1985 etc..)
starting at the beginning of an eraseblock. 

See struct jffs2_unknown_node in include/linux/jffs2.h

-- 
dwmw2




More information about the linux-mtd mailing list