immortalwrt/scripts
Sven Eckelmann f109cee0a3 images: Fix sysupgrade.tar for devices with NOR flash
The NOR flash rootfs images stored in a sysupgrade.tar must end with the
JFFS2 marker. Otherwise, devices like OpenMesh A42/A62 are not able to
calculate the md5sum of the fixed squashfs part and store it inside the
u-boot-env.

But the commit ee76bd11bb ("images: fix boot failures on NAND with small
sub pages") adds up to 1020 0x00 bytes after the 0xdead0de EOF marker. The
calculated md5sum will be wrong due do this change and u-boot will fail to
boot the newly flashed device with a message like:

  Validating MD5Sum of 'vmlinux'...
  Passed!
  Validating MD5Sum of 'rootfs'...
  Failed!
      583a1b7b54b8601efa64ade42742459b != 8850ee812dfd7638e94083329d5d2781

  Data validation failed!

and boot the old image again.

Since the original change should not change the behavior of NOR images,
just check for the deadc0de marker at the end of the squashfs-jffs2 image
do avoid the problematic behavior for these images.

Fixes: ee76bd11bb ("images: fix boot failures on NAND with small sub pages")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-12-23 11:48:18 +08:00
..
config build: mconf readme update 2020-07-08 12:02:08 +08:00
flashing scripts/flashing/flash.sh: remove trailing whitespaces 2020-05-24 22:45:18 +08:00
arm-magic.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
brcmImage.pl Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
bundle-libraries.sh scripts: bundle-libraries.sh: fix broken SDK compiler 2020-11-03 11:54:47 +08:00
checkpatch.pl scripts: checkpatch.pl: suppress warnings about MAINTAINERS 2020-11-21 17:58:25 +08:00
clang-gcc-wrapper update source 2017-09-06 19:19:45 +08:00
clean-package.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
cleanfile update source 2017-09-06 19:19:45 +08:00
cleanpatch update source 2017-09-06 19:19:45 +08:00
combined-ext-image.sh update to R7.5.4 2018-01-15 18:26:41 +08:00
combined-image.sh update source 2017-09-06 19:19:45 +08:00
config.guess Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
config.rpath update source 2017-09-06 19:19:45 +08:00
config.sub Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
const_structs.checkpatch scripts: add const_structs.checkpatch for checkpatch.pl 2020-11-21 17:58:30 +08:00
deptest.sh update source 2017-09-06 19:19:45 +08:00
diffconfig.sh update source 2017-09-06 19:19:45 +08:00
dl_cleanup.py update source 2017-09-06 19:19:45 +08:00
dl_github_archive.py sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
download.pl download.pl: properly cleanup intermediate .hash file 2020-11-28 19:14:00 +08:00
dump-target-info.pl scripts: Add Buildbot dump-target-info.pl script 2020-08-04 23:54:03 +08:00
env scripts/env: Fix 56f813674a scripts/env: use command -v instead of which 2020-07-12 23:11:33 +08:00
ext-toolchain.sh update source 2017-09-06 19:19:45 +08:00
feeds scripts/feeds: fix preference of package install 2020-12-12 11:35:46 +08:00
fixup-makefile.pl sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
functions.sh images: Fix sysupgrade.tar for devices with NOR flash 2020-12-23 11:48:18 +08:00
gen_image_generic.sh scripts/gen_image_generic.sh: use /bin/sh 2020-07-12 12:17:33 +08:00
gen-dependencies.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
get_source_date_epoch.sh build: get_source_date_epoch allow external repos 2020-09-01 17:29:22 +08:00
getver.sh scripts/getver.sh: silence rev-list errors 2020-11-03 11:53:49 +08:00
ipkg-build scripts: ipkg-build: simplify uid/gid resolving 2020-09-15 11:37:24 +08:00
ipkg-make-index.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
ipkg-remove sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
json_add_image_info.py build/json: add filesystem information 2020-12-19 18:04:46 +08:00
json_overview_image_info.py build,json: fix compatibility with Python 3.5 2020-11-14 23:34:21 +08:00
kconfig.pl scripts/kconfig.pl: allow regex syntax in filtering out config entries 2020-11-14 13:51:51 +08:00
linksys-image.sh build: add a script for generating Linksys EA6350v3 factory image 2019-03-07 19:45:12 +08:00
make-ipkg-dir.sh update source 2017-09-06 19:19:45 +08:00
md5sum update source 2017-09-06 19:19:45 +08:00
metadata.pm sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
mkhash.c scripts: add -N option to mkhash for printing without newline 2020-12-23 11:34:20 +08:00
mkits-qsdk-ipq-image.sh ipq40xx: add G-DOCK 2.0 (P&W R619AC) support 2019-10-22 23:14:35 -07:00
mkits.sh scripts: mkits.sh make it possible to specify fdt@# 2020-09-26 11:33:12 +08:00
om-fwupgradecfg-gen.sh Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
package-metadata.pl sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
pad_image update source 2017-09-06 19:19:45 +08:00
patch-kernel.sh update source 2017-09-06 19:19:45 +08:00
patch-specs.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
portable_date.sh update source 2017-09-06 19:19:45 +08:00
qemustart sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
redboot-script.pl update source 2017-09-06 19:19:45 +08:00
relink-lib.sh update source 2017-09-06 19:19:45 +08:00
remote-gdb sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
rstrip.sh Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
sign_images.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
size_compare.sh scripts: add size_compare.sh 2020-11-28 18:27:07 +08:00
slugimage.pl sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
spelling.txt scripts: add spelling.txt for checkpatch.pl 2020-11-14 13:45:59 +08:00
srecimage.pl update source 2017-09-06 19:19:45 +08:00
strip-kmod.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
symlink-tree.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
sysupgrade-tar.sh sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
target-metadata.pl build: define PWM_SUPPORT arch feature flag 2020-09-26 11:34:00 +08:00
time.pl sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
timestamp.pl update source 2017-09-06 19:19:45 +08:00
ubinize-image.sh ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00