HowTo Foneraplus unlocking/ko
From Fon Wiki
Contents |
Final settings, tweaking (all OS)
Updating personal config from FON
Just after flashing your Fonera+ will reset with factory default settings. You can verify this going into your HTTP console on 192.168.10.1
To update your config log-on to www.fon.com, and access userzone. Select your router, and update WLAN private and public SSID names. If you don't want to change the name, please just change one letter, click on "update" button, and change again to the right name. For the private WLAN: change the WEP/WPA key encryption using the same method.
Fon.com servers will send the new config to your Fonera+. Wait few minutes and check in your local HTTP console. You don't need to reboot.
Registered or not?
If your Fonera+ has been registered before the SSH-unlock, check on your local HTTP console status if all is ok. If logo displayed is "your Fonera+ has not been registered", it is important to change this parameters to give access to users on your public WLAN.
To do this, open SSH console:
echo 1 > /etc/config/registered
Reboot your Fonera+, connect again to your HTTP local console, and verify the change to the logo: " Your Fonera is registered OK"
Bandwidth, QoS, transfer rate
Once your Fonera+ is running, configured and registered, check your transfer rate on all ports!
Default settings in original FON firmware 1.1.1r1 are 1024kb/s for download and 128kb for upload (WAN port).
Adjust this settings to your ISP speed line, in this example 2048kbs for D/L and 256 kbs for U/L.
uci set qos.wan.upload=256 uci set qos.wan.download=2048 uci commit
Reboot and perform a new speed transfer test on WLAN and LAN.
Disable FON QoS service (not recommended):
uci set qos.wan.enabled=0 uci commit
IPK packages
In this section , you will learn how to install additional packages to your Fonera+.
BEWARE installing additional packages may compromise the stability of the Fonera+, because memory leaks and malfunctions. Install packages under your own responsibility
Installing packages
Official kernel version compiled for firmware 1.1.1r1 is 2.6.19.2. You can install ipk packages from this OpenWRT repository: http://downloads.openwrt.org/kamikaze/7.06/atheros-2.6/packages except for kmod-* packages. kmod packages must be installed from original FON compilation. Here you can find a temporary repository for these kmod-*-fonera-1_mips.ipk packages.
Sometimes ipkg is very long to run, and memory errors can occur. Tips: "wget" your ipk package to /tmp, and then run it. Kill not needed processes with a "killall" command for : dnsmasq,chilli,fonstate,httpd,fonsmcd,crond,hotplug2,logger,syslogd,klogd,watch_chilli
Busybox upgrade
Busybox provided in original firmware by FON is very poor. Upgrading Busybox to version 1.4.2-1 will permit you to use "vi" editor, uptime command and retrieve colors for displaying files and directories. Perhaps more!
root@OpenWrt:~# cd /tmp root@OpenWrt:~# wget http://downloads.openwrt.org/kamikaze/7.06/atheros-2.6/packages/busybox_1.4.2-1_mips.ipk Connecting to downloads.openwrt.org [195.56.146.238:80 ] busybox_1.4.2-1_mips 100% |*****************************| 312 KB 00:00:00 ETA root@OpenWrt:~# ipkg install busybox_1.4.2-1_mips.ipk Upgrading busybox on root from 1.4.1-1 to 1.4.2-1... Configuring busybox Done.
Installation is about 5 to 7 minutes, be patient. If you get error message : ipkg: fork failed: Cannot allocate memory , please kill all processes as described in "installing packages" section. Reboot your Fonera+ after upgrading.
Auto-updates (thinclient)
FREEWLAN comments welcome! You have more experience about bricking with auto-update...
Edit the file /bin/thinclient:
Comment this line with a starting # like this
# . /tmp/.thinclient.sh
Insert a new line just after, like this:
cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
Verify:
root@OpenWrt:~# thinclient dummy root@OpenWrt:~# ls -l /tmp/th* -rw-r--r-- 1 root root 0 Oct 24 07:45 /tmp/thinclient-20071024-0745 root@OpenWrt:~#
Upgrade commands files sent by thinclient are now stored on /tmp. Check messages on FON thematic boards to know if this upgrade will modify or not the firmware. As with classic Fonera, you can launch the upgrade manually. In this example " . /tmp/thinclient-20071024-0745" will start upgrade for hotfix/firmware.
Extra HTTP menu (optional)
Diagnostics
- Source : http://trac.freewlan.info/browser/trunk/www/cgi-bin/webif/diag.sh
- Create a new file diag.sh in folder /www/cgi-bin/webif and insert this script:
#!/usr/bin/webif-page <? ### # # FreeWLAN Addons - http://www.freewlan.info # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA # # http://www.gnu.org/copyleft/gpl.html # ### . /usr/lib/webif/webif.sh validate <<EOF string|FORM_submit|@TR<<Submit>>|max=10|$FORM_submit EOF if [ "$?" != "0" ] then FORM_submit="" fi sel_diag=1 . /usr/lib/webif/advanced.sh header "Diagnostics" echo "<textarea style='width:700px; height:400px'>" eval $FORM_cmd echo "</textarea>" display_form <<EOF start_table|0|10|5 add_row add_label_cell|@TR<<Command>>: add_input_cell|cmd||tableTextButton add_button_cell|submit|@TR<<Submit>> end_row end_table EOF footer ?>
- Edit file advanced.sh in /usr/lib/webif and insert these four lines at the end of text:
<tr>
<td class=\"advancedMenu\">
<span class=\"submenu${sel_diag:+_sel}\">
<a href=\"/cgi-bin/webif/diag.sh\">@TR<<Diag_Title|Diagnostics>></a>
</span>
</td>
</tr>
- Type and send your command, here is the result for "ps -ax" :

