Differences

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

toh:belkin:f7c027 [2013/02/09 04:47]
toh:belkin:f7c027 [2014/03/19 00:42] (current)
Line 13: Line 13:
| Ralink RT5350F | 32MiB | 16MiB | RT2860 Wifi | No | Yes | ? | | Ralink RT5350F | 32MiB | 16MiB | RT2860 Wifi | No | Yes | ? |
 +
 +===== Hardware =====
 +
 +{{:media:wemo_inside.jpg?300| }}
 +{{:media:wemo_mainboard_bottom.jpg?300| }}
 +{{:media:wemo_mainboard_top.jpg?300| }}
 +==== Info ====
 +
 +<code>
 +CPU: Ralink RT5350F
 +RAM: Winbond W9825G6JH - The W9825G6JH is a 256M (32MB) SDRAM
 +Flash: mx25L12835emi - 128Mbit (16MB) SPI Flash
 +Wi-Fi: Ralink RT2820
 +</code>
 +
 +==== Serial port ====
 +Serials console baudrate is : 57600,8n1
 +
 +Serial console is available on two test points:
 +<code>
 +TP2 - TX from board
 +TP3 - RX into board
 +</code>
 +
 +==== 5-pin header ====
 +<code>
 +1 White (GPIO13) - AC Relay control
 +2 Black - Gnd
 +3 Red - 5V
 +4 3.3V
 +5 GPIO14 - 0V off (default) 3.3V on
 +</code>
 +
 +==== GPIOs ====
 +
 +^ GPIO ^ Inverted ^ Purpose ^
 +| 7 | Yes | Blue status LED |
 +| 9 | Yes | Blue power On/Off LED |
 +| 10 | Yes | Top button |
 +| 11 | Yes | Orange status LED |
 +| 12 | Yes | Power On/Off button |
 +| 13 | No | AC relay control |
 +| 14 | No | Pin 5 of header |
 +
 +==== System Information ====
 +
 +==== Status ====
 +
 +Currently, a WeMo has been booted into OpenWrt, however, those changes have not yet been checked into the main tree.
 +
 +Things look very promising: Wifi works, all of the buttons and LEDs work, and the AC relay control works.
 +
 +==== Stock firmware images ====
 +
 +At this time, the only way to work with a WeMo initially is to use the RS232 pads and load firmware using the stock OS. This is somewhat tricky, as after WeMo image WeMo_US_2.00.2176.PVT_SNS, the firmware requires a root password to log in over serial. On previous firmware versions, firmware can be loaded using wget and the stock 'fwupgrade' utility.
 +
 +The stock firmware images are distributed in a standard 'sysupgrade' format with a 19-byte header prepended to the file, and then the entire thing is PGP encrypted for a Belkin-owned PGP key. Oddly, PGP is used to encrypt the file, but not to sign it, making it possible to build firmware images without the Belkin PGP key, but harder to read the belkin-distributed firmware upgrades.
 +
 +===== Bootloader =====
 +
 +The bootloader appears to be a modified U-Boot. It's built to allow the device to attempt a firmware upgrade, and then be able to fail back to the original firmware.
 +
 +It does this by keeping two complete copies of the kernel and rootfs, and uses two environment variables to track the state during an upgrade. The first is "check_boot", set to 1 when the bootloader is first testing a new firmware image, and set to 0 on successful boot. The second is bootstate, which appears to be set to 0 or 2 in normal operation, or 1 or 3 in "let's try this new firmware once" mode. Values of 0 or 1 will boot from the first kernel, 2 or 3 will boot from the second.
 +
 +This means that Openwrt can be loaded into the first kernel and rootfs partitions, and be consistently booted with bootstate=0 and check_boot=0. To recover, you can set bootstate=2, and go back to the stored (stock) firmware in the the alternate kernel and rootfs partitions.
 +
 +The command 'bootm' has been modified, it is not working how it is intended. It is still trying to load stuff from flash.
 +Loading and booting an openWrt over serial line is possible if you compile a cmdline into your kernel.
 +
 +<code>
 +loadb 0x80000000
 +go 0x80000000
 +</code>
==== U-Boot environment ==== ==== U-Boot environment ====
Line 105: Line 178:
tftpboot- boot image via network using TFTP protocol tftpboot- boot image via network using TFTP protocol
version - print monitor version version - print monitor version
-RT5350 #  
- 
- 
RT5350 # printenv RT5350 # printenv
Line 140: Line 210:
RT5350 # RT5350 #
</code> </code>
- 
- 
- 
-===== Hardware ===== 
- 
-{{:media:wemo_inside.jpg?300| }} 
-{{:media:wemo_mainboard_bottom.jpg?300| }} 
-{{:media:wemo_mainboard_top.jpg?300| }} 
-==== Info ==== 
- 
-<code> 
-CPU: Ralink RT5350F 
-RAM: Winbond W9825G6JH - The W9825G6JH is a 256M (32MB) SDRAM  
-Flash: mx25L12835emi - 128Mbit (16MB) SPI Flash 
-Wi-Fi: Ralink RT2820 
-</code> 
- 
-==== Serial port ==== 
-Serials console baudrate is : 57600,8n1 
- 
-Serial console is available on two test points: 
-<code> 
-TP2 - TX from board 
-TP5 - RX into board 
-</code> 
- 
-==== 5-pin header ==== 
-1 White - AC Relay control 
-2 Black - Gnd 
-3 Red - 5V 
-4 ? - 5V? 
-5 ? - 0V? 
- 
-==== System Information ==== 
-**1) cat /proc/version** 
-<code> 
- 
-</code> 
- 
-==== Bootlogs ==== 
Line 496: Line 526:
===== GPL source code ===== ===== GPL source code =====
Buildable source code is available at http://www.belkin.com/support/opensource/ Buildable source code is available at http://www.belkin.com/support/opensource/
 +
 +===== Tags =====
 +----
 +{{tag>ramips rt5350 32ram wlan mips32 mips }}

Back to top

toh/belkin/f7c027.1360381626.txt.bz2 · Last modified: 2013/02/09 04:47 (external edit)