]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: gateworks: venice: dynamically update the update_firmware script
authorTim Harvey <tharvey@gateworks.com>
Wed, 3 May 2023 00:05:55 +0000 (17:05 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jul 2023 12:40:03 +0000 (14:40 +0200)
commit7b39e5b53a88f973da08e2f8d3e1161e51a77ed4
treec81b6c1eb804c3711661664cffdc373065e1518e
parent2c2cc1eaabc7b4bb5af66830c59a810e97280545
board: gateworks: venice: dynamically update the update_firmware script

The update_firmware script is intended to update the boot firmware but
the details including the offset and hardware partition are dependent
on the boot device.

Specifically:
- IMX8MM/IMX8MP (BOOTROM v2) the offset is 32KiB for SD and eMMC user
  hardware partition and 0KiB for eMMC boot partitions.
- IMX8MM the offset is 33KiB for SD and eMMC regardless of hardware
  partition.

Dynamically set soc, dev, bootpart, and bootblk env vars at runtime
and use these in the update_firmware script. Remove the splblk env var
from config files as its no longer needed.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/venice/venice.c
board/gateworks/venice/venice.env
include/configs/imx8mm_venice.h
include/configs/imx8mn_venice.h
include/configs/imx8mp_venice.h