You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target
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>
5 years ago
..
imagebuilder IB: include SUPPORTED_DEVICES in 'make info' output 5 years ago
linux kernel: mtdsplit: wrgg: Support big and little endian 5 years ago
sdk sdk: find kernel modules when KDIR is a symlink 6 years ago
toolchain merge: etc: update remaining files 7 years ago
Config.in build: add support for enabling the rootfs/boot partition size option via target feature 6 years ago
Makefile build: make <subdir>/install opt-in, use it for target/ only 8 years ago