openwrtv3/target/linux/zynq/base-files/etc/board.d/02_network
Luis Araneda 61b977fa2c zynq: fix detection of the zybo board
The board_name was being tested for "xlnx,zynq-zybo",
but the .dts compatible string is "digilent,zynq-zybo"

Also, sorted the boards alphabetically, and added an
error message for unsupported boards

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
2018-06-07 09:00:49 +02:00

21 lines
322 B
Bash
Executable file

#!/bin/sh
# Copyright (C) 2015 OpenWrt.org
. /lib/functions/uci-defaults.sh
board_config_update
case "$(board_name)" in
digilent,zynq-zybo | \
xlnx,zynq-zc702 | \
xlnx,zynq-zed)
ucidef_set_interface_lan 'eth0'
;;
*)
echo "Unsupported hardware. Network interfaces not intialized"
;;
esac
board_config_flush
exit 0