public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] open file error
@ 2001-07-07 17:06 Weilong Li
  2001-07-08  5:27 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Weilong Li @ 2001-07-07 17:06 UTC (permalink / raw)
  To: ecos-discuss

Hi, I folllowed the instruction on nanoxdemo for ipaq
to install the ROM file system on ipaq. I'm sure it
is installed correctly, and here is what it is
look like:
RedBoot> fis list                                     
                         Name              FLASH addr 
Mem addr    Length      Entry point              
(reserved)        0x50000000  0x50000000  0x00040000 
0x00000000                RedBoot           0x50040000
 0x50040000  0x00040000  0x00000000               
RedBoot config    0x50F80000  0x50F80000  0x00040000 
0x00000000                FIS directory     0x50FC0000
 0x50FC0000  0x00040000  0x00000000               
ROM_DISK          0x50F00000  0x50F00000  0x00080000 
0x00000000               

Here is the program I wrote for testing file system.
#include <pkgconf/system.h>
#include <pkgconf/kernel.h>
#include <pkgconf/libc.h>
# include <pkgconf/io_serial.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <cyg/kernel/kapi.h>            /* All the
kernel specific stuff */
#include <cyg/fileio/fileio.h>
#include <cyg/infra/diag.h>
#include <sys/time.h>

int main(void)
{
   FILE *fp;

   printf("Mount ROM file system\n");
    if (mount("0x50F00000", "/", "romfs") < 0) {
        printf("... failed\n");
    }
  printf("... success.\n");

  fp = fopen ( "/hellodata", "w+");
  if (fp != NULL) {
        // do something
  }
  else {
        perror ("error:");
	return -1; 
 }
  return 0;
}

I used gdb to remote run this program in the RAM of
ipaq, and Here is the result I got:

(gdb) continue
Continuing.
Mount ROM file system
... success.
error:: No such entity

So, it seems ROM file system is mounted correclty,
however I cannot use it. Please tell me what is wrong.

thanks,

Weilong


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

* RE: [ECOS] open file error
  2001-07-07 17:06 [ECOS] open file error Weilong Li
@ 2001-07-08  5:27 ` Gary Thomas
  2001-07-08 13:11   ` Weilong Li
  2001-07-08 13:11   ` Weilong Li
  0 siblings, 2 replies; 6+ messages in thread
From: Gary Thomas @ 2001-07-08  5:27 UTC (permalink / raw)
  To: Weilong Li; +Cc: ecos-discuss

You can't write to a romfs - it is a
  Read Only Memory File System
  ^^^^ ^^^^

If you want to be able to create files, certainly in Flash,
you'll have to have a different type of file system. 

On 08-Jul-2001 Weilong Li wrote:
> Hi, I folllowed the instruction on nanoxdemo for ipaq
> to install the ROM file system on ipaq. I'm sure it
> is installed correctly, and here is what it is
> look like:
> RedBoot> fis list                                     
>                          Name              FLASH addr 
> Mem addr    Length      Entry point              
> (reserved)        0x50000000  0x50000000  0x00040000 
> 0x00000000                RedBoot           0x50040000
>  0x50040000  0x00040000  0x00000000               
> RedBoot config    0x50F80000  0x50F80000  0x00040000 
> 0x00000000                FIS directory     0x50FC0000
>  0x50FC0000  0x00040000  0x00000000               
> ROM_DISK          0x50F00000  0x50F00000  0x00080000 
> 0x00000000               
> 
> Here is the program I wrote for testing file system.
>#include <pkgconf/system.h>
>#include <pkgconf/kernel.h>
>#include <pkgconf/libc.h>
># include <pkgconf/io_serial.h>
>#include <string.h>
>#include <stdio.h>
>#include <stdlib.h>
>#include <cyg/kernel/kapi.h>            /* All the
> kernel specific stuff */
>#include <cyg/fileio/fileio.h>
>#include <cyg/infra/diag.h>
>#include <sys/time.h>
> 
> int main(void)
> {
>    FILE *fp;
> 
>    printf("Mount ROM file system\n");
>     if (mount("0x50F00000", "/", "romfs") < 0) {
>         printf("... failed\n");
>     }
>   printf("... success.\n");
> 
>   fp = fopen ( "/hellodata", "w+");
>   if (fp != NULL) {
>         // do something
>   }
>   else {
>         perror ("error:");
>       return -1; 
>  }
>   return 0;
> }
> 
> I used gdb to remote run this program in the RAM of
> ipaq, and Here is the result I got:
> 
> (gdb) continue
> Continuing.
> Mount ROM file system
> ... success.
> error:: No such entity
> 
> So, it seems ROM file system is mounted correclty,
> however I cannot use it. Please tell me what is wrong.
> 
> thanks,
> 
> Weilong
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

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

* RE: [ECOS] open file error
  2001-07-08  5:27 ` Gary Thomas
