This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JFFS2 mount hangs


On Wed, Aug 11, 2004 at 04:22:50AM -0700, Maxim Solano wrote:
> Hello
> 1. misc.cxx uses iosys.c as follows:
>  
> void
> cyg_io_init(void)
> {
>     static int _init = false;
>     cyg_devtab_entry_t *t;
>     if (_init) return;
>     for (t = &__DEVTAB__[0]; t != &__DEVTAB_END__; t++) {
> #ifdef CYGDBG_IO_INIT
>         diag_printf("Init device '%s'\n", t->name);
> #endif
>         if (t->init(t)) {
>             t->status |= CYG_DEVTAB_STATUS_AVAIL;
>         } else {
>             // What to do if device init fails?
>             // Device not [currently] available
>             t->status &= ~CYG_DEVTAB_STATUS_AVAIL;  
>         }
>     }
>     _init = true;
> }
> 
> and in the line
>   for (t = &__DEVTAB__[0]; t != &__DEVTAB_END__; t++) 

Take a look at t. Is it valid? Does it point to a sensible init
function?

> it will stops and there will be no answer, till restart.  2. no I
> just made an eCos with JFFS2 support then compiled fileio1.c with
> it.

You need to configure the flashiodev. Look at
packages/io/flash/current/cdl/io_flash.cdl where is lists the
options. You need to tell is where in the flash the jffs2 filesystem
is, how long it is, or that it should use the redboot fis table to
find the image.

You can create a jffs2 filesystem in a file using mkfs.jffs2. Then
load it into flash. For the test fileio1, you can also use the test
image in the JFFS2 support directory, so long as you are on a little
endian system.

        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]