[ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"?

wang cui iucgnaw@msn.com
Fri Dec 15 05:02:00 GMT 2006


I added JFFS2 package into my platform. For the default configuration, it 
works well.

Since I don't want to locate the JFFS2 image at a static location(set by 
"CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_1"), I switch to 
"CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1" to let "/dev/flash1" device get its block 
infomation from FIS.

But when cyg_io_init() call "/dev/flash1"'s init function, all FIS 
information are not intialized yet, and the device init fails.
Until Redboot's cyg_start() call _do_flash_init(), the FIS get initialized.

So the "/dev/flash1" device was not available when I mount the JFFS2 
filesystem. However the mount action still pass(the mount only try to 
lookup the device, but not check whether the device is available), but I 
can't write any files because the "/dev/flash1"'s block infomation is 
invalid(all zero).

So I wander how to get "CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1" work?

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn/  


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list