loading u-Boot in memory instead of flashing it

前端 未结 10 532
一个人的身影
一个人的身影 2021-02-04 17:13

In my ARM based custom board, I flash u-boot to NAND whenever I do changes on that. (putting some debug statements/modification). Is there any way to directly load the uboot ima

10条回答
  •  醉话见心
    2021-02-04 18:14

    Debugging a bootloader is a bit difficult, but with the right tools it should be relatively painless.

    I deal with the PowerPC achitecture and with a BDI-3000 I can load and debug directly to RAM (of course, after initializing the DDR controller).

    One option is if you have on-chip SRAM or L2 Cache that can be configured as on-chip SRAM. The BDI can copy to the SRAM area first, u-boot does it's thing (initialize DDR controller for example), then relocates itself to DDR RAM afterwards. Definitely faster that re-writing to slow Flash all the time.

提交回复
热议问题