First you should read this link: http://www./wiki/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM There is no code in FLASH on my board,but i can use JTAG to init the CPU core and RAM,so i want to compile a RAM version U-Boot and run it on my board.If i can run the RAM version U-Boot,i can use it to update the FLASH. Some change i have made: 1.Change the TEXT_BASE to 0xa0000000. 2.Remove some low level init code. 3.Remove the RAM init code. 4.Hardcode the RAM size. Maybe i can't tell you how to compile a RAM version U-Boot,because different board with some difference,though it's minor,it sensitive to CPU ... When run U-Boot from FLASH,there is a relocate process,i think this is the core part about U-Boot,if you understand it,you really understand how U-Boot run on MIPS.In fact,my RAM version U-Boot have relocate process too,but it relocate from a RAM address to another RAM address,it borrow the relocate mechanism,not remove it, i think this is the easiest way to implement a RAM version U-Boot on MIPS platform. |
|