Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rk3588): add overlay option to disable uBoot installation for SPI Flash boot #49

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

schneid-l
Copy link

Add support for disabling uBoot installation on rk3588 boards.

Overview

This PR introduces a new overlay option for rk3588 boards (Turing Pi RK1, Orange Pi 5, and ROCK 5B) to disable the installation of uBoot during the setup process.

Additionally, it renames the Orange Pi 5 board from opi5 to orangepi-5 for consistency with the naming conventions of other Orange Pi boards.

Changes

  1. New Overlay Option:
  • Provides users with the ability to disable uBoot installation.
  • Particularly useful for cases where booting from SPI Flash is preferred (e.g., booting from NVMe or USB drives), as uBoot is not required on the installation disk in such scenarios.
  1. Board Renaming:
  • Updates the Orange Pi 5 board identifier from opi5 to orangepi-5.
  • Aligns naming conventions across all Orange Pi boards for better clarity and consistency.

Motivation

rk3588 boards include SPI Flash, enabling uBoot to be pre-flashed. For users who wish to boot from alternate devices such as NVMe or USB drives, this flexibility eliminates the need for uBoot installation on the disk.

@schneid-l schneid-l force-pushed the feat/rk3588-disable-uboot-for-spi-boot branch from c8a6176 to 91550cc Compare January 23, 2025 21:21
@schneid-l schneid-l force-pushed the feat/rk3588-disable-uboot-for-spi-boot branch from 91550cc to 5a0806a Compare January 23, 2025 21:33
@@ -41,7 +41,7 @@ steps:
install:
- |
mkdir -p /rootfs/artifacts/arm64/u-boot/orangepi-5
cp -v -t /rootfs/artifacts/arm64/u-boot/orangepi-5 u-boot-rockchip.bin
cp -v -t /rootfs/artifacts/arm64/u-boot/orangepi-5 u-boot-rockchip.bin u-boot-rockchip-spi.bin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this just copying the same file to different name?

@@ -27,7 +27,9 @@ func main() {

type opi5Installer struct{}

type opi5ExtraOptions struct{}
type opi5ExtraOptions struct {
SPIBoot bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this tested, this is missing yaml tags and won't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants