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

Pi Images! #57

Draft
wants to merge 5 commits into
base: um41
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build-katsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@ jobs:
- x86_64
- aarch64
variant:
# generic efi
- base/base-disk
- flagship/base-disk
- gnome/base-disk
- plasma/base-disk
- xfce/base-disk
# rpi with uboot
- ports/rpi/flagship
- ports/rpi/gnome
- ports/rpi/plasma
- ports/rpi/xfce
# chromebooks - indev
#- ports/chromebook/flagship
#- ports/chromebook/gnome
#- ports/chromebook/plasma
Expand All @@ -77,6 +84,15 @@ jobs:
variant: plasma/plasma-chromebook
- arch: aarch64
variant: xfce/xfce-chromebook
# exclude pi x86
- arch: x86_64
variant: ports/rpi/flagship
- arch: x86_64
variant: ports/rpi/gnome
- arch: x86_64
variant: ports/rpi/plasma
- arch: x86_64
variant: ports/rpi/xfce
runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'arm64' }}
container:
image: ghcr.io/terrapkg/builder:f41
Expand Down
8 changes: 0 additions & 8 deletions katsu/modules/base/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ systemctl disable chronyd

echo max_parallel_downloads=20 >> /etc/dnf/dnf.conf
echo defaultyes=True >> /etc/dnf/dnf.conf

# if aarch64

arch=$(uname -m)
if [[ $arch == "aarch64" ]]; then
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin
cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin
fi
rm -f /var/lib/systemd/random-seed
rm -f /etc/NetworkManager/system-connections/*.nmconnection

Expand Down
18 changes: 18 additions & 0 deletions katsu/modules/ports/rpi/flagship.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
builder: dnf

import:
- rpi.yaml
- ../../flagship/flagship.yaml
- ../../flagship/base-disk-aarch64.yaml

distro: Ultramarine Linux 41 Flagship (Raspberry Pi)

out_file: ultramarine-rpi-flagship-41.img

bootloader: grub

kernel_cmdline: "quiet rhgb"

dnf:
releasever: 41
exec: dnf4
18 changes: 18 additions & 0 deletions katsu/modules/ports/rpi/gnome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
builder: dnf

import:
- rpi.yaml
- ../../gnome/gnome.yaml
- ../../gnome/base-disk-aarch64.yaml

distro: Ultramarine Linux 41 GNOME (Raspberry Pi)

out_file: ultramarine-rpi-gnome-41.img

bootloader: grub

kernel_cmdline: "quiet rhgb"

dnf:
releasever: 41
exec: dnf4
18 changes: 18 additions & 0 deletions katsu/modules/ports/rpi/plasma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
builder: dnf

import:
- rpi.yaml
- ../../plasma/plasma.yaml
- ../../plasma/base-disk-aarch64.yaml

distro: Ultramarine Linux 41 Plasma (Raspberry Pi)

out_file: ultramarine-rpi-plasma-41.img

bootloader: grub

kernel_cmdline: "quiet rhgb"

dnf:
releasever: 41
exec: dnf4
12 changes: 12 additions & 0 deletions katsu/modules/ports/rpi/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Raspberry Pi (64bit)

This port supports the following Pi models

- Raspberry Pi Zero 2 (No Desktop)
- Raspberry Pi 3 (Xfce or No Desktop)
- Raspberry Pi 4 (All Editions)
- Raspberry Pi 5 (All Editions)

## Known Issues

UPDATE ME
26 changes: 26 additions & 0 deletions katsu/modules/ports/rpi/rpi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
builder: dnf

scripts:
post:
- id: cleanup
name: Clean up system
file: ../../base/cleanup.sh
- id: selinux-setup
name: Set up SELinux
file: ../../base/selinux.sh
chroot: false
- id: buildstamp
name: Generate buildstamp
file: ../../base/buildstamp.sh
- id: uboot
name: Install Raspberry Pi uboot
file: uboot.sh

dnf:
releasever: 41
exec: dnf4
packages:
- kernel-rpi
- linux-firmware-rpi
- rpi-utils
- uboot
5 changes: 5 additions & 0 deletions katsu/modules/ports/rpi/uboot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -x
#install pi uboot files
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin
cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin
18 changes: 18 additions & 0 deletions katsu/modules/ports/rpi/xfce.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
builder: dnf

import:
- rpi.yaml
- ../../xfce/xfce.yaml
- ../../xfce/base-disk-aarch64.yaml

distro: Ultramarine Linux 41 Xfce (Raspberry Pi)

out_file: ultramarine-rpi-xfce-41.img

bootloader: grub

kernel_cmdline: "quiet rhgb"

dnf:
releasever: 41
exec: dnf4
Loading