difos/target/linux/imx6/base-files/etc/board.d/02_network
Tim Harvey 3666c67a54 imx6: add support for GW5907/GW5910/GW5912/GW5913
This patch adds support for GW5907/GW5910/GW5912/GW5913 IMX6 based boards
from the Gateworks Ventana Family[A]:
- backport upstream dt patches from 5.6 to 4.19 and 5.4
- add dtb's to ventana images
- add board-name and network config

A. https://www.gateworks.com/products/imx6-single-board-computer-gateworks-ventana-family

Flashing instructions for Ventana boards:

Using pre-flashed bootloader:
- Use appropriate ubi image depending on board NAND to flash via bootloader:
	openwrt-imx6-ventana-squashfs-nand.ubi - 2KiB page size
	openwrt-imx6-ventana-large-squashfs-nand.ubi - 4KiB page size
	http://trac.gateworks.com/wiki/linux/ubi

Using Gateworks JTAG dongle:
- Use Gateworks mkimage_jtag script to create a JTAG image comprised of
	pre-built bootloader and ubi image:
	http://trac.gateworks.com/wiki/jtag_instructions

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
2020-03-12 12:59:44 +01:00

35 lines
420 B
Bash
Executable file

#!/bin/sh
#
# Copyright (C) 2013-2015 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
board=$(board_name)
board_config_update
case "$board" in
cubox-i |\
gw51xx |\
gw52xx |\
gw5904 |\
gw5907 |\
gw5910 |\
gw5912 |\
gw5913)
ucidef_set_interface_lan 'eth0'
;;
gw53xx |\
gw54xx |\
gw552x)
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
;;
wandboard)
ucidef_set_interface_wan 'eth0'
;;
esac
board_config_flush
exit 0