Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13098 closed defect (too_vague)

Linksys E3200 NVRAM not being properly detected

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

Description

root@OpenWrt:/# nvram info
Magic:         0x48534C46
Length:        0x000067D4
Offset:        0x00001000
CRC8:          0x66 (calculated: 0x66)
Version:       0x01
SDRAM init:    0x0419
SDRAM config:  0x0103
SDRAM refresh: 0x1A5B
NCDL values:   0x5800001A

26580 bytes used / 6188 bytes available (81.12%)

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by hauke

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

A little bit more information on what the problem is and what version of OpenWrt you are using would be helpful.

comment:2 Changed 5 years ago by anonymous

OpenWrt built from revision 35840
Bootlog and nvram info

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Apr 21 02:03:27 HKT 2011 (zhaoguang@sw1)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
This is a Serial Flash
Boot partition size = 262144(0x40000)
Found a 16MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.127.2901 @VERSION_TYPE@
CPU type 0x19749: 500MHz
Tot mem: 65536 KBytes

CFE mem:    0x80700000 - 0x807A0440 (656448)
Data:       0x80735750 - 0x80739790 (16448)
BSS:        0x80739790 - 0x8073A440 (3248)
Heap:       0x8073A440 - 0x8079E440 (409600)
Stack:      0x8079E440 - 0x807A0440 (8192)
Text:       0x80700000 - 0x80735744 (218948)

Boot version: v5.10
The boot is CFE

Flash base: bfc00000, mac start: 3ef00
mac_init(): Find mac [58:6D:8F:??:??:??] in location 0
Nothing...
country_init(): Find country code in location 0
The country is same

### CLKDIV= 0x20e0842, SFlashClkDiv=2 clkdivsf=2 ###

