lede-Heleguo/package/boot/uboot-envtools/files
Shiji Yang 63af18b5a9 ramips: add support for H3C TX180x series devices
H3C TX180x series WiFi6 routers are customized by different carrier.
While these three devices look different, they use the same motherboard
inside. Another minor difference comes from the model name definition
in the u-boot environment variable.

Specifications:
 SOC:      MT7621 + MT7915
 ROM:      128 MiB
 RAM:      256 MiB
 LED:      status *2
 Button:   reset *1 + wps/mesh *1
 Ethernet:        lan *3 + wan *1 (10/100/1000Mbps)
 TTL Baudrate:    115200
 TFTP server IP:  192.168.124.99

Compatibility mode is used to guarantee the connection of old devices
that only support WiFi4 or WiFi5.

TFTP + TTL Installation:
Although a TTL connection is required for installation, we do not need
to tear down it. We can find the TTL port from the cooling hole at the
bottom. It is located below LAN3 and the pins are defined as follows:
|LAN1|LAN2|LAN3|----|WAN|
--------------------
    |GND|TX|RX|VCC|

1. Set tftp server IP to 192.168.124.99 and put initramfs firmware in
   server's root directory, rename it to a simple name "initramfs.bin".
2. Plug in the power supply and wait for power on, connect the TTL cable
   and open a TTL session, enter "reboot", then enter "Y" to confirm.
   Finally push "0" to interruput boot while booting.
3. Execute command to install a initramfs system:
   # tftp 0x80010000 192.168.124.99:initramfs.bin
   # bootm 0x80010000
4. Backup nand flash by OpenWrt LuCI or dd instruction. We need those
   partitions if we want to back to stock firmwre due to official
   website does not provide download link.
   # dd if=/dev/mtd1 of=/tmp/u-boot-env.bin
   # dd if=/dev/mtd4 of=/tmp/firmware.bin
5. Edit u-boot env to ensure use default bootargs and first image slot:
   # fw_setenv bootargs
   # fw_setenv bootflag 0
6. Upgrade sysupgrade firmware.
7. About restore stock firmware: flash the "firmware" and "u-boot-env"
   partitions that we backed up in step 4.
   # mtd write /tmp/u-boot-env.bin u-boot-env
   # mtd write /tmp/firmware.bin firmware

Additional Info:
The H3C stock firmware has a 160-byte firmware header that appears to
use a non-standard CRC32 verification algorithm. For this part of the
data, the u-boot does not check it so we can just directly replace it
with a placeholder.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-05-25 22:25:15 +08:00
..
apm821xx treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
ath79 treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
cns3xxx
fw_printsys
fw_setsys
imx_cortexa7 treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
imx_cortexa9
ipq40xx treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
ipq60xx
ipq806x treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
kirkwood treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
lantiq
layerscape
mediatek_filogic mediatek: add support for IMOU LC-HX3001 (#11812) 2024-01-21 16:00:17 +08:00
mediatek_mt7622 treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
mediatek_mt7623 treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
mpc85xx treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
mvebu treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
mxs
oxnas treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
pistachio
qualcommax qualcommax: ipq60xx: fixes boot issues 2024-02-20 20:20:10 +08:00
ramips ramips: add support for H3C TX180x series devices 2024-05-25 22:25:15 +08:00
realtek treewide: sync with upstream (#10750) 2023-01-25 15:30:35 +08:00
rockchip rockchip: add uboot-envtools support for T68M 2023-11-20 13:25:09 +08:00
uboot-envtools.sh