303 Commits

Author SHA1 Message Date
Ricardo Pardini
063c641686 genio: bootscript: boot-genio: rework addr's so can boot large initrd's
- desktop images have half the world in their initrd (plymouth?)
- `bdinfo` shows reserved regions, which are hit depending on the size of initrd
- when reserved region is hit, u-boot says `** Reading file would overwrite reserved memory **`
- done by AI after looking at `bdinfo` reserved regions
- hard lesson: all `0x` hex have to be double quoted, otherwise `Wrong image format for "source" command`
- add note about Meco having conjured up `load_addr` (it's `loadaddr`); doesn't hurt
- while at it, remove copypasta/duplicate bootlogo/consoleargs stanza
2026-01-08 12:30:24 +01:00
Mecid Urganci
ff59a4bc96 Genio: Address PR comments 2025-12-11 14:20:51 +01:00
Mecid Urganci
8f56288384 Genio: Update boot cmd 2025-12-11 14:20:51 +01:00
Mecid Urganci
8687e9d31a Radxa-Nio-12L: Switch Uboot flow from EFI to extlinux 2025-12-11 14:20:51 +01:00
Tom Urlings
f643d5073e boards / Helios4: Fix: libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Bump U-Boot v2025.10:
- In DT path `/soc/spi@10680/` the entry `spi-flash@0` was renamed
  to `flash@0`
2025-11-24 15:57:01 +08:00
Tom Urlings
b6d4e33cff Generic bootscript template
Some background.
How to use it.
2025-11-17 10:15:23 +01:00
Tom Urlings
abcb6c947b Enable bootscript templating
- Enable bootscript templating using `envsubst`.
- Add generic bootscript.
- Fix: `test` does not support `==`, but deceptively returns `true` in case you use it.
- De-duplicate kernel commandline console options.
2025-11-17 10:15:23 +01:00
SuperKali
f252a17297
rockchip: rk3576: Fix serial console to use UART0 (ttyS0) (#8936)
- Change debug console from ttyS2 to ttyS0
- Remove SERIALCON from board configs
- Set console based on BOOT_SOC
- Enable UART0 in device tree for nanopi-r76s
2025-11-15 18:33:52 +01:00
Austin Lane
a14a9d1709 rockchip: Add CSC board Luckfox Lyra Plus 2025-11-06 00:17:13 +01:00
c0rnelius
0a7f461e57
Khadas VIM4: Update and Fixup U-Boot (#8631)
Some checks failed
Forked Helper / 📢 Run repository dispatch on fork (push) Has been cancelled
Announce PR merge to Discord / announcepush (push) Has been cancelled
Scorecards Security Scan / Scorecards analysis (push) Has been cancelled
Update Board Lists / Send dispatch (push) Has been cancelled
Update Tools in Scripts / Update shellcheck version (push) Has been cancelled
Update Tools in Scripts / Update sh version (push) Has been cancelled
Update Tools in Scripts / Update oras version (push) Has been cancelled
Update Tools in Scripts / Update bat version (push) Has been cancelled
* Khadas VIM4: U-Boot: Mod bootargs/defconfig and add bootscr support

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Khadas VIM4: Pull U-Boot from CoreELEC instead of Khadas

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Khadas VIM4: Remove setexpr bootargs sub rootfstype= from boot.cmd

This is no longer required

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Meson S4T7: family.conf: Add missing `mkdir -p "${tbasedir}"`

The toolchains fail to download because the dir isn't created

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Meson T7: Add rootfstype= to command line

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Khadas VIM4: Add extra boot arguments

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Remove `viraniac` as maintainer and add `rw` to cmdline

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Amlogic T7: Add `fsck.repair=yes` and `rootwait` to cmdline

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* Amlogic T7: Move `${bootargs}` placement

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
Co-authored-by: Igor <igor@armbian.com>
2025-09-15 22:44:28 +02:00
Jianfeng Liu
f61674d616 family: rockchip: add initial rk3506 support 2025-09-15 21:12:02 +02:00
Wei
e696c2eb3b Add support for XpressReal T3
Some checks failed
Forked Helper / 📢 Run repository dispatch on fork (push) Has been cancelled
Announce PR merge to Discord / announcepush (push) Has been cancelled
Scorecards Security Scan / Scorecards analysis (push) Has been cancelled
Update Board Lists / Send dispatch (push) Has been cancelled
XpressReal(https://xpressreal.io/) is a family of Single Board Computers
developed in collaboration between Fyde Innovations, Radxa and Realtek.

XpressReal T3 is the first product in the family - a small form factor
high performance single board computer powered by the Realtek RTD1619B,
which runs FydeOS/openFyde and Linux!

Now we are adding the awesome Armbian Linux support for XpressReal T3!

This commit introduces some binary files that XpressReal T3 needed:

- firmware/realtek/rtd1619b
	These binaries are the firmware for rtd1619b peripherals
	(including the audio decoder, video decoder, etc.).
- u-boot-fw.tar.gz
	This contains some co-processor firmware,
	which needs to be loaded by u-boot in the early stage of boot.
- u-boot-prebuilt.tar.gz
	These are hwsettings related files, used for tasks such as DDR initialization.

These files come from the rtd1619b SDK, which has already been open-sourced on our github:

- [firmware](https://github.com/XpressReal/linux-sdk/tree/main/meta-xpressreal/recipes-kernel/linux-firmware/files/rtd1619b)
- [u-boot prebuilts](https://github.com/XpressReal/linux-sdk/tree/main/meta-xpressreal/recipes-bsp/u-boot/files/prebuilt/rtd1619b)
2025-09-04 20:32:34 +08:00
djurny
0a001ec1d1 Update boot-mvebu.cmd after review
Some checks failed
Forked Helper / 📢 Run repository dispatch on fork (push) Waiting to run
Announce PR merge to Discord / announcepush (push) Waiting to run
Scorecards Security Scan / Scorecards analysis (push) Waiting to run
Update Board Lists / Send dispatch (push) Has been cancelled
Remove the 10 sec delay in case "critical error" raised.
2025-06-09 21:18:08 +02:00
djurny
13536bf932 Update boot-mvebu.cmd after review
Follow conventional `if-then-else-fi` constructions by not having `else` followed by semicolon. Hush is accepting, but other commonly used shells do not accept this.
2025-06-09 21:18:08 +02:00
Tom Urlings
abe8102669 mvebu: bootscript load address calculation a.o. 2025-06-09 21:18:08 +02:00
Tom Urlings
d027115712 Bootscript enhancements
- Added FDT resize/trim to allow big DT and overlays and still use
  configured load addresses in case `setexpr` not available
- Moved FDT resize and next load address alignment
- Added filename information to load instructions
- Moved all "global" variable determinations to the top of the
  bootscript
2025-05-14 15:56:20 +02:00
Tom Urlings
dc9a1fcea0 Add early exits for critical errors
- Check all load actions
- Add optional early exit with explanation in case a load fails
2025-05-14 15:56:20 +02:00
Tom Urlings
a5fd439a48 Avoid oboe overlap trip during loading of images
https://github.com/armbian/build/issues/8178
- Add switch to turn avoidance on/off
- Increment base address before alignment to resolve the oboe
- oboe observed in U-Boot v2021.04 and in particular with DT loading
2025-05-14 15:56:20 +02:00
djurny
6e985c3d67 Update boot-mvebu.cmd
Changed the DT size back to 256KiB as there is no reason to trim it actually.
2025-05-10 11:21:08 +02:00
djurny
141e23b302 Update boot-mvebu.cmd
- Updated names to reflect function better.
- Followed coding style of rest of the file, e.g. `test` instead of `itest` and `if ... ; then`.
- If `setexpr` fails, use configured addresses - either the ones defined in boot.cmd or set by armbianEnv.txt.
2025-05-10 11:21:08 +02:00
djurny
58dbffba9e Update boot-mvebu.cmd
Fix for https://github.com/armbian/build/issues/8165

Determine the load address for kernel and initial ramdisk based on DT and kernel image size.
2025-05-10 11:21:08 +02:00
Igor Pecovnik
62ffa66cc8 qemu arm64: bump u-boot and fix wrong boot script parameter
Now it boots OOB: https://paste.armbian.com/ololipacam
2025-03-26 10:07:20 +01:00
Dominik Wójt
a6fc0ab328 meson8, MXQ: add boot from usb support, configurable dtb 2025-02-08 23:06:01 +01:00
Dominik Wójt
2bf71e2fda Add MXQ target. Copy HDMI fix from odroid-c1. 2025-02-08 23:06:01 +01:00
Andrew Davis
f98216d2c3 K3: Update to latest U-Boot v2025.01
Now that upstream U-Boot has support for building K3 boot artifacts
we can drop using the ti-u-boot fork. Switch to v2025.01 and
adjust file names and add new dependencies as needed.
2025-01-30 19:03:48 +01:00
The-going
4be6793bdf bootscript: sunxi: Delete the vendor's name from the fdtfile variable
Do not inform the user if the fixup.scr file was not found.
2024-12-09 14:13:32 +01:00
The-going
ac2928baa4 bootscript: Remove vendor name and slash from DTB file name
After that, the script successfully loads the DTB file from
two possible paths and overlays. If the file does not exist,
then the default file will be uploaded.
2024-12-09 14:13:32 +01:00
The-going
48e289e0d3 bootscript: sunxi: Tell the user only the actual actions.
Make the script work silently when testing path options
and report only the actual file being uploaded.
Delete the duplicate iteration.
2024-12-09 14:13:32 +01:00
The-going
b46674c82f bootscript: Use the DTB name from the default u-boot
Use the DTB name from the u-boot default for the third
iteration if the provided DTB name was not found. Also
delete the duplicate of the previous iteration.
2024-12-09 14:13:32 +01:00
The-going
a49cee27ad bootscript: Set path without $vendor folder for the 2 iteration.
In the second iteration, we check the path that does not
contain the vendor folder. But this will also be done if
the real path contains the vendor's folder and the vendor's
name is contained in the DTB file name as
    fdtfile=allwinner/sun50i-*-bananapi-*.dtb.
However, overlays will not be available.
Remove "allwinner/" from all board configurations that
use the boot script mechanism so that the script works
correctly.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2024-12-09 14:13:32 +01:00
The-going
c30669cc91 bootscript: Messages to the user about real work
Inform the user about the actual file that will be uploaded
on the first iteration. Inform the user that it cannot be
downloaded only once if the first iteration was unsuccessful.
2024-12-09 14:13:32 +01:00
The-going
c02b4ff8d2 bootscripts: Set the expected default path to "${prefix}dtb/${vendor}"
Set the expected default path to /boot/dtb/allwinner and
start analyzing if the DTB file is not found in this path.

The folder with the vendor's name is now part of the path,
not part of the file name. This greatly facilitates the analysis
of various possible options in a simple u-boot shell.
2024-12-09 14:13:32 +01:00
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
amazingfate
b451d4f3e3 rk3576: fix booting from boot.scr 2024-11-03 14:15:35 +08:00
brentr
14314337da
Merged rock-s0 and rockpi-s boards fully into rockchip64 family (#7382)
Also removed some obsolete board specific boot script tweaks
2024-10-18 00:09:36 -07:00
amazingfate
4416b311bc bootscript: rename boot-rk3588-legacy.cmd to boot-rk35xx.cmd 2024-10-05 12:27:39 +02:00
amazingfate
94cf4f4146 bootscript: rk3588-legacy: sync with boot-rockchip64.cmd 2024-10-05 12:27:39 +02:00
ColorfulRhino
ccf17a20e8 Purge s5p6818 board family
The family consists of 4 boards, but hasn't seen any activity in years,
is unmaintained, stuck on EOL Linux 4.14 and the bootloader does
not build.
2024-07-03 06:49:46 +02:00
ColorfulRhino
2937ceb6de bootscript: Remove deprecated bootarg "swapaccount=1"
The "swapaccount=" option has been deprecated in 6.1. Disable it in almost all boot scripts except "boot-sun50iw9.cmd" since that one is used in sun50iw9 legacy kernel, which is version 4.9.

Link to kernel commit:
b25806dcd3
2024-06-25 18:11:55 +02:00
Daniel Gonçalves
285ff7583c fix: cloudshell2 dtbo overlay path in boot.ini
Currently, dtbo path in boot.ini is wrong. So we cannot load device tree blob overlays for cloudshell2. This commit fix this path in boot.ini
2024-06-05 21:19:14 +02:00
kernelzru
9d8eb46572 Update boot-odroid-c1.ini
-Clean, remove params for old kernel
-Add option to disable usb autosuspend
-Add display console
2024-05-19 19:42:05 +02:00
Tony
e3f9292566 Update boot-meson-gx.cmd
formatting update
2024-05-19 19:41:05 +02:00
Thomas McKahan
481fca9ebb meson64: fix Lafrite boot
create new boot script free of G12 stuff, using default u-boot load addresses.
La Frite boots from USB as well as eMMC, add ability to get root device via PARTUUID
2024-05-19 19:41:05 +02:00
Gunjan Gupta
c7492bedc1 VIM1S/VIM4: always use symlinks from /boot for booting 2024-05-03 16:35:53 +01:00
Paolo Sabatino
fb7484f3f9 rockchip: bump rk322x u-boot to v2024.01
* update the defconfig and accomodate upstream changes
 * introduce hdmi/vop/phy drivers and enable hdmi
 * fix clock driver
2024-05-01 08:29:03 +01:00
ColorfulRhino
0cbd0c9a8a bootscripts: Delete unused/left-over boot-rockchip64-vendor.cmd 2024-03-22 22:21:44 +00:00
ColorfulRhino
c2c672f07c bootscript: rockchip64, rk3588-legacy: Inform user that kaslrseed error can be ignored 2024-03-21 16:05:51 +00:00
ColorfulRhino
929ca08af5 bootscript: Fix error "Failed to load '...-fixup.scr'" for rockchip64, rk3588-legacy 2024-03-21 16:05:51 +00:00
brentr
d10951de7c
Initial support for Radxa Rock S0 board (#6261)
* Initial support for Radxa Rock S0 board
* Lets start this board as a WIP target
---------
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2024-02-12 09:06:04 +01:00
Gunjan Gupta
2029f7edc2 meson-s4t7: disable lcd nodes if lcd is not attached 2024-02-09 19:40:14 +01:00