Linksys WRV54G

From DD-WRT Wiki

Jump to: navigation, search



[edit] Notes

  • There is no way of backing up the bootloader or firmware (exept via jtag) so flashing RedBoot and DD-WRT is a one way ticket!
  • Orig WiFi must be in place to boot the orig firmware!

[edit] Flashing Redboot

On this unit RadBoot can only be flashed via a serial console. So you will have to add appropriate headers to the boar and get yourself ttl serial level shifter cable. You will find the serial pinout below. Plug your ethernet in one ot the LAN ports. Interrupt the boot process with ESC while you are connected via serial (115200,8,0,1). The IP of the router will be Set up your tftp server and place the redboot into the root folder. Now flash Reboot with:

load -u tftp://192.168.1.XXX/"your name of the file" -r 0

It will tell you:

Returned 0
OpenRG boot> Download completed successfully

Wait a minute and then reboot the unit and initialize RedBoot with:

fis init


fconfig -i

Fill in the needed values, e.g.:

Initialize non-volatile configuration - continue (y/n)? y
Run script at boot: true 
Boot script: 
Enter script, terminate with empty line
>> fis load -l linux 
>> exec
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 
Local IP address:
Local IP address mask:
Default server IP address: 
Console baud rate: 115200
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: true 
Default network device: npe_eth0
Network hardware address [MAC] for npe_eth0: 0x00:0x0C:0x41:0xD6:0x85:0xXX
Network hardware address [MAC] for npe_eth1: 0x00:0x0C:0x41:0xD6:0x85:0xXX

[edit] MAC Adresses

The MAC on the back of the unit is the lowest one (WIFI). The IXP interfaces are IXP1 = (WIFI mac +1) and IXP0 = (WIFI MAC +2). Both in HEX.

[edit] Escape from booting

There is no timeout in RedBoot to start booting, even if you set one. To escape to the RedBoot promt keep pressing the reset button while power up the device.

[edit] Info

IXP0 = switch (mac 00:0c:41:d6:XX:XX)
IXP1 = wan (mac 00:0c:41:d6:XX:X{X+1})

e.g. in my case

Device ixp0 (0x2cee78) -
       type=1  state=running
       changed=0       is_sync=1       has_ip=0        MTU=1500
Device ixp1 (0x2ced18) -
       type=1  state=up
       changed=0       is_sync=0       has_ip=1        MTU=1500
       ip=,     netmask=

[edit] Original FW Bootlog

Uncompressing Linux......................................... done, booting the kernel. RGLoader Version: 2.4.4 Internal Version: 1.1 Press ESC to enter BOOT MENU mode. Booting an active image in 0 seconds Uncompressing Linux.............................................................................................................................................................. Linux version 2.4.19openrg-rmk6-ds1 #202 Tue Jun 20 11:14:47 CST 2006 CPU: Intel XScale-IXP425 revision 0 Machine: Gemtek IXP425 WX5715 Warning: bad configuration page, trying to continue initrd (0xc01b1000 - 0xc01b7000) extends beyond physical memory - disabling initrd Memory range 0x1fff000-0x2000000 is excluded because of PCI DMA bug Security risk: creating user accessible mapping for 0xc8000000 at 0xff000000 Security risk: creating user accessible mapping for 0xc0000000 at 0xff00c000 Security risk: creating user accessible mapping for 0xc4000000 at 0xff00d000 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: console=ttyS1,115200 root=/dev/ram0 rw nohalt Using IXP425 Timer 0 as timer source Calibrating delay loop... 266.24 BogoMIPS Memory: 32MB = 32MB total Memory: 25928KB available (1395K code, 4833K data, 216K init) XScale Cache/TLB Locking Copyright(c) 2001 MontaVista Software, Inc. 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) POSIX conformance testing by UNIFIX PCI: bus0: Fast back to back transfers enabled Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd

