openwrt/package/boot
Adrian Schmutzler 07aa858a73 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>
2020-09-11 19:31:03 +02:00
..
arm-trusted-firmware-mvebu packages/boot: bump arm-trusted-firmware-mvebu version 2020-02-22 18:21:37 +01:00
arm-trusted-firmware-rockchip atf-rockchip: update to 2.3 2020-07-28 15:52:44 +02:00
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: Replace with official ARM version 2019-01-13 17:35:14 +01:00
at91bootstrap at91bootstrap: harmonize indent in Makefiles 2020-08-25 19:28:42 +02:00
fconfig fconfig: cleanup Makefile 2019-04-06 19:14:06 +02:00
grub2 grub2: fix build when ASLR enabled 2020-04-02 13:42:26 +01:00
imx-bootlets treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
kexec-tools x86: make crashdump works 2020-03-20 21:45:06 +00:00
kobs-ng kobs-ng: add header for integer definitions 2017-11-16 22:56:54 +01:00
mt7623n-preloader mediatek: new mt7623n preloader package for Banana Pi 2020-07-08 23:22:30 +02:00
tfa-layerscape layerscape: harmonize device strings 2020-07-27 12:06:52 +02:00
uboot-at91 uboot-at91: harmonize indent in Makefile 2020-08-25 19:28:42 +02:00
uboot-envtools ramips: fix partitions and boot for RAVPower RP-WD03 2020-09-11 19:31:03 +02:00
uboot-fritz4040 ipq40xx: add support for AVM FRITZ!Repeater 1200 2019-10-23 01:17:28 +02:00
uboot-imx6 uboot-imx6: bump to 2020.04 release 2020-04-17 13:43:34 +02:00
uboot-kirkwood uboot-kirkwood: add uboot for CheckPoint L-50 2020-07-11 13:33:28 +02:00
uboot-lantiq uboot-lantiq: fix compile with modern host dtc 2018-10-07 02:12:06 +02:00
uboot-layerscape layerscape: harmonize device strings 2020-07-27 12:06:52 +02:00
uboot-mediatek uboot-mediatek: update to latest version 2020-09-01 09:08:52 +02:00
uboot-mvebu uboot-mvebu: add uboot for helios 4 2020-07-17 11:00:33 +02:00
uboot-mxs uboot-mxs: bump to v2020.04 2020-06-03 16:49:28 +02:00
uboot-omap omap: support booting off different mmc devices 2019-11-20 10:46:19 +01:00
uboot-oxnas uboot-oxnas: fix memory leak in tool mkox820crc 2020-01-15 23:15:19 +01:00
uboot-ramips ramips: add support for RAVPower RP-WD009 2020-06-29 12:24:01 +02:00
uboot-rockchip uboot-rockchip: add NanoPi R2S support 2020-07-28 15:52:44 +02:00
uboot-sunxi uboot-sunxi: bump to 2020.04 relase 2020-04-17 13:43:34 +02:00
uboot-tegra tegra: add vendor string to device name 2019-05-15 13:34:23 +02:00
uboot-zynq uboot-zynq: update to 2019.07 2019-09-01 18:38:05 +02:00