Flashing OpenWRT to the WRTSL54GS

Aus DL8RDS Wiki
Version vom 12. April 2008, 16:26 Uhr von Dl8rds (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Flashing the WRTSL54GS was easy. I followed the instructions as given here:

I chose the simplest way by uploading the selected image through the device's firmware upgrade facility. Here comes a screen dump from the serial connection as established with my Level Shifter. But... I ran into troubles, but resolved them :-) Having a backdoor through the serial port, I got control of the CFE (Common Firmware Environment) and managed to flash the firmware, following the instructions given here:

Also let me point you to the Connections between the MAX232 Level Shifter and the WRTSL54GS


Firmware version =>v2.07.2
killall: ntpclient: no process killed
connect: Network is unreachable
return code=1, from ntpclient
Time update failed
diag_led_4704: Start GPIO 1
http upgrading....umount all disks
Upgrading
upgrade_ver[v2.8.1] upgrade_ver[20801] intel_ver[14108] 4712_ver[15000]
it's code.bin
code pattern correct!
freeram=[7270400] bufferram=[3235840]
The free memory is enough, writing image once.
..........................................................................................................................................................]
.linux: CRC OK
Writing image to flash, waiting a monent...
Amin 931006 (rc/mtd.c mtd_write) none adjust offset
Upgrading from web (http) now ...
ntp: nothing to do...
done
diag_led_4704: Stop GPIO 1
ej_langpack
Terminated....................................
diag_led_4704: Start GPIO 1
Sending SIGTERM to all processes
Sending SIGKILL to all processesRestarting system.


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Tue Feb  6 16:32:40 CST 2007 (root@linux)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.38.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
et1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.38.0
CPU type 0x29006: 264MHz
Total memory: 32768 KBytes

Total memory used by CFE:  0x80300000 - 0x803A3890 (669840)
Initialized Data:          0x803397A0 - 0x8033BEB0 (10000)
BSS Area:                  0x8033BEB0 - 0x8033D890 (6624)
Local Heap:                0x8033D890 - 0x803A1890 (409600)
Stack Area:                0x803A1890 - 0x803A3890 (8192)
Text (code) segment:       0x80300000 - 0x803397A0 (235424)
Boot area (physical):      0x003A4000 - 0x003E4000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v3.5
The boot is CFE

mac_init(): Find mac [00:1D:7E:1E:9A:3B] in location 0
Nothing...

No eou key find
Device eth0:  hwaddr 00-1D-7E-1E-9A-3B, ipaddr 192.168.1.1, mask 255.255.255.0
       gateway not set, nameserver not set
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3704 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
CPU revision is: 00029006
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.30 (nbd@ds10) (gcc version 3.4.4 (OpenWrt-1.0)) #1 Sat Feb 3 13:16:08 CET 2007
Setting the PFC value as 0x15
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages. 
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd
console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 263.78 BogoMIPS
Memory: 30436k/32768k available (1455k kernel code, 2332k reserved, 104k data, 80k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
Squashfs 2.1-r2 (released 2004/12/15) (C) 2002-2004 Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 0) is a 16550A
b44.c:v0.93 (Mar, 2004)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1d:7e:1e:9a:3b
eth1: Broadcom 47xx 10/100BaseT Ethernet 00:90:4c:60:00:2b
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0xfb158
Updating TRX offsets and length:
old trx = [0x0000001c, 0x000008d8, 0x0007e400], len=0x0017a000 crc32=0x1f181132
new trx = [0x0000001c, 0x000008d8, 0x0007e400], len=0x00180000 crc32=0x9cbb6f33
Done
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007e0000 : "linux"
0x000be400-0x001c0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007e0000-0x00800000 : "nvram"
0x001c0000-0x007e0000 : "OpenWrt"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 332 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
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.
Mounted devfs on /dev
Freeing unused kernel memory: 80k freed
Algorithmics/MIPS FPU Emulator v1.5
Using /lib/modules/2.4.30/diag.o
diag: Detected 'Linksys WRTSL54GS'
Using /lib/modules/2.4.30/switch-core.o
Using /lib/modules/2.4.30/switch-robo.o
Probing device eth0: found!
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Unlocking linux ...
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
init started:  BusyBox v1.00 (2007.01.30-11:42+0000) multi-call binary

Please press Enter to activate this console. jffs2.bbc: SIZE compression mode activated.
PCI: Enabling device 01:01.0 (0004 -> 0006)
eth2: Broadcom BCM4318 802.11 Wireless Controller 3.90.37.0
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
device eth0 entered promiscuous mode
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
device eth2 entered promiscuous mode
br0: port 2(eth2) entering learning state
br0: port 1(eth0) entering learning state
br0: port 2(eth2) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
br0: topology change detected, propagating
b44: eth1: Link is up at 100 Mbps, full duplex.
b44: eth1: Flow control is off for TX and off for RX.
^H^H


BusyBox v1.00 (2007.01.30-11:42+0000) 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
 WHITE RUSSIAN (0.9) -------------------------------
  * 2 oz Vodka   Mix the Vodka and Kahlua together
  * 1 oz Kahlua  over ice, then float the cream or
  * 1/2oz cream  milk on the top.
 ---------------------------------------------------
root@OpenWrt:/# ls
bin   dev   etc   jffs  lib   mnt   proc  rom   sbin  tmp   usr   var   www
root@OpenWrt:/# ls -al
drwxr-xr-x    2 root     root           40 Jan  1 00:00 .
drwxr-xr-x    2 root     root           40 Jan  1 00:00 ..
drwxr-xr-x    1 root     root          384 Jan 30  2007 bin
drwxr-xr-x    1 root     root            0 Jan  1  1970 dev
drwxr-xr-x    1 root     root          287 Feb  3  2007 etc
drwxr-xr-x    1 root     root            0 Feb  3  2007 jffs
drwxr-xr-x    1 root     root          322 Feb  3  2007 lib
drwxr-xr-x    1 root     root            0 Feb  3  2007 mnt
dr-xr-xr-x   35 root     root            0 Jan  1 00:00 proc
drwxr-xr-x    1 root     root           85 Feb  3  2007 rom
drwxr-xr-x    1 root     root          240 Feb  3  2007 sbin
drwxrwxrwt    7 root     root          220 Jan  1 00:00 tmp
drwxr-xr-x    1 root     root           31 Jan 30  2007 usr
lrwxrwxrwx    1 root     root            4 Feb  3  2007 var -> /tmp
drwxr-xr-x    1 root     root           62 Feb  3  2007 www
root@OpenWrt:/# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 1024      1024         0 100% /rom
none                     15256        28     15228   0% /tmp
/tmp/root                 1024      1024         0 100% /
root@OpenWrt:/#