diag.ko will not load on WGT634U svn 5968
Linux version 2.6.19.1 (gcc version 3.4.6 (OpenWrt-2.0)) #1 Tue Jan 2 09:39:34 EST 2007
CPU revision is: 00029007
early_nvram_init: WGT634U NVRAM found.
diag: Router model not detected.
insmod: cannot insert '/lib/modules/2.6.19.1/diag.ko': Invalid parameters (19): Invalid argument
cat: /proc/diag/model: No such file or directory
(the /proc/diag directory is not created)
insmod diag.ko
insmod: cannot insert '/lib/modules/2.6.19.1/diag.ko': Invalid parameters (19): Invalid argument
(none) user.warn kernel: diag: Router model not detected
X-WRT webif can not ID the WGT634U because of this also
Looks like the poor WGT634U failed thru the CRACK in diag.c
in nvram.c finds the WGT634U, but diag.c does not look for the WGT634U
/* XXX: hack for supporting the CFE environment stuff on WGT634U */
src = (u32 *) KSEG1ADDR(base + 8 * 1024 * 1024 - 0x2000);
dst = (u32 *) nvram_buf;
if ((lim == 0x02000000) && ((*src & 0xff00ff) == 0x000001)) {
printk("early_nvram_init: WGT634U NVRAM found.\n");
FailSafe does not work on WGT634U also! so I found out, had to use the serial cable to fix a problem.
Linux version 2.6.19.1 (linksys@7000us) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Tue Jan 2 09:39:34 EST 2007
CPU revision is: 00029007
early_nvram_init: WGT634U NVRAM found.
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Flash device: 0x800000 at 0x1fc00000
bootloader size: 655360
Physically mapped flash: Filesystem type: squashfs, size=0x17c98e
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x000a0000 : "cfe"
0x000a0000-0x007e0000 : "linux"
0x00153800-0x002e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007e0000-0x00800000 : "nvram"
0x002e0000-0x007e0000 : "OpenWrt"
root@OpenWrt:/etc# dd if=/dev/mtd/3|strings
256+0 records in
256+0 records out
boardtype=bcm95365r
et0phyaddr=254
et0mdcport=0
configvlan=0x1
et0macaddr=00-09-5b-xx-xx-bb
et1macaddr=00-09-5b-xx-xx-bc
boot_wait=on
IFSTART=ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0
STARTUP=ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0;boot -elf flash0.os:
kernel_args=console=ttyS1,115200 root=/dev/ram0 init=linuxrc rw syst_size=8M
(Last edited by breath on 2 Jan 2007, 18:56)