Commit Graph

294 Commits

Author SHA1 Message Date
c0rnelius
0a7f461e57 Khadas VIM4: Update and Fixup U-Boot (#8631)
* 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
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
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
Gunjan Gupta
c47c9372bf Khadas VIM1S & VIM4 - 5.15 kernel bump (#6201)
* meson-s4t7: bump u-boot to khadas-vims-u-boot-2019.01-v1.6-release
* Use khadas default bootargs as much as possible
* Add new hook to allow copying code into kernel
* meson-s4t7: legacy: Switch to 5.15 kernel
* meson-s4t7: add kernel-config for 5.15 kernel
* device tree overlays for 5.15 kernel for vim1s and vim4
* restructure packaging of bsp files for vim1s/vim4
* silence vblank warning on boot
* Remove display workaround as it doesn't work with 5.15 kernel
* Remove 5.4 kernel patches
2024-01-26 08:40:11 +01:00
Brent Roman
96caa18e95 Boot script overrides u-boot's fdt_addr_r to ensure the
ever expanding Linux kernel will not overlap the device tree load area
2024-01-26 08:39:10 +01:00
Alex Shumsky
0df6d6eafb rockchip64: Fix "Load kernel from the same bootpart boot.scr was loaded from" 2023-12-10 18:28:21 +01:00
Alex Shumsky
972a129c5a rockchip64: Load kernel from the same bootpart boot.scr was loaded from 2023-12-04 00:07:26 +01:00
Gunjan Gupta
0706fb170a bootscript: meson-s4t7: fix booting on ubuntu 2023-11-14 00:13:11 +05:30
Gunjan Gupta
2c8d551422 meson-s4t7: Add option to force 16x9 display resolution
Khadas's 5.4 kernel has a broken hdmi subsystem that can result into
a monitor not working even if it supports one of the required display
resolution. Hence adding a workaround that will force use of one of
the 3 16x9 resolutions supporting most of the HD-ready, full-HD and
4K monitors.
2023-10-09 17:38:35 +05:30
Andrew Davis
127ab401cf K3: Update to latest U-Boot v2023.10-rc3 2023-09-06 13:06:25 +02:00
Gunjan Gupta
efbcae34f7 Khadas Vim1s: Fix display output
This however only works for selected monitors with 1920x1080 and 4K
resolutions.
2023-09-02 17:50:50 +05:30
Gunjan Gupta
02051676b0 meson-s4t7: Enable dtbo support
The support is implemented by using dtbo files supplied by Khadas directly
in the linux-dtb package. The files are not compiled just copied.
2023-08-15 16:03:24 +02:00