@ 2001-07-08 13:11   ` Weilong Li
  2001-07-08 15:51     ` Gary Thomas
  2001-07-08 13:11   ` Weilong Li
  1 sibling, 1 reply; 6+ messages in thread
From: Weilong Li @ 2001-07-08 13:11 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

I'm trying to use jffs2 file system, there is
a prebuilt image from embedded linux demo for ipaq,
so I installed it on redboot. But how to
add jffs2 package into ecos?

One more question is that if I'm going to use
ramfs, how to do the configuration for ecos
and redboot? Does the prebuilt image of redboot
for ipaq already included the ramfs?

thanks,

Weiong
--- Gary Thomas <gthomas@redhat.com> wrote:
> You can't write to a romfs - it is a
>   Read Only Memory File System
>   ^^^^ ^^^^
> 
> If you want to be able to create files, certainly in
> Flash,
> you'll have to have a different type of file system.
> 
> 
> On 08-Jul-2001 Weilong Li wrote:
> > Hi, I folllowed the instruction on nanoxdemo for
> ipaq
> > to install the ROM file system on ipaq. I'm sure
> it
> > is installed correctly, and here is what it is
> > look like:
> > RedBoot> fis list                                 
>    
> >                          Name              FLASH
> addr 
> > Mem addr    Length      Entry point              
> > (reserved)        0x50000000  0x50000000 
> 0x00040000 
> > 0x00000000                RedBoot          
> 0x50040000
> >  0x50040000  0x00040000  0x00000000               
> > RedBoot config    0x50F80000  0x50F80000 
> 0x00040000 
> > 0x00000000                FIS directory    
> 0x50FC0000
> >  0x50FC0000  0x00040000  0x00000000               
> > ROM_DISK          0x50F00000  0x50F00000 
> 0x00080000 
> > 0x00000000               
> > 
> > Here is the program I wrote for testing file
> system.
> >#include <pkgconf/system.h>
> >#include <pkgconf/kernel.h>
> >#include <pkgconf/libc.h>
> ># include <pkgconf/io_serial.h>
> >#include <string.h>
> >#include <stdio.h>
> >#include <stdlib.h>
> >#include <cyg/kernel/kapi.h>            /* All the
> > kernel specific stuff */
> >#include <cyg/fileio/fileio.h>
> >#include <cyg/infra/diag.h>
> >#include <sys/time.h>
> > 
> > int main(void)
> > {
> >    FILE *fp;
> > 
> >    printf("Mount ROM file system\n");
> >     if (mount("0x50F00000", "/", "romfs") < 0) {
> >         printf("... failed\n");
> >     }
> >   printf("... success.\n");
> > 
> >   fp = fopen ( "/hellodata", "w+");
> >   if (fp != NULL) {
> >         // do something
> >   }
> >   else {
> >         perror ("error:");
> >       return -1; 
> >  }
> >   return 0;
> > }
> > 
> > I used gdb to remote run this program in the RAM
> of
> > ipaq, and Here is the result I got:
> > 
> > (gdb) continue
> > Continuing.
> > Mount ROM file system
> > ... success.
> > error:: No such entity
> > 
> > So, it seems ROM file system is mounted correclty,
> > however I cannot use it. Please tell me what is
> wrong.
> > 
> > thanks,
> > 
> > Weilong
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

* RE: [ECOS] open file error
  2001-07-08  5:27 ` Gary Thomas
  2001-07-08 13:11   ` Weilong Li
@ 2001-07-08 13:11   ` Weilong Li
  1 sibling, 0 replies; 6+ messages in thread
