Hi all,
I have a bcm6358 based router and try to run Owrt on it.
The device info are (from http://192.168.1.1/):
Board ID: 96358VW2
Software Version: 3.10L.02.A2pB022g.d20h
Bootloader (CFE) Version: 1.0.37-10.3
Wireless Driver Version: 4.150.10.5.cpe2.0
and dmesg:
[root@AntoPC001 urjtag-0.10]# telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
Login: admin
Password:
Login incorrect. Try again.
Login: admin
Password:
> sh
BusyBox v1.00 (2009.07.23-06:50+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
# dmesg
Linux version 2.6.8.1 (root@localhost.localdomain) (gcc version 3.4.2) #1 Thu Jul 23 14:43:34 CST 2009
Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
96358VW2 prom init
CPU revision is: 0002a010
Determined physical RAM map:
memory: 01fa0000 @ 00000000 (usable)
On node 0 totalpages: 8096
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 4000 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=31:0 ro noinitrd console=ttyS0,115200
brcm mips: enabling icache and dcache...
Primary instruction cache 32kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB 2-way, linesize 16 bytes.
PID hash table entries: 128 (order 7: 1024 bytes)
Using 150.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29516k/32384k available (1757k kernel code, 2824k reserved, 486k data, 76k init, 0k highmem)
Calibrating delay loop... 299.00 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Total Flash size: 16384K with 128 sectors
File system address: 0xbe7e0100
Can't analyze prologue code at 801c5c74
SCSI subsystem initialized
usbcore: registered new driver hub
Initializing Cryptographic API
PPP generic driver version 2.4.2
NET: Registered protocol family 24
Using noop io scheduler
bcm963xx_mtd driver v1.0
PCI: Enabling device 0000:00:0a.0 (0000 -> 0002)
ehci_hcd 0000:00:0a.0: EHCI Host Controller
PCI: Setting latency timer of device 0000:00:0a.0 to 64
ehci_hcd 0000:00:0a.0: irq 18, pci mem c0000300
ehci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 1
PCI: cache line size of 32 is not supported by device 0000:00:0a.0
ehci_hcd 0000:00:0a.0: USB f.f enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
PCI: Enabling device 0000:00:09.0 (0000 -> 0002)
ohci_hcd 0000:00:09.0: OHCI Host Controller
PCI: Setting latency timer of device 0000:00:09.0 to 64
ohci_hcd 0000:00:09.0: irq 13, pci mem c0001400
ohci_hcd 0000:00:09.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
brcmboard: brcm_board_init entry
SES: Button Interrupt 0x3 is enabled
XXXXXXX: wifiBtn_mapIntr Enter
XXXXXX: WIFI: Button Interrupt 0x0 is enabled
SES: LED GPIO 0x8018 is enabled
Serial: BCM63XX driver $Revision: 3.00 $
ttyS0 at MMIO 0xfffe0100 (irq = 10) is a BCM63XX
ttyS1 at MMIO 0xfffe0120 (irq = 11) is a BCM63XX
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Ebtables v2.0 registered
NET: Registered protocol family 8
NET: Registered protocol family 20
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 76k freed
Algorithmics/MIPS FPU Emulator v1.5
atmapi: module license 'Proprietary' taints kernel.
adsl: adsl_init entry
blaadd: blaa_detect entry
fuse init (API version 7.8)
fuse distribution version: 2.7.3
BCMPROCFS v1.0 initialized
BCM6358A1 Ethernet Network Device v0.3 Jul 23 2009 14:41:34
Config Ethernet Switch Through MDIO Pseudo PHY Interface
switch type = BCM5325E.
dgasp: kerSysRegisterDyingGaspHandler: eth0 registered
eth0: MAC Address: 00:1F:A3:7F:F0:4B
PCI: Setting latency timer of device 0000:00:01.0 to 64
PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
wl: srom not detected, using main memory mapped srom info (wombo board)
wl0: wlc_attach: use mac addr from the system pool by id: 0x776c0000
wl0: MAC Address: 00:1F:A3:7F:F0:4C
wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5.cpe2.0
dgasp: kerSysRegisterDyingGaspHandler: wl0 registered
eth0 Link UP.
BcmAdsl_Initialize=0xC005D3D8, g_pFnNotifyCallback=0xC00762B4
AnnexCParam=0x7FFF7EA8 AnnexAParam=0x00000980 adsl2=0x00000000
pSdramPHY=0xA1FFFFF8, 0xFF00FF0 0xFF00FF0
AdslCoreHwReset: AdslOemDataAddr = 0xA1FFD3D4
AnnexCParam=0x7FFF7EA8 AnnexAParam=0x00000980 adsl2=0x00000000
dgasp: kerSysRegisterDyingGaspHandler: dsl0 registered
ATM proc init !!!
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
____________0x0______
device wl0 entered promiscuous mode
br0: port 2(wl0) entering learning state
br0: topology change detected, propagating
br0: port 2(wl0) entering forwarding state
device nas_0_8_35 entered promiscuous mode
br0: port 3(nas_0_8_35) entering learning state
br0: topology change detected, propagating
br0: port 3(nas_0_8_35) entering forwarding state
device eth0 left promiscuous mode
br0: port 1(eth0) entering disabled state
device wl0 left promiscuous mode
br0: port 2(wl0) entering disabled state
device nas_0_8_35 left promiscuous mode
br0: port 3(nas_0_8_35) entering disabled state
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
device wl0 entered promiscuous mode
br0: port 2(wl0) entering learning state
br0: topology change detected, propagating
br0: port 2(wl0) entering forwarding state
device nas_0_8_35 entered promiscuous mode
br0: port 3(nas_0_8_35) entering learning state
br0: topology change detected, propagating
br0: port 3(nas_0_8_35) entering forwarding state
eth0 Link DOWN.
br0: port 1(eth0) entering disabled state
br0: port 1(eth0) entering disabled state
eth0 Link UP.
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
# cat /proc/mtd
dev: size erasesize name
mtd0: 002f8000 00008000 "Physically mapped flash"
#
#
#
# sysinfo
Number of processes: 25
12:12am up 12 min,
load average: 1 min:0.00, 5 min:0.00, 15 min:0.00
total used free shared buffers
Mem: 29636 15224 14412 0 1664
Swap: 0 0 0
Total: 29636 15224 14412
#
#
#
# cat /proc/cpuinfo
system type : 96358VW2
processor : 0
cpu model : BCM6358 V1.0
BogoMIPS : 299.00
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : no
hardware watchpoint : no
unaligned access : 19375
VCED exceptions : not available
VCEI exceptions : not available
#
I work with Owrt svn r 17505.
I add the following patch:
Index: target/linux/brcm63xx/image/Makefile
===================================================================
--- target/linux/brcm63xx/image/Makefile (revision 17505)
+++ target/linux/brcm63xx/image/Makefile (working copy)
@@ -45,6 +45,14 @@
-v 8 -m IMAGE -k 0x20000 -n $(4) -t $(5)
endef
+define Image/Build/RG100A
+ # Generate the tagged image
+ $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
+ -o $(BIN_DIR)/openwrt-$(6)-$(1)-$(7)-cfe.bin \
+ -b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR) \
+ -k 0x20000 -n $(4) -t $(5)
+endef
+
define Image/Build/RedBoot
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(1)-vmlinux.elf
gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
@@ -172,6 +180,9 @@
# Pirelli A226G
$(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x10000,bccfe,,bccfe)
$(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x10000,ag306,DWV_96358,a226g)
+ # RG100A,DB120 etc.
+ $(call Image/Build/RG100A,$(1),96358VW2,6358,0x20000,bc310,rg100a,bc310)
+ $(call Image/Build/RG100A,$(1),96358VW2,6358,0x20000,bc300,db120,bc300)
endef
$(eval $(call BuildImage))
I stop CFE autostart and write openwrt-rg100a-squashfs-bc310-cfe.bin with browser.
CFE version 1.0.37-10.3 for BCM96358 (32bit,SP,BE)
Build Date: Thu Dec 18 17:13:09 HKT 2008 (root@lijian)
Copyright (C) 2000-2006 Broadcom Corporation.
Boot Address 0xbe000000
Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
Flash Layout: Boot[127,0xbefe0000] Kern[1,0xbe020000]
AuxFS[125,0xbefa0000] Misc[125,0xbefa0000] PSI[127,0xbefe0000]
Flash RootFS Partition Length: 16252928
CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Total memory used by CFE: 0x80401000 - 0x805289D0 (1210832)
Initialized Data: 0x8041E110 - 0x804201D0 (8384)
BSS Area: 0x804201D0 - 0x804269D0 (26624)
Local Heap: 0x804269D0 - 0x805269D0 (1048576)
Stack Area: 0x805269D0 - 0x805289D0 (8192)
Text (code) segment: 0x80401000 - 0x8041E110 (119056)
Boot area (physical): 0x00529000 - 0x00569000
Relocation Factor: I:00000000 - D:00000000
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Gateway IP address : 192.168.1.100
Run from flash/host (f/h) : f
Default host run file name : vmlinux
Default host flash file name : bcm963xx_fs_kernel
Boot delay (0-9 seconds) : 1
Board Id (0-8) : 96358VW2
Number of MAC Addresses (1-32) : 11
Base MAC Address : 00:1f:a3:7f:f0:14
PSI Size (1-64) KBytes : 24
Flash Block Size (1-128) in KBytes: 0
Auxillary File System Size Percent: 0
Main Thread Number [0|1] : 0
udp_send finished
No answer .auto boot ...
*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 1
web info: Waiting for connection on socket 0.
web info: Waiting for connection on socket 1.
web info: Waiting for connection on socket 0.
web info: Waiting for connection on socket 1.
web info: Upload 2359300 bytes, Broadcom image format.
CFE>
Flashing root file system and kernel at 0xbe7e0000: ...................
.
*** Image flash done *** !
Resetting board...
CFE version 1.0.37-10.3 for BCM96358 (32bit,SP,BE)
Build Date: Thu Dec 18 17:13:09 HKT 2008 (root@lijian)
Copyright (C) 2000-2006 Broadcom Corporation.
Boot Address 0xbe000000
Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
Flash Layout: Boot[127,0xbefe0000] Kern[1,0xbe020000]
AuxFS[125,0xbefa0000] Misc[125,0xbefa0000] PSI[127,0xbefe0000]
Flash RootFS Partition Length: 16252928
CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Total memory used by CFE: 0x80401000 - 0x805289D0 (1210832)
Initialized Data: 0x8041E110 - 0x804201D0 (8384)
BSS Area: 0x804201D0 - 0x804269D0 (26624)
Local Heap: 0x804269D0 - 0x805269D0 (1048576)
Stack Area: 0x805269D0 - 0x805289D0 (8192)
Text (code) segment: 0x80401000 - 0x8041E110 (119056)
Boot area (physical): 0x00529000 - 0x00569000
Relocation Factor: I:00000000 - D:00000000
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Gateway IP address : 192.168.1.100
Run from flash/host (f/h) : f
Default host run file name : vmlinux
Default host flash file name : bcm963xx_fs_kernel
Boot delay (0-9 seconds) : 1
Boot image (0=latest, 1=previous) : 0
Board Id (0-8) : 96358VW2
Number of MAC Addresses (1-32) : 11
Base MAC Address : 00:1f:a3:7f:f0:14
PSI Size (1-64) KBytes : 24
Flash Block Size (1-128) in KBytes: 0
Auxillary File System Size Percent: 0
Main Thread Number [0|1] : 0
udp_send finished
No answer .auto boot ...
*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 0
Booting from latest image (0xbe7e0000) ...
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.30 (antonello@AntoPC001) (gcc version 4.1.2) #15 Mon Sep 14
12:42:13 CEST 2009
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300000000 Hz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: CFE version: 1.0.37-10.3
board_bcm963xx: invalid nvram checksum
console [early0] enabled
CPU revision is: 0002a010 (Broadcom BCM6358)
Kernel panic - not syncing: unable to detect bcm963xx board
Next, I add the followinf patch:
--- arch/mips/bcm63xx/boards/board_bcm963xx.c 2009-09-14 12:53:14.000000000 +0200
+++ arch/mips/bcm63xx/boards/board_bcm963xx.c.orig 2009-09-14 12:37:49.000000000 +0200
@@ -639,12 +639,9 @@
val += *p;
if (val) {
printk(KERN_ERR PFX "invalid nvram checksum\n");
- printk(KERN_ERR PFX "STUB: force board to type 96358VW2!!!!!\n");
- //return;
+ return;
}
- strcpy(nvram.name, "96358VW2");
-
/* find board by name */
for (i = 0; i < ARRAY_SIZE(bcm963xx_boards); i++) {
if (strncmp(nvram.name, bcm963xx_boards[i]->name,
Now owrt provides support up to console.
*** Image flash done *** !
Resetting board...
CFE version 1.0.37-10.3 for BCM96358 (32bit,SP,BE)
Build Date: Thu Dec 18 17:13:09 HKT 2008 (root@lijian)
Copyright (C) 2000-2006 Broadcom Corporation.
Boot Address 0xbe000000
Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV320MT, id 0x2201, size 16384KB
Flash Layout: Boot[127,0xbefe0000] Kern[1,0xbe020000]
AuxFS[125,0xbefa0000] Misc[125,0xbefa0000] PSI[127,0xbefe0000]
Flash RootFS Partition Length: 16252928
CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz
CPU running TP0
Total memory: 33554432 bytes (32MB)
Total memory used by CFE: 0x80401000 - 0x805289D0 (1210832)
Initialized Data: 0x8041E110 - 0x804201D0 (8384)
BSS Area: 0x804201D0 - 0x804269D0 (26624)
Local Heap: 0x804269D0 - 0x805269D0 (1048576)
Stack Area: 0x805269D0 - 0x805289D0 (8192)
Text (code) segment: 0x80401000 - 0x8041E110 (119056)
Boot area (physical): 0x00529000 - 0x00569000
Relocation Factor: I:00000000 - D:00000000
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Gateway IP address : 192.168.1.100
Run from flash/host (f/h) : f
Default host run file name : vmlinux
Default host flash file name : bcm963xx_fs_kernel
Boot delay (0-9 seconds) : 1
Boot image (0=latest, 1=previous) : 0
Board Id (0-8) : 96358VW2
Number of MAC Addresses (1-32) : 11
Base MAC Address : 00:1f:a3:7f:f0:14
PSI Size (1-64) KBytes : 24
Flash Block Size (1-128) in KBytes: 0
Auxillary File System Size Percent: 0
Main Thread Number [0|1] : 0
udp_send finished
No answer .auto boot ...
*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 0
Booting from latest image (0xbe7e0000) ...
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.30 (antonello@AntoPC001) (gcc version 4.1.2) #16 Mon Sep 14
12:55:44 CEST 2009
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300000000 Hz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: CFE version: 1.0.37-10.3
board_bcm963xx: invalid nvram checksum
board_bcm963xx: STUB: force board to type 96358VW2!!!!!
console [early0] enabled
CPU revision is: 0002a010 (Broadcom BCM6358)
board_bcm963xx: board name: 96358VW2
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons
ole=ttyS0,115200
Primary instruction cache 32kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29956k/32768k available (1851k kernel code, 2812k reserved, 330k data, 1
28k init, 0k highmem)
Calibrating delay loop... 299.00 BogoMIPS (lpj=598016)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
board_bcm963xx: not enough mac address
board_bcm963xx: not enough mac address
board_bcm963xx: not enough mac address
registering PCI controller with io_map_base unset
bus: 00 index 0 io port: [8000000, 800ffff]
bus: 00 index 1 mmio: [30000000, 37ffffff]
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
ssb: WARNING: Invalid SPROM CRC (corrupt SPROM)
ssb: Unsupported SPROM revision 0 detected. Will extract v1
ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
audit: initializing netlink socket (disabled)
type=2000 audit(0.385:1): initialized
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) ?© 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0100 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm963xx_flash: 0x02000000 at 0x1e000000
Number of erase regions: 1
Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0040
Alternative Vendor Command Set: 0000 (None)
No Alternate Algorithm Table
Vcc Minimum: 2.7 V
Vcc Maximum: 3.6 V
No Vpp line
Typical byte/word write timeout: 64 ?µs
Maximum byte/word write timeout: 512 ?µs
Typical full buffer write timeout: 64 ?µs
Maximum full buffer write timeout: 2048 ?µs
Typical block erase timeout: 512 ms
Maximum block erase timeout: 4096 ms
Typical chip erase timeout: 524288 ms
Maximum chip erase timeout: 2097152 ms
Device size: 0x1000000 bytes (16 MiB)
Flash Device Interface description: 0x0002
- supports x8 and x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 0x40
Number of Erase Block Regions: 1
Erase Region #0: BlockSize 0x20000 bytes, 128 blocks
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
bcm963xx: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6, board type 96358VW2, and tagi
d bc300.
bcm963xx_flash: Partition 0 is CFE offset 2000081c17de8 and length c0060100800cc
37c
bcm963xx_flash: Partition 1 is kernel offset bff0081c17de8 and length c006010080
0cc37c
bcm963xx_flash: Partition 2 is rootfs offset f0000081c17de8 and length c00601008
00cc37c
bcm963xx_flash: Partition 3 is nvram offset 2000081c17de8 and length c0060100800
cc37c
bcm963xx_flash: Partition 4 is linux offset fc000081c17de8 and length c006010080
0cc37c
bcm963xx_flash: Spare partition is 260000 offset and length d80000
Creating 5 MTD partitions on "bcm963xx":
0x00000000-0x00020000 : "CFE"
0x00020100-0x000e0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-o
nly
0x000e0000-0x00fe0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=260000, len=D80000
0x00260000-0x00fe0000 : "rootfs_data"
0x00fe0000-0x01000000 : "nvram"
0x00020000-0x00fe0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: adsl
Registered led device: ppp-fail
Registered led device: power
Registered led device: stop
Registered led device: <NULL>
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press CTRL-C for failsafe
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -
Please press Enter to activate this console. cfg80211: Calling CRDA to update wo
rld regulatory domain
roboswitch: Probing device eth0: No such device
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
BusyBox v1.13.4 (2009-09-03 13:25:00 CEST) 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
KAMIKAZE (bleeding edge, r17505) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00020000 "CFE"
mtd1: 000bff00 00020000 "kernel"
mtd2: 00f00000 00020000 "rootfs"
mtd3: 00d80000 00020000 "rootfs_data"
mtd4: 00020000 00020000 "nvram"
mtd5: 00fc0000 00020000 "linux"
root@OpenWrt:/# hexdump -C /dev/mtd0 | grep cfe-v
00000570 63 66 65 2d 76 01 00 25 0a 03 00 00 00 00 00 00 |cfe-v..%........|
root@OpenWrt:/# hexdump -C /dev/mtd0 | grep 00000580
00000580 0f 1e 2d 3c 00 00 00 00 00 00 00 00 00 00 00 00 |..-<............|
root@OpenWrt:/# hexdump -C /dev/mtd0 | grep CFE1
000004e0 43 46 45 31 43 46 45 31 00 00 00 00 00 00 00 00 |CFE1CFE1........|
00000500 10 00 02 ba 00 00 00 00 43 46 45 31 43 46 45 31 |........CFE1CFE1|
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# hexdump -C /dev/mtd4 | grep 00000580
00000580 00 00 00 04 65 3d 31 39 32 2e 31 36 38 2e 31 2e |....e=192.168.1.|
root@OpenWrt:/#
You can see from the hexdump that the problem is in extracting nvram data.
The onboard flash is uniform 16Mbytes with 0x20000 sector size, and nvram
seems to be on the last sector.
I then removed the previous change and included the following:
--- arch/mips/bcm63xx/boards/board_bcm963xx.c 2009-09-14 13:13:38.000000000 +0200
+++ arch/mips/bcm63xx/boards/board_bcm963xx.c.orig 2009-09-14 12:37:49.000000000 +0200
@@ -626,7 +626,7 @@
printk(KERN_INFO PFX "CFE version: %s\n", cfe_version);
/* extract nvram data */
- memcpy(&nvram, boot_addr + BCM963XX_NVRAM_OFFSET + (0x20000*127), sizeof(nvram));
+ memcpy(&nvram, boot_addr + BCM963XX_NVRAM_OFFSET, sizeof(nvram));
/* check checksum before using data */
if (nvram.version <= 4)
The console output:
Starting program at 0x80010000
Linux version 2.6.27.30 (antonello@AntoPC001) (gcc version 4.1.2) #17 Mon Sep 14 13:16:00 CEST 2009
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300000000 Hz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: CFE version: 1.0.37-10.3
console [early0] enabled
CPU revision is: 0002a010 (Broadcom BCM6358)
board_bcm963xx: board name: 96358VW2
.......................
........................
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x02000000 at 0x1e000000
Number of erase regions: 1
Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0040
Alternative Vendor Command Set: 0000 (None)
No Alternate Algorithm Table
Vcc Minimum: 2.7 V
Vcc Maximum: 3.6 V
No Vpp line
Typical byte/word write timeout: 64 µs
Maximum byte/word write timeout: 512 µs
Typical full buffer write timeout: 64 µs
Maximum full buffer write timeout: 2048 µs
Typical block erase timeout: 512 ms
Maximum block erase timeout: 4096 ms
Typical chip erase timeout: 524288 ms
Maximum chip erase timeout: 2097152 ms
Device size: 0x1000000 bytes (16 MiB)
Flash Device Interface description: 0x0002
- supports x8 and x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 0x40
Number of Erase Block Regions: 1
Erase Region #0: BlockSize 0x20000 bytes, 128 blocks
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
bcm963xx: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6, board type 96358VW2, and tagid bc300.
bcm963xx_flash: Partition 0 is CFE offset 2000081c17de8 and length c0066100800cc37c
bcm963xx_flash: Partition 1 is kernel offset bff0081c17de8 and length c0066100800cc37c
bcm963xx_flash: Partition 2 is rootfs offset f0000081c17de8 and length c0066100800cc37c
bcm963xx_flash: Partition 3 is nvram offset 2000081c17de8 and length c0066100800cc37c
bcm963xx_flash: Partition 4 is linux offset fc000081c17de8 and length c0066100800cc37c
bcm963xx_flash: Spare partition is 260000 offset and length d80000
Creating 5 MTD partitions on "bcm963xx":
0x00000000-0x00020000 : "CFE"
0x00020100-0x000e0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000e0000-0x00fe0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=260000, len=D80000
0x00260000-0x00fe0000 : "rootfs_data"
0x00fe0000-0x01000000 : "nvram"
0x00020000-0x00fe0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: adsl
Registered led device: ppp-fail
Registered led device: power
Registered led device: stop
Registered led device: <NULL>
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press CTRL-C for failsafe
switching to jffs2
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580000: 0x3600 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580004: 0x4272 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580008: 0x6463 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0058000c: 0x2043 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580010: 0x706f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580014: 0x7469 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580018: 0x7665 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0058001c: 0x2032 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580028: 0x3538 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0058002c: 0x3936 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x005899ac
You cannot use older JFFS2 filesystems with newer kernels
Old JFFS2 bitmask found at 0x0058a07c
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0000: 0x5e51 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0004: 0xd8e7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0008: 0xee4f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a000c: 0xf5a1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0010: 0xe9cc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0014: 0xded3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0018: 0x66e2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a001c: 0x2675 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0020: 0x077a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0024: 0x5c54 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0000: 0x97a7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0004: 0x6c97 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0008: 0xb3e1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c000c: 0xfcef instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0010: 0xd8ab instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0014: 0xd51d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0018: 0x50ec instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c001c: 0x4561 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0020: 0x4eb3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0024: 0x2547 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x005c5ed8
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0000: 0x4a2a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0004: 0x7af9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0008: 0x8987 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e000c: 0x6389 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0010: 0x61b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0014: 0x590f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0018: 0xd218 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e001c: 0xb38b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0020: 0x8b2d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005e0024: 0xb078 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x005f0be8
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600000: 0xf41c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600004: 0xfb98 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600008: 0x437e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0060000c: 0x2ba2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600010: 0xfbfc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600014: 0xa60b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600018: 0x913c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0060001c: 0x9d39 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600020: 0x1870 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00600024: 0xb901 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620000: 0xf886 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620004: 0x690a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620008: 0x7891 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0062000c: 0x4041 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620010: 0xedd1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620014: 0xff02 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620018: 0x5016 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0062001c: 0x7816 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620020: 0xf41c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00620024: 0x86ab instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640000: 0x7371 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640008: 0x0008 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0064000c: 0x02b7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640010: 0x0907 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640014: 0x7000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640018: 0x7808 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0064001c: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640020: 0x82bf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640024: 0x4001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00640028: 0xae26 instead
Further such events for this erase block will not be printed
Empty flash at 0x00640070 ends at 0x00640074
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660000: 0x8197 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660004: 0x7030 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660008: 0x6f6e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0066000c: 0xb7bb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660010: 0x98fd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660014: 0xe886 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660018: 0xb5a4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0066001c: 0x3f01 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660020: 0x4225 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00660024: 0xd6bf instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680000: 0xde64 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680004: 0xd6e3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680008: 0xed7e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0068000c: 0x71d1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680010: 0x658a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680014: 0xbb70 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680018: 0xdbad instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0068001c: 0x1e46 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680020: 0x3117 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00680024: 0x8ad4 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0000: 0x343b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0004: 0x9d3c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0008: 0x79c7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a000c: 0x4f0a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0010: 0x9d3b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0014: 0xe8bb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0018: 0xdc03 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a001c: 0x2349 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0020: 0x9939 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0024: 0xf6d4 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0000: 0x6151 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0004: 0x957e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0008: 0x60de instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c000c: 0xee1d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0010: 0x52a7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0014: 0x44e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0018: 0x7c93 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c001c: 0x7656 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0020: 0x9581 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006c0024: 0x5c32 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0000: 0xc93d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0004: 0x8bf6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0008: 0x4161 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e000c: 0x11d5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0010: 0x79d4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0014: 0x7d29 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0018: 0x1b88 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e001c: 0x91ae instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0020: 0xd228 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006e0024: 0xbc59 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700000: 0x1ace instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700004: 0xacfe instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700008: 0x6fd9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0070000c: 0x727d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700010: 0xab20 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700014: 0x6084 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700018: 0x9071 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0070001c: 0x0d60 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700020: 0xd032 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00700024: 0xc73d instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720000: 0x5ece instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720004: 0xc42e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720008: 0x4f1e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0072000c: 0xc947 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720010: 0x3fe7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720014: 0xd2a2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720018: 0x6bbc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0072001c: 0x9362 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720020: 0x301f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00720024: 0xb129 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x007277fc
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740000: 0x3816 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740004: 0xeef7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740008: 0xd697 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0074000c: 0xe0d8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740010: 0x9832 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740014: 0x8f1a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740018: 0x1d7a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0074001c: 0xe995 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740020: 0x9f32 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00740024: 0x484c instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x007509cc
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760000: 0x4c0e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760004: 0x117a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760008: 0xbda8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0076000c: 0xa22a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760010: 0x5768 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760014: 0x9aa9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760018: 0xf9fb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0076001c: 0x3970 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760020: 0x69a8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00760024: 0xcdef instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780000: 0xd30a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780004: 0x5a89 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780008: 0x3010 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0078000c: 0xbbe6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780010: 0xb3ba instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780014: 0x4f00 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780018: 0xfdea instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0078001c: 0xbbd3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780020: 0x41e3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00780024: 0x5a0a instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0000: 0xcf5d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0004: 0xa3a6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0008: 0x8f88 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a000c: 0xa570 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0010: 0x34e1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0014: 0x6d6c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0018: 0x5a4e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a001c: 0x81d1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0020: 0x03b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0024: 0x9d7b instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): End of filesystem marker found at 0x7c0000
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -
Please press Enter to activate this console. bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (2)]
eth1: link forced UP - 100/full - flow control off/off
device eth1 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 1(eth1) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
roboswitch: Probing device eth0: Failed to enable switch
roboswitch: Probing device eth1: found!
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
BusyBox v1.13.4 (2009-09-03 13:25:00 CEST) 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
KAMIKAZE (bleeding edge, r17505) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=0.848 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=0.455 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=0.439 ms
64 bytes from 192.168.1.1: seq=3 ttl=64 time=0.542 ms
64 bytes from 192.168.1.1: seq=4 ttl=64 time=0.442 ms
64 bytes from 192.168.1.1: seq=5 ttl=64 time=0.458 ms
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.439/0.530/0.848 ms
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=15044k)
tmpfs on /dev type tmpfs (rw,size=512k)
devpts on /dev/pts type devpts (rw,mode=600)
/dev/mtdblock3 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
root@OpenWrt:/#
I can provide binary dump of CFE partition is useful.
Any advice is much appreciated.