Dear all,
I have just replaced my WGT624 V3 flash from 2 MB(25P16) to 4MB (25P32) for I was trying to get rid of the VXWorks Bootloader without jtaging it (due to the lack of information). After building a flash programmer, I was able to back up my router's firmware. The next step was copying my backed up firmware to a new 25P32 and booting the WGT624 in order to see if everything went right. The WGT624 recognized the extra space but it complained about the cheksum.
AR2316A SOC :
Flash amount check after IC replacement
Then using the source of the Redboot cobra from DD-WRT, I could compile a fresh Bootloader and I could give a try on it. It worked properly even though I couldn't set my MAC address properly.
First Redboot trial
Now, I am trying to build a good kernel to get my WGT624 back to life and free from VXWorks. However, up to now, I haven't succed. I have tried different OpenWRT flavors. I couldn't boot a Meraki's kernel on it so I tried the litestation 2, which I suppose is based on the ar2316 SOC, from Ubiquity. The router boots properly but the madwifi terminates on error. I tried to compile newer madwifi versions but I'm not as keen in linux programming as with hardware modifications.
The latest test I tried was using the fonera's port tailored to the WGT624 hardware, based on the kernel 2.4.36. Once again, It boots up properly (I even have access to the "fon's" console) but when the madwifi's modules are loaded the system crashes.
Foneras kernel on WGT624
Couldn't find valid MAC address for enet0. Using default!
Ethernet eth0: MAC address 00:14:6c:10:f0:45
IP: 192.168.1.20/255.255.255.0, Gateway: 192.168.1.1
Default server: 192.168.1.250
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 10:01:23, Nov 9 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2007 14BIZ Brazil (ATHEROS FLAVOR)
Board: WGT624V3
RAM: 0x80000000-0x81000000, [0x8003fd80-0x80fe1000] available
FLASH: 0xa8000000 - 0xa83f0000, 64 blocks of 0x00010000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
^C
RedBoot> ^C
RedBoot> ^C
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
vmlinux.bin.l7 0xA8030000 0x80040000 0x00080000 0x80040000
rootfs 0xA80B0000 0x80040000 0x00330000 0x80040000
FIS directory 0xA83E0000 0xA83E0000 0x0000F000 0x00000000
RedBoot config 0xA83EF000 0xA83EF000 0x00001000 0x00000000
RedBoot> load openwrt-ar531x-2.4-vmlinux.elf
Using default protocol (TFTP)
Entry point: 0x80190040, address range: 0x80041000-0x801ba000
RedBoot> exec
Now booting linux kernel:
Base address 0x80030000 Entry 0x80190040
Cmdline :
CPU revision is: 00019064
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, linesize 16 bytes.
Linux version 2.4.32 (root@14biz) (gcc version 3.4.6 (OpenWrt-2.0)) #3 Sáb Nov 17 14:27:35 BRST 2007
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
Using 92.000 MHz high precision timer.
Calibrating delay loop... 183.50 BogoMIPS
Memory: 14188k/16384k available (1327k kernel code, 2196k reserved, 92k data, 68k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction... available.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
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: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0xb1100003 (irq = 37) is a 16550A
get_board_config: no board config found
no valid mac found, using defaultseth0: Dropping NETIF_F_SG since no checksum feature.
eth0: Atheros AR2313: 00:aa:bb:cc:dd:ee, irq 4
MTD driver for SPI flash.
spiflash: Probing for Serial flash ...
spiflash: Found SPI serial Flash.
4194304: size
Creating 8 MTD partitions on "spiflash":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000b0000 : "vmlinux.bin.l7"
0x000b0000-0x003d0000 : "rootfs"
0x00230000-0x003d0000 : "rootfs1"
0x003d0000-0x003e0000 : "config"
0x003e0000-0x003ef000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x003ef000-0x003f0000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
0x003f0000-0x00400000 : "board_config"
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 1024 bind 2048)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 328 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: 68k freed
init started: BusyBox v1.1.3 (2007.11.17-00:49+0000) multi-call binary
Algorithmics/MIPS FPU Emulator v1.5
Please press Enter to activate this console.
BusyBox v1.1.3 (2007.11.17-00:49+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ _______ _______
| ____|| || _ |
| ____|| - || | | |
| | |_______||__| |__|
|___|
Fonera Firmware (Version 0.7.0 rev 5) -------------
*
* Based on OpenWrt - http://openwrt.org
* Powered by FON - http://www.fon.com
---------------------------------------------------
root@(none):/# Registering mini_fo version $Id$
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
wlan: 0.8.4.2 (0.9.0)
ath_hal: 0.9.17.1 (AR5212, AR5312, RF5112, RF2316, RF2317, TX_DESC_SWAP)
Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 481:
$0 : 00000000 10009500 22bc3cf1 68616c5f 22bc3cf1 c012b420 00000004 10009501
$8 : 00000000 00000001 00000003 61746800 801c0000 801c0000 801c0000 801c0000
$16: 22bc3ca1 00000003 22bc3cf1 0000416d 00000002 80060000 80ba7000 1010f3d8
$24: 00000001 ba2e8ba3 80d5e000 80d5fd88 00000007 800a2068
Hi : 00000000
Lo : 207c0480
epc : 800a2068 Tainted: P
Status: 10009503
Cause : 10800014
PrId : 00019064
Process insmod (pid: 89, stackpage=80d5e000)
Stack: 8005e6c4 8009f4b0 80d01480 80239a40 c012b420 80d012a0 0000416d
c012be54 0000416d 00000003 8027c1c0 800a20fc 801c0000 ffffffff 00000002
ffffffff 00000000 c012be54 8005fae0 ffffffb4 80059d24 80060000 8027c1c0
80059924 8027c1c0 c012bdfc 0000416d 00000003 8023ae20 8005fb2c 00000d91
80059c24 801c0000 10009501 80d26720 00000001 c012bdfc c012b404 80059d24
8005fbe0 ...
I would like some help to compile the madwifi port or perhaps the new ath5k in order to replace them into the rootfs to bring back to a new life this nice piece of equipment
Regards.
(Last edited by amsjow on 19 Nov 2007, 18:53)