Commit Graph

282 Commits

Author SHA1 Message Date
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
Andrew Davis
34f459158e Add initial support for TI SK-AM62B board 2023-08-04 09:52:55 +02:00
Ricardo Pardini
950674b79e boot-rk3588-legacy bootscript: add a lot of debugs
- rk's 3588 vendor u-boot (and Radxa's, etc) have trouble with our usage of load+import, add echo's to debug what breaks
2023-07-01 14:54:02 +02:00
Andrew Davis
09ecdc9ae1 Add initial support for TI SK-AM64B board 2023-06-20 07:43:09 +02:00
Ricardo Pardini
d9f2ec3255 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
Ricardo Pardini
1e61b60cf8 orangepizero2/sun50iw9/legacy: implement pre_package_kernel_image hook to convert vmlinuz to uImage manually; fix legacy u-boot build
- sourceaddr `0x40008000` was found in Xunlong's legacy kernel source squashed into a huge commit. Thanks, Xunlong!
- bring `busybox` dependency with inline hook for legacy u-boot "unix2dos" which is essential
2023-04-08 14:33:39 +02:00
CueMaxX
6aad142ac8 Update boot-sunxi.cmd
'setenv console "display"' in boot-sunxi.cmd & in armbianEnv.txt had the same effect as 'setenv console "both"'.
That was due to a false if-statement in boot-sunxi.cmd:41
Fixed that, so 'setenv console "display"' will not co-enable the serial console anymore.
2023-03-28 10:51:41 +02:00
Ricardo Pardini
4a9529dd34 armbian-next: qemu-uboot-arm64 and qemu-uboot-x86 new boards
- sharing most UEFI code, will replace the `virtual` one soon
- x86: patch uboot defconfig to use the `q35` machine type, not `i440fx`
  - separate x86 bootscript, due to non-uInitrd-ness of it
  - hack ramdisk load address both in u-boot source and bootscript
  - use 32-bit u-boot, not 64-bit
- grub: introduce `UEFI_GRUB=skip`, does not deploy GRUB (but does the kernel packages, etc)
- auto-enable qcow2 output for these
- works with both distro's and Armbian's kernels
2023-02-18 07:40:33 -03:00
M. Efe Çetin
0f64de49f9 New legacy bootscript for rockchip-rk3588 so vendor/patched overlays work (#4734)
* Rename overlay prefixes to `rockchip-rk3588`

* support radxa-specific overlays
2023-02-01 20:15:01 +01:00
Markus Hoffrogge
be86d1bd27 Add missing print for NAND boot source
fixes #4532
2022-12-06 10:01:59 +03:00
Igor Pečovnik
9f7d9ff5c3 Add CSC Odroid M1 with legacy, current and edge kernel (#4368)
* `odroidm1`.wip: hk's `legacy`= 4.19 and `edge`= mainline+tobetter's 5.19 rebased; *requires* `skip_spiboot=true`

- @TODO: family/etc naming is terrible with vendor kernels. Sorry. Fight over it and let me know?
- @TODO: config is very probably incomplete.
- new `boot-rockchip64-vendor.cmd`:
  - does not use fixed load_addr, instead use ramdisk_addr_r for everything
  - load kernel and initrd as late as possible
  - look for overlays twice:
    - once: with prefix and folder
    - twice: without prefix, nor folder; helps with vendor provided overlays like hk's and tobetter's
- wip: edge: tobetter's patchset rebased against 5.19.3
- wip: edge: bump to tobetter's 5.19
- legacy: .config `CONFIG_ARM64_VA_BITS_48=y`
- wip m1: update legacy config from odroid
- odroidm1: container/bpf stuff in legacy config

* Update configs and enable beta build target

* Adjust current kernel

* Update targets

* Remove everything but EDGE kernel

* Cleanup

* Fix

Co-authored-by: Ricardo Pardini <ricardo@pardini.net>
2022-10-30 21:09:16 +01:00
David Manouchehri
420c1184df Add kaslrseed to Rockchip. (#4352) 2022-10-26 18:30:11 +02:00
hzyitc
d57777caad onecloud: Enable Plymouth (#4228) 2022-09-25 14:56:54 +02:00