1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/generic
Linus Walleij b907097291 kernel: mtdsplit: wrgg: Support big and little endian
The WRGG images exist in both big and little endian variants,
as can be seen from the image generator in
tools/firmware-utils/src/mkwrggimg.c, you either pass
the "-b" flag or not. The D-Link DIR-685 is using little
endian images so we need to support splitting these.

Detect endianness like this: if the kernel entity size
gets silly big (bigger than the flash memory) we are
probably using the wrong endianness.

Example: my kernel of 0x0067ff64 was switched around by
wrong endianness and detected as 0x64ff67a0 (the actual
size in swapped endianness + header 0xa0).

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2019-03-13 16:25:36 +01:00
..
backport-4.9 kernel: bump 4.9 to 4.9.162 2019-03-07 16:32:23 +01:00
backport-4.14 kernel: fix refcnt leak in LED netdev trigger on interface rename 2019-03-05 23:10:09 +01:00
backport-4.19 kernel: fix refcnt leak in LED netdev trigger on interface rename 2019-03-05 23:10:09 +01:00
files kernel: mtdsplit: wrgg: Support big and little endian 2019-03-13 16:25:36 +01:00
hack-4.9 kernel: bump 4.9 to 4.9.161 2019-03-05 13:19:43 +01:00
hack-4.14
hack-4.19
image
other-files
pending-3.18 mips: fix dynamic ftrace 2019-03-06 22:02:56 +01:00
pending-4.9 kernel: bump 4.9 to 4.9.161 2019-03-05 13:19:43 +01:00
pending-4.14 mips: fix dynamic ftrace 2019-03-06 22:02:56 +01:00
pending-4.19 mips: fix dynamic ftrace 2019-03-06 22:02:56 +01:00
config-3.18
config-4.9
config-4.14
config-4.19
PATCHES