OpenWrt Forum Archive

Topic: Possible support for netgear router with r30639

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Using OpenWrt 'Attitude Adjustment' R30639, please test if OpenWrt works on these devices:

wgr614_v8
wgr614_v9
wndr3300
wndr3400_v1
wndr3400_vcna
wndr4000
wnr834b_v2
wndr3400_v1
wgr614_v8
wnr2000v2
wnr3500L
wnr3500U
wnr3500v2
wnr3500v2

Report back.

Debricking OpenWrt.

I have a Netgear WNR3500L and want to try out this.
But I cannot find target Broadcom bcm47xx in "make menuconfig".
I have edited away the comments in the makefile for bcm47xx

How I do to select target for Netgear WNR3500L device?

(Last edited by sebastian on 7 Mar 2012, 06:30)

Maybe you have to enable "experimental developer options" first.

I tried this on my WNR3500L: The image builds successfully, but I didn't succeed in getting it running. I first tried to flash the .trx from within Tomato, this worked, the router rebooted, CFE is working but then it just says

Loading: .. 3780 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000

and that's it.

My next try was to download the .chk image in CFE mode. I issued a tftpd in CFE and tftp 192.168.1.1 -m binary -c put openwrt-wnr3500L-squashfs.chk on my box, transfer completes, and the router programmed correctly. However, it does not get past the same "Starting program at 0x80001000" as with the trx flash.

Any ideas?

(Last edited by mauritzius on 19 Mar 2012, 23:30)

Flash back to stock and try it from there?

I've checked out r32117, built for bcm47xx and tried flashing openwrt-brcm47xx-squashfs.trx on a Netgear WNR2000v2.
The flashing succeded and the router boots up, but has no network connectivity - I only see "lo" interface in ifconfig.
During bootup I get the following suspicious messages:

[    0.512000] console [ttyS0] enabled
[    0.520000] bcm47xx_pflash: error registering platform driver: -19

[    0.640000] bcm47xx_nflash: error registering platform driver: -19

[    3.948000] diag: Router model not detected.
[    5.080000] roboswitch: Probing device eth0: No such device
[    5.088000] roboswitch: Probing device eth1: No such device
[    5.092000] roboswitch: Probing device eth2: No such device
[    5.100000] roboswitch: Probing device eth3: No such device
[    8.292000] diag: Router model not detected.
- preinit -


I'll keep playing with configuration options to see if I can make it work...

Update:
I've actually run into another issue. Since I get no network in openwrt, the only way for me to reflash the router is via CFE. For some reason though, CFE is no longer accepting firmware images in Netgear .chk format (just displays Reading :: again) and hangs if I feed it a .trx (waited for about 10 minutes and nothing happens. Still boots to openwrt even though the .trx was a ddwrt image):

Start TFTP server
Reading :: Done. 3481600 bytes read
(hung)


I thought the CFE got corrupted somehow, but I've made snapshots of CFE before and after flashing openwrt and they are identical.

(Last edited by dmd on 9 Jun 2012, 01:07)

If anyone is still interested what went wrong with WNR2000v2, here's a short answer: OpenWRT overwrites board_data in the flash, so CFE is no longer able to accept firmware images.
Here's the layout of the flash in WNR2000v2:
0x00000000-0x00040000 : "boot"
0x00040000-0x00390000 : "linux"
0x00122e70-0x00390000 : "rootfs"
0x00390000-0x003a0000 : "ML1"
0x003a0000-0x003b0000 : "ML2"
0x003b0000-0x003c0000 : "T_Meter1"
0x003c0000-0x003d0000 : "T_Meter2"
0x003d0000-0x003e0000 : "POT"
0x003e0000-0x003f0000 : "board_data"
0x003f0000-0x00400000 : "nvram"

I tried it on a WNDR4000... Basically followed the "Easy Build" in the wiki, removed the commented out part in the Makefile, and built it with no other changes.

Here's what I get at bootup:

