Modify

Opened 4 years ago

Last modified 3 years ago

#14714 new defect

Invalid Mac Address on Ethernet switch for WDR4900 v1.3

Reported by: klondike+openwrt@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

Hi guys, when setting up 2 TP-links WDR4900 switches with openwrt as APs I have discovered that both used the same mac address 00:04:9f:ef:01:01 for the switch, this resulted in bridges and interfaces getting that same MAC too. Looking around the forums this looks like the defult mac left over by U-Boot and seems to be the same on other's switches (shaw that same mac replicated on the forums).

I tried to set up a private mac using uci's macaddr parameter on the interface but that didn't work either.

Here is the output from dmesg:
[ 0.000000] Using Freescale P1014 machine description
[ 0.000000] Memory CAM mapping: 64/64 Mb, residual: 0Mb
[ 0.000000] Linux version 3.10.24 (openwrt@huchra) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39180) ) #1 Mon Dec 30 04:11:58 PST 2013
[ 0.000000] Found legacy serial port 0 for /soc@ffe00000/serial@4500
[ 0.000000] mem=ffe04500, taddr=ffe04500, irq=0, clk=399999996, speed=0
[ 0.000000] TL-WDR4900 v1 board from TP-Link
[ 0.000000] Top of RAM: 0x8000000, Total RAM: 0x8000000
[ 0.000000] Memory hole size: 0MB
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00000000-0x07ffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat c03172f8, node_mem_map c0352000
[ 0.000000] DMA zone: 256 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 32768 pages, LIFO batch:7
[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Sorting ex_table...
[ 0.000000] Memory: 60612k/131072k available (3084k kernel code, 70460k reserved, 116k data, 192k bss, 136k init)
[ 0.000000] Kernel virtual memory layout:
[ 0.000000] * 0xfffdf000..0xfffff000 : fixmap
[ 0.000000] * 0xfe000000..0xfe000000 : early ioremap
[ 0.000000] * 0xc9000000..0xfe000000 : vmalloc & ioremap
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:512 nr_irqs:512 16
[ 0.000000] mpic: Resetting
[ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 1 CPUs
[ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[ 0.000000] mpic: Initializing for 256 sources
[ 0.000000] time_init: decrementer frequency = 49.999999 MHz
[ 0.000000] time_init: processor frequency = 799.999992 MHz
[ 0.000000] clocksource: timebase mult[14000007] shift[24] registered
[ 0.000000] clockevent: decrementer mult[cccccc9] shift[32] cpu[0]
[ 0.000047] pid_max: default: 32768 minimum: 301
[ 0.000136] Mount-cache hash table entries: 512
[ 0.002840] NET: Registered protocol family 16
[ 0.008516] Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->255
[ 0.008526] PCI host bridge /pcie@ffe09000 (primary) ranges:
[ 0.008535] MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
[ 0.008543] IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
[ 0.008559] /pcie@ffe09000: PCICSRBAR @ 0xfff00000
[ 0.008911] Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->255
[ 0.008919] PCI host bridge /pcie@ffe0a000 ranges:
[ 0.008927] MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
[ 0.008935] IO 0x00000000ffc00000..0x00000000ffc0ffff -> 0x0000000000000000
[ 0.008950] /pcie@ffe0a000: PCICSRBAR @ 0xfff00000
[ 0.020810] PCI: Probing PCI hardware
[ 0.021090] fsl-pci ffe09000.pcie: PCI host bridge to bus 0000:00
[ 0.021104] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.021113] pci_bus 0000:00: root bus resource [mem 0xa0000000-0xbfffffff]
[ 0.021134] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.021146] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to ff
[ 0.021180] pci 0000:00:00.0: [1957:012b] type 01 class 0x0b2000
[ 0.021193] pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
[ 0.021226] pci 0000:00:00.0: supports D1 D2
[ 0.021235] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.021614] pci 0000:01:00.0: [168c:0033] type 00 class 0x028000
[ 0.021643] pci 0000:01:00.0: reg 10: [mem 0xa0000000-0xa001ffff 64bit]
[ 0.021683] pci 0000:01:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[ 0.021723] pci 0000:01:00.0: supports D1
[ 0.021731] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[ 0.028131] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.028147] pci 0000:00:00.0: bridge window [mem 0xa0000000-0xa00fffff]
[ 0.028209] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.028223] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.028397] fsl-pci ffe0a000.pcie: PCI host bridge to bus 0001:02
[ 0.028412] pci_bus 0001:02: root bus resource [io 0x20000-0x2ffff] (bus address [0x0000-0xffff])
[ 0.028422] pci_bus 0001:02: root bus resource [mem 0x80000000-0x9fffffff]
[ 0.028432] pci_bus 0001:02: root bus resource [bus 02-ff]
[ 0.028443] pci_bus 0001:02: busn_res: [bus 02-ff] end is updated to ff
[ 0.028475] pci 0001:02:00.0: [1957:012b] type 01 class 0x0b2000
[ 0.028486] pci 0001:02:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
[ 0.028514] pci 0001:02:00.0: supports D1 D2
[ 0.028523] pci 0001:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.028716] pci 0001:02:00.0: Primary bus is hard wired to 0
[ 0.028727] pci 0001:02:00.0: bridge configuration invalid ([bus 01-01]), reconfiguring
[ 0.028899] pci 0001:03:00.0: [168c:abcd] type 00 class 0x020000
[ 0.028908] pci 0001:03:00.0: AR9381 fixup applied
[ 0.028932] pci 0001:03:00.0: reg 10: [mem 0x80000000-0x8001ffff 64bit]
[ 0.028972] pci 0001:03:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[ 0.029012] pci 0001:03:00.0: supports D1
[ 0.029020] pci 0001:03:00.0: PME# supported from D0 D1 D3hot
[ 0.036143] pci 0001:02:00.0: PCI bridge to [bus 03-ff]
[ 0.036158] pci 0001:02:00.0: bridge window [mem 0x80000000-0x800fffff]
[ 0.036209] pci_bus 0001:03: busn_res: [bus 03-ff] end is updated to 03
[ 0.036222] pci_bus 0001:02: busn_res: [bus 02-ff] end is updated to 03
[ 0.036265] PCI 0000:00 Cannot reserve Legacy IO [io 0x0000-0x0fff]
[ 0.036273] PCI 0001:02 Cannot reserve Legacy IO [io 0x20000-0x20fff]
[ 0.036302] pci 0000:00:00.0: BAR 9: can't assign mem pref (size 0x100000)
[ 0.036316] pci 0000:01:00.0: BAR 6: assigned [mem 0xa0020000-0xa002ffff pref]
[ 0.036326] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.036336] pci 0000:00:00.0: bridge window [io 0x0000-0xffff]
[ 0.036345] pci 0000:00:00.0: bridge window [mem 0xa0000000-0xbfffffff]
[ 0.036357] pci 0001:02:00.0: BAR 9: can't assign mem pref (size 0x100000)
[ 0.036369] pci 0001:03:00.0: BAR 6: assigned [mem 0x80020000-0x8002ffff pref]
[ 0.036378] pci 0001:02:00.0: PCI bridge to [bus 03]
[ 0.036387] pci 0001:02:00.0: bridge window [io 0x20000-0x2ffff]
[ 0.036397] pci 0001:02:00.0: bridge window [mem 0x80000000-0x9fffffff]
[ 0.036403] Some PCI device resources are unassigned, try booting with pci=realloc
[ 0.036422] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
[ 0.036431] pci_bus 0000:00: resource 5 [mem 0xa0000000-0xbfffffff]
[ 0.036441] pci_bus 0000:01: resource 0 [io 0x0000-0xffff]
[ 0.036450] pci_bus 0000:01: resource 1 [mem 0xa0000000-0xbfffffff]
[ 0.036460] pci_bus 0001:02: resource 4 [io 0x20000-0x2ffff]
[ 0.036469] pci_bus 0001:02: resource 5 [mem 0x80000000-0x9fffffff]
[ 0.036479] pci_bus 0001:03: resource 0 [io 0x20000-0x2ffff]
[ 0.036488] pci_bus 0001:03: resource 1 [mem 0x80000000-0x9fffffff]
[ 0.036495] Registering qe_ic with sysfs...
[ 0.039258] bio: create slab <bio-0> at 0
[ 0.040521] Switching to clocksource timebase
[ 0.041920] NET: Registered protocol family 2
[ 0.042235] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.042264] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.042280] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.042329] TCP: reno registered
[ 0.042339] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.042356] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.042506] NET: Registered protocol family 1
[ 0.042553] PCI: CLS 32 bytes, default 32
[ 0.051146] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.051158] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.051726] msgmni has been set to 246
[ 0.051834] io scheduler noop registered
[ 0.051841] io scheduler deadline registered (default)
[ 0.103147] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.105726] serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
[ 0.605158] console [ttyS0] enabled
[ 0.609354] ffe04500.serial: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550
[ 0.616732] Generic RTC Driver v1.07
[ 0.621352] fsl_espi ffe07000.spi: master is unqueued, this is deprecated
[ 0.628512] m25p80 spi0.0: s25fl129p1 (16384 Kbytes)
[ 0.633646] 7 ofpart partitions found on MTD device spi0.0
[ 0.639138] Creating 7 MTD partitions on "spi0.0":
[ 0.643930] 0x000000000000-0x000000050000 : "u-boot"
[ 0.649589] 0x000000050000-0x000000060000 : "dtb"
[ 0.654907] 0x000000060000-0x000000300000 : "kernel"
[ 0.660498] 0x000000300000-0x000000fe0000 : "rootfs"
[ 0.666070] mtd: device 3 (rootfs) set to be root filesystem
[ 0.671954] mtd: partition "rootfs_data" created automatically, ofs=0x4b0000, len=0xb30000
[ 0.680231] 0x0000004b0000-0x000000fe0000 : "rootfs_data"
[ 0.686307] 0x000000fe0000-0x000000ff0000 : "config"
[ 0.691886] 0x000000ff0000-0x000001000000 : "caldata"
[ 0.697551] 0x000000060000-0x000000fe0000 : "firmware"
[ 0.703305] fsl_espi ffe07000.spi: at 0xc901e000 (irq = 59)
[ 0.709799] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.738947] switch0: Atheros AR8327 rev. 4 switch registered on mdio@ffe24000
[ 1.958179] fsl-gianfar ethernet.1 eth0: mac: 00:04:9f:ef:01:01
[ 1.964124] fsl-gianfar ethernet.1 eth0: Running with NAPI enabled
[ 1.970306] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[0]: 256
[ 1.976833] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[1]: 256
[ 1.983360] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[2]: 256
[ 1.989887] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[3]: 256
[ 1.996414] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[4]: 256
[ 2.002943] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[5]: 256
[ 2.009470] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[6]: 256
[ 2.015997] fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[7]: 256
[ 2.022525] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[0]: 256
[ 2.029053] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[1]: 256
[ 2.035580] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[2]: 256
[ 2.042107] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[3]: 256
[ 2.048634] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[4]: 256
[ 2.055161] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[5]: 256
[ 2.061688] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[6]: 256
[ 2.068215] fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[7]: 256
[ 2.074912] ucc_geth_driver: QE UCC Gigabit Ethernet Controller
[ 2.081217] TCP: cubic registered
[ 2.084529] NET: Registered protocol family 17
[ 2.089050] Bridge firewalling registered
[ 2.093069] can: controller area network core (rev 20120528 abi 9)
[ 2.099300] NET: Registered protocol family 29
[ 2.103745] 8021q: 802.1Q VLAN Support v1.8
[ 2.115152] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 2.122627] Freeing unused kernel memory: 136K (c02e1000 - c0303000)
[ 4.053084] usbcore: registered new interface driver usbfs
[ 4.058738] usbcore: registered new interface driver hub
[ 4.064253] usbcore: registered new device driver usb
[ 4.071952] Button Hotplug driver version 0.4.1
[ 4.079565] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.086194] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[ 4.092828] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[ 4.109914] fsl-ehci fsl-ehci.0: irq 28, io mem 0xffe22000
[ 4.124594] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[ 4.131003] hub 1-0:1.0: USB hub found
[ 4.134787] hub 1-0:1.0: 1 port detected
[ 4.139812] ehci-platform: EHCI generic platform driver
[ 4.448557] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[ 4.586695] hub 1-1:1.0: USB hub found
[ 4.590750] hub 1-1:1.0: 4 ports detected
[ 5.514944] libphy: mdio@ffe24000:00 - Link is Up - 1000/Full
[ 5.817106] jffs2: notice: (866) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 5 orphan) found.
[ 8.160696] NET: Registered protocol family 10
[ 8.176698] nf_conntrack version 0.5.0 (1977 buckets, 7908 max)
[ 8.199497] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.241632] booke_wdt: powerpc book-e watchdog driver loaded
[ 8.256687] Loading modules backported from Linux version master-2013-11-05-0-gafa3093
[ 8.264623] Backport generated by backports.git backports-20130802-0-gdb67a3f
[ 8.288691] input: buttons.8 as /devices/buttons.8/input/input0
[ 8.305045] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.395236] xt_time: kernel timezone is -0000
[ 8.425138] cfg80211: Calling CRDA to update world regulatory domain
[ 8.436611] cfg80211: World regulatory domain updated:
[ 8.441761] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 8.449939] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 8.457680] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 8.465427] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 8.473171] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[ 8.480913] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[ 8.488654] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[ 8.544689] PPP generic driver version 2.4.2
[ 8.556685] NET: Registered protocol family 24
[ 8.745272] ath: EEPROM regdomain: 0x0
[ 8.745284] ath: EEPROM indicates default country code should be used
[ 8.745288] ath: doing EEPROM country->regdmn map search
[ 8.745299] ath: country maps to regdmn code: 0x3a
[ 8.745305] ath: Country alpha2 being used: US
[ 8.745310] ath: Regpair used: 0x3a
[ 8.755083] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 8.765872] cfg80211: Calling CRDA for country: US
[ 8.771254] cfg80211: Regulatory domain changed to country: US
[ 8.777104] cfg80211: DFS Master region FCC
[ 8.781197] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 8.789549] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 8.797290] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[ 8.805032] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[ 8.812774] cfg80211: (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[ 8.820518] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[ 8.828259] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[ 8.836010] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[ 8.845561] ieee80211 phy0: Atheros AR9300 Rev:4 mem=0xc9640000, irq=17
[ 8.919441] ath: EEPROM regdomain: 0x0
[ 8.919452] ath: EEPROM indicates default country code should be used
[ 8.919457] ath: doing EEPROM country->regdmn map search
[ 8.919468] ath: country maps to regdmn code: 0x3a
[ 8.919474] ath: Country alpha2 being used: US
[ 8.919478] ath: Regpair used: 0x3a
[ 8.940771] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 8.952992] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xc96c0000, irq=18
[ 11.793218] device eth0.40 entered promiscuous mode
[ 11.798130] device eth0 entered promiscuous mode
[ 11.803078] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.40: link becomes ready
[ 11.811828] br-GHS: port 1(eth0.40) entered forwarding state
[ 11.817541] br-GHS: port 1(eth0.40) entered forwarding state
[ 11.849520] device eth0.70 entered promiscuous mode
[ 11.856744] br-GuestWifi: port 1(eth0.70) entered forwarding state
[ 11.862960] br-GuestWifi: port 1(eth0.70) entered forwarding state
[ 11.905114] device eth0.50 entered promiscuous mode
[ 11.916729] br-Others: port 1(eth0.50) entered forwarding state
[ 11.922678] br-Others: port 1(eth0.50) entered forwarding state
[ 12.363995] cfg80211: Calling CRDA for country: SE
[ 12.376716] cfg80211: Regulatory domain changed to country: SE
[ 12.382565] cfg80211: DFS Master region ETSI
[ 12.386745] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 12.395099] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 12.402493] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[ 12.409887] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[ 12.417282] cfg80211: (5490000 KHz - 5710000 KHz @ 80000 KHz), (N/A, 2700 mBm)
[ 12.424677] cfg80211: (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[ 12.801062] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.70: link becomes ready
[ 12.824002] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.50: link becomes ready
[ 13.263588] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 13.272299] device wlan1 entered promiscuous mode
[ 13.277236] br-GHS: port 2(wlan1) entered forwarding state
[ 13.282775] br-GHS: port 2(wlan1) entered forwarding state
[ 13.306222] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 13.343199] device wlan1-1 entered promiscuous mode
[ 13.353158] br-Others: port 2(wlan1-1) entered forwarding state
[ 13.359154] br-Others: port 2(wlan1-1) entered forwarding state
[ 13.365197] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[ 13.373488] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[ 13.435501] device wlan1-2 entered promiscuous mode
[ 13.448404] br-GuestWifi: port 2(wlan1-2) entered forwarding state
[ 13.454667] br-GuestWifi: port 2(wlan1-2) entered forwarding state
[ 13.461092] IPv6: ADDRCONF(NETDEV_UP): wlan1-2: link is not ready
[ 13.790965] libphy: mdio@ffe24000:00 - Link is Up - 1000/Full
[ 13.808515] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-2: link becomes ready
[ 13.820578] br-GHS: port 1(eth0.40) entered forwarding state
[ 13.864577] br-GuestWifi: port 1(eth0.70) entered forwarding state
[ 13.908807] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 13.923711] device wlan0 entered promiscuous mode
[ 13.928456] br-Others: port 1(eth0.50) entered forwarding state
[ 13.934621] br-GHS: port 3(wlan0) entered forwarding state
[ 13.940150] br-GHS: port 3(wlan0) entered forwarding state
[ 13.969533] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 14.011798] device wlan0-1 entered promiscuous mode
[ 14.026076] br-Others: port 3(wlan0-1) entered forwarding state
[ 14.032071] br-Others: port 3(wlan0-1) entered forwarding state
[ 14.038112] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[ 14.053846] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[ 14.115574] device wlan0-2 entered promiscuous mode
[ 14.129717] br-GuestWifi: port 3(wlan0-2) entered forwarding state
[ 14.135987] br-GuestWifi: port 3(wlan0-2) entered forwarding state
[ 14.142339] IPv6: ADDRCONF(NETDEV_UP): wlan0-2: link is not ready
[ 14.310604] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
[ 15.284554] br-GHS: port 2(wlan1) entered forwarding state
[ 15.360546] br-Others: port 2(wlan1-1) entered forwarding state
[ 15.456547] br-GuestWifi: port 2(wlan1-2) entered forwarding state
[ 15.940548] br-GHS: port 3(wlan0) entered forwarding state
[ 16.032554] br-Others: port 3(wlan0-1) entered forwarding state
[ 16.136549] br-GuestWifi: port 3(wlan0-2) entered forwarding state

As you can see the mac is gotten by fsl-gianfar but I don't know where it comes from.

For now being able to just set up a local mac would be enough but setting this on UCI isn't helping either:
config interface 'Admin'

option proto 'static'
option ifname 'eth0.10'
option ipaddr '10.10.0.5'
option netmask '255.255.0.0'
option gateway '10.10.0.1'
option dns '10.10.0.1'
option macaddr 51:69:7C:2A:43:00

Attachments (0)

Change History (17)

comment:1 Changed 4 years ago by anonymous

I have checked with an unmodified TP-link WDR4900. Apparently they use the same MAC address for the switch as for the wireless device so maybe they haven't allocated any for the Ethernet switch at all.

comment:2 Changed 4 years ago by klondike+openwrt@…

Looking for the config it seems the device has more mac addresses than the one on the sticker, they also seem to increase them (couldn't find a reference for the fb address use for radio1).

MAC addresses edited from the output for security reasons

root@AP3:~# hexdump /dev/mtd5ro | grep ****
0000140 0000 0000 **** **c7 1dfc 0000 **** **c7
0000150 1dfd **** **c7 1dfe **** **c7 1dff ****
0000160 **c7 1e00 **** **c7 1e01 **** **c7 1e02
0000170 **** **c7 1e03 **** **c7 1e04 **** **c7
0000180 1dfd **** **c7 1dfe **** **c7 1dff ****
0000190 **c7 1e00 **** **c7 1e01 **** **c7 1e02
00001a0 **** **c7 1e03 **** **c7 1e04 c0a8 0001

comment:3 Changed 4 years ago by klondike+openwrt@…

Hi, I've been digging on this a bit more.

U-Boot passed this commit https://gitorious.org/0xlab-kernel/u-boot/commit/ecd1a09b81f2ed6e6ba7bd1d0bfb0cc3d0ea2ad0 http://u-boot.10912.n7.nabble.com/U-Boot-PATCH-mpc83xx-remove-hardcoded-network-addresses-from-config-files-td44372.html I suppose to prevent this particular issue, but the WDR4900 may be using an old bootloader still affected.

I have been checking the contents of the dtb on the flash, this particular bit is quite revealing:

                ethernet@b0000 {
                        #address-cells = <0x1>;
                        #size-cells = <0x1>;
                        device_type = "network";
                        model = "eTSEC";
                        compatible = "fsl,etsec2";
                        fsl,num_rx_queues = <0x8>;
                        fsl,num_tx_queues = <0x8>;
                        local-mac-address = [00 00 00 00 00 00];
                        interrupt-parent = <0x2>;
                        phy-handle = <0x3>;
                        phy-connection-type = "rgmii-id";
                        ptimer-handle = <0x4>;

                        queue-group@0 {
                                #address-cells = <0x1>;
                                #size-cells = <0x1>;
                                reg = <0xb0000 0x1000>;
                                rx-bit-map = <0xff>;
                                tx-bit-map = <0xff>;
                                interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
                        };
                };

I also have been checking the live device map to find this:

root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b0000/local-mac-address 
00000000  00 04 9f ef 01 01                                 |......|
00000006
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b1000/local-mac-address 
*
root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b2000/local-mac-address 
*

My conclussion is that U-Boot most likely finds the device and (as no valid MAC-address is provided) falls back to the default MAC provided by the old code, the kernel then receives thee modified device map from U-Boot and assumes this is the correct MAC for the device despite it obviously isn't.

This can be seen at https://dev.openwrt.org/browser/trunk/target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch

The enetaddr is filled up by using the device tree data by the process_boot_dtb function and used by the platform_fixups function to set the eth0 address (by calling dt_fixup_mac_address_by_alias("ethernet0", enetaddr); ). But instead we should be used the device address which to my understanding is provided in the mtd.

comment:4 follow-up: Changed 4 years ago by bittorf@…

i can make a patch, which "fixes" this during firstboot via uci-defaults - any other suggestions?

comment:5 Changed 4 years ago by klondike+openwrt@…

Nah, that should work well, we managed to get them working after setting the address by hand on the uci config.

comment:6 Changed 4 years ago by anonymous

This can be reproduced in latest trunk by removing in luci the default mac address in the interface -> edit -> Advanced Settings section. When the mac is been left empty and been saved, it gets the same MAC like reported above.

comment:7 Changed 3 years ago by anonymous

This can still be reproduced with latest release of Barrier Breaker (14.04). Is someone actually trying to fix this or should it be fixed in uboot instead?

comment:8 in reply to: ↑ 4 Changed 3 years ago by anonymous

Replying to bittorf@…:

i can make a patch, which "fixes" this during firstboot via uci-defaults - any other suggestions?

I would appreciate a patch. Can I help somehow?

comment:9 Changed 3 years ago by anonymous

So how does this affect the usability of this device? Can I use it without any problem after a fresh Barrier Breaker install? I don't understand the problem of using the same MACs.

comment:10 Changed 3 years ago by klondike

This is a minor problem and is only bad when you have many of these devices in the same network.

At GHS we fixed it by putting a explicit macaddr on each network, be sure to use non captial letters (i.e a instead of A and so on)

comment:11 Changed 3 years ago by anonymous

@klondike Are you kidding? This is definitely a major problem!

comment:12 Changed 3 years ago by anonymous

I was just wondering, because these guys

http://lists.berlin.freifunk.net/pipermail/berlin/2014-February/023892.html

say changing the MAC address only works for interfaces derived from eth0...

comment:13 Changed 3 years ago by klondike

Well, it works with the 3 WDR4900 v1.3 we have at GHS as APs. They are on the same broadcast domain and after setting the macaddress manually we haven't experienced any issues.

comment:14 Changed 3 years ago by anonymous

Just an idea, did have you tried updating to the newest official firmware, which should contain the most up-to-date bootloader? This might fix the problem, if according to one of the previous posts the buggy handling of the MAC addresses had been changed in a newer version of U-Boot.

comment:15 Changed 3 years ago by klondike

I'm quite sure it will not help, we discovered this 10 months ago,the newest firmware is more than one year old and we tried then upgrading at least one of the routers back then but the issue wasn't solved by this.

The only solution would be setting the right MAC on the initial config or (as we did) setting it later by hand (being careful with caps which was what made it impossible for us to do the change)

comment:16 Changed 3 years ago by bittorf@…

fixed with this patch:
https://lists.openwrt.org/pipermail/openwrt-devel/2014-October/028906.html

you can manually ask for the right mac with e.g.

. /lib/functions.sh
. /lib/functions/system.sh
echo "LAN = $(mtd_get_mac_binary config 338)"
echo "WAN = $(mtd_get_mac_binary config 344)"

comment:17 Changed 3 years ago by anonymous

Thank you!

Chris

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.