From: Weilong Li @ 2001-07-08 13:11 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

I'm trying to use jffs2 file system, there is
a prebuilt image from embedded linux demo for ipaq,
so I installed it on redboot. But how to
add jffs2 package into ecos?

One more question is that if I'm going to use
ramfs, how to do the configuration for ecos
and redboot? Does the prebuilt image of redboot
for ipaq already included the ramfs?

thanks,

Weiong
--- Gary Thomas <gthomas@redhat.com> wrote:
> You can't write to a romfs - it is a
>   Read Only Memory File System
>   ^^^^ ^^^^
> 
> If you want to be able to create files, certainly in
> Flash,
> you'll have to have a different type of file system.
> 
> 
> On 08-Jul-2001 Weilong Li wrote:
> > Hi, I folllowed the instruction on nanoxdemo for
> ipaq
> > to install the ROM file system on ipaq. I'm sure
> it
> > is installed correctly, and here is what it is
> > look like:
> > RedBoot> fis list                                 
>    
> >                          Name              FLASH
> addr 
> > Mem addr    Length      Entry point              
> > (reserved)        0x50000000  0x50000000 
> 0x00040000 
> > 0x00000000                RedBoot          
> 0x50040000
> >  0x50040000  0x00040000  0x00000000               
> > RedBoot config    0x50F80000  0x50F80000 
> 0x00040000 
> > 0x00000000                FIS directory    
> 0x50FC0000
> >  0x50FC0000  0x00040000  0x00000000               
> > ROM_DISK          0x50F00000  0x50F00000 
> 0x00080000 
> > 0x00000000               
> > 
> > Here is the program I wrote for testing file
> system.
> >#include <pkgconf/system.h>
> >#include <pkgconf/kernel.h>
> >#include <pkgconf/libc.h>
> ># include <pkgconf/io_serial.h>
> >#include <string.h>
> >#include <stdio.h>
> >#include <stdlib.h>
> >#include <cyg/kernel/kapi.h>            /* All the
> > kernel specific stuff */
> >#include <cyg/fileio/fileio.h>
> >#include <cyg/infra/diag.h>
> >#include <sys/time.h>
> > 
> > int main(void)
> > {
> >    FILE *fp;
> > 
> >    printf("Mount ROM file system\n");
> >     if (mount("0x50F00000", "/", "romfs") < 0) {
> >         printf("... failed\n");
> >     }
> >   printf("... success.\n");
> > 
> >   fp = fopen ( "/hellodata", "w+");
> >   if (fp != NULL) {
> >         // do something
> >   }
> >   else {
> >         perror ("error:");
> >       return -1; 
> >  }
> >   return 0;
> > }
> > 
> > I used gdb to remote run this program in the RAM
> of
> > ipaq, and Here is the result I got:
> > 
> > (gdb) continue
> > Continuing.
> > Mount ROM file system
> > ... success.
> > error:: No such entity
> > 
> > So, it seems ROM file system is mounted correclty,
> > however I cannot use it. Please tell me what is
> wrong.
> > 
> > thanks,
> > 
> > Weilong
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

