loading u-Boot in memory instead of flashing it

前端 未结 10 556
一个人的身影
一个人的身影 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:00

    It should be possible, if the U-Boot image you want to run has startup code that allows running it from arbitrary addresses. Whether or not that is the case for your board I can't tell.

    If the startup code begins by copying the code section from the current (PC-relative) address to the final execution address (usually this is preceded by a check that these areas don't overlap), then you can load the .bin file to any address in RAM, and invoke it using go.

    The second obstacle I could see would be unconditional RAM setup code at the beginning, which a number of boards have.

提交回复
热议问题