Mounting JFFS2, Bootloader

Justin Wojdacki justin.wojdacki at analog.com
Thu Jul 11 13:08:19 EDT 2002


Having recently done the same kind of thing (on a different board), I
think I can help. 

Exactly what you need depends a bit on how you want to handle this. If
you are happy with a bootstrap that can only handle one kernel, then
it's really easy: You hardcode the path/filename of the kernel into
the bootloader, and then walk the filesystem looking for this file. If
you want more flexibility than that, you may instead need to look for
a configuration file and then process the configuration file. 

JFFS2 has a really easy to work with on-device layout, so it shouldn't
take much effort to locate the files you're interested in. 

The files you'll need to work with are in fs/jffs2 and include/linux. 

Figure out exactly what capabilities you want first though. That'll
make it much easier to plan out. And remember, if it's being done in
the bootloader, you're not in the kernel, so you may have to
reimplement some things. 

-- 
-------------------------------------------------
Justin Wojdacki        
justin.wojdacki at analog.com         (408) 350-5032
Communications Processors Group -- Analog Devices




More information about the linux-mtd mailing list