User Tools

Site Tools


toh:fon:fonera

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:fonera [2012/09/26 17:40]
toh:fon:fonera [2014/12/29 00:01] (current)
roma
Line 26: Line 26:
   * SPI-Bus   * SPI-Bus
  
-Power:+FON2200 PCB front 
 +{{:media:​fon2200-pcb-front.jpg}}
  
-FON2100: 5V - Internally this is regulated to 3.3V by a linear regulator, so it will probably work on anything from 4 to 6V. But higher voltage will add to the heat issues of the device.+FON2200 PCB back 
 +{{:​media:​toh:​fon2200-pcb-back.jpg}} 
 + 
 +==== Power ==== 
 + 
 +FON2100: 5V - Internally this is regulated to 3.3V by a linear regulator, so it will probably work on anything from 4 to 6V. But higher voltage will add to the heat issues of the device. La Fonera comes with an I.T.E. Power Supply Model MU12-2050200-A1. This power supply has a 5.5mm outer diameter and 2.5mm inner diameter plug with tip-positive / ring-negative polarity. You can get a cheap replacement [[http://​dx.com/​p/​ac-power-adapter-for-wireless-router-surveillance-security-camera-5-5x2-5mm-us-plug-100-240v-101106|here]].
  
 FON2200: 7.5V (small connector) - Internally this is regulated to 3.3V by a switched regulator, so it will probably work on anything from 4 to 16V, without adding to heat. A 12V supply voltage is proved to work. FON2200: 7.5V (small connector) - Internally this is regulated to 3.3V by a switched regulator, so it will probably work on anything from 4 to 16V, without adding to heat. A 12V supply voltage is proved to work.
 +
 ==== Serial port ==== ==== Serial port ====
 __**Note**__:​ RXD and TXD directions are from the computer side (i.e. swapped with respect to Fonera board side): __**Note**__:​ RXD and TXD directions are from the computer side (i.e. swapped with respect to Fonera board side):
Line 53: Line 60:
 </​code>​ </​code>​
  
-[[http://jauzsi.hu/img/others/​fonera_serial.jpg|Here]],​ you can have a visual confirmation of pining for [[http://jauzsi.hu/img/others/​fonera_serial.jpg|FON2100 serial port]] with corresponding signals:+[[http://www.hidaba.com/​wp-content/​uploads/​2007/​11/​fonera-serial.jpg|Picture with labels]] 
 +[[http://​www.shadowandy.net/​wp/​wp-content/​uploads/​laFoneraSerialPinout.jpg|Another picture with labels]] 
 + 
 + 
 +[[http://​fonblog.files.wordpress.com/2006/10/​fonera_serial.jpg|Here]],​ you can have a visual confirmation of pining for [[http://fonblog.files.wordpress.com/2006/10/​fonera_serial.jpg|FON2100 serial port]] with corresponding signals:
  
 ^ Signal ^ Color ^ ^ Signal ^ Color ^
Line 71: Line 82:
  E | |RAM                  |  E | |RAM                  |
  R | |                     |  R | |                     |
 +
 </​code>​ </​code>​
 +=== Open-Mesh OM1P ===
  
 +Looking inside, with the connectors at your left hand:
 +<​code>​
 +---+  +----------------+
 + P |  |3.3V RXD TXD GND|
 + O |  +----------------+
 + W | +---------------------+
 + E | |RAM                  |
 + R | |                     |
 +</​code>​
 ==== GPIO ==== ==== GPIO ====
 | GPIO | Description |  | GPIO | Description | 
Line 98: Line 120:
   * SMC WEBT-G   * SMC WEBT-G
   * Siemens Gigaset Wlan repeater 108   * Siemens Gigaset Wlan repeater 108
 +
 Copies of the mentioned FCC-documents may also be found at http://​mobileaccess.de/​fonera/​ Copies of the mentioned FCC-documents may also be found at http://​mobileaccess.de/​fonera/​
  
Line 455: Line 478:
 In order to install a new image from RedBoot you need to first gain access to RedBoot either via serial cable or Telnet. ​ The //2100A// does by default //not// allow Telnet access to the boot loader, but it is possible to enable it without having to open the device and attaching a serial cable (see [[#​enabling.telnet.into.redboot.without.serial.access|"​Enabling Telnet into RedBoot without Serial Access"​]] on how to do that). In order to install a new image from RedBoot you need to first gain access to RedBoot either via serial cable or Telnet. ​ The //2100A// does by default //not// allow Telnet access to the boot loader, but it is possible to enable it without having to open the device and attaching a serial cable (see [[#​enabling.telnet.into.redboot.without.serial.access|"​Enabling Telnet into RedBoot without Serial Access"​]] on how to do that).
  
-You also need a machine where you can run a TFTP server. ​ RedBoot will expect a TFTP server from where it will download the image files to be flashed onto the router. ​ **Note:** It's also possible to use an HTTP server; this might be easier for you. I have not tested this myself, though. If you're successful ​please edit this page appropriately.)+You also need a machine where you can run a TFTP server. ​ RedBoot will expect a TFTP server from where it will download the image files to be flashed onto the router. ​ **Note:** It's also possible to use an HTTP server; this has been tested with om1p and did not work. If you have other experience ​please edit this page.)
  
 === Step 1: Downloading the OpenWrt Images === === Step 1: Downloading the OpenWrt Images ===
Line 463: Line 486:
   * [[http://​downloads.openwrt.org/​kamikaze/​8.09.2/​atheros/​openwrt-atheros-root.squashfs]]   * [[http://​downloads.openwrt.org/​kamikaze/​8.09.2/​atheros/​openwrt-atheros-root.squashfs]]
  
-Copy ''​openwrt-atheros-vmlinux.lzma''​ and ''​openwrt-atheros-root.squashfs''​ to the machine where your TFTP server is running, into the directory from where TFTP is serving its files (on //Debian//, for example, this would be ''/​srv/​tftp''​) ​(**Note:​** if you use an HTTP server the directory ​will of course ​be different.)+Copy ''​openwrt-atheros-vmlinux.lzma''​ and ''​openwrt-atheros-root.squashfs''​ to the machine where your TFTP server is running, into the directory from where TFTP is serving its files (on //Debian//, for example, this would be ''/​srv/​tftp''​. ​Use '​apt-get install atftpd'​ on Debian and all will be setup for you).
  
 === Step 2: Access and Configure RedBoot === === Step 2: Access and Configure RedBoot ===
Line 471: Line 494:
 </​code>​ </​code>​
  
-We now configure the address of the TFTP (or HTTP) server. ​ Below, replace the two IP address placeholders with something that applies to you.  The router ​IP address is only temporary, it must be a free IP address ​from the subnet ​of the server. ​ If you are connected to RedBoot via Telnet, ​use the same address that you telnetted ​to.+We now configure the address of the TFTP (or HTTP) server. ​ Below, replace the two IP address placeholders with something that applies to you.  The first IP in the command, "IP address ​of the server",​ is the IP address of the TFTP server that you have running that will serve the OpenWRT images to La Fonera. The second IP in the command, "IP address for the router" ​is only temporary, it must be a free IP address ​in the same subnet ​as the TFTP server. ​ If you are connected to RedBoot via Telnet, ​set the "IP address for the router"​ to the IP address that you telneted ​to (192.168.1.254). The switch //-l// is for //local//.
 <​code>​ <​code>​
 RedBoot> ip_address -h <IP address of the server> -l <IP address for the router>/​24 RedBoot> ip_address -h <IP address of the server> -l <IP address for the router>/​24
Line 477: Line 500:
 Default server: [...] Default server: [...]
 </​code>​ </​code>​
 +
 +For example:
 +
 +**Step A:** Stop network-manager on your local computer
 +<​code>#​ /​etc/​init.d/​network-manager stop</​code>​
 +**Step B:** Set up your computers interface with static ip
 +<​code>#​ ifconfig eth0 192.168.0.2/​24</​code>​
 +**Step C:** Set Redboot interface (-l) and tftp server (-h)
 +<​code>​RedBoot>​ ip_address -h 192.168.0.2 -l 192.168.0.1/​24</​code>​
 RedBoot is now ready to receive the image files from your machine. RedBoot is now ready to receive the image files from your machine.
  
Line 487: Line 519:
 </​code>​ </​code>​
 The target addresses given in the above message will vary, depending on kernel size. (**Note:*** to load via HTTP append "''​-m HTTP''"​ to the ''​load''​ command. Not tested.) The target addresses given in the above message will vary, depending on kernel size. (**Note:*** to load via HTTP append "''​-m HTTP''"​ to the ''​load''​ command. Not tested.)
 +
 +**Note:** sometimes tftp need absolute path of the file. Example: //load -r -b %{FREEMEMLO} "/​srv/​tftp/​openwrt-atheros-vmlinux.lzma"//​
  
 Next, we initialize the FIS (flash memory partition table). ​ //This will wipe the currently installed system off the router, caveat emptor!// Next, we initialize the FIS (flash memory partition table). ​ //This will wipe the currently installed system off the router, caveat emptor!//
Line 516: Line 550:
 ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
 </​code>​| </​code>​|
-**Note:​** ​again, ​append "''​-m HTTP''"​ to the ''​load''​ command to load the image via HTTP (untested).+**Note:** append "''​-m HTTP''"​ to the ''​load''​ command to load the image via HTTP (probably doesn'​t work, use tftp instead).
  
 There is no need to give any other parameters to ''​fis create'',​ because the rootfs is longer than the kernel image, and we loaded it to ''​%{FREEMEMLO}''​ just as we did with the kernel image before. ​ If you give the remaining free bytes on the flash as length, as we did, the rootfs will begin just after the kernel that we flashed before (''​fis create''​ takes care of that) and occupy all remaining space on the flash device (because we calculated our //LENGTH// value that way). There is no need to give any other parameters to ''​fis create'',​ because the rootfs is longer than the kernel image, and we loaded it to ''​%{FREEMEMLO}''​ just as we did with the kernel image before. ​ If you give the remaining free bytes on the flash as length, as we did, the rootfs will begin just after the kernel that we flashed before (''​fis create''​ takes care of that) and occupy all remaining space on the flash device (because we calculated our //LENGTH// value that way).
Line 681: Line 715:
   Done. Restarting device...   Done. Restarting device...
 </​code>​ </​code>​
 +
 +===== Software Hacks =====
 +
 +==== Disabling serial console ====
 +
 +Easy hack to disable serial console without recompiling kernel, unpack vmlinuz.lzma,​ search for console= and replace with null and spaces using mfill in redboot. Also comment out /dev/ttyS0 in /​etc/​inittab. This is fconfig for Backfire 10.03.1 :
 +
 +<​code>​
 +RedBoot> fconfig -l
 +Run script at boot: true
 +Boot script:
 +.. fis load -l vmlinux.bin.l7
 +.. mfill -b 0x802B3FF8 -l 4 -4 -p 0x6E756C6C
 +.. mfill -b 0x802B3FFc -l 6 -1 -p 0x20
 +.. exec
 +Boot script timeout (1000ms resolution):​ 10
 +Use BOOTP for network configuration:​ false
 +Gateway IP address: 0.0.0.0
 +Local IP address: 192.168.1.1
 +Local IP address mask: 255.255.255.0
 +Default server IP address: 192.168.1.10
 +Console baud rate: 9600
 +GDB connection port: 9000
 +Force console for special debug messages: false
 +Network debug at boot time: false
 +</​code>​
 +
  
 ===== Hardware Hacks ===== ===== Hardware Hacks =====
-As with most routers, the Fonera ​has some GPIO pins that extra hardware ​can be connected to.+==== Second antenna ==== 
 +=== FON2100 === 
 +The FON2100 PCB has a pad ready to solder a second antenna. With it you can use antenna diversity to increase your signal quality in environments ​with reflections (e.g. due to walls) and moving clients. Check the instructions on: [[http://​www.dd-wrt.com/​wiki/​index.php/​LaFonera_Hardware_Second-Antenna|]] 
 + 
 +=== FON2200 === 
 +On the other hand FON2200 has the second antenna already etched into the PCB. Stillyou can replace it with an external antenna to take further advantage of antenna diversity. Replacing the etched antenna by a regular omnidirectional external antenna like the Fonera ​stock one can get you more 4 dBm on antenna 2. However, this mod will only improve your link quality if antenna diversity is highly used, for instance due to moving clients. In other scenarios an unmodified FON2200 just selects antenna 1 (the best one) do to all the transmissions/​receptions;​ adding a copy of it will improve nothing. 
 + 
 +== How to do it == 
 +{{ :​media:​toh:​fon2200-PCB-front-highlighted.jpg }} 
 +The picture above shows an annotated photo of FON2200 PCB. On the downer right corner there are the antenna outputs, with antenna 1 highlighted in red and antenna 2 in yellow. As can be seen antenna 1 goes to the center of the coaxial cable leading to the external antenna. On the other hand antenna 2 goes to a via (through-hole path) which is then connected to ground. The etched antenna which can be seen on the upper right conner is connected to ground and thus to antenna 2 output. 
 + 
 +In this scenario you can solder a RP-SMA pigtail connected to antenna 2 output in at least two different places. 
 + 
 +== Place 1: downer right corner, after the chip == 
 +{{ :​media:​toh:​fon2200-after-chip-mod.jpg }} 
 +Take a look at the picture above. You need to: 
 +  - Cut the path which connects antenna 2 output to the via going to ground. Use a continuity tester connected between antenna 2 output and any ground point to make sure the cut was done properly. 
 +  - Scrape out the PCB varnish coating from the middle of the right-side long rectangular pad. Solder the center of the coaxial cable from the RP-SMA pigtail here. 
 +  - Solder the coaxial cable shield to ground. The easiest place to do so is along the rectangular copper line where FON2100 had its Faraday cage and cooler connected to ground. Along this line there are tinned points which should be used to facilitate the work. 
 + 
 +Final result should look like the pictures below. 
 +{{ :​media:​toh:​fon2200-2nd-antenna-mod-soldering-detail.jpg }} 
 +{{ :​media:​toh:​fon2200-2nd-antenna-mod.jpg }} 
 + 
 +Advantages: tested and working, easily reversible. 
 +Disadvantages:​ difficult to solder the coaxial cable center on a point which does not come tinned from factory. 
 + 
 +Original idea by Cardiak on [[http://​foro.seguridadwireless.net/​hardware/​anadir-una-2a-antena-a-fonera-2200/​|Añadir una 2ª antena a fonera 2200 - Foro Seguridad Wireless]]. 
 + 
 +== Place 2: upper right corner, before the etched antenna == 
 +{{ :​media:​toh:​fon2200-before-ant-mod.jpg }} 
 +Take a look at the picture above. You need to: 
 +  - Desolder capacitor C146. 
 +  - Solder the center of the coaxial cable from the RP-SMA pigtail to the inferior pad of C146. 
 +  - Solder the shield of the coaxial cable to the left pad of the missing R159, which is connected to ground. 
 + 
 +Advantages: easier to solder as all points are tinned. 
 +Disadvantages:​ hardly reversible (you would have to resolder C146), not tested. 
 + 
 +Original idea by radio3 on [[http://​www.wifi-ita.com/​forum/​viewtopic.php?​t=10451|Fonera 2200 e 2° antenna - Forum WiFi-ITA.com]]
  
 ==== Hardware mp3 client ==== ==== Hardware mp3 client ====
Line 701: Line 801:
   * [[http://​code.google.com/​p/​fonera-i2c/​wiki/​FoneraHacks|Fonera I²C bus with GPIO]]   * [[http://​code.google.com/​p/​fonera-i2c/​wiki/​FoneraHacks|Fonera I²C bus with GPIO]]
  
-==== Various ​Hardware Mods ==== +==== Various ​hardware mods ==== 
-  * [[http://​www.dd-wrt.com/​wiki/​index.php/​Category:​LaFonera_Hardware_%28en%29| Various hw mods on dd-wrt page (32MB RAM, second antenna, etc.)]]+  * [[http://​www.dd-wrt.com/​wiki/​index.php/​Category:​LaFonera_Hardware_%28en%29| Various hw mods on dd-wrt page (32 MB RAM, second antenna, etc.)]] 
  
 ===== Resources ===== ===== Resources =====
Line 724: Line 825:
 For some Help with the Tags, please have a look here: [[meta/​tags]] For some Help with the Tags, please have a look here: [[meta/​tags]]
  
-{{tag>​FastEthernet ​1Port serial integrated 802.11bg DetachableAntenna 16RAM 8Flash MIPS 4KEc}}+{{tag>​FastEthernet ​1NIC no_switch ​serial integrated 802.11bg DetachableAntenna 16RAM 8Flash MIPS 4KEc}}
toh/fon/fonera.1348674028.txt.bz2 · Last modified: 2012/09/26 17:40 (external edit)