CFE for WNDR4000 version: v1.0.4
Build Date: Tue Nov 30 17:04:18 CST 2010
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 A0-21-B7-63-88-EE, 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
too long file.
LZMA boot failed
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.3.8 (user@ubuntu) (gcc version 4.6.3 20120201 (prerele                                                                                            ase) (Linaro GCC 4.6-2012.02) ) #1 Fri May 3 09:48:04 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, c                                                                                            lass 0x0)
[    0.000000] bcma: bus0: found serial flash.
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] nvram on flash is bigger than the reserved space in memory, will just                                                                                             copy the first 32768 bytes
[    0.000000] gpiochip_add: registered GPIOs 0 to 15 on device: bcm47xx
[    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 memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1                                                                                            6256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 no                                                                                            initrd 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 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61752k/65536k available (2394k kernel code, 3784k reserved, 36                                                                                            8k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] 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] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    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, c                                                                                            lass 0x0)
[    0.068000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x0                                                                                            4, 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.424000] bcma: bus0: Initializing MIPS core...
[    0.424000] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.424000] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.424000] bcma: bus0: set_irq: core 0x0819, irq 5 => 5
[    0.424000] bcma: bus0: IRQ reconfiguration done
[    0.424000] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I
[    0.424000] bcma: core 0x082c, irq : 2(S)* 3  4  5  6  D  I
[    0.424000] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I
[    0.424000] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I
[    0.424000] bcma: core 0x0819, irq : 2(S)  3  4  5* 6  D  I
[    0.424000] bcma: core 0x0820, irq : 2(S)  3  4  5  6* D  I
[    0.424000] bcma: core 0x082e, irq : 2(S)* 3  4  5  6  D  I
[    0.424000] bcma: core 0x080e, irq : 2(S)* 3  4  5  6  D  I
[    0.424000] bcma: core 0x0834, irq : 2(S)* 3  4  5  6  D  I
[    0.424000] bcma: bus0: PCIEcore in host mode found
[    0.540000] PCI host bridge to bus 0000:00
[    0.540000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.540000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.540000] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.540000] bcma: PCI: Fixing up device 0000:00:00.0
[    0.540000] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.540000] bcma: PCI: Fixing up device 0000:00:00.1
[    0.540000] bcma: PCI: Fixing up addresses 0000:00:01.0
[    0.540000] pci 0000:00:01.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    0.544000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.544000] bcma: PCI: Fixing up device 0000:00:01.0
[    0.544000] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    0.544000] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25,                                                                                             class 0x0)
[    0.544000] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D                                                                                            , class 0x0)
[    0.544000] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class                                                                                             0x0)
[    0.584000] bcma: bus1: invalid sprom read from the PCIe card, try to use fallback                                                                                             sprom
[    0.780000] bcma: bus1: Bus registered
[    0.780000] bcma: bus0: Bus registered
[    0.784000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.784000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c)                                                                                             2001-2006 Red Hat, Inc.
[    0.784000] msgmni has been set to 120
[    0.788000] io scheduler noop registered
[    0.788000] io scheduler deadline registered (default)
[    0.788000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.808000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A
[    1.364000] console [ttyS0] enabled
[    1.372000] bcm47xx_pflash: error registering platform driver: -19
[    1.376000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=128, siz                                                                                            e=8192KB
[    1.388000] bcm47xx_part: bootloader size: 262144
[    1.396000] bcm47xx_part: Looking for dual image
[    1.404000] bcm47xx_part: TRX offset : 0
[    2.048000] bcm47xx_part: Updating TRX offsets and length:
[    2.052000] bcm47xx_part: old trx = [0x0000001c, 0x00000960, 0x000e7800], len=0x00                                                                                            2f1000 crc32=0x313ce1bb
[    2.064000] bcm47xx_part: new trx = [0x0000001c, 0x00000960, 0x000e7800], len=0x00                                                                                            0e7800 crc32=0x68545a8c
[    2.668000] bcm47xx_part: Done
[    2.668000] 4 bcm47xx partitions found on MTD device bcm47xx-sflash
[    2.676000] Creating 4 MTD partitions on "bcm47xx-sflash":
[    2.680000] 0x000000000000-0x000000040000 : "cfe"
[    2.688000] 0x000000040000-0x0000007f0000 : "linux"
[    2.696000] 0x000000127800-0x0000007f0000 : "rootfs"
[    2.704000] mtd: partition "rootfs" must either start or end on erase block bounda                                                                                            ry or be smaller than an erase block -- forcing read-only
[    2.716000] mtd: partition "rootfs" set to be root filesystem
[    2.724000] mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=50                                                                                            0000
[    2.732000] 0x0000002f0000-0x0000007f0000 : "rootfs_data"
[    2.740000] 0x0000007f0000-0x000000800000 : "nvram"
[    2.748000] bcm47xx_nflash: error registering platform driver: -19
[    2.756000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
[    2.764000] TCP cubic registered
[    2.768000] NET: Registered protocol family 17
[    2.772000] 8021q: 802.1Q VLAN Support v1.8
[    2.788000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.796000] Freeing unused kernel memory: 164k freed
[    4.996000] diag: Router model not detected.
[    6.092000] roboswitch: Probing device eth0: No such device
[    6.100000] roboswitch: Probing device eth1: No such device
[    6.104000] roboswitch: Probing device eth2: No such device
[    6.112000] roboswitch: Probing device eth3: No such device
[    9.260000] diag: Router model not detected.
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -

Please press Enter to activate this console. [   16.120000] Compat-drivers backport r                                                                                            elease: compat-drivers-2012-09-04-2-gddac993
[   16.128000] Backport based on wireless-testing.git master-2012-09-07
[   16.136000] compat.git: wireless-testing.git
[   16.172000] cfg80211: Calling CRDA to update world regulatory domain
[   16.176000] cfg80211: World regulatory domain updated:
[   16.184000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, ma                                                                                            x_eirp)
[   16.192000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mB                                                                                            m)
[   16.200000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mB                                                                                            m)
[   16.208000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mB                                                                                            m)
[   16.216000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mB                                                                                            m)
[   16.224000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mB                                                                                            m)
[   16.312000] roboswitch: Probing device eth0: No such device
[   16.316000] roboswitch: Probing device eth1: No such device
[   16.324000] roboswitch: Probing device eth2: No such device
[   16.328000] roboswitch: Probing device eth3: No such device
[   16.836000] b43-phy0: Broadcom 4331 WLAN found (core revision 29)
[   16.840000] b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 9, Type 7 (HT), Revision                                                                                             1)
[   16.848000] b43: probe of bcma1:0 failed with error -122
[   16.856000] b43-phy1: Broadcom 4716 WLAN found (core revision 17)
[   16.860000] b43-phy1: Found PHY: Analog 8, Type 4 (N), Revision 5
[   16.868000] Broadcom 43xx driver loaded [ Features: PNL ]
[   16.896000] Broadcom 43xx-legacy driver loaded [ Features: PLID ]
[   17.140000] PPP generic driver version 2.4.2
[   17.512000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.648000] NET: Registered protocol family 24
[   17.676000] nf_conntrack version 0.5.0 (967 buckets, 3868 max)
[   33.812000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   33.828000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   33.832000] jffs2_build_filesystem(): erasing all blocks after the end marker... d                                                                                            one.
[   72.252000] JFFS2 notice: (819) jffs2_build_xattr_subsystem: complete building xat                                                                                            tr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) fo                                                                                            und.



BusyBox v1.19.4 (2013-05-03 09:35:12 PDT) 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
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (12.09, r36088)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:805 errors:0 dropped:0 overruns:0 frame:0
          TX packets:805 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:54740 (53.4 KiB)  TX bytes:54740 (53.4 KiB)

Wifi seems to be OK (after wifi enable), but ethernet is not working.

Any suggestions what I should try next?

(Last edited by taka on 3 May 2013, 20:21)

Actually, it seems to be working fine in the trunk release. I guess I should have tried that first! I just need to figure out how to make 802.11n / 5 GHz work now...

@taka
Did you figure out how to make 802.11n and 5 GHz work on WNDR4000?

Hi
I have a Netgear WNR3500v2.
Tested "openwrt-wnr3500v2-squashfs.chk": http://downloads.openwrt.org/snapshots/ … uashfs.chk
Seems to work fine but I cannot get the LuCI interface... I guess it's because Luci is not included in this firmware.
I´ve tried installing through SSH:
opkg update
opkg install luci
but no success because not enough flash space.

Is there any way to install a minimal web interface?
thanks.

The discussion might have continued from here.