public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"?
@ 2006-12-15  5:02 wang cui
  2006-12-15 18:52 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: wang cui @ 2006-12-15  5:02 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1173 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"?
  2006-12-15  5:02 [ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"? wang cui
@ 2006-12-15 18:52 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2006-12-15 18:52 UTC (permalink / raw)
  To: wang cui; +Cc: ecos-discuss

On Fri, Dec 15, 2006 at 05:02:41AM +0000, wang cui wrote:
> 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?

This was discussed about a month ago. I asked the reporter of the
problem to try a different versions of eCos from CVS, but i never got
a reply. Please could you read:

http://sourceware.org/ml/ecos-discuss/2006-11/msg00176.html

        Thanks
                Andrew

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-15 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-15  5:02 [ECOS] Redboot _do_flash_init() too late for initialization of "/dev/flash1"? wang cui
2006-12-15 18:52 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).