meta-riscv: add K3 platform support#635
Conversation
Add BSP support for the SpacemiT K3 platform, covering multiple board variants (COM260, Pico-ITX, EVB, etc.) built from a single `MACHINE=k3` target. Currently supported images: - core-image-minimal - core-image-weston Changes include: - conf/machine/k3.conf: machine definition with all K3 device trees - conf/machine/include/k3-common.inc: shared K3 image configuration - recipes-core/images/image-k3.inc: image generation with bootfs, Titan archive, and WIC support - files/wic/k3.wks: WIC partitioning layout for SD card boot - kas/k3.yml: kas build configuration for K3 - recipes-bsp/k3-rootfs-overlay: rootfs overlay for weston, network, firmware; use linux-firmware packages instead of embedded blobs - recipes-core/images/core-image-weston.bbappend: add K3 packages - recipes-core/images/core-image-minimal.bbappend: add K3 packages - README.md: add K3 to Available Machines table
OpenSBI upstream now uses CSR macro definitions (CSR_ML2SETUP,
CSR_MSETUP) instead of direct register names, ensuring compatibility
with the open-source toolchain. The proprietary Spacemit toolchain is
no longer needed.
- Remove spacemit-toolchain_1.2.2.bb recipe
- Remove spacemit-toolchain-native from opensbi-k3 DEPENDS
- Use ${TARGET_PREFIX} (OE default cross-compiler) instead of
Spacemit-specific CROSS_COMPILE path
|
Hi yingjie-liu-spacemit , thanks for submitting this. I'm at BayLibre. We've received your request to help port this support to Yocto. I'm working on a simplified submission of the changes you have submitted over here: #636 |
Thank you so much for your help! I apologize for not fully understanding the upstreaming and submission guidelines for this repository earlier. I have gone through the discussions in #636 and agree that a cleaner, more simplified breakdown is the best way forward. I will close this PR (#635) now, and I look forward to collaborating with you and the BayLibre team to successfully port the SpacemiT K3 platform support to meta-riscv. Best regards, |
meta-riscv: add SpacemiT K3 platform BSP support
What changed:
Add BSP support for the SpacemiT K3 platform, covering multiple board
variants (COM260, Pico-ITX, EVB, etc.) built from a single MACHINE=k3
target.
Currently supported images:
Files added/modified:
archive, and WIC support
config; WiFi/BT firmware via linux-firmware packages
userspace
Intent:
Enable the Yocto community to build and run images on SpacemiT K3
RISC-V SoC boards out of the box. The K3 is a RISC-V application
processor with Imagination GPU, targeting desktop and edge computing
use cases.
How to build:
MACHINE=k3 bitbake core-image-weston
Or with kas:
kas build kas/k3.yml
Tested:
boards
New platform added to README table: Yes — K3 row added to Available
Machines.
Signed-off-by: liuyingjie yingjie.liu@spacemit.com