diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-06-10 16:49:15 -0700 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-06-22 14:36:49 +0200 |
commit | 8587abf569fbae00220f6a25a2fb6db1306903ca (patch) | |
tree | 6562ff4e7c0a4ed4fc716ae14270f1998edff638 /include/configs | |
parent | c9f30173de2aa9bcb8050bfd42303e14c01e7b83 (diff) |
colibri_imx7: prepare environment to boot the M4 core
Create a variable to boot the Cortex-M4 core. By default, the command
is not doing anything. Flash a firmware into the UBI volume using:
Colibri iMX7 # ubi part ubi
Colibri iMX7 # fatload ${interface} 0:1 ${loadaddr} hello_world.bin
Colibri iMX7 # ubi write ${loadaddr} m4firmware ${filesize}
And set the command to boot the firmware automatically:
Colibri iMX7 # setenv m4boot 'ubi read 0x7F8000 m4firmware && bootaux 0x7F8000'
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/colibri_imx7.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index d80a734c36e..e585c815e8a 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -201,6 +201,7 @@ "sdargs=root=/dev/mmcblk0p2 rw rootwait\0" \ "sdboot=run setup; setenv bootargs ${defargs} ${sdargs} " \ "${setupargs} ${vidargs}; echo Booting from MMC/SD card...; " \ + "run m4boot && " \ "load mmc 0:1 ${kernel_addr_r} ${kernel_file} && " \ "load mmc 0:1 ${fdt_addr_r} ${soc}-colibri-${fdt_board}.dtb && " \ "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ @@ -220,7 +221,7 @@ "ubiboot=run setup; " \ "setenv bootargs ${defargs} ${ubiargs} " \ "${setupargs} ${vidargs}; echo Booting from NAND...; " \ - "ubi part ubi && " \ + "ubi part ubi && run m4boot && " \ "ubi read ${kernel_addr_r} kernel && " \ "ubi read ${fdt_addr_r} dtb && " \ "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ @@ -238,6 +239,7 @@ "defargs=\0" \ "fdt_board=eval-v3\0" \ "fdt_fixup=;\0" \ + "m4boot=;\0" \ "ip_dyn=yes\0" \ "kernel_file=zImage\0" \ "mtdparts=" MTDPARTS_DEFAULT "\0" \ |