Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10836 closed defect (fixed)

Linksys WRT150N incorrectly recognized as Linksys WRT160N

Reported by: kwestarz@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Linksys WRT150N incorrectly recognized as Linksys WRT160N, latest trunk.
dmesg:

[    0.000000] Linux version 3.0.17 (xfd@linux-8wyc) (gcc version 4.5.4 20120105 (prerelease) (Linaro GCC 4.5-2012.01) ) #1 Sun Jan 22 17:34:26 CET 2012
[    0.000000] CPU revision is: 00029006 (Broadcom BMIPS3300)
[    0.000000] bcm47xx: using ssb bus
[    0.000000] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x03, vendor 0x4243)
[    0.000000] ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
[    0.000000] ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
[    0.000000] ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
[    0.000000] ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
[    0.000000] ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x03, vendor 0x4243)
[    0.000000] ssb: Core 6 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
[    0.000000] ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x00, vendor 0x4243)
[    0.000000] ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x02, vendor 0x4243)
[    0.000000] ssb: chipcommon status is 0x0
[    0.000000] ssb: Initializing MIPS core...
[    0.000000] ssb: set_irq: core 0x0806, irq 4 => 4
[    0.000000] ssb: set_irq: core 0x0806, irq 5 => 5
[    0.000000] ssb: set_irq: core 0x0808, irq 6 => 2
[    0.000000] ssb: set_irq: core 0x0804, irq 2 => 6
[    0.000000] ssb: after irq reconfiguration
[    0.000000] ssb: core 0x0800, irq : 2(S)  3* 4  5  6  D  I 
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4* 5  6  D  I 
[    0.000000] ssb: core 0x0806, irq : 2(S)  3  4  5* 6  D  I 
[    0.000000] ssb: core 0x0808, irq : 2(S)* 3  4  5  6  D  I 
[    0.000000] ssb: core 0x0804, irq : 2(S)  3  4  5  6* D  I 
[    0.000000] ssb: core 0x0816, irq : 2(S)* 3  4  5  6  D  I 
[    0.000000] ssb: core 0x0807, irq : 2(S)* 3  4  5  6  D  I 
[    0.000000] ssb: core 0x080b, irq : 2(S)* 3  4  5  6  D  I 
[    0.000000] ssb: core 0x080f, irq : 2(S)  3  4  5  6  D  I*
[    0.000000] found parallel flash.
[    0.000000] ssb: Sonics Silicon Backplane found at address 0x18000000
[    0.000000] Serial init done.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80285f20, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    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: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Memory: 62048k/65536k available (2247k kernel code, 3488k reserved, 334k data, 156k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] console [ttyS0] enabled
[    0.004000] Calibrating delay loop... 262.14 BogoMIPS (lpj=524288)
[    0.048000] pid_max: default: 32768 minimum: 301
[    0.052000] Mount-cache hash table entries: 512
[    0.060000] NET: Registered protocol family 16
[    0.080000] bio: create slab <bio-0> at 0
[    0.092000] Switching to clocksource MIPS
[    0.100000] Switched to NOHz mode on CPU #0
[    0.112000] ssb: PCIcore in host mode found
[    0.416000] pci 0000:00:00.0: [14e4:4704] type 0 class 0x000600
[    0.416000] PCI: Fixing up bridge 0000:00:00.0
[    0.424000] PCI: Setting latency timer of device 0000:00:00.0 to 64
[    0.424000] PCI: Fixing up device 0000:00:00.0
[    0.428000] PCI: Fixing latency timer of device 0000:00:00.0 to 168
[    0.432000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x00001fff]
[    0.432000] pci 0000:00:00.0: reg 14: [mem 0x00000000-0x07ffffff pref]
[    0.432000] pci 0000:00:01.0: [14e4:4321] type 0 class 0x000280
[    0.436000] pci 0000:00:01.0: reg 10: [mem 0x00000000-0x00003fff]
[    0.436000] pci 0000:00:01.0: BAR 0: assigned [mem 0x40000000-0x40003fff]
[    0.444000] pci 0000:00:01.0: BAR 0: set to [mem 0x40000000-0x40003fff] (PCI address [0x40000000-0x40003fff])
[    0.460000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.464000] PCI: Fixing up device 0000:00:01.0
[    0.472000] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.492000] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x13, vendor 0x4243)
[    0.492000] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)
[    0.492000] ssb: Core 2 found: PCI-E (cc 0x820, rev 0x04, vendor 0x4243)
[    0.492000] ssb: Core 3 found: PCI (cc 0x804, rev 0x0D, vendor 0x4243)
[    0.492000] ssb: Core 4 found: USB 1.1 Host (cc 0x817, rev 0x04, vendor 0x4243)
[    0.512000] ssb: chipcommon status is 0x0
[    0.516000] ssb: SPROM offset is 0x1000
[    0.540000] ssb: Using SPROM revision 4 provided by platform.
[    0.560000] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
[    0.572000] NET: Registered protocol family 2
[    0.576000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.584000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.592000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.600000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.604000] TCP reno registered
[    0.608000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.616000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.620000] NET: Registered protocol family 1
[    0.628000] PCI: CLS 0 bytes, default 32
[    0.636000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.644000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.656000] msgmni has been set to 121
[    0.660000] io scheduler noop registered
[    0.664000] io scheduler deadline registered (default)
[    0.668000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.696000] serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
[    0.724000] serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
[    0.752000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
[    0.784000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
[    0.796000] bcm47xx_pflash: flash init: 0x1c000000 0x02000000
[    0.800000] Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000ec Chip ID 0x0022a2
[    0.812000] Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
[    0.812000] Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
[    0.812000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.820000]   Fixing Samsung's Amd/Fujitsu Extended Query version to 1.3
[    0.824000]   Amd/Fujitsu Extended Query version 1.3.
[    0.832000] number of CFI chips: 1
[    0.836000] bcm47xx_pflash: Flash device: 0x2000000 at 0x1fc00000
[    0.840000] bcm47xx_part: bootloader size: 262144
[    0.848000] bcm47xx_part: Looking for dual image
[    0.852000] bcm47xx_part: TRX offset : 0
[    0.856000] 4 bcm47xx partitions found on MTD device Physically mapped flash
[    0.864000] Creating 4 MTD partitions on "Physically mapped flash":
[    0.868000] 0x000000000000-0x000000040000 : "cfe"
[    0.880000] 0x000000040000-0x0000003f0000 : "linux"
[    0.888000] 0x000000119c00-0x0000003f0000 : "rootfs"
[    0.896000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.912000] mtd: partition "rootfs" set to be root filesystem
[    0.920000] mtd: partition "rootfs_data" created automatically, ofs=2D0000, len=120000 
[    0.928000] 0x0000002d0000-0x0000003f0000 : "rootfs_data"
[    0.936000] 0x0000003f0000-0x000000400000 : "nvram"
[    0.948000] bcm47xx_sflash: error registering platform driver: -19
[    0.956000] b44: b44.c:v2.0
[    0.964000] b44 ssb0:0: eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:1d:7e:3c:5d:69
[    0.972000] b44 ssb0:1: eth1: PHY Reset would not complete
[    0.980000] b44 ssb0:1: eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:88:88:88:00:2a
[    0.988000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
[    0.996000] TCP westwood registered
[    1.000000] NET: Registered protocol family 17
[    1.004000] 802.1Q VLAN Support v1.8
[    1.024000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.036000] Freeing unused kernel memory: 156k freed
[    4.272000] diag: Detected 'Linksys WRT160N'
[    4.328000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[    4.332000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[    5.480000] roboswitch: Probing device eth0: found a 5325! It's a 5350.
[   12.828000] JFFS2 notice: (311) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 4 of xref (0 dead, 2 orphan) found.
[   13.240000] b44 ssb0:0: eth0: powering down PHY
[   16.292000] Compat-wireless backport release: compat-wireless-2011-11-29
[   16.300000] Backport based on wireless-testing.git master-2011-12-01
[   16.364000] cfg80211: Calling CRDA to update world regulatory domain
[   17.348000] cfg80211: World regulatory domain updated:
[   17.356000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   17.364000] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   17.372000] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   17.380000] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   17.388000] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   17.396000] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   17.796000] b43-phy0: Broadcom 4321 WLAN found (core revision 12)
[   17.868000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.868000] Registered led device: b43-phy0::tx
[   17.868000] Registered led device: b43-phy0::rx
[   17.872000] Broadcom 43xx driver loaded [ Features: PNL ]
[   18.036000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[   18.252000] PPP generic driver version 2.4.2
[   18.520000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.812000] NET: Registered protocol family 24
[   18.888000] nf_conntrack version 0.5.0 (971 buckets, 3884 max)
[   21.904000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[   21.912000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[   22.420000] device eth0 entered promiscuous mode
[   22.500000] br-lan: port 1(eth0) entering forwarding state
[   22.504000] br-lan: port 1(eth0) entering forwarding state
[   23.128000] b44 ssb0:1: eth1: Link is up at 100 Mbps, full duplex
[   23.136000] b44 ssb0:1: eth1: Flow control is off for TX and off for RX
[   27.828000] cfg80211: Calling CRDA for country: PL
[   28.436000] cfg80211: Regulatory domain changed to country: PL
[   28.440000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   28.448000] cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   28.456000] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   28.464000] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   28.472000] cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
[   30.724000] b43-phy0: Loading firmware version 508.1084 (2009-01-14 01:32:01)
[   31.088000] b43-phy0: Loading firmware version 508.1084 (2009-01-14 01:32:01)
[   31.204000] device wlan0 entered promiscuous mode
[   31.212000] br-lan: port 2(wlan0) entering forwarding state
[   31.216000] br-lan: port 2(wlan0) entering forwarding state
[   31.896000] NOHZ: local_softirq_pending 08
[   31.904000] NOHZ: local_softirq_pending 08
[   31.912000] NOHZ: local_softirq_pending 08
[   31.920000] NOHZ: local_softirq_pending 08
[   31.924000] NOHZ: local_softirq_pending 08
[   31.932000] NOHZ: local_softirq_pending 08
[   31.936000] NOHZ: local_softirq_pending 08
[   31.944000] NOHZ: local_softirq_pending 08
[   31.948000] NOHZ: local_softirq_pending 08
[   31.956000] NOHZ: local_softirq_pending 08
[   34.240000] device wlan0 left promiscuous mode
[   34.244000] br-lan: port 2(wlan0) entering forwarding state
[   34.632000] device wlan0 entered promiscuous mode
[   34.636000] br-lan: port 2(wlan0) entering forwarding state
[   34.640000] br-lan: port 2(wlan0) entering forwarding state

nvram:

boardnum=42
boot_ver=v4.5
mfg_wait=on
pci/1/1/pa2gw2a0=0
pci/1/1/pa2gw2a1=0
sdram_ncdl=0x208
pci/1/1/bwduppo=0
boot_hw_ver=1.1
pci/1/1/pa2gw3a0=0
pci/1/1/pa2gw3a1=0
parkid=0
et1mdcport=0
pci/1/1/rxchain=3
pci/1/1/ag0=2
pci/1/1/ag1=2
pci/1/1/txchain=3
pci/1/1/mcs2gpo4=0
sdram_config=0x0022
pci/1/1/mcs2gpo5=0
pci/1/1/mcs2gpo6=0
pci/1/1/mcs2gpo7=0
pci/1/1/mcs2gpo0=0
pci/1/1/mcs2gpo1=0
pci/1/1/mcs2gpo2=0
pci/1/1/mcs2gpo3=0
pci/1/1/ofdm2gpo=0
pci/1/1/boardflags2=0x0000
pci/1/1/itt2ga0=0
pci/1/1/itt2ga1=0
pci/1/1/bw40po=0
lan_netmask=255.255.255.0
sromrev=2
et0macaddr=00:1d:7e:3c:5d:69
os_ram_addr=80001000
pci/1/1/stbcpo=0
et1phyaddr=4
pci/1/1/cck2gpo=0
pci/1/1/macaddr=00:88:88:88:00:2a
cardbus=1
dl_ram_addr=a0001000
sdram_init=0x0553
boot_hw_model=WRT150N
et0phyaddr=30
boardflags=0x0010
lan_ipaddr=192.168.1.1
clkfreq=264
pci/1/1/maxp2ga0=0
pci/1/1/maxp2ga1=0
tftpd_ipaddr=192.168.1.254
pci/1/1/venid=0x14e4
wait_time=3
blink_diag_led=1
boardtype=0x0472
et1macaddr=00:88:88:88:00:2a
pci/1/1/ccdpo=0
pmon_ver=CFE 4.151.10.5
boot_wait=off
bootnv_ver=5
boardrev=0x11
opo=0x0
pci/1/1/regrev=0
pci/1/1/devid=0x4329
pci/1/1/ccode=0
pci/1/1/leddc=0xffff
diag_gpio=1
sdram_refresh=0x0
pci/1/1/antswitch=0
pci/1/1/aa2g=3
scratch=a0180000
pci/1/1/ledbh0=8
pci/1/1/ledbh1=-1
pci/1/1/ledbh2=-1
pci/1/1/ledbh3=-1
pci/1/1/boardtype=0x46d
pci/1/1/boardrev=0x4b
pci/1/1/sromrev=4
pci/1/1/boardvendor=0x14e4
pci/1/1/boardflags=0x200
pci/1/1/pa2gw0a1=0
pci/1/1/txpt2g=0x36
pci/1/1/pa2gw0a0=0
pci/1/1/txpid2ga0=91
pci/1/1/txpid2ga1=91
os_flash_addr=bfc40000
et0mdcport=0
watchdog=5000
pci/1/1/pa2gw1a0=0
pci/1/1/pa2gw1a1=0

Attachments (1)

fix_WRT150N_WRT160N_ detection.patch (2.7 KB) - added by kwestarz@… 6 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by kwestarz@…

My router hardware version is v1.1.

Changed 6 years ago by kwestarz@…

comment:2 Changed 6 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

committed in r30477

comment:3 follow-up: Changed 6 years ago by roysjosh@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

This breaks detection on my wrt160n v1:

# dmesg | grep diag
[    4.080000] diag: Detected 'Linksys WRT54G/GS/GL'

Maybe try:

diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 4ac271e..090fc5e 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -1142,16 +1142,18 @@ static struct platform_t __init *platform_detect(void)
 				return &platforms[WRTSL54GS];
 
 			if (!strcmp(boardtype, "0x0472")) {
-				if(!strcmp(getvar("boot_hw_model"), "WRT150N"))
+				if(!strcmp(getvar("boot_hw_model"), "WRT150N")) {
 					if(!strcmp(getvar("boot_hw_ver"), "1"))
 						return &platforms[WRT150NV1];
 					else if(!strcmp(getvar("boot_hw_ver"), "1.1"))
 						return &platforms[WRT150NV11];
-				else if(!strcmp(getvar("boot_hw_model"), "WRT160N"))
+				}
+				else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) {
 					if(!strcmp(getvar("boot_hw_ver"), "1.0"))
 						return &platforms[WRT160NV1];
 					else if(!strcmp(getvar("boot_hw_ver"), "3.0"))
 						return &platforms[WRT160NV3];
+				}
 			}
 
 			/* default to WRT54G */

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

Replying to roysjosh@…:
...

Sure right, my bad :)

comment:5 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from reopened to closed

Committed in r30610.

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.