Why an SDcard on the WAP54G V31 EU? Because I want a small webserver so I do not have to leave the big PC on 24/7. The WAP54G uses less then 6 Watt, so very very green, the big PC uses much much more... From the money you save on electricity you can have something nice :-) My website is big (> 200MB) but fits easily on an SD card. The speed is not very fast now, maybe better with the new mmc driver, but that one was too complicated for me to modify... so many files. The speed is OK for normal web access. Do not press SES or RESET button while using card.... perhaps cut of SES button? It is possible to change the card 'live', but you must first unmount it, and then insert an other one, then reload the module (see below). Just short, the modified mmc3.c and a pre-compiled one is availabe, This text shows how I did it. Some soldering required, only venture if you know about that stuff. See also http://panteltje.com/panteltje/wap54g/index.html for serial link and JTAG. and http://panteltje.com/panteltje/wap54g/index.html#wapserver for software. ---------------------------------------------------------------------------------------- Hardware: Remove capacitor parallel to SES button, it is marked C600, and located close to the SES switch! I have soldered to the right side (from the front) of the white and yellow LEDs under the SES button, and to the switches. I have taken +3.3V from the left side (from front) of the red LED. I have taken ground from the metal of the SES switch. WAP54G V31 1GB SDCARD Reset button = GPIO_0 ---->----------------- pin 1 CS Yellow LED [under SES button] = GPIO_6 ---->----------------- pin 2 DI pin 3 Vss (GND) pin 4 Vdd (+3.3V) White LED [under SES button] = GPIO_12 --->----------------- pin 5 Clk pin 6 Vss2 (GND) SES button = GPIO_14 ---<----------------- pin 7 DO 9 1 2 3 4 5 6 7 8 ------------------------- SD card pin view / [] [] [] [] [] [] [] || | | [] | | | | | | | | | | | Pin 8 and 9 stay not connected. Software, the latest with ext2 filesystem: http://panteltje.com/panteltje/wap54g/index.html#wapserver Legacy stuff (more then a week old :-): Webserver on WAP from SD card, without kernel recompile, but with serial link: cramfs: Use the PC to make a cramfs (is a read only ROM compressed filesystem as used by WAP) on the SD card: Insert SD card, htdocs should hold your website: mkcramfs htdocs /dev/sda (takes a while). USE /dev/sda NOT /dev/sda1!!!!!!!!! This is why we need no kernel recompile :-)(size is an issue). Then type: sync Note: cramfs has a file size limit of 16MB and will cut files longer then that, and a total size limit of about 240MB, even if the SD card size is bigger. cramfs will warn if these limits are exceeded. Insert card, boot up WAP54G Now via serial link disable the Linksys stuff that seems to poll the SES and Reset switch (else it will reboot!): killall -KILL ses killall -KILL easyconf killall -KILL RestoreDefaults # make sure it is dead. ps # Retry (new module) # keep log file short :-) rm /var/log/messages killall -KILL klogd killall -KILL syslogd klogd syslogd # remove any old module rmmod mmc3 # go to a write able directory cd /tmp/var # get the module, the PC needs to run a webserver, replace 10.0.0.150 with the address of the PC: # This can also be done via tftp, in that case: # File from PC to box: # On box: # /usr/sbin/epi_ttcp -r -p 10 > /tmp/var/mmc3.o # On PC (replace 10.0.0.152 with your WAP54G IP address, and ttcp is part of batbox): # ttcp -t -p 10 10.0.0.152 mmc3.o # wget http://10.0.0.150/mmc3.o;insmod mmc3.o;cat /var/log/messages # Should show something like this: #Jan 1 00:00:23 (none) daemon.info klogd: br0: topology change detected, propagating #Jan 1 00:00:23 (none) daemon.warn klogd: mmc Hardware init #Jan 1 00:00:23 (none) daemon.warn klogd: mmc Card init #Jan 1 00:00:23 (none) daemon.warn klogd: mmc Card init *1* #Jan 1 00:00:23 (none) daemon.warn klogd: mmc Card init *2* #Jan 1 00:00:23 (none) daemon.warn klogd: Size = 975360, hardsectsize = 512, sectors = 1950720 #Jan 1 00:00:23 (none) daemon.info klogd: Partition check: #Jan 1 00:00:23 (none) daemon.info klogd: mmca: unknown partition table # This last message, 'unknown partition table', ignore it :-) # Mount the card on /mnt mount /dev/mmc/disc0/disc /mnt # check with mount: mount # should read among other things: #/dev/mmc/disc0/disc on /mnt type cramfs (rw) # Forget the rw, it is a read only filesystem. # As a side note, the switch on the side of a SDcard is just a dummy, but it _can_ press a micro # switch..... It is not in itself switching anything. # Use batbox script for WAP54G to upload a second busybox and utilties, you can find it here: http://panteltje.com/panteltje/wap54g/batbox-wap54gv31-serial-0.2.tgz # Install it, then type from batbox directory: ./send-it # It will ask for ENTER to install a extra busybox with more commands in RAM on your WAP54g. # Nothing will be permanently changed on your FLASH. # batbox telnet does not work for me.... killall -KILL telnetd # for a moment get rid of the http servers. killall -KILL httpd # move old www directory out of the way: mv /tmp/var/www /tmp/var/www.old # Link in new www directory ln -s /mnt www # Start the new web server on port 8080: cd /tmp/var/www /tmp/var/bin/httpd -p 8080 # To access site type in browser (replace 10.0.0.152 with your WAP54G IP address): http://10.0.0.152:8080/ # start the normal linksys http server: cd /www httpd # You can still access the Linksys setup, so 2 www servers are running. Flash_Panteltje