On 13-03-19 11:27 PM, Rafał Miłecki wrote:
> 2013/3/20 Owen Kirby <o...@exegin.com>:
>> I recently picked up a WNDR3700 to put OpenWRT on, and only after tearing 
>> into the box did I find it
>> was one of the v3 boards, with poor OpenWRT support. This patch should add 
>> the board detection and
>> LED/button control to the broadcom-diag module, and should generate a 
>> netgear .chk image that the
>> bootloader and stock firmware will accept.
>>
>> The changes to the broadcom-diag module are more than a few lines because 
>> the WNDR3700v3 is driving
>> its LEDs through an HC164 8-bit shift register.
> Wow, thanks for looking at this! Could you provide us booting log, please?
>
And here is the OpenWRT boot log:

Decompressing..........done
Decompressing..........done


CFE for WNDR3700v3 version: v1.0.6
Build Date: Wed May 18 17:25:10 CST 2011 
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 2010.09.30.0
CPU type 0x19740: 480MHz
Tot mem: 65536 KBytes

Device eth0:  hwaddr C0-3F-0E-17-09-E2, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
Loading: Failed.
Could not load 192.168.1.2:vmlinuz: Timeout occured
Checksum length overflow!
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3780 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
[    0.000000] Linux version 3.6.11 (osk@argon) (gcc version 4.6.4 20121210 
(prerelease) (Linaro GCC 4.6-2012.12) ) #21 Tue Mar 19 19:08:16 PDT 2013
[    0.000000] CPU revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 
0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 
0x01, class 0x0)
[    0.000000] bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 
0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 
bytes
[    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] __ex_table already sorted, skipping sort
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61572k/65536k available (2415k kernel code, 3964k 
reserved, 520k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.032000] Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.032000] Mount-cache hash table entries: 512
[    0.032000] NET: Registered protocol family 16
[    0.052000] bio: create slab <bio-0> at 0
[    0.056000] Switching to clocksource MIPS
[    0.064000] NET: Registered protocol family 2
[    0.064000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.064000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.064000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.064000] TCP: reno registered
[    0.064000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.064000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.064000] NET: Registered protocol family 1
[    0.068000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, 
rev 0x11, class 0x0)
[    0.068000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 
0x00, class 0x0)
[    0.068000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, 
rev 0x04, class 0x0)
[    0.068000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, 
class 0x0)
[    0.068000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 
0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.068000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 
0x80E, rev 0x07, class 0x0)
[    0.068000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, 
class 0x0)
[    0.420000] bcma: bus0: PCIEcore in host mode found
[    0.596000] PCI host bridge to bus 0000:00
[    0.596000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.596000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.596000] pci_bus 0000:00: No busn resource found for root bus, will use 
[bus 00-ff]
[    0.596000] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.596000] bcma: PCI: Fixing up device 0000:00:00.0
[    0.596000] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.596000] bcma: PCI: Fixing up device 0000:00:00.1
[    0.596000] bcma: PCI: Fixing up addresses 0000:00:01.0
[    0.596000] pci 0000:00:01.0: BAR 0: assigned [mem 0x08000000-0x08003fff 
64bit]
[    0.596000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.596000] bcma: PCI: Fixing up device 0000:00:01.0
[    0.600000] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    0.600000] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 
0x25, class 0x0)
[    0.600000] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, 
rev 0x1D, class 0x0)
[    0.600000] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, 
class 0x0)
[    0.640000] bcma: bus1: invalid sprom read from the PCIe card, try to use 
fallback sprom
[    0.808000] bcma: bus1: Bus registered
[    0.812000] bcma: bus0: Bus registered
[    0.816000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.816000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.816000] msgmni has been set to 120
[    0.816000] io scheduler noop registered
[    0.816000] io scheduler deadline registered (default)
[    0.820000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.840000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A
[    1.312000] console [ttyS0] enabled
[    1.320000] bcm47xx_sflash: found serial flash: blocksize=64KB, 
numblocks=128, size=8192KB
[    1.332000] bcm47xx_part: bootloader size: 262144
[    1.344000] Found board: "Netgear WNDR3700 V3"
[    1.348000] bcm47xx_part: Looking for dual image
[    1.356000] bcm47xx_part: TRX offset : 0
[    1.360000] 5 bcm47xx partitions found on MTD device bcm47xx-sflash
[    1.364000] Creating 5 MTD partitions on "bcm47xx-sflash":
[    1.372000] 0x000000000000-0x000000040000 : "cfe"
[    1.380000] 0x000000040000-0x0000007e0000 : "linux"
[    1.388000] 0x000000137c00-0x0000007e0000 : "rootfs"
[    1.392000] mtd: partition "rootfs" must either start or end on erase block 
boundary or be smaller than an erase block -- forcing read-only
[    1.408000] mtd: partition "rootfs" set to be root filesystem
[    1.412000] mtd: partition "rootfs_data" created automatically, ofs=310000, 
len=4D0000 
[    1.420000] 0x000000310000-0x0000007e0000 : "rootfs_data"
[    1.428000] 0x0000007f0000-0x000000800000 : "nvram"
[    1.436000] 0x0000007e0000-0x0000007f0000 : "board_data"
[    1.448000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 
seconds)
[    1.456000] TCP: cubic registered
[    1.460000] NET: Registered protocol family 17
[    1.464000] 8021q: 802.1Q VLAN Support v1.8
[    1.480000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.488000] Freeing unused kernel memory: 164k freed
[    3.528000] diag: kernel found a "Netgear WNDR3700 V3"
[    3.532000] diag: Detected 'Netgear WNDR3700 V3'
[    3.612000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    3.620000] bgmac bcma0:1: Support for Roboswitch not implemented
[    3.648000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    3.848000] roboswitch: Probing device 'eth0'
[    3.944000] roboswitch: found a 53115! at eth0
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    7.628000] jffs2: notice: (326) jffs2_build_xattr_subsystem: complete 
building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 6 of xref (0 
dead, 0 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. [   11.460000] wl: module license 
'unspecified' taints kernel.
[   11.468000] Disabling lock debugging due to kernel taint
[   11.624000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
[   11.628000] SSB/BCMA glue driver successfully attached
[   11.636000] bcma: PCI: Fixing up device 0000:00:01.0
[   11.680000] wl1: 5.10.56.27 driver failed with code 11
[   11.688000] Memory leak of bytes 20
[   11.720000] PPP generic driver version 2.4.2
[   11.852000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.984000] NET: Registered protocol family 24
[   12.008000] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[   16.388000] device eth0.1 entered promiscuous mode
[   16.392000] device eth0 entered promiscuous mode
[   16.400000] br-lan: port 1(eth0.1) entered forwarding state
[   16.404000] br-lan: port 1(eth0.1) entered forwarding state
[   18.408000] br-lan: port 1(eth0.1) entered forwarding state


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to