Add bootaux command to imx7ulp u-boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add bootaux command to imx7ulp u-boot

Add bootaux command to imx7ulp u-boot

  This patch will add bootaux command to imx7ulp uboot.

  This would make it easier in start M4 binary image in single boot mode.

  Feature:

1. Support using m4 image in .bin format.

2. Support bootaux command in u-boot.

3. Support boot from TCM and DDR (DDR not tested, if any issue, pls let me know.).

 

Note:

1. SDK TCM entry address is 0x1FFD2000. But TCML base address is 0x1FFD0000. Pls take care to set a correct entry address to m4_loadaddr.

2. If user want to use M4 image generated from imx_mkimage, pls refer to bootaux patch in https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/OTA-upgrade-for-smartlocker-in-i-MX7ULP-....

 

Test procedure:

1. Set u-boot parameters:

setenv m4_loadaddr 0x1FFD2000
setenv m4_copyaddr 0x62000000
setenv m4_image hello_world.bin
setenv m4_flash_imglen 0x30000
setenv m4_loadimage "fatload mmc '${mmcdev}':'${mmcpart}' '${m4_copyaddr}' '${m4_image}'; cp.b '${m4_copyaddr}' '${m4_loadaddr}' 0x30000"

setenv run_m4_image "run m4_loadimage; dcache flush; bootaux '${m4_loadaddr}'"

2. Copy hello_world.bin to SD card and boot board. Make sure board is in single boot mode.

3. Run "run run_m4_image"

terry_lv_0-1619166841247.png

 

4. On M core console.

terry_lv_1-1619166867971.png

 

 

Attachments
No ratings
Version history
Last update:
‎04-26-2021 01:55 AM
Updated by: