aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorLuis Araneda <luaraneda@gmail.com>2018-05-13 15:55:00 -0400
committerJohn Crispin <john@phrozen.org>2018-06-07 09:00:49 +0200
commit61b977fa2cc30ad3ef7a1975cdc60bb86c550958 (patch)
tree5eb28e10f6aeaf7f9912f3327870a92107764d34 /target
parent7967e6c0672a24028610bd0cb351a3dfc56816c6 (diff)
downloadupstream-61b977fa2cc30ad3ef7a1975cdc60bb86c550958.tar.gz
upstream-61b977fa2cc30ad3ef7a1975cdc60bb86c550958.tar.bz2
upstream-61b977fa2cc30ad3ef7a1975cdc60bb86c550958.zip
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>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/zynq/base-files/etc/board.d/02_network11
1 files changed, 8 insertions, 3 deletions
diff --git a/target/linux/zynq/base-files/etc/board.d/02_network b/target/linux/zynq/base-files/etc/board.d/02_network
index ff907637a6..90731b68dc 100755
--- a/target/linux/zynq/base-files/etc/board.d/02_network
+++ b/target/linux/zynq/base-files/etc/board.d/02_network
@@ -6,9 +6,14 @@
board_config_update
case "$(board_name)" in
- xlnx,zynq-zc702|xlnx,zynq-zed|xlnx,zynq-zybo)
- ucidef_set_interface_lan 'eth0'
- ;;
+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