#18450: lan port not working on latest trunk TL-WA901ND v2
------------------------+------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by vaclav.ovsik@…):

 Hi,
 I have similar problem with r43757 (yesterday build). I have Asus WL-500W,
 broadcom 47xx SoC (with serial console). I think netifd doesn't add wifi
 wl0 interface into lan bridge, but simple running:

 {{{
 /etc/init.d/network reload
 }}}

 does the missing configuration.


 I'm trying to setup dump AP with this configuration:
 {{{
 root@OpenWrt:/etc/config# cat network

 config switch 'eth0'
         option name 'eth0'
         option reset '1'
 #       option enable_vlan '1'
         option enable_vlan '0'

 #config switch_vlan
 #       option device 'eth0'
 #       option vlan '1'
 #       option ports '0 1 2 3 4 5'

 config interface 'loopback'
         option ifname 'lo'
         option proto 'static'
         option ipaddr '127.0.0.1'
         option netmask '255.0.0.0'

 config globals 'globals'
         option ula_prefix 'fd52:a74c:31a0::/48'

 config interface 'lan'
         option ifname 'eth0 eth1'
         option force_link '1'
         option type 'bridge'
         option proto 'static'
         option ipaddr '192.168.1.1'
         option netmask '255.255.255.0'
         option ip6assign '60'
         option gateway '192.168.1.5'
         option dns '192.168.1.5'

 #config interface 'wan'
 #       option ifname 'eth1'
 #       option proto 'dhcp'

 #config interface 'wan6'
 #       option ifname 'eth1'
 #       option proto 'dhcpv6'

 root@OpenWrt:/etc/config# cat wireless
 config wifi-device  wl0
         option type     broadcom
         option channel  1
         option txantenna 3
         option rxantenna 3
         option country  'CZ'

 config wifi-iface
         option device   wl0
         option network  lan
         option mode     ap
         option ssid     ZITOJR
         option encryption psk2
         option key      ***********
 }}}

 The tail of boot process looks:
 {{{
 procd: Console is alive
 procd: - watchdog -
 [    4.440000] b44: Broadcom 44xx/47xx 10/100 PCI ethernet driver version
 2.0
 [    4.450000] libphy: b44_eth_mii: probed
 [    4.610000] b53_common: found switch: BCM5325, rev 0
 [    4.610000] b44 ssb0:0: attached PHY driver [Broadcom B53 (1)]
 (mii_bus:phy_addr=1:1e)
 [    4.620000] b44 ssb0:0 eth0: Broadcom 44xx/47xx 10/100 PCI ethernet
 driver 00:23:54:05:14:e0
 [    4.640000] libphy: b44_eth_mii: probed
 [    4.640000] b44 ssb0:1: could not find PHY at 4, use fixed one
 [    4.650000] b44 ssb0:1: attached PHY driver [Generic PHY]
 (mii_bus:phy_addr=fixed-0:00)
 [    4.650000] b44 ssb0:1 eth1: Broadcom 44xx/47xx 10/100 PCI ethernet
 driver 00:23:54:05:14:e0
 procd: - preinit -
 [    5.410000] b44 ssb0:0 eth0: Link is up at 100 Mbps, half duplex
 [    5.420000] b44 ssb0:0 eth0: Flow control is off for TX and off for RX
 [    5.630000] random: mktemp urandom read with 53 bits of entropy
 available
 Press the [f] key and hit [enter] to enter failsafe mode
 Press the [1], [2], [3] or [4] key and hit [enter] to select the debug
 level
 [    6.610000] libphy: 1:1e - Link is Up - 100/Full
 jffs2 is ready
 No jffs2 marker was found
 [    9.230000] jffs2: notice: (229) jffs2_build_xattr_subsystem: complete
 building xattr subsystem, 1 of xdatum (1 unchecked, 0 orp.
 switching to overlay
 [    9.290000] b44 ssb0:0 eth0: powering down PHY
 procd: - early -
 procd: - watchdog -
 [    9.610000] libphy: 1:1e - Link is Down
 procd: - ubus -
 procd: - init -
 Please press Enter to activate this console.
 [   14.450000] NET: Registered protocol family 10
 [   15.290000] wl: module license 'unspecified' taints kernel.
 [   15.300000] Disabling lock debugging due to kernel taint
 [   15.430000] SSB/BCMA glue driver successfully attached
 [   15.440000] ssb: PCI: Fixing up device 0000:00:02.0
 [   15.520000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
 [   15.560000] ip6_tables: (C) 2000-2006 Netfilter Core Team
 [   15.600000] ip_tables: (C) 2000-2006 Netfilter Core Team
 [   15.690000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
 [   15.940000] xt_time: kernel timezone is -0000
 [   15.970000] PPP generic driver version 2.4.2
 [   15.980000] NET: Registered protocol family 24
 [   20.190000] b44 ssb0:0 eth0: Link is up at 100 Mbps, full duplex
 [   20.200000] b44 ssb0:0 eth0: Flow control is off for TX and off for RX
 [   21.950000] libphy: 1:1e - Link is Up - 100/Full
 [   24.890000] nas calls setitimer() with new_value NULL pointer.
 Misfeature support will be removed
 [   25.550000] random: nonblocking pool is initialized
 [   26.100000] b44 ssb0:0 eth0: powering down PHY
 [   26.130000] b44 ssb0:0 eth0: Link is up at 100 Mbps, full duplex
 [   26.130000] b44 ssb0:0 eth0: Flow control is off for TX and off for RX
 [   26.210000] device eth0 entered promiscuous mode
 [   26.210000] br-lan: port 1(eth0) entered forwarding state
 [   26.220000] br-lan: port 1(eth0) entered forwarding state
 [   26.340000] b44 ssb0:1 eth1: Link is up at 100 Mbps, half duplex
 [   26.350000] b44 ssb0:1 eth1: Flow control is off for TX and off for RX
 [   26.390000] device eth1 entered promiscuous mode
 [   27.190000] br-lan: port 2(eth1) entered forwarding state
 [   27.190000] br-lan: port 2(eth1) entered forwarding state
 [   28.000000] libphy: fixed-0:00 - Link is Up - 100/Full
 [   28.220000] br-lan: port 1(eth0) entered forwarding state
 procd: - init complete -
 [   29.190000] br-lan: port 2(eth1) entered forwarding state



 BusyBox v1.22.1 (2014-12-20 22:12:03 CET) built-in shell (ash)
 Enter 'help' for a list of built-in commands.

   _______                     ________        __
  |       |.-----.-----.-----.|  |  |  |.----.|  |_
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
           |__| W I R E L E S S   F R E E D O M
  -----------------------------------------------------
  CHAOS CALMER (Bleeding Edge, r43757)
  -----------------------------------------------------
   * 1 1/2 oz Gin            Shake with a glassful
   * 1/4 oz Triple Sec       of broken ice and pour
   * 3/4 oz Lime Juice       unstrained into a goblet.
   * 1 1/2 oz Orange Juice
   * 1 tsp. Grenadine Syrup
  -----------------------------------------------------
 root@OpenWrt:/# brctl show
 bridge name     bridge id               STP enabled     interfaces
 br-lan          7fff.0023540514e0       no              eth0
                                                         eth1
 root@OpenWrt:/# ifconfig
 br-lan    Link encap:Ethernet  HWaddr 00:23:54:05:14:E0
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           inet6 addr: fe80::223:54ff:fe05:14e0/64 Scope:Link
           inet6 addr: fd52:a74c:31a0::1/60 Scope:Global
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:55 errors:0 dropped:0 overruns:0 frame:0
           TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:5190 (5.0 KiB)  TX bytes:6622 (6.4 KiB)

 eth0      Link encap:Ethernet  HWaddr 00:23:54:05:14:E0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:64 errors:0 dropped:0 overruns:0 frame:0
           TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:6990 (6.8 KiB)  TX bytes:8593 (8.3 KiB)
           Interrupt:4

 eth1      Link encap:Ethernet  HWaddr 00:23:54:05:14:E0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:1138 (1.1 KiB)
           Interrupt:5

 lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:65536  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 wl0       Link encap:Ethernet  HWaddr 00:23:54:05:14:E0
           inet6 addr: fe80::223:54ff:fe05:14e0/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:3497
           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:0 (0.0 B)  TX bytes:224 (224.0 B)
           Interrupt:6

 root@OpenWrt:/# /etc/init.d/network reload
 sh: 0xffff: bad number
 [  213.400000] device wl0 entered promiscuous mode
 [  213.410000] br-lan: port 3(wl0) entered forwarding state
 [  213.420000] br-lan: port 3(wl0) entered forwarding state
 root@OpenWrt:/# [  215.420000] br-lan: port 3(wl0) entered forwarding
 state

 root@OpenWrt:/# brctl show
 bridge name     bridge id               STP enabled     interfaces
 br-lan          7fff.0023540514e0       no              eth0
                                                         eth1
                                                         wl0

 }}}

 Running {{{ ifdown lan }}} and {{{ ifup lan }}} fixes the problem online
 too.
 Cheers
 --
 Zito

--
Ticket URL: <https://dev.openwrt.org/ticket/18450#comment:14>
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