This is the mail archive of the ecos-devel@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: howto configure redboot for jffs2


Hi, 

Yup kernel, crc & zlib were added, 
$ ecosconfig new ixdp425 redboot
$ ecosconfig add memalloc io fileio error linux_compat
  kernel crc zlib
$ ecosconfig import ...\redboot_ROM.ecm
$ ecosconfig tree; make

I dont get any unresolved symbols for crc and zlib. 
Using this redboot I did, 
RedBoot> load -m xmodem -r -b 0x200000 jffs2_be.img
Redboot> fis create -b 0x200000 0x20000 jffs2
Redboot> mount -f jffs2 -t jffs2

At Flash address 0x50040000 it has 0x1985 ( Magic ).
Redboot> mount -t jffs2 -f jffs2
I get error,
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not
found at 0x00000368: instead.

But if I do, "ls" 
Redboot> ls
I get, 
RedBoot> ls
directory /
   1 drwxr-xr-x  1 size      0 .
   1 drwxr-xr-x  1 size      0 ..
   2 -rw-r--r--  1 size    476 group
   3 -rw-r--r--  1 size    677 passwd

Writing an application, I want to read the "groups"
file using, 
mount( CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1, 
       "/", "jffs2" );
fp = fopen( "group", "r" );

But the fopen fails all the time, also tried with
"/group". 

If I use the jffs2_1.c test application, I cant get
any dumps on the serial console. Is there a console
setting ?

Awaiting valued technical inputs. regards.

> You also need the kernel, crc and zlib.  Im
> supprised you did not get
> an error about unresolved dependances etc.... 
>         Andrew
> 




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250


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