loading u-Boot in memory instead of flashing it

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

    Yes, It is possible most of the compilation structure at the end U-Boot provides a u-boot.bin file which is a flattened binary, if your target supports USB/TFTP or any other medium which current U-boot can detect on you target environment then we can load the u-boot.bin file to the static memory address area. This address is the entry point of U-Boot Code and U-boot can execute the flattened binaries by go 0x. The static memory address area can be deduced form u-boot.map file, This entry point is basically address to the .text area of compiled program usually can we searched in the .map file with string "Address of section .text set to 0x." Below is the example of doing it from USB.

    usb start
    load usb 0x u-boot.bin
    go 0x
    

    This should run you U-Boot from usb with out disturbing current code.

提交回复
热议问题