mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* kernel: add module for bcm574xx 575xx serials kernel: add module for bnxt_en Linux driver for the Broadcom NetXtreme-C/NetXtreme-E BCM573xx, BCM574xx, BCM575xx, NetXtreme-S BCM5880x (up to 200 Gbps) Ethernet Network Controllers and Broadcom Nitro BCM58700 4-port 1/2.5/10 Gbps Ethernet Network Controller. * reapply bcm578xx sfp 2.5g patch * add basic tplink-xtr10890 support * update 10890dts and add to platform.sh * update 10890 dts to try boot qcn9074 * revert qca-ssdk to original version
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
#
|
|
# Copyright (c) 2015 The Linux Foundation. All rights reserved.
|
|
# Copyright (c) 2011-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/functions/system.sh
|
|
|
|
ipq807x_setup_interfaces()
|
|
{
|
|
local board="$1"
|
|
|
|
case "$board" in
|
|
qnap,301w)
|
|
ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth4" "eth5"
|
|
;;
|
|
zte,mf269)
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
;;
|
|
tplink,xtr10890)
|
|
ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth4" "eth5"
|
|
;;
|
|
*)
|
|
echo "Unsupported hardware. Network interfaces not initialized"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
ipq807x_setup_macs()
|
|
{
|
|
local board="$1"
|
|
local lan_mac=""
|
|
local wan_mac=""
|
|
local label_mac=""
|
|
|
|
case "$board" in
|
|
zte,mf269)
|
|
wan_mac=$(mtd_get_mac_binary mac 0x0)
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
|
label_mac=$wan_mac
|
|
;;
|
|
esac
|
|
|
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
|
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
|
|
[ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
|
|
}
|
|
|
|
board_config_update
|
|
board=$(board_name)
|
|
ipq807x_setup_interfaces $board
|
|
ipq807x_setup_macs $board
|
|
board_config_flush
|
|
|
|
exit 0
|