| 219 | - create a firmware image appropriate for an IMX8MM based Venice board with the latest OpenWrt pre-built image on the eMMC user hardware partition and latest boot firmware on the eMMC boot0 hardware partition: |
| 220 | {{{#!bash |
| 221 | # get mkimage_jtag and make it executable |
| 222 | wget https://dev.gateworks.com/jtag/mkimage_jtag |
| 223 | chmod +x mkimage_jtag |
| 224 | # get latest prebuilt boot firmware image |
| 225 | wget https://dev.gateworks.com/venice/images/firmware-venice-imx8mm.img |
| 226 | # get latest prebuilt openwrt compressed disk image and uncompress it |
| 227 | wget https://dev.gateworks.com/venice/images/openwrt-venice.img.gz |
| 228 | gunzip openwrt-venice.img |
| 229 | # create an image for imx8mm with boot firmware on emmc boot0 and compressed disk image on emmc user |
| 230 | mkimage_jtag --soc imx8mm --emmc -s --partconf=boot0 \ |
| 231 | firmware-venice-imx8mm.img@boot0:erase_part:0-8192 \ |
| 232 | openwrt-venice.img@user:erase_part:0- \ |
| 233 | > openwrt-venice-imx8mm.bin |
| 234 | }}} |