armbian-build/config/bootscripts
The-going 3e07d3ed7c bootscript: sunxi: Add a dtb file path analyzer
Device tree files and overlay files are interconnected
and always located in the same place, separated by
the overlay subdirectory.
${fdtdir}/${fdtfile}
${fdtdir}/overlay/${overlay_prefix}-${overlay_file}.dtbo

By default, we are trying to download a dtb file from
the /boot/dtb folder, which is a link to the real folder.
Depending on the time and type of build, this link may
point directly to the target folder or to a subdirectory,
i.e. possible path options:
/boot/dtb/overlay
/boot/dtb/allwinner/overlay
In the file armbianEnv.txt we can also see:
fdtfile=sun8i-*.dtb
or
fdtfile=allwinner/sun8i-*.dtb

Thus, when the user has frozen the kernel and updated
the BSP package, or vice versa, updated only the kernel,
the following options are possible in the paths after
their concatenation in the script:
/boot/dtb/sun8i-*.dtb
/boot/dtb/allwinner/sun8i-*.dtb
/boot/dtb/allwinner/allwinner/sun8i-*.dtb

Define and remember default path variables.
Provide the user with the ability to specify the path
to the target folder as:
fdtdir=/path/to/dir
Check the existence of the dtb file in all reasonable
paths and set the path to it.
If not found, download the default file from the default path.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2024-11-18 19:14:16 +01:00
..
boot-cubox.cmd Support Plymouth (#4133) 2022-09-13 15:16:30 +02:00
boot-espressobin.cmd allow booting off more than first partition with distroboot (#3977) 2022-07-09 16:30:05 +02:00
boot-jethub.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-k3.cmd K3: Update to latest U-Boot v2023.10-rc3 2023-09-06 13:06:25 +02:00
boot-macchiatobin-doubleshot.cmd Changes to allow building for Macchiatobin and building modules necessary to operate mcbin hardware (#3784) 2022-05-23 16:16:12 +02:00
boot-marvell.cmd Helios4: Add SPI bootloader install feature (#1126) 2018-10-08 13:44:36 +02:00
boot-meson64.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-meson-gx.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-meson-s4t7.cmd VIM1S/VIM4: always use symlinks from /boot for booting 2024-05-03 16:35:53 +01:00
boot-mt7623.cmd Bananapi R2 (#1151) 2018-11-08 18:51:42 +01:00
boot-mvebu.cmd Add overlay_error env on sunxi64 to enable overlays support (#2679) 2021-03-02 12:52:14 +01:00
boot-odroid-c1.ini Update boot-odroid-c1.ini 2024-05-19 19:42:05 +02:00
boot-odroid-c2.ini Support Plymouth (#4133) 2022-09-13 15:16:30 +02:00
boot-odroid-n2.ini Support Plymouth (#4133) 2022-09-13 15:16:30 +02:00
boot-odroid-xu4.ini fix: cloudshell2 dtbo overlay path in boot.ini 2024-06-05 21:19:14 +02:00
boot-onecloud.cmd onecloud: Enable Plymouth (#4228) 2022-09-25 14:56:54 +02:00
boot-qemu-arm64.cmd qemu-uboot-arm64/qemu-uboot-x86: split more x86/arm64 differences, add some docs, bump to u-boot 23.04 +update-patches; add arm64 bootscript 2023-04-28 21:32:52 +02:00
boot-qemu-x86.cmd qemu-uboot-arm64/qemu-uboot-x86: split more x86/arm64 differences, add some docs, bump to u-boot 23.04 +update-patches; add arm64 bootscript 2023-04-28 21:32:52 +02:00
boot-qemu.cmd Support Plymouth (#4133) 2022-09-13 15:16:30 +02:00
boot-rk35xx.cmd bootscript: rename boot-rk3588-legacy.cmd to boot-rk35xx.cmd 2024-10-05 12:27:39 +02:00
boot-rk322x.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-rk3576.cmd rk3576: fix booting from boot.scr 2024-11-03 14:15:35 +08:00
boot-rockchip64-ttyS0.cmd Merged rock-s0 and rockpi-s boards fully into rockchip64 family (#7382) 2024-10-18 00:09:36 -07:00
boot-rockchip64.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-rockchip.cmd bootscript: Remove deprecated bootarg "swapaccount=1" 2024-06-25 18:11:55 +02:00
boot-sun50i-next.cmd bootscript: sunxi: Add a dtb file path analyzer 2024-11-18 19:14:16 +01:00
boot-sun50iw9.cmd orangepizero2/sun50iw9/legacy: implement pre_package_kernel_image hook to convert vmlinuz to uImage manually; fix legacy u-boot build 2023-04-08 14:33:39 +02:00
boot-sunxi.cmd bootscript: sunxi: Add a dtb file path analyzer 2024-11-18 19:14:16 +01:00
boot-udoo.cmd Support Plymouth (#4133) 2022-09-13 15:16:30 +02:00
boot-zynq.cmd Add Avnet MicroZed 2021-04-10 20:39:31 -04:00