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