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/01/03 18:37] – Datatables added; unsupported tag removed; broken links to pictures removed 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> |
| - | {{media: | + | **The latest |
| - | {{media: | + | </ |
| + | <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: | ||
| - | ==== Web Interface ==== | + | 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 | ||
| - | It is possible to install OpenWrt via the TP-Link web interface. 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 | + | <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 | ||
| < | < | ||
| Line 57: | Line 70: | ||
| </ | </ | ||
| - | Then, the Header MD5sum1 needs to be fixed. You can use '' | + | Then, the Header MD5sum1 needs to be fixed. You can use '' |
| - | ==== Serial ==== | + | ==== 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 | ||
| + | |||
| + | You need to configure a TFTP server at 192.168.0.184 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 ===== | ===== 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 69: | Line 93: | ||
| < | < | ||
| - | Put the resulting re200v1_tftp.bin image as " | + | 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 ===== | ===== Hardware ===== | ||
| ==== Info ==== | ==== Info ==== | ||
| - | ^ ^ RE200v1 ^ RE200v3 | + | ^ ^ RE200v1 ^ RE200v2/ |
| ^ [[wp> | ^ [[wp> | ||
| ^ Vendor | ^ Vendor | ||
| Line 82: | Line 156: | ||
| ^ Flash size | 8192 KiB || | ^ Flash size | 8192 KiB || | ||
| ^ RAM | 64 MiB || | ^ RAM | 64 MiB || | ||
| - | ^ Wireless No1 | SoC-integrated: | + | ^ Wireless No1 | SoC-integrated: |
| - | ^ Wireless No2 | On-board chip: MT7610EN 5GHz 802.11ac | ? | | + | ^ Wireless No2 | On-board chip: MT7610EN 5GHz 802.11ac || |
| ^ USB | No || | ^ USB | No || | ||
| ^ [[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 94: | Line 168: | ||
| // | // | ||
| - | **Insert photo of front of the casing** | + | {{media: |
| //Back://\\ | //Back://\\ | ||
| - | **Insert photo of back of the casing** | + | {{media: |
| - | //Backside label://\\ | + | //Bottom://\\ |
| - | **Insert photo of backside label** | + | {{media: |
| ==== Opening the case ==== | ==== Opening the case ==== | ||
| Line 106: | 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. |
| - | FIXME //Describe what needs to be done to open the device, e.g. remove rubber feet, adhesive labels, screws, ...// | + | |
| - | * To remove the cover and open the device, do a/b/c | + | |
| - | </ | + | |
| - | //Main PCB://\\ | + | {{page> |
| - | **Insert photo of PCB** | + | |
| ==== Serial ==== | ==== Serial ==== | ||
| - | Serial port: | + | Serial port: |
| - | {{media: | + | {{media: |
| Interrupting U-Boot depends on your terminal: for interrupting U-Boot, you must not send a line feed! | Interrupting U-Boot depends on your terminal: for interrupting U-Boot, you must not send a line feed! | ||
| - | ===== UBoot ====== | + | 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 201: | 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 |