openwrtv3/target/linux/apm821xx
Christian Lamparter 78e63ce7e3 apm821xx: add size check for initramfs kernel for the Meraki MR24
Russell Senior reported an issue with the MR24 initramfs kernels:
> ## Booting kernel from Legacy Image at 00c10000 ...
>   Image Name:   POWERPC LEDE Linux-4.4.19
>   Created:      2016-08-31  11:57:05 UTC
>   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>   Data Size:    2155723 Bytes = 2.1 MiB
>   Load Address: 00000000
>   Entry Point:  00000000
>   Verifying Checksum ... OK
>Wrong Ramdisk Image Format
>Ramdisk image is corrupt or invalid

For the MR24, the kernel is uploaded to 0x10000. The ramdisk starts
at 0x200000. This leaves the kernel with just 0x1f0000 bytes = 1984kb.
This patch adds a size check so the image creation script will abort
instead of producing a unbootable initramfs image. A separate patch
"apm821xx: Fix initramfs image for the Meraki MR24" which fixed the
reported issue was submitted earlier.

Cc: Russell Senior <russell@personaltelco.net>
Cc: Chris Blake <chrisrblake93@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-09-05 07:28:52 +02:00
..
base-files apm821xx: only attempt to mount /boot on MyBook Live 2016-07-29 10:18:09 +02:00
dts apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720 2016-07-22 09:48:12 +02:00
files/arch/powerpc/platforms/44x apm821xx: fix atheros PCIe cards on the MR24 2016-07-25 10:38:48 +02:00
image apm821xx: add size check for initramfs kernel for the Meraki MR24 2016-09-05 07:28:52 +02:00
nand apm821xx: add missing default profiles for subtargets 2016-07-22 09:48:12 +02:00
patches-4.4 kernel: update kernel 4.4 to version 4.4.19 2016-08-23 10:51:17 +03:00
sata tools: bring back genext2fs for apm821xx 2016-07-23 19:37:20 +02:00
config-4.4 apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720 2016-07-22 09:48:12 +02:00
Makefile build: fix subtarget descriptions 2016-09-04 13:35:11 +02:00