From NeoRouterWiki
How to install NeoRouter on La Fonera+
La Fonera+(FON2201) is a small, cheap and cute wireless device, which comes with the firmware 1.1.x . The hardware spec is as following:
- System-On-Chip Atheros AR2315 / AR5006
- CPU Speed 183 MHz
- Flash size 8 MiB
- RAM 16 MiB
- Wireless Integrated Atheros 802.11b/g
- Ethernet 1x RJ45
- USB No
- Serial Yes
- JTAG No
Since La Fonera+ has less RAM, most foneras who want to install Fonera 2.0 firmware and NeoRouter Zero-Config VPN solution may come cross the similar issue. It's a tricky to convert your normal wireless router into a VPN server, but it's not hard actually. Just follow my instructions and you can do it.
1. Preparation
We need to prepare several files and software before getting started, as your computer may lost connection to the Internet during the process. We take Windows as an example.
a. The firmware images:
http://download.fon.com/beta/2/loader.bin
MD5: 48B471511907E582ECC0A3B40A174F64
http://download.fonosfera.org/failsafe/20090206_FON2202_failsafe.image
MD5: D29E07BDCB6DF04209CAFAFCE8F3BC5F
we use the Caterpillar DEVELOPERS image, which enables the SSH by default.
http://download.fonosfera.org/Caterpillar/20090217_FON2202_2.2.3.0_Caterpillar_developers.image
MD5: 8526415082A2FE0CEBC8A73D73E26EDD
b. The Putty
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
c. The TFTP Server
http://tftpd32.jounin.net/download/tftpd32.329.zip
d. The NeoRouter Server for Fonera 2.0 Firmware
http://www.neorouter.com/Downloads/Linux_0.9.5.992/Fon/neorouter-0.9.5.992-fon-mips-ipks.zip
The package contains the following files:
- libuuid_1.40.11-1_mips.ipk
- uclibcxx_0.2.2-1_mips.ipk
- zlib_1.2.3-5_mips.ipk
- libopenssl_0.9.8h-1_mips.ipk
- neorouter-0.9.5.992-fon-mips.ipk
NOTE:
Because La Fonera+ cannot leave enough memory for other applications once the Fonera 2.0 firmware has been installed, installing the NeoRouter plugin for Fonera may cause your router reboot. So we provide .ipk packages and you must install them one by one manually.
2. Flash La Fonera+ firmware
By default, the La Fonera+ has a firmware 1.1.x installed. As the partition table is different from the fireware 2.0, we have to rebuild the partition table at least once.
a. unzip tftpd32.329.zip to c:\tftpd32.329
b. copy the following files to the folder c:\tftpd32.329
loader.bin
20090206_FON2202_failsafe.image
20090217_FON2202_2.2.3.0_Caterpillar_developers.image
c. run tftpd32.exe and set up proper parameters
Click on tab "DHCP server", inputs the following values, leave other fields blank and click on "Save" button to keep the settings.
IP pool starting address : 192.168.1.100
Size of pool : 100
Boot File : loader.bin
WINS/DNS Server : 0.0.0.0
Default router : 192.168.1.1
Mask : 255.255.255.0
d. set a static IP address to your network adapter
Go to "Start" menu -> "Control Panel" -> "Network Connections" -> right click on "Local Area Connection" -> "Properties", set following parameters and click on "OK" to save the settings.
Use static IP address : 192.168.1.254
Subnet mask : 255.255.255.0
e. run "cmd" command and type in
ping 192.168.1.1 -t
f. run Putty.exe and set up proper parameters
Host Name : 192.168.1.1
Connection type : Telnet
Port : 9000
g. Power off the La Fonera+, use a cable connect your computer and the WAN (white) port on the La Fonera+
h. Power on the La Fonera+. Once you see the ping gets responsed, click on the "Open" button in the Putty.exe. By default you have 2 seconds, so it would be better to make Putty ready and pull the trigger once you see the first ping response message.
i. Now you can see the RedBoot prompt in the Putty.
j. Check the partition table. Especially FLASH addr, Memaddr and Entry point of loader, image and image2. Other values may be various in different deivces.
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
loader 0xA8030000 0x80100000 0x00010000 0x80100000
image 0xA8040000 0x80040400 0x00420004 0x80040400
image2 0xA8660000 0xA8660000 0x00140000 0x80040400
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
k. If you have different partition table above, you may want to rebuild the partition table and flash images
RedBoot> fis init
RedBoot> load -r -b %{FREEMEMLO} loader.bin
RedBoot> fis create -e 0x80100000 -r 0x80100000 loader
RedBoot> load -r -b %{FREEMEMLO} 20090206_FON2202_failsafe.image
RedBoot> fis create -f 0xA8660000 image2
RedBoot> load -r -b %{FREEMEMLO} 20090217_FON2202_2.2.3.0_Caterpillar_developers.image
RedBoot> fis create image
NOTE:
The last step may take 25min. Don't power off your router while flashing. It downloads these files from the tftpd server and you can monitor the download process in the tftpd32.exe.
l. If you have the similar partition table above, you can simply flash the image.
RedBoot> load -r -b %{FREEMEMLO} 20090217_FON2202_2.2.3.0_Caterpillar_developers.image
RedBoot> fis create image
m. Once flashing firmware gets done, reboot the device.
RedBoot> fconfig boot_script_timeout 5
RedBoot> reset
NOTE:
We change the timeout from 2 seconds to 5 seconds. Before reboot, unplug all cables from the router and make sure no wireless adapter connected to the router. Or it goes to failsafe mode. The reason is La Fonera+ has half memory of La Fonera 2.
n. When reboot, the power light of La Fonera+ is orange. Wait until you see the power light off and on. It may take couple of seconds. Now, plugin your Internet cable to the WAN port. La Fonera+ is booting and exchange information with their server. The WAN light is green and blicking and the power light is orange. Wait until all lights become green.
We have to power off the router and unplug all cables, then do all steps again as above.
NOTE:
SSH will not work unless you reboot twice after flashing a new image.
o. Set your computer's network adapter to DHCP from the static IP address and plugin the cable to the LAN port of the La Fonera+.
p. Use Putty to log on to the La Fonera+(192.168.10.1) using SSH. By default user name is "root" and password is "admin".
3. Install NeoRouter server on the La Fonera+
a. Before installing, we need to make sure ~3MB RAM available on the La Fonera+. By default you may have less than 1MB RAM after Fonera 2.0 started. So we need to turn off some services manually. Or your router may reboot automatically when installing, as the installer may be lack of enough memory.
root@Fonera:~# killall fonstated
root@Fonera:~# killall fonsmcd
root@Fonera:~# killall pure-ftpd
root@Fonera:~# kill -9 1873 (this is the chilli process)
root@Fonera:~# killall lucittpd
mkdir /etc/init.d/bk
mv /etc/init.d/chillispot /etc/init.d/bk
b. Setup ftp server on your IIS and put all .ipk files to the C:\Interpub\ftproot folder
c. Install packages
opkg install ftp://192.168.10.xxx/libuuid_1.40.11-1_mips.ipk
opkg install ftp://192.168.10.xxx/uclibcxx_0.2.2-1_mips.ipk
opkg install ftp://192.168.10.xxx/zlib_1.2.3-5_mips.ipk
opkg install ftp://192.168.10.xxx/libopenssl_0.9.8h-1_mips.ipk
opkg install ftp://192.168.10.xxx/neorouter-0.9.5.992-fon-mips.ipk
d. After installation, the NeoRouter server is running automatically and listening at port 32976 by default.
e. It also installs a NeoRouter service to the Fonera Management Console. So you will see a NeoRouter logo on the services page.
4. Tips
5. Reference links