Random: 0x9f9a8978 pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0xff000003 (irq = 15) is a IXP425 UART ttyS01 at 0xff001003 (irq = 13) is a IXP425 UART RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) PPP generic driver version 2.4.2 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 2048) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. IPv6 v0.8 for NET4.0 IPv6 over IPv4 tunneling driver 802.1Q VLAN Support v1.7 Ben Greear <> All bugs added by David S. Miller <> NetWinder Floating Point Emulator V0.95 (c) 1998-1999 PPP MPPE compression module registered klips_info:ipsec_init: KLIPS startup, FreeS/WAN IPSec version: 1.99 RAMDISK: Compressed image found at block 0 Freeing initrd memory: 24K VFS: Mounted root (ext2 filesystem). Freeing init memory: 216K Mounting cramfs image at 'cramfs' insmod: add-symbol-file PATH/kos_lib.o 0xc280f060 -s .data 0xc28125e0 -s .bss 0xc28126fc insmod: add-symbol-file PATH/ixp425_flash_mod.o 0xc2814060 -s .dUsing buffer write method ata 0xc28143b4 -s .bss 0xc2814438 Using predefined MTD partitions. Creating 1 MTD partitions on "ixp425 Flash": 0x00000000-0x00800000 : "openrg" Press ESC to enter BOOT MENU mode. insmod: add-symbol-file PATH/ppp_deflate.o 0xc3038060 -s .data 0xc30405ac -s .bss 0xc3040be0 PPP Deflate Compression module registered insmod: add-symbol-file PATH/bsd_comp.o 0xc3044060 -s .data 0xc3PPP BSD Compression module registered 044f80 -s .bss 0xc3044fde insmod: add-symbol-file PATH/csr.o 0xc3047060 -s .data 0xc306161c -s .bss 0xc30866c0 Intel CSR module init. insmod: add-symbol-file PATH/ixp425_csr_init_mod.o 0xc30ed060 -s .data 0xc30ed5cc -s .bss 0xc30ed5cc ERROR: ipsec_hwaccel_add_service: Invalid function pointers! Intel CSR QMGR & NPE(s) init done. insmod: add-symbol-file PATH/ixp425_eth_mod.o 0xc30ef060 -s .datInitializing ixp425_eth driver 0.0.8 a 0xc30f0a58 -s .bss 0xc30f0b10 PHY 0 MAC address is: 04:04:04:04:04:04 PHY 1 MAC address is: 06:06:06:06:06:06 insmod: add-symbol-file PATH/igmp_proxy_mod.o 0xc30f3060 -s .data 0xc30f450c -s .bss 0xc30f4588 insmod: add-symbol-file PATH/log_chardev.o 0xc30f6060 -s .data 0xc30f6ac4 -s .bss 0xc30f6bd0 insmod: add-symbol-file PATH/rg_bridge.o 0xc30f9060 -s .data 0xc30fdcd4 -s .bss 0xc30fdd00 insmod: add-symbol-file PATH/tcp_mss.o 0xc3101060 -s .data 0xc3101324 -s .bss 0xc3101340 insmod: add-symbol-file PATH/ipfilter.o 0xc3103060 -s .data 0xc31187c0 -s .bss 0xc3119ca8 insmod: add-symbol-file PATH/rg_dhcp_pktfil.o 0xc311d060 -s .data 0xc311da58 -s .bss 0xc311db20 insmod: add-symbol-file PATH/rg_auth1x_pktfil.o 0xc311f060 -s .data 0xc3120294 -s .bss 0xc31202dc insmod: add-symbol-file PATH/btn.o 0xc3122060 -s .data 0xc31225fc -s .bss 0xc3122694 insmod: add-symbol-file PATH/rg_ipv4.o 0xc3124060 -s .data 0xc31IPV4 device driver registered 24214 -s .bss 0xc3124252 insmod: add-symbol-file PATH/krgldr_module.o 0xc3126060 -s .data 0xc312625c -s .bss 0xc3126284 insmod: add-symbol-file PATH/hwdmz.o 0xc3128060 -s .data 0xc3128a00 -s .bss 0xc3128a97 insmod: add-symbol-file PATH/nb_rt.o 0xc312a060 -s .data 0xc312a4f0 -s .bss 0xc312a544 insmod: add-symbol-file PATH/hwdog_init.o 0xc312c060 -s .data 0xc312c0b0 -s .bss 0xc312c0bb insmod: add-symbol-file PATH/hwdog_reset.o 0xc312e060 -s .data 0xc312e154 -s .bss 0xc312e160 insmod: add-symbol-file PATH/islpci.o 0xc3130060 -s .data 0xc313f344 -s .bss 0xc313f784 Loaded islpci, version request_irq(28) insmod: add-symbol-file PATH/hwdmz_conf.o 0xc316c060 -s .data 0xc316da48 -s .bss 0xc316dbb4 [Distribution Version Check] The Same Distribution Version! external_version:[2.39.2e],saved_ext_version:[2.39.2e] [External Version Check] Old Version[2.39.2e] > New Version[2.39.2e], New Config Loaded! IP Filter: initialized. Default = block all PHY 1 MAC address is: 00:0c:41:d6:85:9d igmp_if_index:42: ioctl failed, errno=19. No such device. PHY 0 MAC address is: 00:0c:41:d6:85:9c ixp0: Entering promiscuous mode device ixp0 entered promiscuous mode STP: ixp0 enters blocking mode device eth0 entered promiscuous mode STP: eth0 enters blocking mode STP: ixp0 enters blocking mode igmp_if_index:42: ioctl failed, errno=19. No such device. Watchdog Function Up:[1] insmod: add-symbol-file PATH/watchdog_mod.o 0xc316f060 -s .data 0xc316f40c -s .bss 0xc316f464 EOU : No key in rg_factory ! Username: admin Password: ***** WRV54G> STP: eth0 exits blocking mode STP: ixp0 exits blocking mode

[edit] Serial Port Pinout

1:   Txd
7:   Rxd  
2,4: +3.3V 
6,8: GND

[edit] External Links