This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

redboot porting


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]