Hello!
I have in my hand brcm63xx based router. This is Siemens SLI-5300, chip 6348, board ID RTA1025W_16. My board definition is:
static struct board_info __initdata board_rta1046vw_32m = {
.name = "RTA1046VW_32M",
.expected_cpu_id = 0x6348,
.has_uart0 = 1,
.has_enet1 = 1,
.has_pci = 1,
.enet1 = {
.force_speed_100 = 1,
.force_duplex_full = 1,
},
.has_ohci0 = 1,
.has_ehci0 = 1,
.leds = {
{
.name = "power",
.gpio = 0,
.active_low = 1,
.default_trigger = "default-on",
},
{
.name = "dsl",
.gpio = 2,
.active_low = 1,
},
{
.name = "ppp",
.gpio = 3,
.active_low = 1,
},
{
.name = "wlan",
.gpio = 6,
.active_low = 1,
},
{
.name = "voip",
.gpio = 7,
.active_low = 1,
},
},
};
In addition to these changes, I had to make yet other in board_bcm963xx.c :
/* read base address of boot chip select (0)
* 6345 does not have MPI but boots from standard
* MIPS Flash address */
if (BCMCPU_IS_6345())
val = 0x1fc00000;
else {
val = 0x1fc00000;
// val = bcm_mpi_readl(MPI_CSBASE_REG(0));
// val &= MPI_CSBASE_BASE_MASK;
and here
/* read base address of boot chip select (0) */
if (BCMCPU_IS_6345())
val = 0x1fc00000;
else {
val = 0x1fc00000;
// val = bcm_mpi_readl(MPI_CSBASE_REG(0));
// val &= MPI_CSBASE_BASE_MASK;
}
mtd_resources[0].start = val;
// mtd_resources[0].end = 0x1FFFFFFF;
mtd_resources[0].end = 0x20400000;
platform_device_register(&mtd_dev);
Then the bootlog is:
CFE version 1.0.37-6.8.5 for BCM96348 (32bit,SP,BE)
Build Date: Tue Jan 2 19:41:54 CST 2007 (michaelc)
Boot Address 0xbfc00000
Flash Config: CS0(1f80000a,17),Base(bf800000),Size(8MB)
Ethernet Switch Mode 00000000
found@block 72
boot from bank 0
Board IP address : 192.168.88.200
Host IP address : 192.168.88.3
Gateway IP address :
Run from flash/host (f/h) : f
Default host run file name :
Default host flash file name : bcmModelName_fs_kernel
Boot delay (0-9 seconds) : 2
Board Id Name : RTA1046VW_32M
Psi size in KB : 24
Number of MAC Addresses (1-32) : 3
Ethernet MAC Address : 00:24:d2:80:1f:c9
Wireless sprom saved flag : y
Serial Number :
Memory size in MB : 32
CMT Thread Number : 0
==== Press space key to stop auto run (2 seconds) ====
Auto run second count down(before hit space key): 0
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.35.9 (artek@archbox) (gcc version 4.3.3 (GCC) ) #47 Wed Dec 22 16:11:44 CET 2010
Detected Broadcom 0x6348 CPU revision b0
CPU frequency is 240 MHz
32MB of RAM installed
registering 37 GPIOs
board_bcm963xx: CFE version: 1.0.37-6.8
bootconsole [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: RTA1046VW_32M
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 console=ttyS0,115200
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
Memory: 29540k/32768k available (2167k kernel code, 3228k reserved, 371k data, 160k init, 0k highmem)
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:128
Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30001fff]
pci 0000:00:01.0: BAR 0: set to [mem 0x30000000-0x30001fff] (PCI address [0x30000000-0x30001fff]
Switching to clocksource MIPS
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.320:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
bcm963xx_flash: 0x00800001 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
CFI mfr 0x000000c2
CFI id 0x000022cb
Amd/Fujitsu Extended Query Table at 0x0040
Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6 and board type RTA1046VW_32M
bcm963xx_flash: Kernel Address: 65792
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length dff00
bcm963xx_flash: Partition 2 is rootfs offset f0000 and length 700000
bcm963xx_flash: Partition 3 is nvram offset 7f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 7e0000
bcm963xx_flash: Spare partition is 250000 offset and length 5a0000
Creating 5 MTD partitions on "bcm963xx":
0x000000000000-0x000000010000 : "CFE"
0x000000010100-0x0000000f0000 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x0000000f0000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=250000, len=5A0000
0x000000250000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "nvram"
0x000000010000-0x0000007f0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
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 on device 31:2.
Freeing unused kernel memory: 160k freed
awk: /proc/cpuinfo: No such file or directory
awk: /proc/cpuinfo: No such file or directory
roboswitch: Probing device eth0: Failed to enable switch
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
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. eth0: link forced UP - 100/full - flow control off/off
Compat-wireless backport release: compat-wireless-2010-12-10-3-g880bb0b
Backport based on wireless-testing.git master-2010-12-16
cfg80211: Calling CRDA to update world regulatory domain
There is already a switch registered on the device 'eth0'
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
cfg80211: World regulatory domain updated:
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
Broadcom 43xx driver loaded [ Features: PL, GPIO LED Mask: 0x000f, Firmware-ID: FW13 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (464 buckets, 1856 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...
Data bus error, epc == 80182234, ra == 80186fc0
Oops[#1]:
Cpu 0
$ 0 : 00000000 10008401 c0860000 00000002
$ 4 : 8028600c 007e0000 007e0000 ffff00fe
$ 8 : 80c27fe0 00008400 00000000 81ac4000
$12 : 00000026 7fe225d8 00000026 00440000
$16 : 8028600c 818ead00 818ead38 818ead5c
$20 : ffff11dc 007e0000 818ead50 80c27bb0
$24 : 0043f730 800242ec
$28 : 80c26000 80c27ba0 80280000 80186fc0
Hi : 00000008
Lo : 6a59ac00
epc : 80182234 0x80182234
Not tainted
ra : 80186fc0 0x80186fc0
Status: 10008403 KERNEL EXL IE
Cause : 0080001c
PrId : 00029107 (Broadcom BCM6348)
Modules linked in: gpio_buttons nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc b43 mac80211 input_polldev crc_ccitt cfg80211 compat input_core arc4 aes_generic deflate ecb cbc switch_adm switch_core
Process busybox (pid: 862, threadinfo=80c26000, task=81abe618, tls=00000000)
Stack : ffffffe2 81b3d900 007e0000 81a19400 00000000 81abe618 8002cc68 00000000
00000000 800242ec 00000000 00000000 00010000 818e8d18 007e0000 007e0000
00000000 00000001 00000000 818e8d00 00010000 8017d458 00000000 10008400
10008401 00000001 00000000 00000077 8028600c 818ead00 ffffffe2 81b3d900
818e1000 81a19400 81a194f8 80c2a000 8180c8a0 80c2a000 7ff8ba28 80188c0c
...
Call Trace:[<8002cc68>] 0x8002cc68
[<800242ec>] 0x800242ec
[<8017d458>] 0x8017d458
[<80188c0c>] 0x80188c0c
[<80186744>] 0x80186744
[<80174e98>] 0x80174e98
[<80030dc4>] 0x80030dc4
[<80103d64>] 0x80103d64
[<80102f98>] 0x80102f98
[<80104bb4>] 0x80104bb4
[<80173c8c>] 0x80173c8c
[<801739e4>] 0x801739e4
[<80173bb8>] 0x80173bb8
[<800c65a0>] 0x800c65a0
[<801058e8>] 0x801058e8
[<80173e6c>] 0x80173e6c
[<8007f6cc>] 0x8007f6cc
[<801058e8>] 0x801058e8
[<80105654>] 0x80105654
[<801058e8>] 0x801058e8
[<8009aca4>] 0x8009aca4
[<800b05b8>] 0x800b05b8
[<8009add4>] 0x8009add4
[<800b3ac0>] 0x800b3ac0
[<800b1c24>] 0x800b1c24
[<8022d6ac>] 0x8022d6ac
[<800b3bd4>] 0x800b3bd4
[<80012610>] 0x80012610
Code: 24020004 8c82000c 00451021 <94420000> 0806089a 3045ffff 14620006 00000000 8c82000c
Disabling lock debugging due to kernel taint
BusyBox v1.17.3 (2010-12-21 14:47:30 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, unknown) ------------------
* 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:/# ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:D2:80:1F:CA
inet addr:192.168.88.15 Bcast:192.168.88.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:161 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11438 (11.1 KiB) TX bytes:1290 (1.2 KiB)
Interrupt:15
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 1408 1408 0 100% /rom
tmpfs 14852 40 14812 0% /tmp
tmpfs 512 0 512 0% /dev
root 14848 20 14828 0% /tmp/root
mini_fo:/tmp/root 1408 1408 0 100% /
Question is: Why overlay don't create ?