COSCUP x UbuCon Asia 2026 Logo
  • About
  • Session
  • Transportation
  • Venue
  • Communities
  • Sponsors
    • Participate Guide
    • First Timer
    • Activity
    • Speaker Participation
    • Welcome Party
    • For Overseas Visitors
    • Open Source Communities
    • Sponsorship Partners
    • Invitation Letter Guide
  • Staff
  • Fringe Events / BoF
  • Blog
  • CoC
中文

crossdev-stages, painless tool for building cross-compiler environment and board images for RISC-V and other architectures

Time
2026-08-08 10:50 ~ 11:20
Speaker
Sungjoon Moon
Room
TR512
Co-write
Miscellaneous Open Source Topics AdvancedEnglish

Abstract

Bringing Linux up on a new RISC-V board usually means assembling a vendor BSP and chasing toolchain mismatches by hand.

crossdev-stages is a Rust CLI (and also a library) that wraps the whole flow in one declarative pipeline.

Each board is a small set of config files in boards/<name>/ (arch, CFLAGS, kernel / OpenSBI / U-Boot / firmware repos & tags, services), with optional pre/post/override shell hooks per build step. The tool drives Gentoo's crossdev to build a cross-toolchain, fetches pinned sources, cross-emerges the rootfs with whatever Portage packages and USE flags the board declares, and assembles a bootable image.

It runs inside hakoniwa (箱庭): an unprivileged user-namespace sandbox, so no sudo or Docker daemon.

Cross-toolchains and binary packages are keyed by (CHOST, canonical CFLAGS); CFLAGS go through sokgi first, which normalizes semantically equivalent flag strings (token order, last-wins overrides) to the same hash.

So one toolchain build per hardware profile, shared across compatible boards. Each image build also writes a build.lock.toml pinning stage3, source commits, kernel/U-Boot config sha256, and CFLAGS. crossdev-stages update diffs it against upstream HEAD when you want to refresh.

Speaker

Sungjoon Moon

Sungjoon Moon

Free and Open Source Software contributor Co-founder and Director of FOSS for All

Interested in RISC-V, wayland, CJK.

Diamond

Canonical

Gold

Consecutive2 YrsInformation Management AssociationConsecutive2 YrsCathay Financial HoldingsConsecutive5 YrsE.SUN BankCumulative12 YrsMySQLCumulative6 YrsBerry AINitra

Silver

Cumulative16 YrsGamesofa Inc.

Bronze

KKTIXNational Center for High-performance ComputingONLYOFFICEQNAP Systems, Inc.Consecutive16 YrsThe Archilife Research FoundationSUN SQUARE Co., Ltd

Friend

Consecutive3 YrsAndes Technology CorporationAppier

Special Thanks

Consecutive2 YrsDepartment of Information Technology, Taipei City GovernmentSiFiveRozeta AI

Co-host

Collaborator9 YrsNTUST - Department of Electronic and Computer Engineering

Co-organizer

Collaborator12 YrsOpen Culture Foundation

COSCUP x UbuCon Asia 2026

Conference for Open Source Coders, Users, and Promoters | Asia's largest open source community conference.

Contact

  • Attendee Services
  • Sponsorship
  • Call for Proposals
  • Marketing

Resources

  • COSCUP Blog
  • Newsletter Subscription
  • Event Photos

Sitemap

  • Home
  • About
  • Transportation
20062007200820092010201120122013201420152016201720182019202020212022202320242025