[ECOS] redboot porting

yu weiping yuwp@msn.com
Tue Sep 16 02:55:00 GMT 2003


I'm trying to port redboot for ixdp425 to my custom board based on ixp425, 
but ixp425 seems halt every time when redboot trying to switch from boot 
address (0x000000000) to the actual flash runtime address. the code is:

	// value to load into pc to jump to real runtime address
	ldr     r0, =1f

	// Setup EXP_CNFG0 value to switch EXP bus out of low memory
	ldr 	r2, =IXP425_EXP_CFG_BASE
	ldr     r1, [r2, #IXP425_EXP_CNFG0]
	bic     r1, r1, #EXP_CNFG0_MEM_MAP
	ldr     r3, =0xFFFF
	ldr     r4, =IXDP425_LED_DATA

	b       icache_boundary
	.p2align 5
icache_boundary:
	// Here is where we switch from boot address (0x000000000) to the
	// actual flash runtime address. We align to cache boundary so we
        // execute from cache during the switchover. Cachelines are 8 
words.
        str     r1, [r2, #IXP425_EXP_CNFG0]    // make the EXP bus switch


I can light LED before the last code, but can't light LED after it.

Plesae give me some advince. Thanks!

yuwp

_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.com  


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



More information about the Ecos-discuss mailing list