loading u-Boot in memory instead of flashing it

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

    Just take in mind (be care of) the hardware that you are configuring in your modified U-Boot. U Boot is intended to initialize critical modules, some of them are not able to be re-configured on the fly or they may not performe as if they were initialized/configured at startup.

    0 讨论(0)
  • 2021-02-04 17:57

    If your Target board support network booting, you can load uboot image from host machine to RAM through network.

    0 讨论(0)
  • 2021-02-04 17:59

    The problem here is that what you are trying to do goes against the philosophy of what a bootloader is. Most processors require that code starts from Flash. That code is called a bootloader. That is what U-boot is.

    However, if you want to modify U-boot so that it is not a true bootloader, then you can do whatever you want. It's just software. But don't expect any mainline support for the above reasons.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-04 18:07

    You can use usb boot. TI and Freescale provides their usb boot utilities. I don't know about other vendors.

    0 讨论(0)
  • 2021-02-04 18:08

    It wasn't possible in 2004, at least.

    0 讨论(0)
提交回复
热议问题