WeelaPurkki 0.2 (beta) readme

=== Upload Linux firmware ===

Set static ip to laptop 192.168.1.10/255.255.255.0 gw: 192.168.1.1

Upload firmware
laptop$ atftp --trace --option "timeout 1" --option "mode octet" \
 --put --local-file openwrt-wrt54g-squashfs.bin 192.168.1.1
Reboot access point (AP) to start upload. AP IP is always 192.168.1.1. 

Set laptop to DHCP, restart networking. 

laptop$ telnet 192.168.1.1
ap# passwd
ap# exit
laptop$ ssh root@192.168.1.1
ap#

Now that you can access AP with ssh, you have successfully installed OpenWRT. 

=== Upload Weela Specific Settings ===

laptop$ scp -r weelapurkki-0-2/overwriteroot/* root@192.168.1.1:/
firewall.user    100% 2051     2.0KB/s   00:00
...

=== Make Manual Weela Specific Settings ===

root@weela:~# nvram show |grep wl0_closed
wl0_closed=1
size: 9904 bytes (22864 left)
root@weela:~# nvram set wl0_closed=0
root@weela:~# nvram show |grep wl0_closed
wl0_closed=0
size: 9904 bytes (22864 left)
root@weela:~# nvram commit
root@weela:~# nvram show |grep wl0_closed
wl0_closed=0
size: 9904 bytes (22864 left)

(wl0_closed seems to be the default)

root@OpenWrt:~# nvram show |grep linksys
wl0_ssid=linksys
wl_ssid=linksys
size: 9826 bytes (22942 left)
root@OpenWrt:~# nvram show |grep linksys
wl0_ssid=linksys
wl_ssid=linksys
size: 9826 bytes (22942 left)
root@OpenWrt:~# nvram set wl0_ssid="weela.net"
root@OpenWrt:~# nvram show |grep ssid
wl0_ssid=weela.net
wl_ssid=linksys
size: 9828 bytes (22940 left)
root@OpenWrt:~# nvram set wl_ssid="weela.net"
root@OpenWrt:~# nvram show |grep ssid
wl0_ssid=weela.net
wl_ssid=weela.net
size: 9830 bytes (22938 left)
root@OpenWrt:~# nvram commit

root@OpenWrt:~# nvram show |grep lan_ipaddr
size: 9830 bytes (22938 left)
lan_ipaddr=192.168.1.1
root@OpenWrt:~# nvram show |grep lan_netmask
lan_netmask=255.255.255.0
size: 9830 bytes (22938 left)

Use less common ip space for nat, so that WeelaPurkki can be connected 
to typical 192.168.1.x NAT address space. (10.0.0.1/8 is defined in RFC)
root@OpenWrt:~# nvram set lan_ipaddr="10.0.0.1"
root@OpenWrt:~# nvram set lan_netmask="255.0.0.0"
root@OpenWrt:~# nvram commit

After this change, AP control interface will be 'ssh 10.0.0.1'

=== Reboot to enable settings ===

Reboot AP by pulling the plug, waiting for 20 s, then putting power back on. 

=== Test (optional) ===

To test it, check that the banner is shown when logging in with ssh:
$ ssh root@192.168.1.1

   Weela.net - vapaa langaton kaupunkiverkko

   Tervetuloa tulevaisuuteen!

root@weela:~# 

Well done, you have now installed WeelaPurkki to your access point. 

=== Addional testing (very optional) ===

$ nmap 192.168.1.1 -P 0
(The 1670 ports scanned but not shown below are in state: closed)
PORT   STATE    SERVICE
22/tcp open     ssh
23/tcp filtered telnet
53/tcp open     domain
80/tcp filtered http

=== Todo and adminstrivia of this document ===

Move additional testing to another document. 

(c) 2007 Tero Karvinen http://www.iki.fi/karvinen

=== Alternative method to upload firmware ===

=== Prequisites ===

Remove WRT54GL Access Point (AP) from packaging. Connect power to AP. 
Connect computer ethernet to AP ethernet 1. 

Get an IP address and other settings from access point. 

Surf to http://@admin:192.168.1.1/ (no username, passwd admin)
- Adminstration: Firmware Upgrade
- Browse
- openwrt-wrt54g-squashfs.bin
- Upgrade
Don't interrupt upgrade (if mistakenly do, just use atftp to upload 
the firmware). 
- "Upgrade is successful." Continue. "Unable to connect"

Continue by changing the password and uploading weela specific settings 
according to instructions above. 

=== Troubleshooting ===

==== Where did it go? ====

Typical addresses for the control interface are:
http://@admin:192.168.1.1
telnet 192.168.1.1
ssh root@192.168.1.1

Because the access point has the same address as a gateway and for 
control interface, you can find it's address with
	route -n 
on a computer that is on the same network. 

At the same time you can check that you only have routes for wireless 
(eth1) and not for disconnected wired (eth0). If you have double routes, 
you can fix it by disabling wired networking. On Ubuntu, Administration: 
Networking, eth0, deactivate. 



