immortalwrt/scripts
Enrico Mioso 6faa43beae base-files: add eMMC sysupgrade support
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CC: Li Zhang <li.zhang@gl-inet.com>
CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
2022-02-12 12:26:37 +08:00
..
config scripts: update SPDX license names 2020-09-27 13:21:52 +08:00
flashing scripts: eva_ramboot.py: remove unused import 2021-11-02 23:46:05 +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
cfe-bin-header.py scripts: cfe-bin-header: fix shebang 2020-05-19 18:03:46 +08:00
cfe-partition-tag.py scripts: add CFE Partition Tags support 2020-05-22 11:57:41 +08:00
cfe-wfi-tag.py scripts: cfe-wfi-tag: fix shebang 2020-05-19 18:06:04 +08:00
check-toolchain-clean.sh toolchain: add a version that can be bumped to force toolchain/target rebuild 2021-11-19 23:58:57 +08:00
checkpatch.pl scripts: fix various typos 2021-11-02 23:49:21 +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 build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
combined-image.sh build: introduce $(MKHASH) 2021-05-13 22:49:42 +08:00
config.guess scripts: config.guess: update to 2021-05-24 2021-05-29 23:21:13 +08:00
config.rpath update source 2017-09-06 19:19:45 +08:00
config.sub scripts: config.guess: update to 2021-05-24 2021-05-29 23:21:13 +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 scripts: handle gcc and linux in dl_cleanup script 2021-10-12 23:51:27 +08:00
dl_github_archive.py scripts: fix various typos 2021-11-02 23:49:21 +08:00
download.pl scripts/download.pl: add new mirror 2021-11-30 20:44:49 +08:00
dump-target-info.pl scripts: dump-target-info print kernel versions 2022-01-01 17:26:52 +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 scripts: fix various typos 2021-11-02 23:49:21 +08:00
feeds scripts/feeds: generate index after all feeds are updated 2021-06-08 23:16:09 +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: fix more shellcheck warnings 2021-10-14 21:25:07 +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: use realpath for pkg_dir 2021-03-16 11:13:58 +08:00
ipkg-make-index.sh build: introduce $(MKHASH) 2021-05-13 22:49:42 +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: store artifacts in JSON 2021-09-17 04:49:04 +08:00
json_overview_image_info.py scripts: fix various typos 2021-11-02 23:49: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 scripts: fix various typos 2021-11-02 23:49:21 +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 base-files, metadata: support additional group membership 2021-11-10 15:42:57 +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: Allow legacy @ mode for dts creation 2021-10-12 23:54:34 +08:00
om-fwupgradecfg-gen.sh Merge Mainline 2021-05-13 23:01:12 +08:00
package-metadata.pl scripts: package-metadata add pkgmanifestjson call 2021-10-12 23:56:16 +08:00
pad_image scripts: fix various typos 2021-11-02 23:49:21 +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 Merge Mainline 2021-01-02 12:13:39 +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 scripts/rstrip.sh: do not strip .o files with STRIP_KMOD 2021-10-15 23:56:40 +08:00
sercomm-crypto.py scripts: support Sercomm crypto 2020-06-02 18:08:36 +08:00
sercomm-partition-tag.py scripts: support Sercomm partition tags 2020-06-02 18:08:09 +08:00
sercomm-payload.py scripts: support Sercomm load tags 2020-06-03 11:42:15 +08:00
sign_images.sh scripts: fix various typos 2021-11-02 23:49:21 +08:00
size_compare.sh scripts: fix various typos 2021-11-02 23:49:21 +08:00
slugimage.pl scripts: fix various typos 2021-11-02 23:49:21 +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 base-files: add eMMC sysupgrade support 2022-02-12 12:26:37 +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