immortalwrt/scripts
Daniel Golle d669d1240a base-files: rename 'sdcard' to 'legacy-sdcard'
While an image layout based on MBR and 'bootfs' partition may be easy
to understand for users who are very used to the IBM PC and always have
the option to access the SD card outside of the device (and hence don't
really depend on other recovery methods or dual-boot), in my opinion
it's a dead end for many desirable features on embedded systems,
especially when managed remotely (and hence without an easy option to
access the SD card using another device in case things go wrong, for
example).

Let me explain:

* using a MSDOS/VFAT filesystem to store kernel(s) is problematic, as a
  single corruption of the bootfs can render the system into a state
  that it no longer boots at all. This makes dual-boot useless, or at
  least very tedious to setup with then 2 independent boot partitions
  to avoid the single point of failure on a "hot" block (the FAT index
  of the boot partition, written every time a file is changed in
  bootfs). And well: most targets even store the bootloader environment
  in a file in that very same FAT filesystem, hence it cannot be used
  to script a reliable dual-boot method (as loading the environment
  itself will already fail if the filesystem is corrupted).

* loading the kernel uImage from bootfs and using rootfs inside an
  additional partition means the bootloader can only validate the
  kernel -- if rootfs is broken or corrupted, this can lead to a reboot
  loop, which is often a quite costly thing to happen in terms of
  hardware lifetime.

* imitating MBR-boot behavior with a FAT-formatted bootfs partition
  (like IBM PC in the 80s and 90s) is just one of many choices on
  embedded targets. There are much better options with modern U-Boot
  (which is what we use and build from source for all targets booting
  off SD cards), see examples in mediatek/mt7622 and mediatek/mt7623.

Hence rename the 'sdcard' feature to 'legacy-sdcard', and prefix
functions with 'legacy_sdcard_' instead of 'sdcard_'.

Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-02-12 12:26:08 +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: rename 'sdcard' to 'legacy-sdcard' 2022-02-12 12:26:08 +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