### Change it to 0x20e0842 (2) ###
Device eth0:  hwaddr 58-6D-8F-??-??-??, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
cfe_led_init: start to set power LED and switch LEDs.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
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 (linux@linux) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #1 Fri Mar 1 19:05:04 CET 2013
[    0.000000] CPU revision is: 00019749 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x5357, rev 0x01 and package 0x0A
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x26, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x04, class 0x0)
[    0.000000] bus0: Found M25FL128 serial flash (size: 16384KiB, blocksize: 0x10000, blocks: 256)
[    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 (2416k kernel code, 3964k reserved, 519k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.032000] Calibrating delay loop... 249.34 BogoMIPS (lpj=498688)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.032000] Mount-cache hash table entries: 512
[    0.032000] NET: Registered protocol family 16
[    0.048000] bio: create slab <bio-0> at 0
[    0.052000] Switching to clocksource MIPS
[    0.056000] NET: Registered protocol family 2
[    0.060000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.060000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.060000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.060000] TCP: reno registered
[    0.060000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.060000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.060000] NET: Registered protocol family 1
[    0.060000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1C, class 0x0)
[    0.060000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x03, class 0x0)
[    0.060000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x05, class 0x0)
[    0.060000] bcma: bus0: Core 5 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x02, class 0x0)
[    0.060000] bcma: bus0: Core 6 found: I2S (manuf 0x4BF, id 0x834, rev 0x02, class 0x0)
[    0.060000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x0B, class 0x0)
[    0.084000] can not parse nvram name sb/1/pa0maxpwr(null) with value 400 got -34
[    0.324000] bcma: bus0: Bus registered
[    0.328000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.328000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.328000] msgmni has been set to 120
[    0.328000] io scheduler noop registered
[    0.328000] io scheduler deadline registered (default)
[    0.328000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.352000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A
[    0.704000] console [ttyS0] enabled
[    0.712000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=256, size=16384KB
[    0.720000] bcm47xx_part: bootloader size: 262144
[    0.732000] Found board: "Linksys E3200 V1"
[    0.736000] bcm47xx_part: Looking for dual image
[    0.744000] bcm47xx_part: TRX offset : 0
[    0.748000] 4 bcm47xx partitions found on MTD device bcm47xx-sflash
[    0.752000] Creating 4 MTD partitions on "bcm47xx-sflash":
[    0.760000] 0x000000000000-0x000000040000 : "cfe"
[    0.768000] 0x000000040000-0x000000ff0000 : "linux"
[    0.776000] 0x000000137c00-0x000000ff0000 : "rootfs"
[    0.780000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.796000] mtd: partition "rootfs" set to be root filesystem
[    0.800000] mtd: partition "rootfs_data" created automatically, ofs=330000, len=CC0000
[    0.808000] 0x000000330000-0x000000ff0000 : "rootfs_data"
[    0.816000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.828000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    0.836000] TCP: cubic registered
[    0.840000] NET: Registered protocol family 17
[    0.844000] 8021q: 802.1Q VLAN Support v1.8
[    0.852000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.860000] Freeing unused kernel memory: 164k freed
[    2.532000] diag: kernel found a "Linksys E3200 V1"
[    2.540000] diag: Detected 'Linksys E3200 V1'
[    2.668000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    2.676000] bgmac bcma0:1: TX on ring 0x200 supports unaligned addressing but this feature is not implemented
[    2.684000] bgmac bcma0:1: TX on ring 0x240 supports unaligned addressing but this feature is not implemented
[    2.696000] bgmac bcma0:1: TX on ring 0x280 supports unaligned addressing but this feature is not implemented
[    2.704000] bgmac bcma0:1: TX on ring 0x2C0 supports unaligned addressing but this feature is not implemented
[    2.716000] bgmac bcma0:1: RX on ring 0x200 supports unaligned addressing but this feature is not implemented
[    2.728000] bgmac bcma0:1: Support for Roboswitch not implemented
[    2.764000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    2.900000] roboswitch: Probing device 'eth0'
[    2.988000] roboswitch: found a 53125! at eth0
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    6.600000] jffs2: notice: (305) 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. [    9.072000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[    9.080000] Backport based on wireless-testing.git master-2013-02-22
[    9.088000] compat.git: wireless-testing.git
[    9.124000] cfg80211: Calling CRDA to update world regulatory domain
[    9.128000] cfg80211: World regulatory domain updated:
[    9.136000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.144000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.152000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    9.160000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    9.168000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.172000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.692000] Broadcom 43xx driver loaded [ Features: PNL ]
[    9.808000] PPP generic driver version 2.4.2
[    9.868000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.000000] NET: Registered protocol family 24
[   10.024000] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[   13.736000] device eth0.1 entered promiscuous mode
[   13.740000] device eth0 entered promiscuous mode
[   13.752000] br-lan: port 1(eth0.1) entered forwarding state
[   13.756000] br-lan: port 1(eth0.1) entered forwarding state
[   15.760000] br-lan: port 1(eth0.1) entered forwarding state
root@OpenWrt:/# nvram info
Magic:         0x48534C46
Length:        0x00005DE0
Offset:        0x00001000
CRC8:          0xAB (calculated: 0xAB)
Version:       0x01
SDRAM init:    0x0419
SDRAM config:  0x0103
SDRAM refresh: 0x1A5B
NCDL values:   0x5800001A

24032 bytes used / 8736 bytes available (73.34%)

DD-WRT
Bootlog and nvram show

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Apr 21 02:03:27 HKT 2011 (zhaoguang@sw1)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
This is a Serial Flash
Boot partition size = 262144(0x40000)
Found a 16MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.127.2901 @VERSION_TYPE@
CPU type 0x19749: 500MHz
Tot mem: 65536 KBytes

CFE mem:    0x80700000 - 0x807A0440 (656448)
Data:       0x80735750 - 0x80739790 (16448)
BSS:        0x80739790 - 0x8073A440 (3248)
Heap:       0x8073A440 - 0x8079E440 (409600)
Stack:      0x8079E440 - 0x807A0440 (8192)
Text:       0x80700000 - 0x80735744 (218948)

Boot version: v5.10
The boot is CFE

Flash base: bfc00000, mac start: 3ef00
mac_init(): Find mac [58:6D:8F:??:??:??] in location 0
Nothing...
country_init(): Find country code in location 0
The country is same

### CLKDIV= 0x80e0842, SFlashClkDiv=8 clkdivsf=2 ###

### Change it to 0x20e0842 (2) ###
Device eth0:  hwaddr 58-6D-8F-??-??-??, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
cfe_led_init: start to set power LED and switch LEDs.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3916 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 2.6.24.111 (root@dd-wrt) (gcc version 4.1.2) #10762 Fri Jun 8 03:12:26 CEST 2012
CPU revision is: 00019749
Found a 16MB ST compatible serial flash
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal          0 ->    16384
  HighMem     16384 ->    16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    16384
Built 1 zonelists in Zone order.  Total pages: 16384
Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
CPU: BCM5357 rev 1 at 500 MHz
Using 250.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 58604k/65536k available (3522k kernel code, 6868k reserved, 1366k data, 216k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
PCI: no core
PCI: no core
PCI: Fixing up bus 0
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
et_module_init: passivemode set to 0x0
VID 0 is set in nvram, Ignoring
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.100.138.9
pflash: found no supported devices
bootloader size: 262144
nvram size: 61440
sflash: Filesystem type: squashfs, size=0x1fe89e
partition size = 2102272
Creating 5 MTD partitions on "sflash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x00ff0000 : "linux"
0x0019ec00-0x003a0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x00ff0000-0x01000000 : "nvram"
0x003a0000-0x00ff0000 : "ddwrt"
Broadcom Watchdog Timer: 0.07 initialized.
u32 classifier
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length    128 bytes
PF_RING: ring slots       4096
PF_RING: sample rate      1 [1=no sampling]
PF_RING: capture TX       No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode 1f02
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 216k freed
start service
starting Architecture code for broadcom
done
Booting device: Linksys E3200
loading bcm57xx
loading switch-core
loading switch-robo
roboswitch: Probing device eth0: found a 53125!
/etc/preinit: line 66: can't create /proc/sys/net/ipv4/ip_conntrack_max: nonexistent directory
/etc/preinit: line 66: can't create /proc/sys/net/ipv4/ip_conntrack_max: nonexistent directory
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not permitted
eth1: Numerical result out of range
eth1: Invalid argument
eth1: Invalid argument
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
br0: No such file or directory
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
br0: No such file or directory
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not permitted
eth1: Invalid argument
eth1: Numerical result out of range
eth1: Invalid argument
eth1: Invalid argument
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
device eth1 entered promiscuous mode
br0: port 2(eth1) entering learning state
br0: port 1(vlan1) entering learning state
SIOCGIFFLAGS: No such device
SIOCGIFFLAGSdevice vlan2 entered promiscuous mode
: No such device
device vlan2 left promiscuous mode
br0: topology change detected, propagating
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(vlan1) entering forwarding state
/ # nvram show
...
...
...
---
1243 entries, 26374 bytes used, 35066 bytes free.

comment:3 Changed 5 years ago by anonymous

  • Resolution too_vague deleted
  • Status changed from closed to reopened

comment:4 Changed 5 years ago by hauke

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

Could you also write a sentence what the problems is?

I see that OpenWrt and DD-Wrt are showing different values for used and free nvram, but you do not have to write anything to nvram for OpenWrt, it just reads it to detect the devices and to load the sprom and mac addresses.

If your problem is just that it looks like you can not use that much nvram in OpenWrt I will prioritize this very low because I do not see a problem there.

comment:5 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.