This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Redboot _do_flash_init() too late for initialization of "/dev/flash1"?
- From: "wang cui" <iucgnaw at msn dot com>
- To: ecos-discuss at sourceware dot org
- Date: Fri, 15 Dec 2006 05:02:41 +0000
- Subject: [ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"?
- Bcc:
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