#19996: Add support for ZBT WE-826
-----------------------------+----------------------------------
  Reporter:  oskari.rauta@…  |      Owner:  developers
      Type:  enhancement     |     Status:  closed
  Priority:  highest         |  Milestone:  Chaos Calmer (trunk)
 Component:  base system     |    Version:  Trunk
Resolution:  not_a_bug       |   Keywords:  zbt,we
-----------------------------+----------------------------------

Comment (by markit):

 Btw did anyone managed to change usb or system led?
 As in current patch they are in the .dts, but for me it looks like system
 (red) is always one, and usb is likely hardwired to the minpcie slot.

 Btw I also did following (but not yet nicely cleaned up) to get working
 failsafe mode.

 Questionable is whether there are currently any MT762* based routers
 currently with working failsafe mode. (I somewhat doubt this, but i only
 own 3 or 4 MT672x based routers)

 {{{
 diff --git a/target/linux/ramips/base-
 files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-
 files/lib/preinit/07_set_preinit_iface_ramips
 index cae6396..4adc8fe 100644
 --- a/target/linux/ramips/base-
 files/lib/preinit/07_set_preinit_iface_ramips
 +++ b/target/linux/ramips/base-
 files/lib/preinit/07_set_preinit_iface_ramips
 @@ -6,12 +6,21 @@
  . /lib/ramips.sh

  ramips_set_preinit_iface() {
 -       RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628)"`
 +       RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7620)"`
         if [ -n "${RT3X5X}" ]; then
                 swconfig dev rt305x set reset 1
         fi

 -       if echo $RT3X5X | egrep -q "(RT5350|MT7628)"; then
 +       if echo $RT3X5X | egrep -q "(MT7620)"; then
 +               switch=mt7620
 +               swconfig dev $switch set reset 1
 +               swconfig dev $switch set enable_vlan 1
 +               swconfig dev $switch vlan 1 set ports "0 1 2 3 4 5 6t"
 +               swconfig dev $switch set apply 1
 +               vconfig add eth0 1
 +               ifconfig eth0 up
 +               ifname=eth0.1
 +       elif echo $RT3X5X | egrep -q "(RT5350|MT7628)"; then
                 # This is a dirty hack to get by while the switch
                 # problem is investigated. When VLAN is disabled, ICMP
                 # pings work as expected, but TCP connections time

 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19996#comment:15>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to