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
%3CLINGO-SUB%20id%3D%22lingo-sub-1267176%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAdd%20bootaux%20command%20to%20imx7ulp%20u-boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1267176%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%26nbsp%3B%20This%20patch%20will%20add%20bootaux%20command%20to%20imx7ulp%20uboot.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20This%20would%20make%20it%20easier%20in%20start%20M4%20binary%20image%20in%20single%20boot%20mode.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20Feature%3A%3C%2FP%3E%0A%3CP%3E1.%20Support%20using%20m4%20image%20in%20.bin%20format.%3C%2FP%3E%0A%3CP%3E2.%20Support%20bootaux%20command%20in%20u-boot.%3C%2FP%3E%0A%3CP%3E3.%20Support%20boot%20from%20TCM%20and%20DDR%20(DDR%20not%20tested%2C%20if%20any%20issue%2C%20pls%20let%20me%20know.).%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ENote%3A%3C%2FP%3E%0A%3CP%3E1.%20SDK%20TCM%20entry%20address%20is%200x1FFD2000.%20But%20TCML%20base%20address%20is%200x1FFD0000.%20Pls%20take%20care%20to%20set%20a%20correct%20entry%20address%20to%20m4_loadaddr.%3C%2FP%3E%0A%3CP%3E2.%20If%20user%20want%20to%20use%20M4%20image%20generated%20from%20imx_mkimage%2C%20pls%20refer%20to%20bootaux%20patch%20in%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FOTA-upgrade-for-smartlocker-in-i-MX7ULP-kernel%2Fta-p%2F1112687%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FOTA-upgrade-for-smartlocker-in-i-MX7ULP-kernel%2Fta-p%2F1112687%3C%2FA%3E.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ETest%20procedure%3A%3C%2FP%3E%0A%3CP%3E1.%20Set%20u-boot%20parameters%3A%3C%2FP%3E%0A%3CP%3E%3CEM%3Esetenv%20m4_loadaddr%200x1FFD2000%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Esetenv%20m4_copyaddr%200x62000000%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Esetenv%20m4_image%20hello_world.bin%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Esetenv%20m4_flash_imglen%200x30000%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Esetenv%20m4_loadimage%20%22fatload%20mmc%20'%24%7Bmmcdev%7D'%3A'%24%7Bmmcpart%7D'%20'%24%7Bm4_copyaddr%7D'%20'%24%7Bm4_image%7D'%3B%20cp.b%20'%24%7Bm4_copyaddr%7D'%20'%24%7Bm4_loadaddr%7D'%200x30000%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3Esetenv%20run_m4_image%20%22run%20m4_loadimage%3B%20dcache%20flush%3B%20bootaux%20'%24%7Bm4_loadaddr%7D'%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E2.%20Copy%20hello_world.bin%20to%20SD%20card%20and%20boot%20board.%20Make%20sure%20board%20is%20in%20single%20boot%20mode.%3C%2FP%3E%0A%3CP%3E3.%20Run%20%22run%20run_m4_image%22%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22terry_lv_0-1619166841247.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22terry_lv_0-1619166841247.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F143080i94D8DED2F0D8BADC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22terry_lv_0-1619166841247.png%22%20alt%3D%22terry_lv_0-1619166841247.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E4.%20On%20M%20core%20console.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22terry_lv_1-1619166867971.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22terry_lv_1-1619166867971.png%22%20style%3D%22width%3A%20344px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F143081iF8621D679C54B22A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22terry_lv_1-1619166867971.png%22%20alt%3D%22terry_lv_1-1619166867971.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎04-26-2021 01:55 AM
Updated by: