This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Redboot crashes on IXP425
- From: Rohit Toshniwal <toshniwal_rohit at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 7 Nov 2003 22:57:04 -0800 (PST)
- Subject: [ECOS] Redboot crashes on IXP425
Hi,
I am trying to run Redboot on Intel IXP425. I am using
Kings Canyon III board. I am using Raven to download
redboot_RAM.elf
http://sources.redhat.com/ecos/boards/redbootbins/ixdp425/
I can follow the execution path of redboot and it
crashes at
// Enable caches
HAL_DCACHE_ENABLE();
which is called from
hal_hardware_init(void)
.../redhat/redboot-intel-xscale-030618/packages/hal/arm/xscale/ixp425/current/src/ixp425_misc.c
HAL_DCACHE_ENABLE is defined in
.../redhat/redboot-intel-xscale-030618/packages/hal/arm/xscale/cores/current/include
#define HAL_DCACHE_ENABLE()
\
CYG_MACRO_START
\
asm volatile (
\
"mrc p15,0,r1,c7,c10,4;" /* drain write
buffer */ \
"mrc p15,0,r1,c1,c0,0;"
\
"orr r1,r1,#0x0007;" /* enable DCache (also
ensures the */ \
/* MMU and alignment
faults are */ \
/* enabled)
*/ \
"mcr p15,0,r1,c1,c0,0;"
\
"mrc p15,0,r1,c1,c0,1;"
\
"bic r1,r1,#1;"
\
"mcr p15,0,r1,c1,c0,1;"
\
:
\
:
\
: "r1" /* Clobber list */
\
);
\
CYG_MACRO_END
The program crashes right at mcr p15,0,r1,c1,c0,0
At this point register R1=0xff
Can anyone suggest whats going on here.
I set the processor in Big Endian mode, download the
redboot_RAM.elf file and step through it.
For the file from the location mentioned above the
code is at location
0x0002b420
I am suspecting it is because of enabling the MMU but
am not sure. I will greatly appreciate any help.
Thanks.
Regards,
Rohit Toshniwal
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss