This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ROMRAM
- From: jasmine kohli <jasubang at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 23 Jul 2004 01:40:56 -0700 (PDT)
- Subject: [ECOS]ROMRAM
hi all ,
this is exactly what happens in my ROMRAM problem.
i thought it will give all a better idea abt the
problem
when i load the image at 0xfa000000 and do the below
it hangs at 0x00003400
BDI>go 0xfa000100
- TARGET: target has entered debug mode
BDI>i
Target state : debug mode
Debug entry cause : machine check interrupt
Current PC : 0x00003400
Data address : 0x00000000
DSISR value : 0x00000000
BDI>ti
Target state : debug mode
Debug entry cause : machine check interrupt
Current PC : 0x00003400
Data address : 0x00000000
DSISR value : 0x00000000
BDI>go
- TARGET: target has entered debug mode
BDI>i
Target state : debug mode
Debug entry cause : machine check interrupt
Current PC : 0x00003400
Data address : 0x00000000
DSISR value : 0x00000000
in the redboot.list file 0x00003400 is mapped to the
following
00000100 <__exception_reset>:
100: 3c 60 00 00 lis r3,0
104: 60 63 34 00 ori r3,r3,13312
108: 7c 68 03 a6 mtlr r3
10c: 4e 80 00 20 blr
00003400 <_start>:
3400: 3c 60 00 00 lis r3,0
3404: 60 63 00 07 ori r3,r3,7
3408: 7c 7e 23 a6 mtictrl r3
i then followed Gary's hint and set the following
option
CYGSEM_HAL_POWERPC_RESET_USES_JUMP in
arch/v2_0/cdl/hal_powerpc.cdl
cdl_option CYGSEM_HAL_POWERPC_RESET_USES_JUMP
{
display "RESET vector jumps to startup"
default_value 1 // it was previously 0
now i compile and run my image the following happens ,
it hangs at 0x00006930
BDI>prog 0xfa000000 redboot.bin
Programming redboot.bin , please wait ....
Programming flash passed
BDI>go 0xfa000100
- TARGET: target has entered debug mode
BDI>i
Target state : debug mode
Debug entry cause : machine check interrupt
Current PC : 0xfa006930
Data address : 0x00006b40
DSISR value : 0x00000065
0x00006930 actually represents """" lwz
r3,0(r5)""" in the code
below in myboard.S file
#ifdef CYGPRI_DO_PROGRAM_UPMS
/*
* Perform UPM programming by writing to its
64 RAM locations.
* Note that UPM initialization must be done
before the Bank
Register
* initialization. Otherwise, system may hang
when writing to
Bank
* Registers in certain cases.
*/
lis r5,__upmtbl_start@h
ori r5,r5,__upmtbl_start@l
lis r6,__upmtbl_end@h
ori r6,r6,__upmtbl_end@l
sub r7,r6,r5 /* size of table */
srawi r7,r7,2 /* in words */
/*lwi r6,0x00000000 Command -
OP=Write, UPMA, MAD=0 */
lwi r6,0x00808000 /* Command -
OP(b0-b1=Write,b-8=UPMB,b16-to-b18=CS4,b20-b23=16loops,b26-b31=
M
AD=0 */
1:
lwz r3,0(r5) /* get data from table
*/ ---------------"***THIS IS THE LINE***"
stw r3,MDR(r4)
do mail in ur suggestions
regards,
jasmine
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss