Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

jmike72 wrote:
t3l3m4k0 wrote:

* Version, i think, you must load is openwrt-96348GW-10-squashfs-cfe.bin

That was the first verrsion I've tryed to upload as "96348GW-10" was something I've seen in the original firmware source code from Asus. Anyway, it's impossible for now to upload any of them as I don't have a serial console. I hope that the support for this router can advance a bit more and soon we can have a nice openwrt firmware on it.

Mike

for ASUS WL-600G you can use ASUS Firmware Restoration Utility amd Firmware restoration mode to upload any different from ASUS trx file.
ASUS WL-600G NOT use tftp to accept file, when ASUS WL-600G in Firmware restoration mode you can access it by http://192.168.1.1 where you can see restoration page.

177 (edited by LinuxInside 2009-01-08 20:27:00)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

Yep, succeeded in creating OpenWRT firmware for the Davolink DV2020 / DV201AMR router

Here's the dmesg:

*** Image flash done *** !
Successful.
Resetting board...ÿ

CFE version 1.0.37-0.6 for BCM96348 (32bit,SP,BE)
Build Date: 2005-03-31 17:08:34 (root@ylinux)
DV-201AMR Boot ROM version: 1.6
H/W version: 02

Initializing Arena.
Initializing Devices.
Flash ID - 0xc2(0), 0x227e(1), 0x2210(e), 0x2200(f)
flash - size:8388608, nsect:135, base:0xbf800000
Checking running image.....
Running image good. Comparing running image to backup.....
Backup image is different from running image. Copying running to backup(2424832).....
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Image copied to running.(2424832)
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x80523330 (1188656)
Initialized Data:          0x8041B5C0 - 0x8041CCC0 (5888)
BSS Area:                  0x8041CCC0 - 0x80421330 (18032)
Local Heap:                0x80421330 - 0x80521330 (1048576)
Stack Area:                0x80521330 - 0x80523330 (8192)
Text (code) segment:       0x80401000 - 0x8041B5BC (107964)
Boot area (physical):      0x00524000 - 0x00564000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.1:ffffff00  
Host IP address                 : 192.168.1.100  
Gateway IP address              :   
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 Name                   : DV201AMR  
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11  
Base MAC Address                : 00:15:f2:69:af:7e  
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 110
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.10 (root@fx41) (gcc version 4.1.2) #6 Tue Jan 6 22:27:18 CET 2009
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 MHz
16MB of RAM installed
board_bcm963xx: CFE version: 1.0.37-0.6
console [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: DV201AMR
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13720k/16384k available (1867k kernel code, 2664k reserved, 321k data, 120k init, 0k highmem)
Calibrating delay loop... 254.97 BogoMIPS (lpj=509952)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
registering 37 GPIOs
registering PCI controller with io_map_base unset
pci 0000:00:01.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:01.0: PME# disabled
bus: 00 index 0 io port: [8000000, 800ffff]
bus: 00 index 1 mmio: [30000000, 37ffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.286: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 26
io scheduler noop registered
io scheduler cfq registered (default)
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 8192KiB chip to 4096KiB
bcm963xx_flash: CFE found at 0x0
bcm963xx: found firmware OpenWrt for 6348.
Creating 4 MTD partitions on "bcm963xx":
0x00000000-0x00010000 : "CFE"
0x0001010c-0x000d0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000d0000-0x00260000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=260000, len=0 
0x00260000-0x00400000 : "rootfs_data"
0x003f0000-0x00400000 : "nvram"
TCP bic registered
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
switching to jffs2
jffs2_scan_eraseblock(): End of filesystem marker found at 0xe0000
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 (1)]
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
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: Using static regulatory domain info
cfg80211: Regulatory domain: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
    (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
br-lan: port 1(eth1) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(eth1) entering forwarding state
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
b43-phy0: Broadcom 4306 WLAN found
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)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Plase use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.

BusyBox v1.11.3 (2009-01-02 02:58:37 CET) 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, r13799) -------------------
  * 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:/# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1600      1600         0 100% /
/dev/root                 1600      1600         0 100% /rom
tmpfs                     6920        40      6880   1% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            1664       252      1412  15% /jffs
mini_fo:/jffs             1600      1600         0 100% /

There where a few problems with the CFE version it was running:
- It expects the rootfs direcly after the BCM tag, so it starts at xxxx100
- At startup the firmware image is checksummed, so we can't use a rw file systems as part of the firmware image.

In order to fix:
- Did some changes to
  bcm_tag.h
  board_bcm963xx.c
  bcm963xx-flash.c
  target/linux/brcm63xx/image/Makefile
- Created a custom bcmImageBuilder that will create bootable images.
         

If someone is interested I can send in a patch (edit: Patch)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

Yes, please post the patches.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

are you guys with hostapd + b43 still having high CPU usage softirq issues?  the ath9k driver is seeing the same problems.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

I have measured with iperf lan performance, and i have received  30Mb/s  and softirq about 98%. I have also tried wireless, but performance was very low.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ RoundSparrow
i don't use wifi, b43 pci card of my router is out.

@ Linuxinside
i test your perl script, i used command line like this:
$ ./BrcmImage.pl -k vmlinux.lzma.cfe -r root.squashfs -c 6348 -b 96348GW-11 -i 1 -v
$ kernel at 0xbfec951d length 0xbb94f(768335)
$ rootfs at 0xbfc10100 length 0x2b941d(2855965)
router load firmware from web page, but at startup it hangs.
your script first load rootfs and them kernel, and openwrt don't like this order.
How i do use it?

Thnx for your greath work.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

You'll heve to add -t (prefix load, entry, len to the kernel)
Also use -p this will align the root fs, and place it behind the kernel (you will have to install the patch
to  bcm963xx-flash.c thoug)

./BrcmImage.pl -t -p -k vmlinux.lzma.cfe -r root.squashfs -c 6348 -b 96348GW-11 -i 1

Let me know if this helps...

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

t3l3m4k0 wrote:

router load firmware from web page, but at startup it hangs.

So, we can upload the compiled SVN firmware using the web interface but then you have to debrick it? What router are you using?

Also I've seen it was added support for the Thomson/Inventel Livebox [1] router. Does anybody tried the firmware in this router?

Thanks and keep the good work!
-- blue

[1] https://dev.openwrt.org/changeset/13616

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ Linuxinside
I'm using Comtrend 536 Router, (bcm6348 CPU, 6348GW-11 board)
With your patches of
* bcm963xx-flash.c
* bcm_tag.h
and your script
* brcmImage.pl
executed as:
$ ./brcmImage.pl -t -p -k vmlinux.lzma.cfe -r root.squashfs -c 6348 -b 96348GW-11 -i 1

it works like a charm!!!!

i see you have created a global partition named "Linux", i think this will be useful when it become implemented for upgrade/reflash router from Luci.

congratulations, good work!!!

@ bluegeek,
1.- I'm using a Comtrend 536 Router, (bcm6348 CPU, 6348GW-11 board).
2.- Linuxinside mods seems to work fine, i can send firmware via web page.
3.- If you put OpenWrt firmware, there is not yet implemented upgrade firmware from Luci ( openwrt web admin tool). When you must to reflash your router you need a serial port/console.
4.- I think Florian is working on Livebox routers (it uses reedboot, not CFE), at this moment i don't know  how to put OpenWRT, maybe via serial ?, JTAG? .... . Perhaps Florian can give some ligth.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

t3l3m4k0 wrote:

3.- If you put OpenWrt firmware, there is not yet implemented upgrade firmware from Luci ( openwrt web admin tool). When you must to reflash your router you need a serial port/console.

Maybe you can use TFTP for upgrading to another firmware after installing OpenWrt. Have you tried?

t3l3m4k0 wrote:

4.- I think Florian is working on Livebox routers (it uses reedboot, not CFE), at this moment i don't know  how to put OpenWRT, maybe via serial ?, JTAG? .... . Perhaps Florian can give some ligth.

It seems you can use TFTP for installing another firmware if you first patch the RedBoot loader [1] but I haven't tryed yet. Also I have compiled the last SVN OpenWrt for Livebox and it seems only builds the kernel not the firmware image.

[1] http://www.dbzoo.com/wiki/livebox/livebox#replacing_the_redboot_loader
fcp -v redboot_blueg5.6-patched /dev/mtd0
(redboot patched form: http://darkfader.net/livebox)

186 (edited by t3l3m4k0 2009-01-11 17:48:29)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ bluegeek,
tftp already works.
Also if you create  platform.sh script in /lib/upgrade ,with this:
root@openwrt:/# cat /lib/upgrade/platform.sh
---------------------------------------------------------------------------------
PART_NAME=Linux

platform_check_image() {
    [ "$ARGC" -gt 1 ] && return 1

    case "$(get_magic_word "$1")" in
        # 6348GW-11 boards
        3600) return 0;;
        *)
            echo "Invalid image type. Please use only apropiate files"
            return 1
        ;;
    esac
}
-----------------------------------------------------------------------------------
and if you put "firmware" file, for example in /tmp , system command:
sysupgrade /tmp/firmware
also works.


about Livebox, i don't know. ???

regards

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

I got both Livebox and BCM6348GW board, I have little time to test again LinuxInsides's modification but they should be fine now.

188 (edited by t3l3m4k0 2009-01-15 00:03:28)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

last mod, in ticket, from Linuxinside don't work for me.
regards

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

t3l3m4k0 wrote:

last mod, in ticket, from Linuxinside don't work for me.

Thanks for testing it. Can you add a dmesg to the ticket?

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ LinuxInside,
First of all thnx to you.
this is the log when i put firmware r 13034, with your last patches.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.01.15 21:28:07 =~=~=~=~=~=~=~=~=~=~=~=


CFE version 1.0.37-0.8 for BCM96348 (32bit,SP,BE)
Build Date: ¥|  2¤ë 14 14:18:59 CST 2008 (root@Yau)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x80524880 (1194112)
Initialized Data:          0x8041C810 - 0x8041E210 (6656)
BSS Area:                  0x8041E210 - 0x80422880 (18032)
Local Heap:                0x80422880 - 0x80522880 (1048576)
Stack Area:                0x80522880 - 0x80524880 (8192)
Text (code) segment:       0x80401000 - 0x8041C804 (112644)
Boot area (physical):      0x00525000 - 0x00565000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.19:ffffff00  
Host IP address                 : 192.168.1.21  
Gateway IP address              : 192.168.1.1  
Run from flash/host (f/h)       : f  
Default host run file name      : vmlinux  
Default host flash file name    : r13370.bin  
Boot delay (0-9 seconds)        : 1  
Board Id Name                   : 96348GW-11  
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11  
Base MAC Address                : 00:11:00:11:00:11  
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 111
CFE> 
web info: Waiting for connection on socket 0.

CFE> 
CFE> 
web info: Waiting for connection on socket 1.

CFE> 
web info: Waiting for connection on socket 0.

CFE> 
web info: Waiting for connection on socket 1.

CFE> 
web info: Waiting for connection on socket 0.

CFE> 
web info: Upload 2956130 bytes, Broadcom image format.

CFE> 
Flashing root file system and kernel: ..............................................

.
*** Image flash done *** !
Resetting board...

