ar71xx: add userspace support for WD My Net N750
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> [juhosg: remove the image generation part until the ethernet switch issue is resolved] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39078 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
31d7d99e60
commit
a4492a1635
|
@ -80,7 +80,8 @@ get_status_led() {
|
||||||
mr600v2)
|
mr600v2)
|
||||||
status_led="mr600:blue:power"
|
status_led="mr600:blue:power"
|
||||||
;;
|
;;
|
||||||
mynet-n600)
|
mynet-n600 | \
|
||||||
|
mynet-n750)
|
||||||
status_led="wd:blue:power"
|
status_led="wd:blue:power"
|
||||||
;;
|
;;
|
||||||
mynet-rext)
|
mynet-rext)
|
||||||
|
|
|
@ -207,6 +207,16 @@ dir-825-c1)
|
||||||
[ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
|
[ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
mynet-n750)
|
||||||
|
local mac
|
||||||
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
||||||
|
ucidef_add_switch "switch0" "1" "1"
|
||||||
|
ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
|
||||||
|
ucidef_add_switch_vlan "switch0" "2" "0t 5"
|
||||||
|
mac=$(mtd_get_mac_ascii devdata "wanmac")
|
||||||
|
[ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
|
||||||
|
;;
|
||||||
|
|
||||||
dir-835-a1 |\
|
dir-835-a1 |\
|
||||||
wndr4300)
|
wndr4300)
|
||||||
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
||||||
|
|
|
@ -14,7 +14,8 @@ fix_seama_header() {
|
||||||
board=$(ar71xx_board_name)
|
board=$(ar71xx_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
mynet-n600)
|
mynet-n600 | \
|
||||||
|
mynet-n750)
|
||||||
fix_seama_header kernel
|
fix_seama_header kernel
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -321,6 +321,9 @@ ar71xx_board_detect() {
|
||||||
*"My Net N600")
|
*"My Net N600")
|
||||||
name="mynet-n600"
|
name="mynet-n600"
|
||||||
;;
|
;;
|
||||||
|
*"My Net N750")
|
||||||
|
name="mynet-n750"
|
||||||
|
;;
|
||||||
*"WD My Net Wi-Fi Range Extender")
|
*"WD My Net Wi-Fi Range Extender")
|
||||||
name="mynet-rext"
|
name="mynet-rext"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -177,7 +177,8 @@ platform_check_image() {
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
mynet-n600)
|
mynet-n600 | \
|
||||||
|
mynet-n750)
|
||||||
[ "$magic_long" != "5ea3a417" ] && {
|
[ "$magic_long" != "5ea3a417" ] && {
|
||||||
echo "Invalid image, bad magic: $magic_long"
|
echo "Invalid image, bad magic: $magic_long"
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue