[OpenWrt-Devel] [PATCH] ramips: add support for the Asus RP-N53 in the "02_network" boot script
Piotr Dymacz
pepe2k at gmail.com
Wed Oct 28 14:46:50 EDT 2015
Hello Alberto,
Two comments:
1. Your patch breaks alphabetical order.
2. If you look more deeply into the file, you will easily find there
other boards with exactly the same configuration: asl26555 and re6500.
Please, don't add unnecessary code and use what's already there.
Cheers,
Piotr
2015-10-28 19:07 GMT+01:00 Alberto Mattea <alberto at mattea.info>:
> This patch adds a case for the Asus RP-N53 in the "02_network" boot script. Without this, the lan interface does not get configured on startup, effectively bricking the device.
>
> Signed-off-by: Alberto Mattea <alberto at mattea.info>
> ---
> diff -uN a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
>
> --- a/target/linux/ramips/base-files/etc/board.d/02_network 2015-10-28 18:45:05.993476654 +0100
> +++ b/target/linux/ramips/base-files/etc/board.d/02_network 2015-10-28 18:47:02.505480181 +0100
> @@ -127,6 +127,11 @@
> ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
> ucidef_add_switch_vlan "switch0" "2" "0 6t"
> ;;
> + rp-n53)
> + ucidef_set_interface_lan "eth0.1"
> + ucidef_add_switch "switch0" "1" "1"
> + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
> + ;;
> awapn2403)
> ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
> ucidef_add_switch "switch0" "1" "1"
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list