imx: add Gateworks Venice support
authorTim Harvey <tharvey@gateworks.com>
Fri, 12 Jan 2024 19:34:28 +0000 (11:34 -0800)
committerRobert Marko <robimarko@gmail.com>
Sun, 24 Mar 2024 20:19:10 +0000 (21:19 +0100)
commitbd512e368fb488c441ef4c81fd61c89459043f2c
tree04300af8fd16044493dfbe26213a520ba512e745
parentae8bf1a26e15f89d17deca031253c3261b3a6c36
imx: add Gateworks Venice support

Add support for Gateworks Venice imx8m family of boards:
 - required kernel modules for on-board devices
 - image generation
 - initial network config
 - sysupgrade support

The resulting compressed disk image
(bin/targets/imx/cortexa53/openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz)
can be installed on a Gateworks venice board via U-Boot:

u-boot=> tftpboot $loadaddr openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz && \
         gzwrite mmc $dev $loadaddr $filesize

WARNING: this will overwrite any boot firmware on the eMMC user hardware
partition which if being used will brick your board requiring JTAG to
re-program boot firmware and recover

The compressed disk image contains the partition table and filesystems only
and that it is expected that boot firmware is installed properly on the
eMMC boot0 hardware partition. The easiest way to ensure this is to
use the Gateworks JTAG adapter/process to install the latest boot firmware
as follows from a Linux host:
  wget http://dev.gateworks.com/jtag/jtag_usbv4
  chmod +x jtag_usbv4
  wget http://dev.gateworks.com/venice/images/firmware-venice-imx8mm.bin
  sudo ./jtag_usbv4 -p firmware-venice-imx8mm.bin

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
target/linux/imx/cortexa53/base-files/etc/board.d/02_network [new file with mode: 0644]
target/linux/imx/cortexa53/base-files/lib/preinit/79_move_config [new file with mode: 0644]
target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh [new file with mode: 0755]
target/linux/imx/cortexa53/config-default
target/linux/imx/image/bootscript-gateworks_venice [new file with mode: 0644]
target/linux/imx/image/cortexa53.mk