This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Why little-endian redboot can't find flash
- From: "Daniel Yu" <Daniel_Yu at Jabil dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 29 Sep 2004 03:49:56 -0400
- Subject: [ECOS] Why little-endian redboot can't find flash
Hi All:
My development environment is IXP422 + Coyote. I have compiled
ecos-1.94 for redboot by big-endian mode. It runs very well. However, when
i want to compile it in little-endian mode, i meet some problems.
Firstly:
I modified the config file: hal_arm_xscale_grg.cdl.
cdl_package CYGPKG_HAL_ARM_XSCALE_GRG {
display "Intel Generic Residential Gateway
Platform"
parent CYGPKG_HAL_ARM_XSCALE
/*Delete the "implements
CYGINT_HAL_ARM_BIGENDIAN"*/
hardware
include_dir cyg/hal
define_header hal_arm_xscale_grg.h
......................
cdl_option CYGBLD_GLOBAL_CFLAGS {
display "Global compiler flags"
flavor data
no_define
default_value { "-mcpu=xscale
-mlittle-endian -Wall -Wpointer-arith -Wstrict-prototypes
-Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions
-fvtable-gc -finit-priority
-mapcs-frame" }
/*Modified the "-mbig-endian" into
"-mlittle-endian"*/
....................................
cdl_option CYGBLD_GLOBAL_LDFLAGS {
display "Global linker flags"
flavor data
no_define
default_value { "-mcpu=xscale
-mlittle-endian -Wl,--gc-sections..................................
/*Modified the "-mbig-endian" into
"-mlittle-endian"*/
Then: I compiled it, all things are ok.
Secondly: I use bdi2000 to burn it into flash: "prog 0x50000000
redboot_le.bin bin". I have set the bdi2000 memory mode is little endian.
Finally: I boot the coyote by using this little-endian reboot. I get
the following errors:
Can't identify FLASH, sorry, man 18, dev
89,.........
Flash: Driver init failed: Unknown error.
But the redboot can run into the shell, but can not operate flash
and npe.
What's wrong about it? Is it right to configure the ecos for
compiling the little-endian redboot.
Please give me some clues! Thanks
Daniel
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss