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 [2015/11/09 07:49] (current)
dllud Written guide on how to flash, based on link (one never knows when it may go offilne).
Line 1: Line 1:
  
 +===== Fonera 2.0n (FON2303) =====
 +
 +=== Flashing OpenWRT ===
 +
 +1) Flash an official developer image.\\
 +1.1) Download the ''​.tgz''​ (latest is [[http://​download.fonosfera.org/​LATEST/​fonera2.0n-FON2303/​FON2202_2.3.7.1_DEV.tgz|FON2202_2.3.7.1_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/​ramips/​rt305x/​openwrt-15.05-ramips-rt305x-fonera20n-squashfs-sysupgrade.bin
 +4) Flash
 +  # mtd -r write openwrt.bin image
 +
 +Source: https://​fonera.tsaitgaist.info/​doku.php?​id=flash2.0n#​ssh.
 +
 +To install LuCi interface after an upgrade:
 +  # opkg update
 +  # opkg install luci-ssl
 +  # /​etc/​init.d/​uhttpd start
 +  # /​etc/​init.d/​uhttpd enable
 + 
 +=== 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).