Openwrt/scripts
Piotr Dymacz bf4630e5ad build: add helpers for generating QSDK sysupgrade compatible images
Qualcomm SDK (QSDK) sysupgrade compatible images for IPQ40xx, IPQ806x
and IPQ807x use FIT format together with 'dumpimage' tool from U-Boot
for verifying and extracting them. Based on 'images' sections names,
corresponding mtd partitions are flashed. For example, in case of
NOR-only boards, below mapping is used (section name -> mtd name):

  hlos*   -> 0:HLOS
  rootfs* -> rootfs

And for boards with NAND (kernel inside UBI):

  ubi* -> rootfs

Above mappings come from unmodified QSDK sources and might be wrong for
boards running custom or modified QSDK-based firmware. Some of vendors
adjust them to meet their modified mtd layout or features like recovery
or dual-image support.

This adds simple script 'mkits-qsdk-ipq-image.sh' (based on 'mkits.sh')
for generating FIT images tree source files, compatible with the QSDK
sysupgrade format. Resulting images can be used for initial (factory ->
OpenWrt) installation and would work both in CLI and GUI.

The script is universal in a way it allows to include as many sections
as needed. To make use of it, two generic/basic build recipes for NOR
and NAND based boards are also included in 'image-commands.mk':

  Build/qsdk-ipq-factory-nand
  Build/qsdk-ipq-factory-nor

Example usage for board with UBI in NAND:

  IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2019-02-25 17:36:16 +01:00
..
config
flashing
arm-magic.sh
brcmImage.pl
bundle-libraries.sh scripts: bundle-libraries: fix logic flaw 2018-08-29 14:19:43 +02:00
checkpatch.pl
clang-gcc-wrapper
clean-package.sh build: fix STAGING_DIR cleaning for packages 2019-01-30 12:32:07 +01:00
cleanfile
cleanpatch
combined-ext-image.sh
combined-image.sh
config.guess scripts: update config.guess and config.sub 2018-11-01 17:16:52 +01:00
config.rpath
config.sub scripts: update config.guess and config.sub 2018-11-01 17:16:52 +01:00
deptest.sh
diffconfig.sh
dl_cleanup.py
dl_github_archive.py
download.pl
env
ext-toolchain.sh
feeds
fixup-makefile.pl
gen_image_generic.sh
gen-dependencies.sh
get_source_date_epoch.sh
getver.sh
ipkg-build script: ipkg-build: honour $SOURCE_DATE_EPOCH 2018-11-08 11:52:33 +01:00
ipkg-make-index.sh scripts: ipkg-make-index.sh: dereference symbolic links 2019-01-31 12:35:29 +01:00
ipkg-remove scripts: ipkg-remove: handle existing .ipk files without SourceName field 2019-01-21 16:35:40 +01:00
kconfig.pl
linksys-image.sh build: add a script for generating Linksys factory images 2019-01-26 21:43:07 +01:00
make-ipkg-dir.sh
md5sum
metadata.pm build: expose ABI version in .packageauxvars 2019-01-19 14:32:01 +01:00
mkhash.c
mkits-qsdk-ipq-image.sh build: add helpers for generating QSDK sysupgrade compatible images 2019-02-25 17:36:16 +01:00
mkits.sh
om-fwupgradecfg-gen.sh ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variant 2018-09-10 10:01:58 +02:00
package-metadata.pl build: extend ABI_VERSION suffixing to provides 2019-01-24 10:39:29 +01:00
pad_image
patch-kernel.sh
patch-specs.sh
portable_date.sh
qemustart scripts/qemustart: allow machine selection with new option --machine 2019-02-22 01:35:05 +00:00
redboot-script.pl
relink-lib.sh
remote-gdb
rstrip.sh scripts: rstrip.sh: allow rpath with sole $ORIGIN token 2018-12-19 15:36:05 +01:00
slugimage.pl
srecimage.pl
strip-kmod.sh
symlink-tree.sh
sysupgrade-tar.sh build: Drop user/group ID/name from sysupgrade.tar 2019-01-02 22:36:17 +01:00
target-metadata.pl build: add support for enabling the rootfs/boot partition size option via target feature 2018-09-03 12:06:24 +02:00
time.pl scripts: time.pl: avoid hard Time::HiRes dependency 2018-08-05 12:24:01 +02:00
timestamp.pl
ubinize-image.sh