immortalwrt/target/linux
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
..
apm821xx apm821xx: add missing export-dtb 2022-01-07 14:07:28 +08:00
archs38 archs38: update kernel version to 5.10 2021-11-10 23:59:07 +08:00
armvirt armvirt: enable MMIO_CMDLINE_DEVICES for firecracker support 2021-10-14 23:56:43 +08:00
at91 at91: drop /etc/config/firewall 2022-01-17 12:22:11 +08:00
ath25 ath25: disable build for ubnt2/5 2022-01-07 19:40:34 +08:00
ath79 ath79: ASUS RP-AC66 use flash till the end 2022-01-30 12:59:20 +08:00
bcm27xx bcm27xx: update distroconfig.txt for faster RPi4 2022-02-10 12:40:18 +08:00
bcm47xx bcm47xx: fix bgmac regression present in 5.10 kernel 2021-11-14 23:56:20 +08:00
bcm53xx kernel: bump 5.10 to 5.10.82 2021-12-20 11:16:13 +08:00
bcm63xx kernel: bump 5.4 to 5.4.162 2021-12-20 11:16:52 +08:00
bcm4908 bcm4908: add uboot-envtools to default packages 2021-12-21 23:55:17 +08:00
bmips kernel: Deactivate B53 symbols in generic configuration 2021-12-03 00:03:50 +08:00
gemini gemini: splash banner on framebuffer console 2021-10-11 23:55:36 +08:00
generic kernel: 5.10: drop broken-flash-reset patch 2022-01-30 12:55:42 +08:00
imx imx: update subtargets default kernel configs for 5.10 2021-12-22 11:32:14 +08:00
ipq40xx ipq40xx: use zImage for Cell-C RTL30VW 2022-02-08 12:38:00 +08:00
ipq806x ipq806x: Enlarge D7800 flash - use netgear partition 2022-02-10 12:48:16 +08:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
kirkwood kirkwood: refresh kernel config 2021-10-06 23:56:13 +08:00
lantiq lantiq: increase fritz-cal-extract output limit 2022-01-17 12:26:45 +08:00
layerscape kernel: refresh kernel 5.4 patches 2021-12-28 14:26:58 +08:00
malta kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mediatek mediatek: mt7622: bpi-r64: rewrite MMC uImage.FIT sysupgrade 2022-02-09 15:51:07 +08:00
mpc85xx kernel: bump 5.10 to 5.10.80 2021-12-08 23:59:43 +08:00
mvebu base-files: rename 'sdcard' to 'legacy-sdcard' 2022-02-12 12:26:08 +08:00
mxs kernel: Set some options in generic configuration 2021-11-12 00:06:18 +08:00
octeon kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
octeontx octeontx: Refresh kernel configuration 2022-01-29 19:00:08 +08:00
omap uboot-omap: Remove omap3_overo configuration 2021-12-01 23:48:09 +08:00
oxnas kernel: refresh kernel 5.4 patches 2021-12-28 14:26:58 +08:00
pistachio kernel: bump 5.4 to 5.4.156 2021-12-08 23:56:51 +08:00
qoriq qoriq: add support for WatchGuard Firebox M300 2021-12-24 11:28:40 +08:00
ramips ramips: add support for Xiaomi Mi Router CR660x series 2022-02-10 12:50:42 +08:00
realtek kernel: bump 5.4 to 5.4.162 2021-12-20 11:16:52 +08:00
rockchip rockchip: fix led-data of NanoPi R2C 2022-02-11 02:06:42 +08:00
sunxi sunxi: Use rtl8723bu-firmware instead of rtl8723bs-firmware 2022-01-04 23:50:21 +08:00
tegra kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
uml uml: add Kernel 5.10 support via testing 2021-11-05 00:03:04 +08:00
x86 treewide: add missing kernel config for 5.10 2021-12-18 00:25:49 +08:00
zynq kernel: Set some options in generic configuration 2021-11-12 00:06:18 +08:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00