Re: [U-Boot] problem detecting CFI

2009-10-02 Thread wpa
I can fix this problem not but I really don't understand how the problem happens in the first place. I found gp got changed in relocate_code in file start.S. In relocate_code "function", the $gp is adjusted to point to the new location, but somehow before program jumps to the relocated place, $gp

Re: [U-Boot] problem detecting CFI

2009-10-01 Thread wpa
I just found something interesting - In my previous email I thought the CFI detection was running from DRAM, but that assumption seems to be wrong. Previously I though it was running from DRAM because I traced the execution using BDI into mips/start">cpu/mips/start.S relocate_code, it runs to th

[U-Boot] problem detecting CFI

2009-10-01 Thread wpa
I have a working u-boot 2008.10 on a mips 32 board and am trying to port it over to u-boot 2009.06. So I used buildroot 2009.08 to build the tool chain for my mips32 board as well as u-boot2009.06. I also copied the previous u-boot initialization code to initialize timer, serial port, ram and etc f