Sorry for this misplaced e-mail, but I just wanted to see if there are anyone who could give me some ideas about fixing a WRT54G router with network problems...
My WRT54G (v2) router seem to have died recently... I'm not sure if it's the bad weather with lightnings and thunder which broke the network interfaces. (nothing else has broken) It's up and running with the serial console port, but it doesn't receive the network packets correct... It looks like the router's network transmit and receive are malfunctioned. After booting I can see arp-entries in /proc/net/arp after some tries, but it never sends any tcp-packets. I have tried to delete the nvram and make it initialize it from the beginning, but the problem is still there. I tried to re-flash the CFE-bootloader on the JTAG-interface with a fresh copy, and it didn't help. One thing I noticed was this row showing (~20 times) during reboot... "The chipset is BCM4712 + ADMtek" Has anyone else seen this on a WRT54G router? Should "wl int" and "wl lbt" work without any errors? It doesn't do it for me... and eth1 has frame errors too. / # wl down / # wl int eth1: Invalid argument Failed int int Interrupt Test - remember to precede by 'wl down' and follow by 'wl up' / # wl lbt eth1: Invalid argument Failed lbt lbt Loopback Test - remember to precede by 'wl down' and follow by 'wl up' / # wl up / # ifconfig eth1 eth1 Link encap:Ethernet HWaddr 00:12:17:B7:5D:44 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:62 TX packets:47 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:13519 (13.2 KiB) Interrupt:4 Base address:0x1000 / # wl revinfo vendorid: 0x14e4 deviceid: 0x4320 radiorev: 0x22050000 chipnum: 0x4712 chiprev: 0x1 corerev: 0x7 boardid: 0x101 boardvendor: 0x14e4 boardrev: 0x10 driverrev: 0x33c0d00 ucoderev: 0x1180016 bus: 0x0 CFE> ping 192.168.1.2 192.168.1.2 (192.168.1.2) is not responding (seq=0) 192.168.1.2 (192.168.1.2): 1 packets sent, 0 received *** command status = 1 Looking at tcpdump on the remote side, 09:13:39.457684 arp who-has 192.168.1.2 tell 192.168.1.1 09:13:39.457722 arp reply 192.168.1.2 is-at 00:60:b0:fb:b9:da 09:13:39.963681 arp who-has 192.168.1.2 tell 192.168.1.1 09:13:39.963706 arp reply 192.168.1.2 is-at 00:60:b0:fb:b9:da 09:13:41.063640 arp who-has 192.168.1.2 tell 192.168.1.1 09:13:41.063662 arp reply 192.168.1.2 is-at 00:60:b0:fb:b9:da (but no echo requests are sent...?) ----------------------------------------------------- If I delete the nvram and reboot I get another strange message when et.o is loaded the first time. "5325E phy=FFFFFFFF" This seem to be a sign of not finding the registers on correct address or something. The chipset is BCM4712 + ADMtek The chipset is BCM4712 + ADMtek Using /lib/modules/2.4.20/kernel/drivers/net/et/et.o 5325E phy=FFFFFFFF eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.60.13.0 Using /lib/modules/2.4.20/kernel/drivers/net/wl/wl.o eth1: Broadcom BCM4320 802.11 Wireless Controller 3.60.13.0 Using /lib/modules/2.4.20/kernel/drivers/net/port_based_qos/port_based_qos_mod.oInitializing port_based_qos_mod driver 0.0.1 ----------------------------------------------------- Boot version: v2.3 The boot is CFE mac_init(): Find mac [00:12:17:B7:5D:42] in location 0 Nothing... Device eth0: hwaddr 00-12-17-B7-5D-42, ipaddr 192.168.1.1, mask 255.255.255.0 gateway not set, nameserver not set Automatic startup canceled via Ctrl-C CFE> ^C CFE> CFE> show devices Device Name Description ------------------- --------------------------------------------------------- uart0 NS16550 UART at 0x18000300 uart1 NS16550 UART at 0x18000400 flash0.boot New CFI flash at 1FC00000 offset 00000000 size 256KB flash0.trx New CFI flash at 1FC00000 offset 00040000 size 1KB flash0.os New CFI flash at 1FC00000 offset 0004001C size 3808KB flash0.nvram New CFI flash at 1FC00000 offset 003F8000 size 32KB flash1.boot New CFI flash at 1FC00000 offset 00000000 size 256KB flash1.trx New CFI flash at 1FC00000 offset 00040000 size 3808KB flash1.nvram New CFI flash at 1FC00000 offset 003F8000 size 32KB eth0 Broadcom BCM47xx 10/100 Mbps Ethernet Controller *** command status = 0 CFE> CFE> go Reading :: Failed.: Timeout occured Loader:raw Filesys:raw Dev:flash0.os File: Options:(null) Loading: ...... 1662976 bytes read Entry at 0x80001000 Closing network. Starting program at 0x80001000 CPU revision is: 00029007 Primary instruction cache 8kb, linesize 16 bytes (2 ways) Primary data cache 4kb, linesize 16 bytes (2 ways) Linux version 2.4.20 ([EMAIL PROTECTED]) (gcc version 3.2.3 with Broadcom modifications) #87 Wed Jul 6 10:53:08 MEST 2005 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: root=/dev/mtdblock2 noinitrd console=ttyS0,115200 CPU: BCM4712 rev 1 at 200 MHz Calibrating delay loop... 199.47 BogoMIPS Memory: 14376k/16384k available (1429k kernel code, 2008k reserved, 108k data, 64k 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... unavailable. POSIX conformance testing by UNIFIX PCI: Disabled PCI: Fixing up bus 0 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 ([EMAIL PROTECTED]) 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 HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096 N_HDLC line discipline registered. PPP generic driver version 2.4.2 Flash device: 0x400000 at 0x1c000000 Physically mapped flash: squashfs filesystem found at block 937 Creating 5 MTD partitions on "Physically mapped flash": 0x00000000-0x00040000 : "pmon" 0x00040000-0x003f0000 : "linux" 0x000ea658-0x003956bc : "rootfs" mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only 0x003f0000-0x00400000 : "nvram" 0x003a0000-0x003f0000 : "jffs2" sflash: found no supported devices 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) Linux IP multicast router 0.06 plus PIM-SM ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack ip_conntrack_pptp version 1.9 loaded ip_nat_pptp version 1.5 loaded ip_tables: (C) 2000-2002 Netfilter core team ipt_time loading NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 802.1Q VLAN Support v1.7 Ben Greear <[EMAIL PROTECTED]> All bugs added by David S. Miller <davem@redhat.com> JFFS2: Erase block at 0x00000000 is not formatted. It will be erased JFFS2: Erase block at 0x00010000 is not formatted. It will be erased JFFS2: Erase block at 0x00020000 is not formatted. It will be erased JFFS2: Erase block at 0x00030000 is not formatted. It will be erased JFFS2: Erase block at 0x00040000 is not formatted. It will be erased JFFS2: Erase block at 0x00050000 is not formatted. It will be erased JFFS2: Erase block at 0x00060000 is not formatted. It will be erased JFFS2: Erase block at 0x00070000 is not formatted. It will be erased JFFS2: Erase block at 0x00080000 is not formatted. It will be erased JFFS2: Erase block at 0x00090000 is not formatted. It will be erased Old JFFS2 bitmask found at 0x000af60c You cannot use older JFFS2 filesystems with newer kernels JFFS2: Erase block at 0x000a0000 is not formatted. It will be erased JFFS2: Erase block at 0x000b0000 is not formatted. It will be erased JFFS2: Erase block at 0x000c0000 is not formatted. It will be erased JFFS2: Erase block at 0x000d0000 is not formatted. It will be erased JFFS2: Erase block at 0x000e0000 is not formatted. It will be erased JFFS2: Erase block at 0x000f0000 is not formatted. It will be erased JFFS2: Erase block at 0x00100000 is not formatted. It will be erased Old JFFS2 bitmask found at 0x00114b84 You cannot use older JFFS2 filesystems with newer kernels JFFS2: Erase block at 0x00110000 is not formatted. It will be erased JFFS2: Erase block at 0x00120000 is not formatted. It will be erased JFFS2: Erase block at 0x00130000 is not formatted. It will be erased JFFS2: Erase block at 0x00140000 is not formatted. It will be erased JFFS2: Erase block at 0x00150000 is not formatted. It will be erased JFFS2: Erase block at 0x00160000 is not formatted. It will be erased Old JFFS2 bitmask found at 0x00174ff4 You cannot use older JFFS2 filesystems with newer kernels JFFS2: Erase block at 0x00170000 is not formatted. It will be erased JFFS2: Erase block at 0x00180000 is not formatted. It will be erased JFFS2: Erase block at 0x00190000 is not formatted. It will be erased JFFS2: Erase block at 0x001a0000 is not formatted. It will be erased JFFS2: Erase block at 0x001b0000 is not formatted. It will be erased JFFS2: Erase block at 0x001c0000 is not formatted. It will be erased JFFS2: Erase block at 0x001d0000 is not formatted. It will be erased JFFS2: Erase block at 0x001e0000 is not formatted. It will be erased JFFS2: Erase block at 0x001f0000 is not formatted. It will be erased JFFS2: Erase block at 0x00200000 is not formatted. It will be erased JFFS2: Erase block at 0x00210000 is not formatted. It will be erased Old JFFS2 bitmask found at 0x0022fd04 You cannot use older JFFS2 filesystems with newer kernels JFFS2: Erase block at 0x00220000 is not formatted. It will be erased JFFS2: Erase block at 0x00230000 is not formatted. It will be erased JFFS2: Erase block at 0x00240000 is not formatted. It will be erased JFFS2: Erase block at 0x00250000 is not formatted. It will be erased JFFS2: Erase block at 0x00260000 is not formatted. It will be erased JFFS2: Erase block at 0x00270000 is not formatted. It will be erased JFFS2: Erase block at 0x00280000 is not formatted. It will be erased Old JFFS2 bitmask found at 0x0029c1ec You cannot use older JFFS2 filesystems with newer kernels JFFS2: Erase block at 0x00290000 is not formatted. It will be erased Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes VFS: Mounted root (squashfs filesystem) readonly. Mounted devfs on /dev Freeing unused kernel memory: 64k freed The chipset is BCM4712 + ADMtek The chipset is BCM4712 + ADMtek Using /lib/modules/2.4.20/kernel/drivers/net/et/et.o Using /lib/modules/2.4.20/kernel/drivers/net/wl/wl.o Using /lib/modules/2.4.20/kernel/drivers/net/port_based_qos/port_based_qos_mod.oHit enter to continue...The boot is CFE The chipset is BCM4712 + ADMtek Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 0 to IF -:eth0:- Added VLAN with VID == 1 to IF -:eth0:- WARNING: VLAN 1 does not work with many switches, consider another number if you have problems. Using /lib/modules/2.4.20/kernel/drivers/net/mac/writemac.o killall: httpd: no process killed The chipset is BCM4712 + ADMtek name=[vlan0] lan_ifname=[br0] The chipset is BCM4712 + ADMtek =====> set br0 hwaddr to vlan0 name=[eth1] lan_ifname=[br0] The chipset is BCM4712 + ADMtek Write wireless mac Write wireless mac successfully br0: No such file or directory name=[eth2] lan_ifname=[br0] The chipset is BCM4712 + ADMtek eth2: No such device br0: No such device interface eth2 does not exist! name=[eth3] lan_ifname=[br0] The chipset is BCM4712 + ADMtek eth3: No such device br0: No such device interface eth3 does not exist! lo: File exists The chipset is BCM4712 + ADMtek The chipset is BCM4712 + ADMtek The chipset is BCM4712 + ADMtek info, udhcp client (v0.9.8) started No interface specified. Quitting... The boot is CFE tftp server started tftpd: standalone socket info, udhcp server (v0.9.8) started zebra disabled. No interface specified. Quitting... calling upnp_main Using /lib/modules/2.4.20/kernel/drivers/net/mac/writemac.o The Router has not yet burned a EoU key! Key is a RSA key Wrote key to '/tmp/.ssh/ssh_host_rsa_key' The chipset is BCM4712 + ADMtek Hit enter to continue...Hit enter to continue...Hit enter to continue...[69] Jan 01 00:00:03 Running in background -- Christian Magnusson <[EMAIL PROTECTED]> ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers