This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: howto configure redboot for jffs2
- From: Raghu <raghu_dk at yahoo dot com>
- To: ecos <ecos-devel at sources dot redhat dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>
- Date: Mon, 31 Jan 2005 05:22:02 -0800 (PST)
- Subject: Re: howto configure redboot for jffs2
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=mehLw4kxyMhu/Q3AaELzQmU9wjzhCbrjtsvpzUoUjvJRQRe57wpDQnPgKs5GZALefydOmAqfvPVkt8UYrv0gMTcH3Eh7riCfpVEQxpswH60UvvTByGyIMe5OyL4zYJk+bNy1SkXVIJo3IOR2tbVP9NNuSvMgBbHSMgfGVXE11+M= ;
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