Hi Russell,

By judicious application of printk's (note that in order to get the
console back for the WGT634U to see them, I had to revert r22663) I
managed to figure out what is visible, and now have at least
broadcom-diag detecting the board again with this patch:

diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 501b835..8862c28 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -901,7 +901,8 @@ static struct platform_t __init *platform_detect(void)
  {
        char *boardnum, *boardtype, *buf;

-       if (strcmp(getvar("nvram_type"), "cfe") == 0)
+
+       if (strcmp(getvar("nvram_type"), "") == 0&&  strcmp(getvar("sdram_ncdl"), 
"0x00020080") == 0)
                return&platforms[WGT634U];

        /* Look for a model identifier */



Thanks a lot. I'm going to test this on my WGT634U.

Jochen
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to