Modify

Opened 9 years ago

Closed 9 years ago

#1129 closed defect (fixed)

diag.ko will not load on WGT634U svn 5968 on Kamikaze

Reported by: anonymous Owned by: nbd
Priority: normal Milestone: Kamikaze 7.06
Component: kernel Version:
Keywords: Cc:

Description (last modified by nbd)

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

Attachments (0)

Change History (7)

comment:1 Changed 9 years ago by nbd

  • Description modified (diff)

comment:2 Changed 9 years ago by mbm

  • Owner changed from developers to mbm

comment:3 Changed 9 years ago by anonymous

The following may help
added

if ( (strcmp(boardtype,"bcm95365r") == 0 ) &&
             (strncmp(getvar("CFE_BOARDNAME"),"BCM95365R",9) == 0) &&
             (strncmp(getvar("CFE_MEMORYSIZE"),"32",2) == 0) ) {
                return &platforms[WGT634U]; }

THIS IS NOT TESTED YET !
(sorry, but I'm still trying to find out how to compile

only the changed diag.c to diag.ko and a new image subsequently w/o rebuilding all...)

comment:4 Changed 9 years ago by anonymous

ok. found out how-to compile/build. the change did not help.
Digged a bit further into the sources:

#define getvar(str) (nvram_get(str)?:"")

debug kprints show:

diag: boardnum
diag: boardtype

diag: CFE_BOARDNAME
diag: CFE_MEMORYSIZE

seems "nvram_get" has to be fixed for wgt634u

returning "WGT634U" by default at least permits to load diag.ko
diag: Detected 'Netgear WGT634U'

comment:5 Changed 9 years ago by anonymous

on the r6529 release diag.c I did change line 649 for WGT634U only

return NULL;
to
return &platforms[WGT634U];

the diag.ko loads OK

the power light is green during a recover and after it recovers it's orange or amber

comment:6 Changed 9 years ago by nbd

  • Milestone changed from Kamikaze to Kamikaze Milestone 1
  • Owner changed from mbm to nbd
  • Status changed from new to assigned

comment:7 Changed 9 years ago by nbd

  • Resolution set to fixed
  • Status changed from assigned to closed

brcm47xx-2.6 seems to be fully working as of [6564]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.