Hi,

I've got a Buffalo WZR-600DHP which is an ar71xx with 2x AG71xx
gigabit ethernet and a AR8316 switch. Once userspace has a chance to
configure everything, networking works as expected (LAN ports are
switched, WAN port sends DHCP discover), but I'm trying to get
netconsole working, which means I want the switch to be configured
*before* userspace. I can send netconsole messages to eth1 (WAN port),
but sending to eth0 doesn't work (just 3-4 messages from jffs2 very
late in the boot process).

These are the kernel messages for the gbe/switch:

switch0: Atheros AR8316 rev. 1 switch registered on ag71xx-mdio.0
libphy: ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
ar8316: Using port 4 as switch port
ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.0:00
[uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
eth1: Atheros AG71xx at 0xba000000, irq 5, mode:RGMII
ar8316: Using port 4 as PHY
ag71xx ag71xx.1 eth1: connected to PHY at ag71xx-mdio.0:04
[uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]

and here is netconsole:

netpoll: netconsole: local port 6665
netpoll: netconsole: local IPv4 address 10.0.0.4
netpoll: netconsole: interface 'eth1'
netpoll: netconsole: remote port 4919
netpoll: netconsole: remote IPv4 address 10.0.0.255
netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
netpoll: netconsole: device eth1 not up yet, forcing it
netpoll: netconsole: timeout waiting for carrier
console [netcon0] enabled
netconsole: network logging started

I suspect that because of the way the kernel configures the switch
early on, the messages to eth0 are lost until userspace fixes the
switch config. Anyone have experience with the AR8316? How can I get
the switch configured properly during early boot?

Catalin
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to