openwrt/target/linux/generic/files/drivers/mtd/mtdsplit
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
..
Kconfig kernel: mtdsplit: Add support for D-link JBOOT 2018-02-11 16:02:52 +01:00
Makefile kernel: mtdsplit: Add support for D-link JBOOT 2018-02-11 16:02:52 +01:00
mtdsplit_brnimage.c kernel: update mtdsplit for linux 4.9 2017-02-03 12:35:44 +01:00
mtdsplit_eva.c kernel: add DT binding support to AVM EVA parser 2018-12-06 08:42:40 +01:00
mtdsplit_fit.c kernel: add DT binding support to the fit parser 2018-12-17 00:21:33 +01:00
mtdsplit_jimage.c kernel: drop unneeded LINUX_VERSION_CODE checks 2018-12-13 16:59:21 +01:00
mtdsplit_lzma.c kernel: add DT binding support to the LZMA and WRG parsers 2018-12-13 16:59:00 +01:00
mtdsplit_minor.c kernel: drop unneeded LINUX_VERSION_CODE checks 2018-12-13 16:59:21 +01:00
mtdsplit_seama.c kernel: drop unneeded LINUX_VERSION_CODE checks 2018-12-13 16:59:21 +01:00
mtdsplit_squashfs.c kernel: update mtdsplit for linux 4.9 2017-02-03 12:35:44 +01:00
mtdsplit_tplink.c kernel: drop unneeded LINUX_VERSION_CODE checks 2018-12-13 16:59:21 +01:00
mtdsplit_trx.c kernel: drop unneeded LINUX_VERSION_CODE checks 2018-12-13 16:59:21 +01:00
mtdsplit_uimage.c kernel: add DT binding support to the Edimax uImage parser 2019-01-19 12:51:04 +01:00
mtdsplit_wrgg.c kernel: mtdsplit: wrgg: Support big and little endian 2019-03-13 16:25:36 +01:00
mtdsplit.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mtdsplit.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00