Skip to content

SpacemiT K3: Update OpenSBI / U-Boot to k3-br-v1.0.8 - #10742

Merged
pyavitz merged 1 commit into
armbian:mainfrom
pyavitz:SPACEMIT-032
Sep 17, 2026
Merged

pyavitz merged 1 commit into
armbian:mainfrom
pyavitz:SPACEMIT-032

Conversation

@pyavitz

@pyavitz pyavitz commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

This picks up from the following PR; #10506

Additions:

  • Update to k3-br-v1.0.8
  • Add erasespi function run erasespi (Forces unit into fastboot mode upon reset)
  • Force MII PHY network layers to initialize early to prevent an EFI access fault crash and remove dhcp run.

Summary by CodeRabbit

  • New Features

    • Updated SpacemiT K3 boot support to the newer v1.0.8 firmware release.
    • Added distro-style boot discovery across USB, SD card, NVMe, SCSI, and MMC storage.
    • Added PXE network boot support and improved EFI network initialization.
    • Added SPI flash boot handling with super-speed transfer support.
  • Bug Fixes

    • Resolved a Linux reserved-memory overlap warning during boot.
    • Reduced bootloader output noise and removed faulty print timestamps.
    • Adjusted firmware contents to remain within BootROM download limits.

Pickup from PR armbian#10506

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
@github-actions github-actions Bot added size/large PR with 250 lines or more 11 Milestone: Fourth quarter release labels Sep 17, 2026
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2ddebc77-2201-4386-a5b4-e9bcdd2f1bb0

📥 Commits

Reviewing files that changed from the base of the PR and between bc5e3a7 and 11483b0.

📒 Files selected for processing (10)
  • config/sources/families/spacemit-k3.conf
  • packages/blobs/riscv64/spacemit-k3/esos.itb
  • packages/blobs/riscv64/spacemit-k3/spi-flash-howto.txt
  • patch/atf/atf-spacemit-k3/001-k3-fix-rcpu1-reserved-mem-overlap.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/001-SpacemiT-K3-fixup-boot-variables.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/002-Update-SpacemiT-K3-defconfig.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/003-Update-SpacemiT-K3-Env.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/004-board-spacemit-k3-Initialize-miiphy-early-to-fix-EFI.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/005-lib-printf-Revert-spacemit-s-buggy-CONFIG_PRINT_TIME.patch
  • patch/u-boot/legacy/u-boot-spacemit-k3/006-Fixup-circular-deps.patch

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The SpacemiT K3 update selects k3-br-v1.0.8, adjusts OpenSBI memory sizing, revises U-Boot configuration and boot environments, initializes networking earlier, removes printf timestamps, and updates SPI flash staging instructions.

Changes

SpacemiT K3 boot stack

Layer / File(s) Summary
Source tag and OpenSBI memory fix
config/sources/families/spacemit-k3.conf, patch/atf/atf-spacemit-k3/001-k3-fix-rcpu1-reserved-mem-overlap.patch
The K3 source tag changes to k3-br-v1.0.8. RCPU1_RUNTIME_SPACE_SIZE changes from 0x400000UL to 0x200000UL.
U-Boot configuration update
patch/u-boot/legacy/u-boot-spacemit-k3/002-Update-SpacemiT-K3-defconfig.patch
The defconfig changes SPL contents, boot-standard settings, command selection, logging, image support, and console buffer sizes.
U-Boot boot environment and device flow
patch/u-boot/legacy/u-boot-spacemit-k3/001-SpacemiT-K3-fixup-boot-variables.patch, patch/u-boot/legacy/u-boot-spacemit-k3/003-Update-SpacemiT-K3-Env.patch
Boot variables use distro boot names. The environment adds PXE booting and SPI erase support, enumerates PCIe before NVMe scanning, and updates image defaults and autoboot behavior.
Board initialization and printf behavior
patch/u-boot/legacy/u-boot-spacemit-k3/004-board-spacemit-k3-Initialize-miiphy-early-to-fix-EFI.patch, patch/u-boot/legacy/u-boot-spacemit-k3/005-lib-printf-Revert-spacemit-s-buggy-CONFIG_PRINT_TIME.patch
Non-SPL network builds initialize the MII PHY in board_init(). U-Boot printf no longer prepends timestamp data.
SPI flash staging procedure
packages/blobs/riscv64/spacemit-k3/spi-flash-howto.txt
The instructions wait 10 seconds and enable fastboot super-speed between FSBL and U-Boot staging.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant UBoot
  participant PCIeRootPort
  participant NVMeDevice
  participant PXEServer
  UBoot->>PCIeRootPort: pci enum
  PCIeRootPort->>NVMeDevice: enumerate device
  UBoot->>NVMeDevice: nvme scan
  UBoot->>PXEServer: dhcp and pxe get
  PXEServer-->>UBoot: PXE boot data
Loading

Merge Risk: ⚪ Minimal · up to 11483

The revised K3 boot environment retains support for extlinux boot configurations. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the SpacemiT K3 target and the primary OpenSBI and U-Boot update to k3-br-v1.0.8.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... BSP Board Support Packages labels Sep 17, 2026

@EvilOlaf EvilOlaf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks sane

@github-actions github-actions Bot added the Ready to merge Reviewed, tested and ready for merge label Sep 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions Bot removed the Needs review Seeking for review label Sep 17, 2026
@pyavitz
pyavitz merged commit 04108a2 into armbian:main Sep 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

11 Milestone: Fourth quarter release BSP Board Support Packages Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/large PR with 250 lines or more

Development

Successfully merging this pull request may close these issues.

2 participants