Skip to content

Replace rpi-image-gen with ClockworkPi-pi-gen for uConsole image builds#42

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-1485695-843170126-7fe5a5b7-b561-4ce4-b826-3ce84a0da1b5
Draft

Replace rpi-image-gen with ClockworkPi-pi-gen for uConsole image builds#42
Copilot wants to merge 3 commits intomainfrom
copilot/fix-1485695-843170126-7fe5a5b7-b561-4ce4-b826-3ce84a0da1b5

Conversation

Copy link
Contributor

Copilot AI commented Nov 3, 2025

Migrates from Raspberry Pi Foundation's rpi-image-gen (YAML config-based) to ClockworkPi's pi-gen fork (stage-based), which includes uConsole-specific optimizations.

Changes

Submodule

Build system

  • scripts/generate_rpi_image.sh: Rewritten to use pi-gen's stage-based approach
    • Generates dynamic custom stages for kernel installation and uConsole hardware config
    • Supports both prebuilt and custom-built kernels
    • Handles desktop environment selection (GNOME, KDE, MATE, Xfce, etc.)

CI/CD

  • .github/workflows/build-and-release.yml: Updated Debian builds (bookworm/trixie) to use pi-gen
    • Creates custom stages: stage2/06-uconsole-kernel, stage2/07-uconsole-config, stage2/08-desktop-environment
    • Ubuntu (jammy) continues manual customization (pi-gen doesn't support Ubuntu)

Documentation

  • Updated README.md and IMPLEMENTATION.md with pi-gen stage-based architecture
  • Added scripts/pi_gen/README.md with integration details
  • Removed obsolete scripts/rpi_image_gen/README.md

Architecture shift

Before: YAML configs → minimal image → manual chroot customization

After: Stage-based builds → complete image from bootstrap

pi-gen provides better Debian ecosystem integration and includes ClockworkPi hardware optimizations out of the box.

Original prompt

Replace raspi-image-gen module and procedures with the proper ones from this other repository:

https://github.com/ak-rex/ClockworkPi-pi-gen

READ THE README: https://github.com/ak-rex/ClockworkPi-pi-gen/blob/main/README.md

Do these steps instead of the ones of raspi-image-gen: replace them for this new.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 3, 2025 11:09
…ild procedures

Co-authored-by: crossplatformdev <1485695+crossplatformdev@users.noreply.github.com>
Co-authored-by: crossplatformdev <1485695+crossplatformdev@users.noreply.github.com>
Copilot AI changed the title Replace raspi-image-gen module and procedures with the proper ones from this other repository: https://github.com/ak-rex/ClockworkPi-pi-gen READ THE README: https://github.com/ak-rex/ClockworkPi-pi-gen/blob/main/README.md Do these steps instead of t... Replace rpi-image-gen with ClockworkPi-pi-gen for uConsole image builds Nov 3, 2025
@crossplatformdev crossplatformdev force-pushed the main branch 19 times, most recently from 8efb17a to f09ae76 Compare December 8, 2025 22:12
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