Changes between Version 7 and Version 8 of venice/firmware


Ignore:
Timestamp:
10/29/2021 08:17:17 PM (13 months ago)
Author:
Tim Harvey
Comment:

updated wiki instructions for imx8mm vs imx8mn

Legend:

Unmodified
Added
Removed
Modified
  • venice/firmware

    v7 v8  
    142142Note that the IMX8 BOOT ROM fetches code starting at a 33K offset (in order to reserve everything below that for things like disk partition tables).
    143143
    144 The latest pre-built Bootloader image for Venice is available for download here: [http://dev.gateworks.com/venice/boot_firmware/flash.bin]
    145 
    146 
    147 Procedure:
     144The latest pre-built Bootloader images for Venice are available for download here:
     145 - [http://dev.gateworks.com/venice/boot_firmware/venice-imx8mm-flash.bin venice-imx8mm-flash.bin] for IMX8M Mini boards
     146 - [http://dev.gateworks.com/venice/boot_firmware/venice-imx8mn-flash.bin venice-imx8mn-flash.bin] for IMX8M Nano boards
     147
     148Procedure: **(Make sure you use the right variant per your processor imx8mm/imx8mn and the correct device for the emmc device)**
    148149 * Via U-Boot:
    149 {{{#!bash
    150 # setup network environment (use bootp or static by setting ipaddr/serverip and optional netmask/gatewayip)
    151 setenv autoload 0; bootp  # use dhcp for network config but do not fetch a file
    152 # choose the device to update
    153 setenv dev 2 # sets MMC device to be flashed - see mmc list
    154 # set your image
    155 setenv image flash.bin # with any tftp server directories in front of the filename
     150  - for IMX8M Mini board variants:
     151{{{#!bash
     152# setup network environment (use bootp or static by setting ipaddr/serverip and optional netmask/gatewayip)
     153setenv autoload 0; bootp  # use dhcp for network config but do not fetch a file
     154# choose the device to update
     155setenv dev 2 # sets MMC device to be flashed - see mmc list
     156# set your image
     157setenv image venice-imx8mm-flash.bin # with any tftp server directories in front of the filename
    156158# update
    157159run update_firmware
    158160}}}
    159   - This is what the update_firmware script does if your curious:
     161   - This is what the update_firmware script does if your curious:
    160162{{{#!bash
    161163update_firmware=tftpboot $loadaddr $image && setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200 && mmc dev $dev && mmc write $loadaddr 0x42 $blkcnt
    162164}}}
     165  - for IMX8M Nano board variants:
     166{{{#!bash
     167# setup network environment (use bootp or static by setting ipaddr/serverip and optional netmask/gatewayip)
     168setenv autoload 0; bootp  # use dhcp for network config but do not fetch a file
     169# choose the device to update
     170setenv dev 2 # sets MMC device to be flashed - see mmc list
     171# set your image
     172setenv image venice-imx8mn-flash.bin # with any tftp server directories in front of the filename
     173# update
     174run update_firmware
     175}}}
     176   - This is what the update_firmware script does if your curious:
     177{{{#!bash
     178update_firmware=tftpboot $loadaddr $image && setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200 && mmc dev $dev && mmc write $loadaddr 0x40 $blkcnt
     179}}}
    163180 * Via Linux:
    164 {{{#!bash
    165 # fetch your file
    166 cd /tmp
    167 wget http://dev.gateworks.com/venice/boot_firmware/flash.bin
     181  - for IMX8M Mini board variants:
     182{{{#!bash
     183# fetch your file
     184cd /tmp
     185wget http://dev.gateworks.com/venice/boot_firmware/venice-imx8mm-flash.bin
    168186# uncompress and write to the emmc device to 33K offset
    169 dd if=flash.bin of=/dev/mmcblk0 bs=1K seek=33
     187dd if=venice-imx8mm-flash.bin of=/dev/mmcblk2 bs=1K seek=33
     188}}}
     189  - for IMX8M Nano board variants:
     190{{{#!bash
     191# fetch your file
     192cd /tmp
     193wget http://dev.gateworks.com/venice/boot_firmware/venice-imx8mn-flash.bin
     194# uncompress and write to the emmc device to 32K offset
     195dd if=venice-imx8mn-flash.bin of=/dev/mmcblk2 bs=1K seek=32
    170196}}}
    171197
     
    202228wget http://sever/rootfs.ext4.gz
    203229# uncompress and write to the emmc device to 16M offset
    204 dd if=flash.bin of=/dev/mmcblk0 bs=1M seek=16
     230dd if=venice-imx8mm-flash.bin of=/dev/mmcblk0 bs=1M seek=16
    205231}}}
    206232