[ECOS] flash_query throws an exception (Redboot_ROM version)

Krishna Ganugapati krishnag@marakicorp.com
Mon Sep 20 17:23:00 GMT 2004


Hello Andrew.

Thanks for the response.

Yes 0x50000000 is the beginning of the FLASH - through gdb and through 
BDI2000's telnet client, I can dump the flash at 0x50000000 and view the 
contents.

- Krishna
-------------------------------------------------
----- Original Message ----- 
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Krishna Ganugapati" <krishnag@marakicorp.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Monday, September 20, 2004 9:27 AM
Subject: Re: [ECOS] flash_query throws an exception (Redboot_ROM version)


> On Mon, Sep 20, 2004 at 09:10:54AM -0700, Krishna Ganugapati wrote:
>> Hello,
>>
>> I've gotten Redboot for the IXD425 working with the cvs sources. I've 
>> gone
>> ahead and added the intel npe support. As part of the npe support, I've
>> enabled the strata flash support.  The package builds fine, but when it
>> attempts to query the flash for properties it throws an exception.
>> The equivalent assembly is here, we invariably fault at 0x00009318
>>
>>
>> 00009310 <flash_query>:
>>    9310: e3a02098  mov r2, #152 ; 0x98
>>    9314: e3a01205  mov r1, #1342177280 ; 0x50000000
>>    9318: e3a03bc3  mov r3, #199680 ; 0x30c00
>
> It falults at 0x00009318 which actually means 0x9314 is the
> instruction causing problems. It is doing a load from 0x50000000. Is
> this the correct address for the FLASH?
>
>> Also I'm curious to understand how portions of the image are relocated 
>> into
>> RAM - presumably prior to cyg_start sections that are marked 
>> appropriately
>> are copied into RAM - can someone shed light on how this happens?
>
> The HAL does this at startup time. It will zero the BSS and copy the
> data section to RAM.
>
>        Andrew 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list