openwrt/target/linux
Christian Lamparter 36c19c9f0b apm821xx: switch MX60(W)'s recovery images to multi-image method
In the past, the MX60(W)'s recovery images always had problems
with the size restriction and never really worked without manual
intervention. But starting with 4.19, the MX60(W)'s kernel image
outgrew the allocated space for sysupgrade images as well. Hence
This patch reworks the initramfs, which allows the device to ease
up on the impossible tight kernel size requirements for the
sysupgrade creation and packaging. And as a result, the now
orphaned special ramdisk setup is removed in the process.

This new initramfs can be loaded through the MX60(W) U-boot
in the following way:

=> setenv bootargs console=ttyS0,$baudrate
=> tftpboot $meraki_loadaddr meraki_mx60-initramfs-kernel.bin
   [...]
   Load address: 0x800000
    Loading: ################################################ [...]
    done
   [...]

=> bootm $fileaddr
   \## Booting kernel from Legacy Image at 00800000 ...
    ...

Updated Flashing instructions for new installations which integrates
the new recovery method. Users of existing installations that only
want to sysupgrade don't need to update their existing u-boot env.

=> setenv owrt_load1 ubi read \${meraki_loadaddr} kernel
=> setenv owrt_load2 ubi read \${meraki_loadaddr} recovery
=> setenv lede_bootkernel bootm \${meraki_loadaddr_kernel} - \${meraki_loadaddr_fdt}
=> setenv owrt_bootkernel bootm \${meraki_loadaddr}
=> setenv owrt_bootargs setenv bootargs console=ttyS0,\${baudrate} rootfstype=squashfs mtdoops.mtddev=oops
=> setenv owrt_boot run meraki_ubi owrt_bootargs\; run owrt_load1 meraki_checkpart lede_bootkernel\; run owrt_load2 owrt_bootkernel
=> setenv bootcmd run owrt_boot
=> saveenv

For more information and the latest flashing guide:
please visit the OpenWrt Wiki Page for the MR60:
<https://openwrt.org/toh/meraki/mx60#flashing>

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-12-22 15:08:24 +01:00
..
adm5120 kernel: Replace ledtrig-netdev with upstream backport 2018-12-15 12:50:06 +01:00
adm8668 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
apm821xx apm821xx: switch MX60(W)'s recovery images to multi-image method 2018-12-22 15:08:24 +01:00
ar7 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
ar71xx ar71xx: Fix PowerCloud CR5000 5GHz wifi mac 2018-12-20 18:28:59 +01:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
at91 treewide: dts: Remove default-state=off property from all gpio LED nodes 2018-12-17 08:16:28 +01:00
ath25 kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ath79 ath79: replace cameo-factory with existing build commands 2018-12-17 23:21:40 +01:00
au1000 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
bcm53xx bcm53xx: include WiFi firmware for devices with 4366C0 2018-12-17 12:51:06 +01:00
brcm47xx kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
brcm63xx ath79, brcm63xx: Fix debounce-interval properties in gpio-keys-polled nodes 2018-12-17 08:05:03 +01:00
brcm2708 brcm2708: switch to kernel 4.14 2018-12-18 23:19:22 +02:00
cns3xxx kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
gemini gemini: Activate USB support again 2018-12-16 14:59:59 +01:00
generic kernel: drop MIPS fix cache flushing for highmem pages 2018-12-20 09:45:19 +00:00
imx6 imx6: image: ventana: Add missing BOOT_SCRIPT variable 2018-11-25 19:23:03 +01:00
ipq40xx ipq40xx: disable kernel-padding for DNI image 2018-12-20 23:54:24 +01:00
ipq806x ipq806x: drop kernel/ rootfs partition images for the ZyXEL NBG6817 2018-12-17 00:21:34 +01:00
ixp4xx treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
kirkwood treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
lantiq treewide: dts: Remove default-state=off property from all gpio LED nodes 2018-12-17 08:16:28 +01:00
layerscape layerscape: use MKUBIFS_OPTS for per-device ubi parameters 2018-12-18 20:17:23 +01:00
malta treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek kernel: bump 4.14 to 4.14.89 2018-12-18 14:24:57 +01:00
mpc85xx mpc85xx: workaround 4.14 cross compile issue 2018-10-20 16:24:29 +02:00
mvebu kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
mxs mxs: use generic sysinfo board detection 2018-11-28 23:37:29 +01:00
octeon octeon: Evaluate board names in alphabetical order 2018-12-06 08:42:22 +01:00
octeontx kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
omap kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
oxnas oxnas: remove superseded sysupgrade image check 2018-11-08 14:41:42 +01:00
pistachio kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips treewide: dts: Remove default-state=off property from all gpio LED nodes 2018-12-17 08:16:28 +01:00
rb532 kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
samsung kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
sunxi kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
uml treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
x86 x86: make sysupgrade.tgz reachable again 2018-12-03 07:38:20 +01:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
Makefile