* RE: [ECOS] open file error
  2001-07-08 13:11   ` Weilong Li
@ 2001-07-08 15:51     ` Gary Thomas
  2001-07-08 15:59       ` Weilong Li
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2001-07-08 15:51 UTC (permalink / raw)
  To: Weilong Li; +Cc: ecos-discuss

At this time, JFFS2 is only supported by Linux.  We hope to offer
JFFS2 support in eCos sometime in the [near] future, but there is
no schedule for this.

Note: getting a customer who might be willing to help "support"
the development of JFFS2 on eCos could possibly speed this process.

On 08-Jul-2001 Weilong Li wrote:
> I'm trying to use jffs2 file system, there is
> a prebuilt image from embedded linux demo for ipaq,
> so I installed it on redboot. But how to
> add jffs2 package into ecos?
> 
> One more question is that if I'm going to use
> ramfs, how to do the configuration for ecos
> and redboot? Does the prebuilt image of redboot
> for ipaq already included the ramfs?
> 
> thanks,
> 
> Weiong
> --- Gary Thomas <gthomas@redhat.com> wrote:
>> You can't write to a romfs - it is a
>>   Read Only Memory File System
>>   ^^^^ ^^^^
>> 
>> If you want to be able to create files, certainly in
>> Flash,
>> you'll have to have a different type of file system.
>> 
>> 
>> On 08-Jul-2001 Weilong Li wrote:
>> > Hi, I folllowed the instruction on nanoxdemo for
>> ipaq
>> > to install the ROM file system on ipaq. I'm sure
>> it
>> > is installed correctly, and here is what it is
>> > look like:
>> > RedBoot> fis list                                 
>>    
>> >                          Name              FLASH
>> addr 
>> > Mem addr    Length      Entry point              
>> > (reserved)        0x50000000  0x50000000 
>> 0x00040000 
>> > 0x00000000                RedBoot          
>> 0x50040000
>> >  0x50040000  0x00040000  0x00000000               
>> > RedBoot config    0x50F80000  0x50F80000 
>> 0x00040000 
>> > 0x00000000                FIS directory    
>> 0x50FC0000
>> >  0x50FC0000  0x00040000  0x00000000               
>> > ROM_DISK          0x50F00000  0x50F00000 
>> 0x00080000 
>> > 0x00000000               
>> > 
>> > Here is the program I wrote for testing file
>> system.
>> >#include <pkgconf/system.h>
>> >#include <pkgconf/kernel.h>
>> >#include <pkgconf/libc.h>
>> ># include <pkgconf/io_serial.h>
>> >#include <string.h>
>> >#include <stdio.h>
>> >#include <stdlib.h>
>> >#include <cyg/kernel/kapi.h>            /* All the
>> > kernel specific stuff */
>> >#include <cyg/fileio/fileio.h>
>> >#include <cyg/infra/diag.h>
>> >#include <sys/time.h>
>> > 
>> > int main(void)
>> > {
>> >    FILE *fp;
>> > 
>> >    printf("Mount ROM file system\n");
>> >     if (mount("0x50F00000", "/", "romfs") < 0) {
>> >         printf("... failed\n");
>> >     }
>> >   printf("... success.\n");
>> > 
>> >   fp = fopen ( "/hellodata", "w+");
>> >   if (fp != NULL) {
>> >         // do something
>> >   }
>> >   else {
>> >         perror ("error:");
>> >       return -1; 
>> >  }
>> >   return 0;
>> > }
>> > 
>> > I used gdb to remote run this program in the RAM
>> of
>> > ipaq, and Here is the result I got:
>> > 
>> > (gdb) continue
>> > Continuing.
>> > Mount ROM file system
>> > ... success.
>> > error:: No such entity
>> > 
>> > So, it seems ROM file system is mounted correclty,
>> > however I cannot use it. Please tell me what is
>> wrong.
>> > 
>> > thanks,
>> > 
>> > Weilong
>> > 
>> > 
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Get personalized email addresses from Yahoo! Mail
>> > http://personal.mail.yahoo.com/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

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

* RE: [ECOS] open file error
  2001-07-08 15:51     ` Gary Thomas
