* howto configure redboot for jffs2
@ 2005-01-28 10:11 Raghu
2005-01-28 19:51 ` Andrew Lunn
0 siblings, 1 reply; 3+ messages in thread
From: Raghu @ 2005-01-28 10:11 UTC (permalink / raw)
To: ecos
Hi,
Refering mailing list archieves I am following these
steps for configuring JFFS2 on ixdp425 eval board.
$ ecosconfig new ixdp425 redboot
$ ecosconfig add memalloc io fileio error linux_compat
jffs2 ( David's mail 29 Nov 2003 ).
$ ecosconfig import $ECOS_REPOSITORY/package/hal/
arm/xscale/ixdp425/current/misc/redboot_ROM.ecm
$ ecosconfig tree ; make
I get this compiler error,
-----------------------------------------------------
xscale-elf-gcc -c -Wp,-MD,src/fs/fileio.tmp -o
src/fs/redboot_fileio.o /ecos-c/projects/ECOS/ecos \
packages/redboot/current/src/fs/fileio.c
In file included from
/ecos-projects/ECOS/ecos/packages/redboot/current/src/fs
/fileio.c:71:
/ecos-c/projects/ECOS/ecos/redboot_build/install/include/cyg/fileio/fileio.h:66:
29: cyg/kernel/kapi.h: No such file or directory
In file included from
/ecos-c/projects/ECOS/ecos/packages/redboot/current/src/fs
/fileio.c:71:
/ecos-c/projects/ECOS/ecos/redboot_build/install/include/cyg/fileio/fileio.h:404
: error: parse error before "cyg_flag_value_t"
/ecos-c/projects/ECOS/ecos/redboot_build/install/include/cyg/fileio/fileio.h:404
: warning: no semicolon at end of struct or union
make[1]: *** [src/fs/fileio.o.d] Error 1
make[1]: Leaving directory
`/ecos-c/projects/ECOS/ecos/redboot_build/redboot/cur
rent'
make: *** [build] Error 2
------------------------------------------------------
I also tried Gary's inputs suggesting changes in the
redboot_ROM.ecm file, again resulting in same compiler
errors.
Are there missing steps ? Do we have a consolidated
howto ?
Rgds,
Raghu.
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: howto configure redboot for jffs2
2005-01-28 10:11 howto configure redboot for jffs2 Raghu
@ 2005-01-28 19:51 ` Andrew Lunn
2005-01-31 13:22 ` Raghu
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2005-01-28 19:51 UTC (permalink / raw)
To: Raghu; +Cc: ecos
On Fri, Jan 28, 2005 at 02:10:47AM -0800, Raghu wrote:
> Hi,
> Refering mailing list archieves I am following these
> steps for configuring JFFS2 on ixdp425 eval board.
>
> $ ecosconfig new ixdp425 redboot
> $ ecosconfig add memalloc io fileio error linux_compat
You also need the kernel, crc and zlib. Im supprised you did not get
an error about unresolved dependances etc.... You did you just ignore
the error?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: howto configure redboot for jffs2
2005-01-28 19:51 ` Andrew Lunn
@ 2005-01-31 13:22 ` Raghu
0 siblings, 0 replies; 3+ messages in thread
From: Raghu @ 2005-01-31 13:22 UTC (permalink / raw)
To: ecos; +Cc: Andrew Lunn
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-31 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28 10:11 howto configure redboot for jffs2 Raghu
2005-01-28 19:51 ` Andrew Lunn
2005-01-31 13:22 ` Raghu
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).