User Tools

Site Tools


toh:fon:fonera2.0n

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:fon:fonera2.0n [2013/07/10 14:27]
toh:fon:fonera2.0n [2016/11/02 16:43] (current)
yannick56 [Flashing OpenWrt]
Line 1: Line 1:
 +====== Fonera 2.0n (FON2303) ======
  
 +---- datatable ----
 +cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Topic URL_url, Device Techdata_pageid
 +headers : Brand, Model, Version, Current Release, OEM Info, Forum Topic, Technical Data
 +align   : c,​c,​c,​c,​c,​c,​c
 +filter ​ : Versions=FON2303A
 +----
 +
 +===== Hardware Highlights =====
 +---- datatable ----
 +cols    : Model, Versions, Platform, CPU MHz, Flash MB_mbflashs,​ RAM MB_mbram, WLAN Hardware, WLAN 2.4Ghz, WLAN 5.0Ghz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_
 +header ​ : Model, Version,​SoC,​CPU MHz,Flash MB,RAM MB,WLAN Hardware,​WLAN2.4,​WLAN5.0,​100M ports,Gbit ports,​Modem,​USB
 +align   : c,​c,​c,​c,​c,​c,​c,​c,​c,​c,​c,​c
 +filter ​ : Versions=FON2303A
 +----
 +
 +===== Installation =====
 +  - → [[doc:​howto:​obtain.firmware|Obtain firmware]]
 +  - → [[doc:​howto:​generic.flashing|Install OpenWrt]]
 +  - → [[about:​latest|Latest OpenWrt release]]
 +
 +---- datatable ----
 +cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url
 +headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock
 +align   : l,c,c
 +filter ​ : Versions=FON2303A
 +----
 +
 +===== Flashing Requirements =====
 +
 +  * You must have an ethernet connection (by cables) between your computer and your Fonera 2.0n. Ethernet cable plug in a LAN port (1 to 4) on your Fonera 2.0n.
 +  * You must have an ethernet connection (by cables) between Fonera 2.0n and your adsl/​internet modem/​router. Ethernet cable plug in the Internet port on your Fonera 2.0n.(This connexion is needed to download openwrt firmware archive for Fonera 2.0n and the luci web user interface).
 +  * Your computer and your Fonera 2.0n must be on the same LAN network.
 +  * You must know how to change the configuration to move your LAN devices with 192.168.10.x range IP address (LAN default IP range for Fonera 2.0n) to an 192.168.1.x range IP address (LAN default IP range for OpenWrt devices). If you have an ADSL box or a router for your LAN, you can see if you can change the DHCP default IP range in the configuration parameters.
 +
 +===== Flashing OpenWrt =====
 +
 +Note : As of 30/04/2016, the installation steps below for flashing OpenWrt were tested successfully for flashing Fonera 2.0n device with [[http://​blog.fonosfera.org/​2-3-8-0-beta-1-testing-release/​|Fon 2.3.8.0 beta 1 firmware]] to OpenWrt 15.05.1 firmware for Fonera 2.0n. 
 +
 +1) Flash an official developer image.\\ \\
 +1.1) Download the ''​.tgz''​ (latest is [[http://​download.fonosfera.org/​RC/​2.3.8.0_beta1/​FON2303_2.3.8.0_beta1_DEV.tgz|FON2303_2.3.8.0_beta1_DEV.tgz]]).\\
 +1.2) Upload it through [[http://​fonera/​luci/​fon_admin/​fon_system|Dashboard>>​Settings>>​System on the Web Interface]].\\
 +\\
 +2) Connect to the Fonera via SSH. Password is the same used for the Web Interface (default: admin):
 +  $ ssh root@192.168.10.1
 +3) Download the latest OpenWrt sysupgrade image into ''/​tmp''​ directory:
 +  # cd /tmp
 +  # wget -O openwrt.bin http://​downloads.openwrt.org/​chaos_calmer/​15.05.1/​ramips/​rt305x/​openwrt-15.05.1-ramips-rt305x-fonera20n-squashfs-sysupgrade.bin
 +4) Flash
 +  # mtd -r write openwrt.bin image
 +After starting the flashing, you get the following messages :
 +<​code>​
 + ​Unlocking image ...
 + ​Writing from openwrt.bin to image ...  [w]
 + ​Rebooting ...
 + ​Connection to 192.168.10.1 closed by remote host.
 + ​Connection to 192.168.10.1 closed.
 +</​code>​
 +Source: [[https://​fonera.tsaitgaist.info/​doku.php?​id=flash2.0n#​ssh]] and [[http://​trac.fonosfera.org/​fon-ng/​wiki/​sshflash]].
 +
 +5) Move to a new IP address range \\
 +
 +After Fonera 2.0n rebooting and up, if necessary, change the configuration (for your router or other means) to move your LAN devices with 192.168.10.x range IP address to an 192.168.1.x range IP address. ​
 +Restart your computer and your Fonera 2.0n to take in account this change and take a new IP address.
 +
 +6) First connect to your OpenWrt device and change the password. \\
 +
 +Follow the steps here: [[doc:​howto:​firstlogin|OpenWrt – First Login]]
 +
 +7) Install a web interface to manage your OpenWrt device. \\
 +
 +To install LuCi interface (initial install or after an upgrade):
 +  # opkg update
 +  # opkg install luci-ssl
 +  # /​etc/​init.d/​uhttpd start
 +  # /​etc/​init.d/​uhttpd enable
 +  ​
 +Go with your web browser to the following URL https://​192.168.1.1 and check if you can see the Luci login page. \\
 +Login : root  \\
 +Password : the password that you choose at step 6).
 +
 +Source : [[doc:​howto:​luci.essentials]]
 +
 +8) Secure wifi signal
 +
 +By default, the OpenWrt wifi signal is not secure. \\
 +In the Luci web user interface, in the menu, go to "​Network"​ > "​Wifi"​ > Click on the "​Edit"​ button > In "​Interface Configuration",​ click on "​Wireless Security"​ tab > In "​Encryption"​ scroll list, choose an WPA or WPA2 encryption > Click on the button "Save & Apply"​. \\
 +Note : DO NOT USE the WEP security algorithm, it is not secure. To help you to choose between WPA and WPA2 options : https://​en.wikipedia.org/​wiki/​Wi-Fi_Protected_Access ​
 +
 +Note 2 : If you can, disable the WPS (Wi-Fi Protected Setup) feature available for WPA and WPA2. It's a big security hole. 
 +
 +9) Use the Wifi frequencies allowed for your country
 +
 +In the Luci web user interface, in the menu, go to "​Network"​ > "​Wifi"​ > Click on the "​Edit"​ button > In "​Device Configuration",​ click on "​Advanced Settings"​ tab > In "​Country Code" scroll list, choose your country > Click on the button "Save & Apply"​. \\
 +
 +10) Tip to allow connexion to Fonera 2.0n for old device without Wifi N support. ​
 +
 +In the Luci web user interface, in the menu, go to "​Network"​ > "​Wifi"​ > Click on the "​Edit"​ button > In "​Device Configuration"​ part, for the "​Operating frequency"​ line > select "​Legacy"​ in the "​Mode"​ scrolling list > Click on the button "Save & Apply"​. \\
 +
 +11) Install the good translation for your language (optionnal). \\ 
 +
 +The basic LuCI web user interface is in English. If you want LuCI web user interface in your language, you need to install a package.
 +
 +For a list of translation available packages, do
 +<​code>​
 +opkg list | grep luci-i18n-
 +</​code>​
 +
 +The mimimum translation package for Luci is luci-i18n-base-xx where xx is the ISO code for your language. For exemple, to have the french translation :
 +<​code>​
 +opkg install luci-i18n-base-fr
 +</​code>​
 +and then refresh the Luci web page and you can see Luci in your language.
 +
 +12) Improve the security by improving the security for your router'​s access : [[doc:​howto:​secure.access|Secure your router'​s access]]
 +
 +13) Improve your knowledge about OpenWrt : [[doc:​start|Welcome to OpenWrt]]
 + 
 +===== Fonera recovering =====
 +
 +FON2303 uses U-Boot bootloader (FON2202 uses RedBoot).\\
 +If the Fonera stops working, is not accessible through the web interface or SSH, then there is still the restore option.
 +
 +1) To start the bootloader u-boot, hold the reset button while powering on.\\
 +The POWER and USB LED will go on. give your interface an IP in 192.168.1.0 (no DHCP).\\
 +Fonera has IP 192.168.1.6.
 +  $ ifconfig eth0 192.168.1.231
 +
 +2) Send the image
 +  $ tftp 192.168.1.6
 +  tftp> binary
 +  tftp> put openwrt-ramips-rt305x-fonera20n-squashfs-factory.bin
 +  tftp> quit
 +
 +3) Wait for it to flash and restart (power led blinking).\\
 +If the image is wrong, the USB LED will blink.
 +
 +4) Connect by telnet and set root password
 +  $ telnet 192.168.1.1
 +  # passwd
 +
 +5) Edit /​etc/​config/​network and add following lines    ​
 +  config interface '​lan'​
 +      ...
 +      option ipaddr '​192.168.0.2'  ​
 +      ...
 +      option gateway '​192.168.0.254'​
 +      option dns '​192.168.0.254'​
 +
 +6) Reload network
 +  # /​etc/​init.d/​network reload
 +
 +===== VLAN limitations =====
 +
 +Here is a comment found in the [[https://​gitorious.org/​lanedo/​openwrt/​source/​427ef7aa47ecfbb4b8961de4723a3d8b3e892ab2:​target/​linux/​ramips/​files/​drivers/​net/​ethernet/​ramips/​ramips_esw.c|kernel source code]] of OpenWrt:
 +  /*
 +  * HW limitations for this switch:
 +  * - No large frame support (PKT_MAX_LEN at most 1536)
 +  * - Can't have untagged vlan and tagged vlan on one port at the same time,
 +  * though this might be possible using the undocumented PPE.
 +  */
 +
 +So users of IPTV that would like to put the fonera between the ADSL modem and the video player (e.g. the freebox revolution) cannot do that as the port of the modem needs to be at the same time untagged for the internet traffic and tagged for IPTV (freebox: VLAN 100).
 +
 +===== Tags =====
 +[[meta:​tags|How to add tags]]
 +{{tag>​RT3052 8flash 64ram}}