LaFonera Software Chilispot

From DD-WRT Wiki

Revision as of 09:12, 15 July 2007 by GldSho (Talk | contribs)
Jump to: navigation, search

nexium online cingular ringtones free polyphonic ringtones buy diethylpropion cheap tenuate cialis online free jazz ringtones free online pharmacy cheap phentermine free motorola ringtones levitra online mono ringtones cheap zyban samsung ringtones mp3 ringtones cheap soma cheap ultram ambien online vicodin online vicodin online free funny ringtones zanaflex online buy albuterol cheap nexium propecia online but ambien free nokia ringtones alprazolam online cheap viagra cheap ultracet cheap hoodia cyclobenzaprine online free free ringtones cheap phentermine cheap soma real ringtones free jazz ringtones online vicodin buy zyban free ericsson ringtones sagem ringtones diazepam online sharp ringtones cingular ringtones cheap adipex free verizon ringtones free qwest ringtones cheap clonazepam buy zanaflex mtv ringtones mtv ringtones kyocera ringtones free sony ericsson ringtones cheap tenuate free real ringtones valium online cheap paxil cheap didrex cheap sildenafil nextel ringtones free midi ringtones cheap ativan xanax cyclobenzaprine online lorazepam online free alltel ringtones didrex online mp3 ringtones cingular ringtones tracfone ringtones xanax online free tracfone ringtones cheap norco cheap fioricet cheap lorazepam free free ringtones viagra online free wwe ringtones buy xanax zoloft online free free ringtones but sildenafil cheap xenical free samsung ringtones prozac online buy ultracet buy norco cheap lipitor motorola ringtones free sagem ringtones meridia online hydrocodone cheap diazepam cheap ativan norco online cheap prozac free sonyericsson ringtones free qwest ringtones cheap lisinopril cheap didrex cheap ultram cialis alprazolam online free nextel ringtones free cool ringtones cheap lortab nextel ringtones cheap zyban cheap pharmacy online xanax online ativan free sprint ringtones cheap ativan free sprint ringtones wellbutrin online buy zanaflex carisoprodol online cheap propecia prozac online cheap valium xanax online motorola ringtones but ortho cheap wellbutrin cheap levitra fioricet free samsung ringtones ortho online free cool ringtones lorazepam online celexa online tramadol online free polyphonic ringtones cheap zanaflex free nokia ringtones ortho online free samsung ringtones soma online cheap lorazepam sagem ringtones sprint ringtones lipitor online free mp3 ringtones sprint ringtones buy vigrx polyphonic ringtones cheap lisinopril mp3 ringtones cheap viagra free cingular ringtones cheap tenuate kyocera ringtones qwest ringtones order norco clonazepam online sildenafil online free nextel ringtones funny ringtones but cialis ultracet online free sprint ringtones diazepam online free ringtones free samsung ringtones free free ringtones hydrocodone online cheap tramadol cheap ambien mtv ringtones motorola ringtones free funny ringtones music ringtones cool ringtones fioricet online free real ringtones lorazepam online cheap soma cheap clomid cheap clonazepam cheap paxil lisinopril online samsung ringtones free sonyericsson ringtones phentermine online free alltel ringtones sprint ringtones cheap clonazepam buy didrex cheap ultram free verizon ringtones celexa online but norco diethylpropion online cheap tenuate verizon ringtones cheap lipitor buy diazepam verizon ringtones cheap adipex cheap meridia You are here: DD-WRT wiki mainpage / LaFonera / Software / Chilispot


Summary

This howto will enable you to convert the LaFonera into an access point to use with wifi-cpa.com or any other AAA service that makes use of Chillispot, but its key focus shall be on Wifi-CPA, whilst the ddwrt firmware for the LaFonera is still under development and is working great for the most part, the Chillispot portal software crashes due to an unknown (to me anyhow) bug (?memory leaks) at the time of writing (18 June 2007). I would also like to mention that I am in no way affiliated/bribed/blackmailed by FON Wireless LTD, Wifi-CPA, DD-WRT, Chillispot or any political party.


Preparation

You'll need the following for this tutorial:

  1. A LaFonera! 21xx models as the 22xx use a different memory allocation!
  2. SSH client: Putty .
  3. A FON kernel and root.fs hacked to write on the MTD partition with RedBoot, the 2 files that are needed are here and here (only download if you plan to setup a http/ftp server locally, which is outside the scope of this howto).
  4. A recent kernel and root.fs build of ddwrt for atheros WiSOC based hardware, I used root.fs and vmlinux.bin.l7 ((06/10/07) std (SVN revision 7213).
  5. Klever PumpKIN TFTP server/client from here .
  6. A functioning Chillispot mips package from here .
  7. An account with www.wifi-cpa.com and you will also need the unique code that is generated once you've created a hotspot which will have the format XXX-XXXX.
  8. This is not really necessary but worth having,
    • patience,
    • no one bugging you during any part of this guide,
    • a hammer in case of point (b),
    • a swiss bank account,
    • some refreshments.


Flashing

1. Start with a stock LaFonera, with the original firmware (7.x). If you're unsure of your version, with the power on, hold down the reset button on the bottom of the unit for up to 30 seconds. This should reset it to the original firmware.

2. Enable the built-in SSH server on the LaFonera :-)


Image:LaFonera_Software_Chillispot_-_01_fonfirmware_routerstatus.gif


Log into the web administration page for your LaFonera, go to the advanced tab, then internet connection, change the mode from DHCP to static IP from the dropdown option, set an IP and netmask within your modem/routers range, set the gateway to your modem/router IP and change the name server (DNS) of your La Fonera to 88.198.165.155.


Image:LaFonera_Software_Chillispot_-_02_fonfirmware_internetconnectionsettings.jpg


Hit submit and reboot your LaFonera (unplug power and back in again). Now you should be able to connect via SSH. This should work with other firmwares, too. Please change the name server according to your ISP or network setup after the reboot.

3. Connect via SSH to the LaFonera, and execute the following commands:

cd /tmp
wget http://fonera.info/camicia/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma
mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7
reboot

After the "reboot" command, the LaFonera will reboot and you'll lose the connection.

Don't be misled by the name of the file. This is actually a FON kernel hacked to write on the MTD partition with RedBoot. After this step the LaFonera should be able to restart without any problems. In case you are not able to connect to the Internet from the LaFonera, you can download the files locally, install an FTP or HTTP server on your PC and wget the files from the PC by entering the local server IP.

4. Again connect via SSH to the LaFonera, and execute the following commands. (Note: Your LaFonera will not boot past RedBoot anymore after this step.)

cd /tmp
wget http://fonera.info/camicia/out.hex
mtd -e "RedBoot config" write out.hex "RedBoot config"
reboot

5. Your LaFonera should not be able to completely boot, because the FIS directory will be erased. However, you should be able to connect to the RedBoot prompt. To connect to RedBoot you need to:

a) Configure your PC so you have an address like 192.168.1.166, netmask 255.255.255.0, gateway and DNS can be left blank.
b) Connect your PC and the LaFonera through a crossover ethernet cable or a switch and 2 normal cables (note: you can connect to LaFonera with either a normal cat5 ethernet cable, or with a crossover cable, as La Fonera's NIC is auto-sensing).

Load up putty and set the address and port to the following: 192.168.1.254 9000


Image:LaFonera_Software_Chillispot_-_03_putty_configuration.jpg


c) Disconnect and reconnect the power to your LaFonera. Then click open on putty. You have the first 8 secs to access to RedBoot via a plain Telnet connection. (I would avoid using the built in windows telnet client as it seems to give me no joy, just an ascii character.)

If everything goes well you should have a "RedBoot>" prompt in telnet.


Image:LaFonera_Software_Chillispot_-_04_putty_shell.jpg


Thats enough "point