@ 2001-07-08 15:59       ` Weilong Li
  0 siblings, 0 replies; 6+ messages in thread
From: Weilong Li @ 2001-07-08 15:59 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

So what kind of file system is supported by Ecos?
And where is the documentation about how to use it?
--- Gary Thomas <gthomas@redhat.com> wrote:
> At this time, JFFS2 is only supported by Linux.  We
> hope to offer
> JFFS2 support in eCos sometime in the [near] future,
> but there is
> no schedule for this.
> 
> Note: getting a customer who might be willing to
> help "support"
> the development of JFFS2 on eCos could possibly
> speed this process.
> 
> On 08-Jul-2001 Weilong Li wrote:
> > I'm trying to use jffs2 file system, there is
> > a prebuilt image from embedded linux demo for
> ipaq,
> > so I installed it on redboot. But how to
> > add jffs2 package into ecos?
> > 
> > One more question is that if I'm going to use
> > ramfs, how to do the configuration for ecos
> > and redboot? Does the prebuilt image of redboot
> > for ipaq already included the ramfs?
> > 
> > thanks,
> > 
> > Weiong
> > --- Gary Thomas <gthomas@redhat.com> wrote:
> >> You can't write to a romfs - it is a
> >>   Read Only Memory File System
> >>   ^^^^ ^^^^
> >> 
> >> If you want to be able to create files, certainly
> in
> >> Flash,
> >> you'll have to have a different type of file
> system.
> >> 
> >> 
> >> On 08-Jul-2001 Weilong Li wrote:
> >> > Hi, I folllowed the instruction on nanoxdemo
> for
> >> ipaq
> >> > to install the ROM file system on ipaq. I'm
> sure
> >> it
> >> > is installed correctly, and here is what it is
> >> > look like:
> >> > RedBoot> fis list                              
>   
> >>    
> >> >                          Name             
> FLASH
> >> addr 
> >> > Mem addr    Length      Entry point            
>  
> >> > (reserved)        0x50000000  0x50000000 
> >> 0x00040000 
> >> > 0x00000000                RedBoot          
> >> 0x50040000
> >> >  0x50040000  0x00040000  0x00000000            
>   
> >> > RedBoot config    0x50F80000  0x50F80000 
> >> 0x00040000 
> >> > 0x00000000                FIS directory    
> >> 0x50FC0000
> >> >  0x50FC0000  0x00040000  0x00000000            
>   
> >> > ROM_DISK          0x50F00000  0x50F00000 
> >> 0x00080000 
> >> > 0x00000000               
> >> > 
> >> > Here is the program I wrote for testing file
> >> system.
> >> >#include <pkgconf/system.h>
> >> >#include <pkgconf/kernel.h>
> >> >#include <pkgconf/libc.h>
> >> ># include <pkgconf/io_serial.h>
> >> >#include <string.h>
> >> >#include <stdio.h>
> >> >#include <stdlib.h>
> >> >#include <cyg/kernel/kapi.h>            /* All
> the
> >> > kernel specific stuff */
> >> >#include <cyg/fileio/fileio.h>
> >> >#include <cyg/infra/diag.h>
> >> >#include <sys/time.h>
> >> > 
> >> > int main(void)
> >> > {
> >> >    FILE *fp;
> >> > 
> >> >    printf("Mount ROM file system\n");
> >> >     if (mount("0x50F00000", "/", "romfs") < 0)
> {
> >> >         printf("... failed\n");
> >> >     }
> >> >   printf("... success.\n");
> >> > 
> >> >   fp = fopen ( "/hellodata", "w+");
> >> >   if (fp != NULL) {
> >> >         // do something
> >> >   }
> >> >   else {
> >> >         perror ("error:");
> >> >       return -1; 
> >> >  }
> >> >   return 0;
> >> > }
> >> > 
> >> > I used gdb to remote run this program in the
> RAM
> >> of
> >> > ipaq, and Here is the result I got:
> >> > 
> >> > (gdb) continue
> >> > Continuing.
> >> > Mount ROM file system
> >> > ... success.
> >> > error:: No such entity
> >> > 
> >> > So, it seems ROM file system is mounted
> correclty,
> >> > however I cannot use it. Please tell me what is
> >> wrong.
> >> > 
> >> > thanks,
> >> > 
> >> > Weilong
> >> > 
> >> > 
> >> >
> __________________________________________________
> >> > Do You Yahoo!?
> >> > Get personalized email addresses from Yahoo!
> Mail
> >> > http://personal.mail.yahoo.com/
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

end of thread, other threads:[~2001-07-08 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-07 17:06 [ECOS] open file error Weilong Li
2001-07-08  5:27 ` Gary Thomas
2001-07-08 13:11   ` Weilong Li
2001-07-08 15:51     ` Gary Thomas
2001-07-08 15:59       ` Weilong Li
2001-07-08 13:11   ` Weilong Li

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).