Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| toh:tp-link:re200 [2020/07/09 11:59] – [Serial] idarek | toh:tp-link:re200 [2024/09/20 22:23] (current) – Add notes to flash OpenWrt on official Web UI for v3 ivzhh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== TP-Link RE200 ====== | ====== TP-Link RE200 ====== | ||
| - | The [[toh: | + | The [[toh: |
| + | |||
| + | <WRAP round important> | ||
| + | **The latest RE200 v5 is not supported by OpenWrt! The device only has 4MB of flash and runs VxWorks by default.** | ||
| + | </ | ||
| + | |||
| + | <WRAP round important> | ||
| + | The latest OpenWrt release (23.05.3, 23.05.4 and 22.03.7) are broken on the RE200v1! \\ | ||
| + | **Do not flash these images, you will brick your device!** | ||
| + | </ | ||
| ===== Supported Versions ===== | ===== Supported Versions ===== | ||
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | headers | + | " |
| - | align : c,c,c,c,c,c,c | + | " |
| - | filter | + | " |
| - | ---- | + | " |
| + | | ||
| + | } --> | ||
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== | ||
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | header | + | " |
| - | align : c,c,c,c,c,c,c,c,c,c,c,c,c | + | " |
| - | filter | + | |
| - | ---- | + | " |
| + | | ||
| + | } --> | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | /* **Release** */ | + | <!-- ToH: { |
| - | /* uncomment when release is available; at the same time, remove the snapshot datatables below */ | + | " |
| - | /* | + | " |
| - | ---- datatable ---- | + | " |
| - | cols | + | |
| - | headers | + | " |
| - | align : c,c,c | + | |
| - | filter | + | } --> |
| - | ---- | + | |
| - | */ | + | |
| - | + | ||
| - | ---- datatable ---- | + | |
| - | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url | + | |
| - | headers | + | |
| - | align : c,c,c | + | |
| - | filter | + | |
| - | ---- | + | |
| -> [[docs: | -> [[docs: | ||
| + | Note that the time for an initial flash is very long for these devices. Users should expect 20 minutes before being able to access it, V4 can be 10 minutes, V1 is slower. Further sysupgrades may be a little faster at around 8 minutes. | ||
| ==== Web Interface Method (v1) ==== | ==== Web Interface Method (v1) ==== | ||
| + | |||
| + | <WRAP round important> | ||
| + | The latest OpenWrt release (23.05.3, 23.05.4 and 22.03.7) are broken on the RE200v1! \\ | ||
| + | **Do not flash these images, you will brick your device!** | ||
| + | </ | ||
| It is possible to install OpenWrt via the TP-Link web interface, but you need to prepare the image first. | It is possible to install OpenWrt via the TP-Link web interface, but you need to prepare the image first. | ||
| Line 49: | Line 59: | ||
| === Automatic image preparation === | === Automatic image preparation === | ||
| - | A GUI tool for creating a web-flashable image based on an original TP-Link firmware image and an OpenWrt image is available | + | The [[https:// |
| === Manual image preparation === | === Manual image preparation === | ||
| Line 62: | Line 72: | ||
| Then, the Header MD5sum1 needs to be fixed. You can use '' | Then, the Header MD5sum1 needs to be fixed. You can use '' | ||
| - | ==== Web Interface Method (v2) ==== | + | ==== Web Interface Method (v2, v3, v4) ==== |
| - | Simply install the -factory.bin image via the stock web interface. This procedure does not overwrite U-Boot, hence you have higher chances of being able to recover from a bad flash. | + | Simply install the -factory.bin image via the stock web interface. This procedure does not overwrite U-Boot, hence you have higher chances of being able to recover from a bad flash. |
| ==== Serial (v1 and v2) ==== | ==== Serial (v1 and v2) ==== | ||
| - | You need to configure a TFTP server at 192.168.0.10 and put the -factory.bin image as " | + | You need to configure a TFTP server at 192.168.0.10 and PUT the -factory.bin image as " |
| - | ===== Back to Stock (v1) ===== | + | ==== Serial (v4) ==== |
| + | |||
| + | You need to configure a TFTP server at 192.168.0.184 and PUT the -factory.bin image as " | ||
| + | |||
| + | |||
| + | ===== Back to Stock ===== | ||
| + | |||
| + | ==== Back to Stock (v1) ==== | ||
| Download an OEM firmware from TP-Link and prepare it as follows (we need to strip the first 0x200 bytes TP-Link header and the next 0x20000 bytes U-Boot): | Download an OEM firmware from TP-Link and prepare it as follows (we need to strip the first 0x200 bytes TP-Link header and the next 0x20000 bytes U-Boot): | ||
| Line 76: | Line 93: | ||
| < | < | ||
| - | Put the resulting | + | Transfer this file to your RE200 running OpenWrt: |
| + | |||
| + | < | ||
| + | |||
| + | Install | ||
| + | |||
| + | < | ||
| + | |||
| + | Flashing this relatively big file takes some time, so be patient. Afterwards, | ||
| + | |||
| + | <WRAP round important> | ||
| + | **If you flash the wrong file or mess up the preparation, | ||
| + | </ | ||
| - | In theory, you could also you '' | + | As an alternative, you can use serial console: Put the resulting re200v1_tftp.bin image as " |
| - | ===== Back to Stock (v2) ===== | + | ==== Back to Stock (v2, v3, v4) ==== |
| Download an OEM firmware from TP-Link and prepare it using the tool '' | Download an OEM firmware from TP-Link and prepare it using the tool '' | ||
| - | < | + | < |
| Transfer the resulting file to /tmp on the device, then run '' | Transfer the resulting file to /tmp on the device, then run '' | ||
| **Attention: | **Attention: | ||
| + | |||
| + | **Note:** RE200v4 OEM firmware requires a '' | ||
| + | |||
| + | If you | ||
| + | |||
| + | - Upgrade from stock to OpenWrt or | ||
| + | - Upgrade stock to newer stock version | ||
| + | |||
| + | it will require the firmware image to contain a later firmware version than the one currently installed. However, if OpenWrt is always $STOCK+1, you cannot simply flash OpenWrt and revert to stock. Doing so would leave you with the OpenWrt-supplied FW version stored in the soft-version partition. Stock will then refuse any FW with a version lower or equal to this; which simply might not exist. | ||
| + | |||
| + | This also makes the following impossible: | ||
| + | |||
| + | - flash OpenWrt | ||
| + | - revert to stock | ||
| + | - flash OpenWrt again (fails because the firmware already has the version used by this image) | ||
| + | |||
| + | If the obove mentioned serial recovery should fail because of this, one could do the following: | ||
| + | - place openwrt-ramips-mt76x8-tplink_re200-v4-initramfs-kernel.bin as test.bin at the tftp server (if you compile that target it will drop in bin/targets along with the other images) | ||
| + | - press 4 to enter console mode (write help for available commands) | ||
| + | - tftp to load image into ram | ||
| + | - bootm to start the kernel | ||
| + | - you now have a running openwrt kernel and may bring a working image to /tmp (wget) | ||
| + | - sysupgrade with your image | ||
| + | |||
| + | This however will not overwrite '' | ||
| + | |||
| ===== Hardware ===== | ===== Hardware ===== | ||
| ==== Info ==== | ==== Info ==== | ||
| - | ^ ^ RE200v1 ^ RE200v2/v3 ^ | + | ^ ^ RE200v1 ^ RE200v2/v3/v4 ^ |
| ^ [[wp> | ^ [[wp> | ||
| ^ Vendor | ^ Vendor | ||
| Line 106: | Line 161: | ||
| ^ [[docs: | ^ [[docs: | ||
| - | ==== Photos ==== | + | ==== Photos |
| /* =====>>>>> | /* =====>>>>> | ||
| /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | ||
| Line 125: | Line 180: | ||
| **Note:** This will void your warranty! | **Note:** This will void your warranty! | ||
| - | <WRAP BOX> | ||
| The case is welded together and you can't open it easily. I used a swivel vise to crack open the case. If done carefully, it only leaves a few small marks. I super-glued mine back together after porting OpenWrt. | The case is welded together and you can't open it easily. I used a swivel vise to crack open the case. If done carefully, it only leaves a few small marks. I super-glued mine back together after porting OpenWrt. | ||
| - | </ | ||
| - | 4 pins from on the right (on picture) starting with top square shape not connected and following with GND, RX and TX. As noticed in version 1.1, RX and TX may be switched with places. If no output in TTL on boot, try to switch them. | + | {{page> |
| ==== Serial ==== | ==== Serial ==== | ||
| - | Serial port: | + | Serial port: |
| {{media: | {{media: | ||
| Line 138: | Line 192: | ||
| 4 pins from on the right (on the picture) starting with a top square shape not connected and following with GND, RX and TX. As noticed in version 1.1, RX and TX may be switched with places. If no output in TTL on boot, try to switch them. | 4 pins from on the right (on the picture) starting with a top square shape not connected and following with GND, RX and TX. As noticed in version 1.1, RX and TX may be switched with places. If no output in TTL on boot, try to switch them. | ||
| + | |||
| + | |||
| + | RE200-V4 mainboard view.\\ | ||
| + | {{media: | ||
| + | |||
| + | |||
| ===== U-Boot ====== | ===== U-Boot ====== | ||
| Line 218: | Line 278: | ||
| </ | </ | ||
| + | ===== U-Boot from RE200 Ver. 4.0 ====== | ||
| + | |||
| + | |||
| + | < | ||
| + | U-Boot 1.1.3 (Jul 8 2020 - 12:47:21) | ||
| + | |||
| + | Board: Ralink APSoC DRAM: 64 MB | ||
| + | relocate_code Pointer at: 83fb8000 | ||
| + | Use New Uboot | ||
| + | Use New Uboot patch lock_dcache addiu $12, 0x1000 | ||
| + | flash manufacture id: ef, device id 40 17 | ||
| + | find flash: W25Q64BV | ||
| + | *** Warning - bad CRC, using default environment | ||
| + | |||
| + | ============================================ | ||
| + | Ralink UBoot Version: 5.0.0.0 | ||
| + | -------------------------------------------- | ||
| + | ASIC 7628_MP (Port5< | ||
| + | DRAM component: 512 Mbits DDR, width 16 | ||
| + | DRAM bus: 16 bit | ||
| + | Total memory: 64 MBytes | ||
| + | Flash component: SPI Flash | ||
| + | Date: | ||
| + | ============================================ | ||
| + | icache: sets:512, ways:4, linesz:32 , | ||
| + | dcache: sets:256, ways:4, linesz:32 , | ||
| + | |||
| + | ##### The CPU freq = 580 MHZ #### | ||
| + | | ||
| + | RESET MT7628 PHY!!!!!! | ||
| + | |||
| + | Please choose the operation: | ||
| + | 1: Load system code to SDRAM via TFTP. | ||
| + | 2: Load system code then write to Flash via TFTP. | ||
| + | 3: Boot system code via Flash (default). | ||
| + | 4: Entr boot command line interface. | ||
| + | 7: Load Boot Loader code then write to Flash via Serial. | ||
| + | 9: Load Boot Loader code then write to Flash via TFTP. | ||
| + | default: 3 | ||
| + | 0 | ||
| + | |||
| + | 3: System Boot system code via Flash. | ||
| + | gpioMode1 Reg: 0x571504c4 | ||
| + | gpioMode2 Reg: 0x5550555 | ||
| + | tplink_turn_off_led | ||
| + | ## Booting image at bc020000 ... | ||
| + | text base: 80000000 | ||
| + | entry point: 8000c150 | ||
| + | | ||
| + | No initrd | ||
| + | ## Transferring control to Linux (at address 8000c150) ... | ||
| + | ## Giving linux memsize in MB, 64 | ||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | |||
| + | LINUX started... | ||
| + | </ | ||
| ===== Tags ===== | ===== Tags ===== | ||
| [[meta: | [[meta: | ||
| - | {{tag>mt7620a | + | {{tag>ramips |