From mboxrd@z Thu Jan 1 00:00:00 1970 From: Weilong Li To: Gary Thomas Cc: ecos-discuss@sources.redhat.com Subject: RE: [ECOS] open file error Date: Sun, 08 Jul 2001 13:11:00 -0000 Message-id: <20010708201130.54566.qmail@web14310.mail.yahoo.com> References: X-SW-Source: 2001-07/msg00229.html 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 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 > >#include > >#include > ># include > >#include > >#include > >#include > >#include /* All the > > kernel specific stuff */ > >#include > >#include > >#include > > > > 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/