mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
b907097291
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtdsplit_brnimage.c | ||
mtdsplit_eva.c | ||
mtdsplit_fit.c | ||
mtdsplit_jimage.c | ||
mtdsplit_lzma.c | ||
mtdsplit_minor.c | ||
mtdsplit_seama.c | ||
mtdsplit_squashfs.c | ||
mtdsplit_tplink.c | ||
mtdsplit_trx.c | ||
mtdsplit_uimage.c | ||
mtdsplit_wrgg.c | ||
mtdsplit.c | ||
mtdsplit.h |