0ac00c931c
To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we need to gunzip the generated firmware to do fwtool check. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
26 lines
411 B
Bash
Executable file
26 lines
411 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/sunxi.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
case "$( sunxi_board_name )" in
|
|
"olimex,a20-olinuxino-micro")
|
|
ucidef_set_interface_lan 'wlan0'
|
|
;;
|
|
"lamobo,lamobo-r1")
|
|
ucidef_add_switch "switch0" \
|
|
"4:lan:1" "0:lan:2" "1:lan:3" "2:lan:4" "3:wan" "8@eth0"
|
|
;;
|
|
*)
|
|
ucidef_set_interface_lan 'eth0'
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|