OpenWrt Forum Archive

Topic: WAP54G 2M solved

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey,

There is a WAP54G/2MbFlash on my desk now running stable-OpenWRT with Freifunk addons. I needed to upgrade the MTD/JFFS2 kernel drivers in the 2.4.20  kernel used by OpenWRT/stable for this. There should be at least 5 erase blocks free too (0x50000), for the jffs2 filesystem to be created correctly.

I've noticed that OpenWRT/experimental uses an MTD distribution labeled mtd-20050122.orig. Some day I will update the Freifunk-Firmware to experimental too. Does anybody know, if the older mtd-20050122.orig will support this:

- correctly create and run with only 5 eraseblocks?
- does not hang the router if free disk space is used up (simply: disk full)?
- does correctly handle large files (~ 500k compressed)?

(OK. I know theres a jffs2-only dist. Thats a future option anyway.)

P.S.: If someone is interested in my hacks, they are available via anon-cvs. Get http://ff-firmware.sourceforge.net/ then generate, then check out linux/drivers/mtd/maps/bcm947xx-flash.c

P.P.S.: To get the reset key working, I also added this patch:

diff -Nur buildroot.orig/sources/openwrt/kernel/diag.c buildroot/sources/openwrt/kernel/diag.c
--- buildroot.orig/sources/openwrt/kernel/diag.c        2005-01-25 09:35:15.000000000 +0100
+++ buildroot/sources/openwrt/kernel/diag.c     2005-04-25 07:35:00.000000000 +0200
@@ -178,6 +178,13 @@
                                reset_gpio=(1<<0);
                                reset_polarity=0;
                        }
+               } else if (!strcmp(buf,"0x0446")) {
+                       buf=nvram_get("boardnum")?:"";
+                       if (!strcmp(buf,"1024")) {
+                               // wap54g 2mb, no leds
+                               reset_gpio=(1<<0);
+                               reset_polarity=0;
+                       }
                }
        } else {
                board_type=2;


Rgds, Sven-Ola

Ah - and I forget to mention how to put that firmware on the WAP. If you simply upload one of the trx files from http://styx.commando.de/sven-ola/testing/ the WAP54g will complain about "Cannot downgrade". I think there is an offset check in there, which is not compatible with the small loader.gz in the first partition.

You need to switch boot_wait on first, then upload via TFTP. For boot_wait=on, go for http://styx.commando.de/sven-ola/wap54g … ait-on.trx (original firmware with a small change), then use "Reset to defaults" or press the reset button until restart.

Rgds, Sven-Ola

The discussion might have continued from here.