U-Boot hang on icache enable
Hi,
I have a MPC8247 board with 2MB flash and 64MB SDRAM.
I am using u-boot 1.1.2. The u-boot comes up if I disable the icache. But when I enable instruction cache from config file (HID0_ICE set in CFG_HID0_FINAL) it hangs in cpu/mpc8260/start.S code shown below. Any pointers as to what could be the issue would be helpful.
in_ram:
/* * Relocation Function, r14 point to got2+0x8000 * * Adjust got2 pointers, no need to check for 0, this code * already puts a few entries in the table. */ li r0,__got2_entries at sectoff@l la r3,GOT(_GOT2_TABLE_) lwz r11,GOT(_GOT2_TABLE_) mtctr r0 sub r11,r3,r11 addi r3,r3,-4 1: lwzu r0,4(r3) add r0,r0,r11 stw r0,0(r3) bdnz 1b
thanks,
Siju Viswanath
Tejas Networks
Quoted 7 lines · In message <[email protected]> you wrote:
Hi,
I have a MPC8247 board with 2MB flash and 64MB SDRAM.
I am using u-boot 1.1.2. The u-boot comes up if I disable the icache. But when I enable instruction cache from config file (HID0_ICEset inCFG_HID0_FINAL) it hangs incpu/mpc8260/start.Scode shown below. Any pointers as to what could be the issue would be helpful.
http://www.denx.de/wiki/view/DULG/UBootCrashAfterRelocation
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I've already got a female to worry about. Her name is the Enterprise. -- Kirk, "The Corbomite Maneuver", stardate 1514.0
Quoted 2 lines · Wolfgang Denk <wd <at> denx.de> writes:
It worked.
thanks,
Siju Viswanath
Tejas Networks