I downloaded the trunk toolchain, and try to make my own image for my wgt634u.
after i have chosenthe 2.6 kernel , and make an ramdisk elf image
I always failed like this(I am using a serial line):
CFE version 1.0.34 for BCM95365R (32bit,SP,LE)
Build Date: Tue Feb 24 03:21:41 CST 2004 (root@jackylinux)
Copyright (C) 2000,2001,2002 Broadcom Corporation.
Add MAC client version(DNI).
Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CPU type 0x29007: 200MHz
Total memory: 0x2000000 bytes (32MB)
Total memory used by CFE: 0x81BB1280 - 0x82000000 (4517248)
Initialized Data: 0x81BB1280 - 0x81BB3E90 (11280)
BSS Area: 0x81BB3E90 - 0x81BB45D0 (1856)
Local Heap: 0x81BB45D0 - 0x81FB45D0 (4194304)
Stack Area: 0x81FB45D0 - 0x81FB65D0 (8192)
Text (code) segment: 0x81FB65E0 - 0x81FFFFB0 (301520)
Boot area (physical): 0x01B70000 - 0x01BB0000
Relocation Factor: I:E23B65E0 - D:01BB0280
configure vlans
*****************************************************************
*********************** VLAN Driver initial ********************
*****************************************************************
Process LAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add LAN port
Process WAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add WAN port
SUCCESS: enable ports success
configure vlans...done
Device eth0: hwaddr 00-09-5B-F8-08-45, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Loader:elf Filesys:raw Dev:flash0.os File: Options:(null)
***************************
**** MAC Client V1.0 ****
***************************
et0macaddr value :flag =0 value=00-09-5b-f8-08-45
et1macaddr value :flag =0 value=00-09-5b-f8-08-46
MAC exist at least one
system ethernet mac exist and not default....
Skip mac client process.....
Loading: 0x80001000/2259376 0x8022a000/1225859 0x80355483/152237 Entry at 0x8020
Closing network.
et0: link down
Starting program at 0x8023c000
CFE-console: Swapping serial ports!
CFE-console: Serial init done.
Linux version 2.6.23.1 (sunknight@localhost.localdomain) (gcc version 4.1.2) #27
CPU revision is: 00029007
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x05, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 2 found: IPSEC (cc 0x80B, rev 0x01, vendor 0x4243)
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x02, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x01, vendor 0x4243)
ssb: Core 6 found: MEMC SDRAM (cc 0x80F, rev 0x00, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 2 => 2
ssb: set_irq: core 0x0804, irq 0 => 3
early_nvram_init: WGT634U NVRAM found.
ssb: Sonics Silicon Backplane found at address 0x18000000
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists in Zone order. Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/pr0
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (21 instructions).
Synthesized TLB load handler fastpath (33 instructions).
Synthesized TLB store handler fastpath (33 instructions).
Synthesized TLB modify handler fastpath (32 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 100.000 MHz high precision timer.
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28916k/32768k available (1987k kernel code, 3852k reserved, 292k data, )
Mount-cache hash table entries: 512
NET: Registered protocol family 16
ssb: PCIcore in host mode found
registering PCI controller with io_map_base unset
PCI: fixing up bridge
PCI: Fixing up device 0000:00:00.0
Time: MIPS clocksource has been installed.
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
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=3886080
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.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v1.01 (Jun 16, 2006)
eth0: Broadcom 10/100BaseT Ethernet 00:09:5b:f8:08:45
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Flash device: 0x800000 at 0x1fc00000
Physically mapped flash: Couldn't find bootloader size
CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc =8
Oops[#1]:
Cpu 0
$ 0 : 00000000 10008000 00000000 00000000
$ 4 : 8022dbc0 00000000 00000000 00000000
$ 8 : 8022dbc0 80230000 80370000 80370000
$12 : 80370000 00000000 80000000 00000000
$16 : 00800000 80370000 80234a10 80257d24
$20 : 00000000 00000000 00000000 00000000
$24 : 8105dcb0 000186a0
$28 : 8105c000 8105df40 00000000 802522a8
Hi : 00000062
Lo : 8f5d3800
epc : 802522bc Not tainted
ra : 802522a8 Status: 10008003 KERNEL EXL IE
Cause : 00000008
BadVA : 00000000
PrId : 00029007
Modules linked in:
Process swapper (pid: 1, threadinfo=8105c000, task=8105a888)
Stack : 1c000000 00800000 1fc00000 00000000 80250000 00000000 00000000 8023c6dc
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 800058d8 10008003 00000000 00000000 00000000 00000000 800058c8
...
Call Trace:[<80250000>][<8023c6dc>][<800058d8>][<800058c8>]
Code: 080948af 00003021 24c60001 <8c620000> 1440fffd 2463001c 3c108037 0c0
Kernel panic - not syncing: Attempted to kill init!
I have upload the normal image, and I found that the Flash device is 0x800000 at 0x1c000000
not like mine Flash device: 0x800000 at 0x1fc00000
Is this where the problem is?
I grep the build-dir for the 0x1fc00000
there are about more than 300 files containing this key word, which one should I edit?
thank a lot