immortalwrt-mt798x-padavanonly/scripts
Enrico Mioso 7c89acbebf
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>
(cherry picked from commit 57c1f3f9c5c699cc215bebde772552787c632570)
2023-09-26 15:36:54 +08:00
..
config
flashing
arm-magic.sh
brcmImage.pl
bundle-libraries.sh
cfe-bin-header.py
cfe-partition-tag.py
cfe-wfi-tag.py
checkpatch.pl scripts: fix various typos 2022-12-04 16:07:34 +01:00
clean-package.sh
cleanfile
cleanpatch
combined-ext-image.sh
combined-image.sh
config.guess
config.rpath
config.sub
const_structs.checkpatch scripts: add const_structs.checkpatch for checkpatch.pl 2020-11-18 21:50:58 +01:00
deptest.sh
diffconfig.sh
dl_cleanup.py
dl_github_archive.py scripts/dl_github_archieve.py: fix generating unreproducible tar 2023-01-12 15:00:55 +01:00
download.pl download.pl: update cdn domain 2023-03-15 17:44:47 +08:00
dump-target-info.pl
env
ext-toolchain.sh scripts: ext-toolchain: add support for musl 2022-12-04 16:07:35 +01:00
ext-tools.sh scripts/ext-tools: introduce new script to install prebuilt tools 2022-12-04 16:07:34 +01:00
feeds Revert "scripts/feeds: use partial clone for git submodule update" 2023-04-29 12:30:36 +08:00
fixup-makefile.pl
functions.sh images: Fix sysupgrade.tar for devices with NOR flash 2020-12-22 19:11:50 +01:00
gen_image_generic.sh
gen-dependencies.sh
get_source_date_epoch.sh
getver.sh scripts: getver.sh: fix version based on stable branch 2021-02-21 18:42:38 +01:00
ipkg-build
ipkg-make-index.sh
ipkg-remove
json_add_image_info.py build/json: add filesystem information 2020-12-13 22:07:52 -10:00
json_overview_image_info.py scripts: fix various typos 2022-12-04 16:07:34 +01:00
kconfig.pl scripts/kconfig.pl: allow regex syntax in filtering out config entries 2020-11-13 13:17:53 +01:00
linksys-image.sh scripts: fix various typos 2022-12-04 16:07:34 +01:00
make-ipkg-dir.sh
md5sum
metadata.pm build: drop ABI version from metadata 2021-02-14 19:41:52 +01:00
mkhash.c scripts: add -N option to mkhash for printing without newline 2020-12-22 19:11:50 +01:00
mkits-qsdk-ipq-image.sh
mkits.sh
om-fwupgradecfg-gen.sh ipq40xx: add support for Plasma Cloud PA2200 2020-12-22 19:11:50 +01:00
package-metadata.pl build: drop ABI version from metadata 2021-02-14 19:41:52 +01:00
pad_image scripts: fix various typos 2022-12-04 16:07:34 +01:00
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart scripts/qemustart: use squashfs instead of ext4 2021-01-01 17:49:05 -10:00
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh
sercomm-crypto.py
sercomm-partition-tag.py
sercomm-payload.py
sign_images.sh scripts: fix various typos 2022-12-04 16:07:34 +01:00
size_compare.sh Merge Official Source 2022-12-06 03:04:32 +08:00
slugimage.pl scripts: fix various typos 2022-12-04 16:07:34 +01:00
spelling.txt scripts: add spelling.txt for checkpatch.pl 2020-11-12 18:21:55 +01:00
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh
target-metadata.pl base-files: add eMMC sysupgrade support 2023-09-26 15:36:54 +08:00
time.pl
timestamp.pl
ubinize-image.sh
xxdi.pl scripts: xxdi.pl: add xxd -i compat mode 2022-09-21 11:52:40 +02:00