CFE version 1.0.37-0.8 for BCM96348 (32bit,SP,BE)
Build Date: ¥|  2¤ë 14 14:18:59 CST 2008 (root@Yau)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x80524880 (1194112)
Initialized Data:          0x8041C810 - 0x8041E210 (6656)
BSS Area:                  0x8041E210 - 0x80422880 (18032)
Local Heap:                0x80422880 - 0x80522880 (1048576)
Stack Area:                0x80522880 - 0x80524880 (8192)
Text (code) segment:       0x80401000 - 0x8041C804 (112644)
Boot area (physical):      0x00525000 - 0x00565000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.19:ffffff00  
Host IP address                 : 192.168.1.21  
Gateway IP address              : 192.168.1.1  
Run from flash/host (f/h)       : f  
Default host run file name      : vmlinux  
Default host flash file name    : r13370.bin  
Boot delay (0-9 seconds)        : 1  
Board Id Name                   : 96348GW-11  
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11  
Base MAC Address                : 00:30:da:59:18:86  
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 110
GPIOio_PIN_HIGH is Off
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.10 (HTPC@localhost.localdomain) (gcc version 4.1.2) #6 Wed Jan 14 11:06:32 CET 2009
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 MHz
16MB of RAM installed
board_bcm963xx: CFE version: 1.0.37-0.8
console [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348GW-11
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13712k/16384k available (1870k kernel code, 2672k reserved, 327k data, 120k init, 0k highmem)
Calibrating delay loop... 255.48 BogoMIPS (lpj=510976)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
registering 37 GPIOs
registering PCI controller with io_map_base unset
bus: 00 index 0 io port: [8000000, 800ffff]
bus: 00 index 1 mmio: [30000000, 37ffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.269: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 26
io scheduler noop registered
io scheduler cfq registered (default)
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
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 and board type 96348GW-11.
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 1010c and length 2d1a56
bcm963xx_flash: Partition 2 is rootfs offset 10100 and length 10000c
bcm963xx_flash: Partition 3 is nvram offset 3f0000 and length 10000
Creating 4 MTD partitions on "bcm963xx":
0x00000000-0x00010000 : "CFE"
0x0001010c-0x002e1b62 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x00010100-0x0011010c : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "bcm963xx"
0x003f0000-0x00400000 : "nvram"
TCP bic registered
NET: Registered protocol family 17
jffs2: Flash size not aligned to erasesize, reducing to 1024KiB
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x674f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x000b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0022 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x8001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x8001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x000b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x5d00 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x0833 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0xfd76 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x0848 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0x5021 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xd898 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0xbdf9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x44f7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x11ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0x00b5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x4b5c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0x31a3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x09c2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x991a instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xaee4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x9fd6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xe837 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xcb2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x9793 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0xcd5a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x6679 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x8e75 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x2908 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x61b7 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0xb7b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0x9ce7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x0ee9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0x4e4d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x13a4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0x442a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0x68d2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x1c08 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0xb072 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x032e instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x9804 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xc9a4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x56ce instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x1b2a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0xb6bd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0x7523 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x1817 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x751b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0xd98f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x72cc instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x32a6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x902f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0xa667 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0x7872 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0xf045 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0x910b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0xee86 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x8a22 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0xf92c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0x4c87 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0xeb7e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0x5d6c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0x00a6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0xfaa3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x960c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0xa5f9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0x5d7a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0x3543 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0x372e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0x4c55 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0xf317 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0xd3dc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0x8913 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0x7016 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0x5ddf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0xc112 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x8546 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0xd746 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0xd7e1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0xa95c instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00073e8c
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0xfd79 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0xcedd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x0836 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x8553 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x0caa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0xe7ba instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x9fa5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x71ff instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x4a80 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0x35d0 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x35ee instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0xbc49 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0xe65d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0xb159 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0xd6c5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0xcb2b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x9ac0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0xc781 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0x5db8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0xceaf instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0xcbcb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x8e80 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0x3b47 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0x5e5d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x3026 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x1b2d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0xa54e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0xca96 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0x4531 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0x1580 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0x60fa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0xbcfd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0x849e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b000c: 0x742f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0010: 0x4858 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0014: 0x6186 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0018: 0xa3e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b001c: 0xd0f2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0020: 0x4bc2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0024: 0x6d50 instead
Further such events for this erase block will not be printed
Empty flash at 0x000bbdc4 ends at 0x000bff00
Empty flash at 0x000bff70 ends at 0x000bff74
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0xbb4c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x5652 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0xf82b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x60a9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0x880a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0xc342 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x87d5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x2ac0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0xce09 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0xfd52 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000c4230
You cannot use older JFFS2 filesystems with newer kernels
Old JFFS2 bitmask found at 0x000ca924
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0x3085 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0x0f93 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0x5016 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d000c: 0x47a2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0010: 0x2304 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0014: 0x2c6a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0018: 0x7bab instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d001c: 0xb510 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0020: 0x0769 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0024: 0x2874 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0x9a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0x0189 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0008: 0xb8ea instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e000c: 0x5f2b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0010: 0x8855 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0x7829 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0018: 0x68d3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e001c: 0xd7b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0020: 0x2b62 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0x3834 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0000: 0xe3a6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0004: 0x45d8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0008: 0xa9c4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f000c: 0xf47c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0010: 0xc77a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0014: 0xc75c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0018: 0xe5bf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f001c: 0x319c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0020: 0xf005 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0024: 0x4663 instead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 16
VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00         64 mtdblock0 (driver?)
1f01       2886 mtdblock1 (driver?)
1f02       1024 mtdblock2 (driver?)
1f03         64 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

191 (edited by LinuxInside 2009-01-17 06:59:13)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

These messages belong to the old bcm963xx_flash driver.

bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6 and board type 96348GW-11.
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 1010c and length 2d1a56
bcm963xx_flash: Partition 2 is rootfs offset 10100 and length 10000c
bcm963xx_flash: Partition 3 is nvram offset 3f0000 and length 10000

Are you sure you applied the patches?

I suspect you probably used an unpatched kernel?

Can you verify?

192 (edited by t3l3m4k0 2009-01-17 14:44:28)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ LinuxInside,
Sorry,
supose i made some mistake, you are rigth (in your patch nvram partition is disabled and there is a new Linux partition). I tried it another time, last time i tried it so fast...
It seems there is a problem with rootfs-data partition, it is not erased and it holds previous values.
Last version i made a pivot_root on a usb drive and after flash it with your patch it tried also do a pivot_root other time (you ca see it in log).
This is firmware update log:

CFE version 1.0.37-0.8 for BCM96348 (32bit,SP,BE)
Build Date: ¥|  2¤ë 14 14:18:59 CST 2008 (root@Yau)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x80524880 (1194112)
Initialized Data:          0x8041C810 - 0x8041E210 (6656)
BSS Area:                  0x8041E210 - 0x80422880 (18032)
Local Heap:                0x80422880 - 0x80522880 (1048576)
Stack Area:                0x80522880 - 0x80524880 (8192)
Text (code) segment:       0x80401000 - 0x8041C804 (112644)
Boot area (physical):      0x00525000 - 0x00565000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.19:ffffff00  
Host IP address                 : 192.168.1.21  
Gateway IP address              : 192.168.1.1  
Run from flash/host (f/h)       : f  
Default host run file name      : vmlinux  
Default host flash file name    : r13370.bin  
Boot delay (0-9 seconds)        : 1  
Board Id Name                   : 96348GW-11  
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11  
Base MAC Address                : 00:30:da:59:18:86  
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 111
CFE> 
web info: Waiting for connection on socket 0.

CFE>  
web info: Waiting for connection on socket 1.

CFE>  
web info: Waiting for connection on socket 0.

CFE>  
web info: Waiting for connection on socket 1.

CFE>  
web info: Waiting for connection on socket 0.

CFE>  
web info: Upload 2956247 bytes, Broadcom image format.

CFE>  
Flashing root file system and kernel: ..............................................

.
*** Image flash done *** !
Resetting board...

CFE version 1.0.37-0.8 for BCM96348 (32bit,SP,BE)
Build Date: ¥|  2¤ë 14 14:18:59 CST 2008 (root@Yau)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
CPU type 0x29107: 256MHz, Bus: 128MHz, Ref: 32MHz

Total memory used by CFE:  0x80401000 - 0x80524880 (1194112)
Initialized Data:          0x8041C810 - 0x8041E210 (6656)
BSS Area:                  0x8041E210 - 0x80422880 (18032)
Local Heap:                0x80422880 - 0x80522880 (1048576)
Stack Area:                0x80522880 - 0x80524880 (8192)
Text (code) segment:       0x80401000 - 0x8041C804 (112644)
Boot area (physical):      0x00525000 - 0x00565000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.19:ffffff00  
Host IP address                 : 192.168.1.21  
Gateway IP address              : 192.168.1.1  
Run from flash/host (f/h)       : f  
Default host run file name      : vmlinux  
Default host flash file name    : r13370.bin  
Boot delay (0-9 seconds)        : 1  
Board Id Name                   : 96348GW-11  
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11  
Base MAC Address                : 00:30:da:59:18:86  
Ethernet PHY Type               : Internal
Memory size in MB               : 16

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 110
GPIOio_PIN_HIGH is Off
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.11 (HTPC@localhost.localdomain) (gcc version 4.1.2) #2 Sat Jan 17 14:05:19 CET 2009
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 MHz
16MB of RAM installed
board_bcm963xx: CFE version: 1.0.37-0.8
console [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348GW-11
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13712k/16384k available (1870k kernel code, 2672k reserved, 326k data, 120k init, 0k highmem)
Calibrating delay loop... 255.48 BogoMIPS (lpj=510976)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
registering 37 GPIOs
registering PCI controller with io_map_base unset
bus: 00 index 0 io port: [8000000, 800ffff]
bus: 00 index 1 mmio: [30000000, 37ffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.269: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 26
io scheduler noop registered
io scheduler cfq registered (default)
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm63xx_enet MII bus: probed
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: CFE found at 0x0
bcm963xx: found firmware 96348GW-11 for 6348.
Creating 4 MTD partitions on "bcm963xx":
0x00000000-0x00010000 : "CFE"
0x0001010c-0x000d0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000d0000-0x002f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=0 
0x002f0000-0x00400000 : "rootfs_data"
0x00010000-0x00400000 : "Linux"
TCP bic registered
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
switching to jffs2
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x4662 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xefb0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0c97 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x28f5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0xf526 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x7f50 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x7567 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0xf6c1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0xdf39 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0xcd0b instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xde2b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0x04fd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0x1d33 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x5057 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x9378 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0xa790 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x2bd5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0xa3eb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x660e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x08db instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x2b10 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x82b1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x61fa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xc1be instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0xba2a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x57a1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0xe242 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x6c6b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x1d02 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x8596 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x731a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0x7cec instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x54c4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0x7cc6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x1384 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0x5c04 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0xb200 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x6795 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0xb472 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x4c3f instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00031c6c
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0xac5c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xfdd7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x9d31 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x9df3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x46a9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xd89b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x7fdd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0xd115 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x7319 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0xcdba instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00040040
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x896c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x337a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0xf33b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0x079b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0xb800 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0x3c97 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0xee4f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x86e4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0x8546 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0xcc99 instead
Further such events for this erase block will not be printed
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -
pivotroot?
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 1
bcm63xx_ohci bcm63xx_ohci.0: irq 20, io mem 0xfffe1b00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using bcm63xx_ohci and address 2
SCSI subsystem initialized
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
Driver 'sd' needs updating - please use bus_type methods
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
Filesystem                Size      Used Available Use% Mounted on
rootfs                    2.1M      2.1M         0 100% /
/dev/root                 2.1M      2.1M         0 100% /rom
tmpfs                     6.8M         0      6.8M   0% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
/dev/mtdblock3            1.1M    232.0k    856.0k  21% /jffs
mini_fo:/jffs             2.1M      2.1M         0 100% /

Please press Enter to activate this console. bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
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
br-lan: port 1(eth1) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 1(eth1) entering forwarding state
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
    (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
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)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Plase use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
usbcore: registered new interface driver usblp



BusyBox v1.11.3 (2009-01-08 12:55:09 CET) 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, r14066) -------------------
  * 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:/# rebooy t
root@OpenWrt:/# Restarting system.
triggering watchdog soft-reset...

Thanks for your work.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

Ok so this happens:
1. partitions are created fine, all nicely aligned.
2. Rootfs is correctly mounted.
3. Rootfs_data is created nicely.

Ok I am guessing here (so i may be wrong)...

First jffs2 looks to see if there's a mountable partition on rootfs_data, which it can't find because there's garbage of the previous install.

Then JFFS2 decides that it should probably create an empty partition and searches for 0xdeadc0de
tags which of course also don't exist.

The problem is we cant just add them to the image because the CFE checks the CRC of the image.

The best work around I see is to create the jffs2 image by hand on the rootfs_data partition, then after reboot you should be fine.

Thanks for testing! Can you try this?

194 (edited by t3l3m4k0 2009-01-17 16:28:10)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

The best work around I see is to create the jffs2 image by hand on the rootfs_data partition, then after reboot you should be fine.

i'm lost, how i must create jffs2 image?. I must erase mtd3 partition?

maybe in last log is not clear but after first reboot (reboot in log was typed from me), no more "jffs2_scan_eraseblock()" messages. Router seems to work fine, but whit previous /jffs partition.

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

The rootfs_data partition is created automatically from the free space between rootfs and the next partition, see target/linux/generic-2.6/patches-2.6.27/065-rootfs_split.patch

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@ florian_
Free space for rootfs_data is that i have in my mind. I understand, from LinuxInside post, after flashed router i must do something with jffs partition. What?

By the other hand, partitions seems to be build fine, but rootfs_data not was erased.

root@OpenWrt:/# logread | grep notice
Jan  8 12:22:00 OpenWrt user.notice kernel: klogd started: BusyBox v1.11.3 (2009-01-08 12:55:09 CET)
Jan  8 12:22:00 OpenWrt user.notice kernel: Linux version 2.6.27.11 (HTPC@localhost.localdomain) (gcc version 4.1.2) #2 Sat Jan 17 14:05:19 CET 2009
Jan  8 12:22:00 OpenWrt user.notice kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Jan  8 12:22:00 OpenWrt user.notice kernel: type=2000 audit(0.269:1): initialized
Jan  8 12:22:00 OpenWrt user.notice kernel: number of CFI chips: 1
Jan  8 12:22:00 OpenWrt user.notice kernel: cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Jan  8 12:22:00 OpenWrt user.notice kernel: Creating 4 MTD partitions on "bcm963xx":
Jan  8 12:22:00 OpenWrt user.notice kernel: 0x00000000-0x00010000 : "CFE"
Jan  8 12:22:00 OpenWrt user.notice kernel: 0x0001010c-0x000d0000 : "kernel"
Jan  8 12:22:00 OpenWrt user.notice kernel: 0x000d0000-0x002f0000 : "rootfs"
Jan  8 12:22:00 OpenWrt user.notice kernel: mtd: partition "rootfs" set to be root filesystem
Jan  8 12:22:00 OpenWrt user.notice kernel: 0x002f0000-0x00400000 : "rootfs_data"
Jan  8 12:22:00 OpenWrt user.notice kernel: 0x00010000-0x00400000 : "Linux"
Jan  8 12:22:08 OpenWrt user.notice kernel: SCSI subsystem initialized
root@OpenWrt:/# cat /proc/partitions
major minor  #blocks  name

  31     0         64 mtdblock0
  31     1        767 mtdblock1
  31     2       2176 mtdblock2
  31     3       1088 mtdblock3
  31     4       4032 mtdblock4
root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00010000 00008000 "CFE"
mtd1: 000bfef4 00010000 "kernel"
mtd2: 00220000 00010000 "rootfs"
mtd3: 00110000 00010000 "rootfs_data"
mtd4: 003f0000 00010000 "Linux"
root@OpenWrt:/#

197 (edited by t3l3m4k0 2009-01-17 17:46:16)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

i erased /jffs and it seems to have a fresh system.

root@OpenWrt:/# mtd -r  erase /dev/mtd3
Unlocking /dev/mtd3 ...
Erasing /dev/mtd3 ...
Rebooting ...

198 (edited by LinuxInside 2009-01-17 18:46:28)

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

@t3l3m4k0:

Good work!

So after the erase and the reboot, jffs2 cleaned the rootfs_data partition and started a new fresh partition? I hope I understand this correctly smile)


@florian:
Is it ok to include the patches now? Next thing I would like to work on is to add generic support for devices with bigger flash, so we can use the lower 4Meg on devices which support it. Hopefully solving the

Reducing visibility of 8192KiB chip to 4096KiB

Also I have noticed that wireless is not working. I have tried with a b43 card and with the ipw2100 card from an old laptop. But both hit GP failures while trying to initialize PCI. But this one is more complicated and may be a bit beyond my skills...

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

LinuxInside wrote:

So after the erase and the reboot, jffs2 cleaned the rootfs_data partition and started a new fresh partition? I hope I understand this correctly smile)

as my knowledge goes, i think yes.

200

Re: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

t3l3m4k0 wrote:

@ LinuxInside,

Linux version 2.6.27.11 (HTPC@localhost.localdomain) (gcc version 4.1.2) #2 Sat Jan 17 14:05:19 CET 2009
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256000000 MHz

Wow!  That's a really fast CPU smile


Bjørn