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 [2019/10/16 11:52] – some tags added tmomas | 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: |
| - | {{media: | + | <WRAP round important> |
| + | **The latest | ||
| + | </ | ||
| - | ===== Info ===== | + | <WRAP round important> |
| - | ^ [[wp> | + | The latest OpenWrt release (23.05.3, 23.05.4 and 22.03.7) are broken on the RE200v1! \\ |
| - | ^ Vendor | + | **Do not flash these images, you will brick your device!** |
| - | ^ [[docs: | + | </ |
| - | ^ [[docs: | + | |
| - | ^ [[docs: | + | |
| - | ^ Flash-Chip | + | |
| - | ^ Flash size | 8192 KiB | | + | |
| - | ^ RAM | 64 MiB | | + | |
| - | ^ Wireless No1 | SoC-integrated: | + | |
| - | ^ Wireless No2 | On-board chip: MT7610EN 5GHz 802.11ac | | + | |
| - | ^ USB | No | | + | |
| - | ^ [[docs: | + | |
| + | ===== Supported Versions ===== | ||
| + | <!-- ToH: { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| - | ===== Serial ====== | ||
| - | Serial port: | + | ===== Hardware Highlights ===== |
| - | {{http:// | + | <!-- ToH: { |
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| - | ===== UBoot ====== | + | ===== Installation ===== |
| + | |||
| + | <!-- ToH: { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| + | |||
| + | -> [[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) ==== | ||
| + | |||
| + | <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. | ||
| + | |||
| + | === Automatic image preparation === | ||
| + | |||
| + | The [[https:// | ||
| + | |||
| + | === Manual image preparation === | ||
| + | |||
| + | You need an original firmware, the -factory.bin image as well as a tool to fix the image checksum. The below steps worked for me (**Warning: The firmware upgrade overwrites the boot loader and there is no recovery mode present!**): | ||
| + | |||
| + | < | ||
| + | dd if=re200v1_eu_3_14_2_up_boot\(160329\).bin of=uboot.bin bs=1 count=131584 | ||
| + | cat uboot.bin openwrt-ramips-mt7620-tplink_re200-v1-squashfs-factory.bin > stock_upgrade.bin | ||
| + | </ | ||
| + | |||
| + | Then, the Header MD5sum1 needs to be fixed. You can use '' | ||
| + | |||
| + | ==== 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. (note: for v3 running TP-Link firmware > 1.1.0, Web UI rejects OpenWrt factory bin. You need to [[https:// | ||
| + | |||
| + | ==== Serial (v1 and v2) ==== | ||
| + | |||
| + | You need to configure a TFTP server at 192.168.0.10 and PUT the -factory.bin image as " | ||
| + | |||
| + | ==== 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): | ||
| + | |||
| + | < | ||
| + | |||
| + | Transfer this file to your RE200 running OpenWrt: | ||
| + | |||
| + | < | ||
| + | |||
| + | Install it by forcing a '' | ||
| + | |||
| + | < | ||
| + | |||
| + | Flashing this relatively big file takes some time, so be patient. Afterwards, you should be back to stock. | ||
| + | |||
| + | <WRAP round important> | ||
| + | **If you flash the wrong file or mess up the preparation, | ||
| + | </ | ||
| + | |||
| + | As an alternative, | ||
| + | |||
| + | ==== Back to Stock (v2, v3, v4) ==== | ||
| + | |||
| + | Download an OEM firmware from TP-Link and prepare it using the tool '' | ||
| + | |||
| + | < | ||
| + | |||
| + | Transfer the resulting file to /tmp on the device, then run '' | ||
| + | |||
| + | **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 ===== | ||
| + | ==== Info ==== | ||
| + | ^ ^ RE200v1 ^ RE200v2/ | ||
| + | ^ [[wp> | ||
| + | ^ Vendor | ||
| + | ^ [[docs: | ||
| + | ^ [[docs: | ||
| + | ^ [[docs: | ||
| + | ^ Flash-Chip | ||
| + | ^ Flash size | 8192 KiB || | ||
| + | ^ RAM | 64 MiB || | ||
| + | ^ Wireless No1 | SoC-integrated: | ||
| + | ^ Wireless No2 | On-board chip: MT7610EN 5GHz 802.11ac || | ||
| + | ^ USB | No || | ||
| + | ^ [[docs: | ||
| + | |||
| + | ==== Photos v1 ==== | ||
| + | /* =====>>>>> | ||
| + | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | ||
| + | /* e.g. {{: | ||
| + | /* Thanks, your wiki administration - Oct. 2015 */ | ||
| + | |||
| + | // | ||
| + | {{media: | ||
| + | |||
| + | // | ||
| + | {{media: | ||
| + | |||
| + | // | ||
| + | {{media: | ||
| + | |||
| + | ==== Opening the case ==== | ||
| + | |||
| + | **Note:** This will void your warranty! | ||
| + | |||
| + | 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. | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | ==== Serial ==== | ||
| + | |||
| + | Serial port: 3.3V voltage (measured on RE200v1), 57600 baud, 8N1.\\ | ||
| + | {{media: | ||
| + | |||
| + | Interrupting U-Boot depends on your terminal: for interrupting U-Boot, you must not send a line feed! | ||
| + | |||
| + | 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 | ||
| < | < | ||
| Line 106: | Line 278: | ||
| </ | </ | ||
| - | ===== Photos | + | ===== U-Boot from RE200 Ver. 4.0 ====== |
| - | Photos of v1.X PCB:\\ | + | |
| - | {{http://tplink-forum.pl/ | + | < |
| - | {{http:// | + | 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 | ||
| + | |||
| + | ============================================ | ||
| + | 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 |