openwrt/package/boot/uboot-envtools/files
Adrian Schmutzler 39614f8fa9 ramips: fix partitions and boot for RAVPower RP-WD03
The RAVPower RP-WD03 is a battery powered router, with an Ethernet and
USB port. Due due a limitation in the vendor supplied U-Boot bootloader,
we cannot exceed a 1.5 MB kernel size, as is the case with recent builds
(i.e. post v19.07). This breaks both factory and sysupgrade images.

To address this, use the lzma loader (loader-okli) to work around this
limitation.

The improvements here also address the "misplaced" U-Boot environment
partition, which is located between the kernel and rootfs in the stock
image / implementation. This is addressed by making use of mtd-concat,
maximizing space available in the booted image.
This will make sysupgrade from earlier versions impossible.

Changes are based on the recently supported HooToo HT-TM05, as the
hardware is almost identical (except for RAM size) and is from the same
vendor (SunValley). While at it, also change the SPI frequency
accordingly.

Installation:

 - Download the needed OpenWrt install files, place them in the root
   of a clean TFTP server running on your computer. Rename the files as,
   - openwrt-ramips-mt7620-ravpower_rp-wd03-squashfs-kernel.bin => kernel
   - openwrt-ramips-mt7620-ravpower_rp-wd03-squashfs-rootfs.bin => rootfs
 - Plug the router into your computer via Ethernet
 - Set your computer to use 10.10.10.254 as its IP address
 - With your router shut down, hold down the power button until the first
   white LED lights up.
 - Push and hold the reset button and release the power button. Continue
   holding the reset button for 30 seconds or until it begins searching
   for files on your TFTP server, whichever comes first.
 - The router (10.10.10.128) will look for your computer at 10.10.10.254
   and install the two files. Once it has finished installation, it will
   automatically reboot and start up OpenWrt.
 - Set your computer to use DHCP for its IP address

Notes:

 - U-Boot environment can be modified, u-boot-env is preserved on initial
   install or sysupgrade
 - mtd-concat functionality is included, to leave a "hole" for u-boot-env,
   combining the OEM kernel and rootfs partitions

Most of the changes in this commit are the work of Russell Morris (as
credited below), I only wrapped them up and added compat-version.
Thanks to @mpratt14 and @xabolcs for their help getting the lzma loader
to work!

Fixes: 5ef79af4f8 ("ramips: add support for Ravpower WD03")

Suggested-by: Russell Morris <rmorris@rkmorris.us>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:06:58 +00:00
..
apm821xx apm821xx: add support for the Netgear WNDAP620 and WNDAP660 2018-11-26 12:05:46 +01:00
ath79 ath79: add support for Senao Engenius ENH202 v1 2021-09-01 08:06:55 +00:00
cns3xxx treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00
imx6 imx6: use device-tree compatible for board name 2020-07-27 12:10:45 +02:00
ipq40xx ipq40xx: add support for Buffalo WTR-M2133HP 2020-07-08 16:07:05 +02:00
ipq806x ipq806x: add support for Linksys EA7500 V1 2020-07-08 16:07:05 +02:00
kirkwood kirkwood: use real model names for Linksys devices 2020-07-31 15:03:43 +02:00
lantiq lantiq: use the compatible string as board name 2017-12-16 23:33:56 +01:00
layerscape uboot-envtools: add configuration for Traverse LS1043 boards. 2018-07-30 10:53:57 +02:00
mpc85xx mpc85xx: add support for OCEDO Panda 2019-01-26 17:10:19 +01:00
mvebu mvebu: add support for MACCHIATObin Single Shot 2020-07-12 02:06:02 +02:00
mxs uboot-envtools: mxs: add support for olimex, imx23-olinuxino 2020-03-08 15:10:55 +01:00
oxnas uboot-envtools: fix fw_env.config for ox820/stg-212 2019-04-11 19:21:55 +02:00
pistachio pistachio: remove custom board detection override 2017-03-22 11:43:22 +01:00
ramips ramips: fix partitions and boot for RAVPower RP-WD03 2021-09-01 08:06:58 +00:00
uboot-envtools.sh uboot-envtools: check for config prior to append 2019-12-17 19:35:16 +02:00