aboutsummaryrefslogtreecommitdiffstats
path: root/include/prereq.mk
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-03-11 19:16:42 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-03-13 16:25:36 +0100
commitb907097291af843f714139999c32107463b2ef4a (patch)
treeddfd26ce31ae1ea80d7b905b2f464460a3018002 /include/prereq.mk
parentee34740ca3f90a5359392d629544e4520030e52e (diff)
downloadupstream-b907097291af843f714139999c32107463b2ef4a.tar.gz
upstream-b907097291af843f714139999c32107463b2ef4a.tar.bz2
upstream-b907097291af843f714139999c32107463b2ef4a.zip
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>
Diffstat (limited to 'include/prereq.mk')
0 files changed, 0 insertions, 0 deletions