diff --git a/extra/Makefile b/extra/Makefile index a91ef55..317bf27 100644 --- a/extra/Makefile +++ b/extra/Makefile @@ -15,13 +15,16 @@ architecture?=i386 mirror?=https://deb.debian.org/debian scratchsize?=4G -suite?=bullseye +suite?=bookworm flags?=-v flags+=--scratchsize=${scratchsize} flags+=-tsuite:${suite} flags+=-tmirror:${mirror} +# Disable if needed (ubuntu-22.04) +# flags+=--disable-fakemachine + images_lists ?= ${project}-i386-generic.img images_lists += ${project}-amd64-generic.img @@ -37,12 +40,18 @@ help: Makefile @echo "# ${ -{{if eq $architecture "i386" "amd64"}} - update-grub - && grub-install /dev/disk/by-id/virtio-fakedisk-0 +{{if eq $architecture "i386"}} + update-grub + && grub-install /dev/disk/by-id/virtio-fakedisk-0 +{{else}} +{{if eq $architecture "amd64"}} + update-grub + && grub-install --target=x86_64-efi --no-nvram + && mkdir -p /boot/efi/EFI/BOOT + && cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI +{{end}} {{end}} diff --git a/extra/debos/machine/generic/pinball-amd64.yaml b/extra/debos/machine/generic/pinball-amd64.yaml index 8e7046c..909a113 100644 --- a/extra/debos/machine/generic/pinball-amd64.yaml +++ b/extra/debos/machine/generic/pinball-amd64.yaml @@ -1,7 +1,9 @@ {{- $architecture := or .architecture "amd64" -}} +{{- $bootloader := or .bootloader "grub-efi" -}} {{- $machine := or .machine "generic" -}} {{- $mirror := or .mirror "https://deb.debian.org/debian" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $partitiontype := or .partitiontype "gpt" -}} +{{- $suite := or .suite "bookworm" -}} architecture: {{$architecture}} @@ -11,6 +13,8 @@ actions: recipe: ../../pinball.yaml variables: architecture: {{$architecture}} + bootloader: {{$bootloader}} machine: {{$machine}} mirror: {{$mirror}} + partitiontype: {{$partitiontype}} suite: {{$suite}} diff --git a/extra/debos/machine/generic/pinball-i386.yaml b/extra/debos/machine/generic/pinball-i386.yaml index 7f96855..842a6d4 100644 --- a/extra/debos/machine/generic/pinball-i386.yaml +++ b/extra/debos/machine/generic/pinball-i386.yaml @@ -1,7 +1,9 @@ {{- $architecture := or .architecture "i386" -}} +{{- $bootloader := or .bootloader "grub-pc" -}} {{- $machine := or .machine "generic" -}} {{- $mirror := or .mirror "https://deb.debian.org/debian" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $partitiontype := or .partitiontype "msdos" -}} +{{- $suite := or .suite "bookworm" -}} architecture: {{$architecture}} @@ -11,6 +13,8 @@ actions: recipe: ../../pinball.yaml variables: architecture: {{$architecture}} + bootloader: {{$bootloader}} machine: {{$machine}} mirror: {{$mirror}} + partitiontype: {{$partitiontype}} suite: {{$suite}} diff --git a/extra/debos/machine/rpi_2/actions.yaml b/extra/debos/machine/rpi_2/actions.yaml index 581acac..e4164d7 100644 --- a/extra/debos/machine/rpi_2/actions.yaml +++ b/extra/debos/machine/rpi_2/actions.yaml @@ -3,7 +3,7 @@ {{- $kernel := or .kernel "linux-image-armmp" -}} {{- $machine := or .machine "rpi_2" -}} {{- $project := or .project "pinball" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine (printf "%s" $machine) -}} {{- $image := or .image (printf "%s-%s-%s.img" $project $architecture $machine) -}} @@ -64,24 +64,26 @@ actions: - action: run chroot: true command: > - echo "# /boot/firmware/config.txt" - | tee /boot/firmware/config.txt \ + echo "# /etc/default/raspi-firmware-custom" + | tee /etc/default/raspi-firmware-custom \ {{if eq $architecture "arm64"}} && echo 'arm_64bit=1' - | tee -a /boot/firmware/config.txt \ + | tee -a /etc/default/raspi-firmware-custom \ {{else}} && echo 'arm_64bit=0' - | tee -a /boot/firmware/config.txt \ + | tee -a /etc/default/raspi-firmware-custom \ {{end}} && echo 'enable_uart=1' - | tee -a /boot/firmware/config.txt + | tee -a /etc/default/raspi-firmware-custom && echo 'uart_2ndstage' - | tee -a /boot/firmware/config.txt + | tee -a /etc/default/raspi-firmware-custom && echo 'kernel=u-boot.bin' - | tee -a /boot/firmware/config.txt + | tee -a /etc/default/raspi-firmware-custom && echo 'upstream_kernel=1' - | tee -a /boot/firmware/config.txt - && cat /boot/firmware/config.txt + | tee -a /etc/default/raspi-firmware-custom + && echo 'disable_overscan=1' + | tee -a /etc/default/raspi-firmware-custom + && cat /etc/default/raspi-firmware-custom - action: run chroot: true diff --git a/extra/debos/machine/rpi_2/pinball-rpi_2.yaml b/extra/debos/machine/rpi_2/pinball-rpi_2.yaml index edac3c9..d237035 100644 --- a/extra/debos/machine/rpi_2/pinball-rpi_2.yaml +++ b/extra/debos/machine/rpi_2/pinball-rpi_2.yaml @@ -1,6 +1,6 @@ {{- $architecture := or .architecture "armhf" -}} {{- $machine := or .machine "rpi_2" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_2" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_32b/actions.yaml b/extra/debos/machine/rpi_3_32b/actions.yaml index 34dc132..acec08e 100644 --- a/extra/debos/machine/rpi_3_32b/actions.yaml +++ b/extra/debos/machine/rpi_3_32b/actions.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "armhf" -}} {{- $kernel := or .kernel "linux-image-armmp" -}} {{- $machine := or .machine "rpi_3_32b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_3_32b" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_32b/image.yaml b/extra/debos/machine/rpi_3_32b/image.yaml index 5dbd537..16c4ed4 100644 --- a/extra/debos/machine/rpi_3_32b/image.yaml +++ b/extra/debos/machine/rpi_3_32b/image.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "armhf" -}} {{- $kernel := or .kernel "linux-image-armmp" -}} {{- $machine := or .machine "rpi_3_32b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_32b/pinball-rpi_3_32b.yaml b/extra/debos/machine/rpi_3_32b/pinball-rpi_3_32b.yaml index ab1f2ca..1e6e0ea 100644 --- a/extra/debos/machine/rpi_3_32b/pinball-rpi_3_32b.yaml +++ b/extra/debos/machine/rpi_3_32b/pinball-rpi_3_32b.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "armhf" -}} {{- $image := or .image "pinball-rpi_3_32b.img" -}} {{- $machine := or .machine "rpi_3_32b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_3_32b" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_64b/actions.yaml b/extra/debos/machine/rpi_3_64b/actions.yaml index 9e3de83..d1c4ede 100644 --- a/extra/debos/machine/rpi_3_64b/actions.yaml +++ b/extra/debos/machine/rpi_3_64b/actions.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "arm64" -}} {{- $kernel := or .kernel "linux-image-generic" -}} {{- $machine := or .machine "rpi_3_64b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_3" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_64b/image.yaml b/extra/debos/machine/rpi_3_64b/image.yaml index 21307b9..1c87f56 100644 --- a/extra/debos/machine/rpi_3_64b/image.yaml +++ b/extra/debos/machine/rpi_3_64b/image.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "arm64" -}} {{- $kernel := or .kernel "linux-image-generic" -}} {{- $machine := or .machine "rpi_3_64b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_3_64b/pinball-rpi_3_64b.yaml b/extra/debos/machine/rpi_3_64b/pinball-rpi_3_64b.yaml index aa94388..a327892 100644 --- a/extra/debos/machine/rpi_3_64b/pinball-rpi_3_64b.yaml +++ b/extra/debos/machine/rpi_3_64b/pinball-rpi_3_64b.yaml @@ -2,7 +2,7 @@ {{- $image := or .image "pinball-rpi_3_64b.img" -}} {{- $kernel := or .kernel "linux-image-generic" -}} {{- $machine := or .machine "rpi_3_64b" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_3" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_4/actions.yaml b/extra/debos/machine/rpi_4/actions.yaml index d12c1d1..6b89816 100644 --- a/extra/debos/machine/rpi_4/actions.yaml +++ b/extra/debos/machine/rpi_4/actions.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "arm64" -}} {{- $kernel := or .kernel "linux-image-generic" -}} {{- $machine := or .machine "rpi_4" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi4" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_4/image.yaml b/extra/debos/machine/rpi_4/image.yaml index d48a39e..250d401 100644 --- a/extra/debos/machine/rpi_4/image.yaml +++ b/extra/debos/machine/rpi_4/image.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "arm64" -}} {{- $kernel := or .kernel "linux-image-generic" -}} {{- $machine := or .machine "rpi_4" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} architecture: {{$architecture}} diff --git a/extra/debos/machine/rpi_4/pinball-rpi_4.yaml b/extra/debos/machine/rpi_4/pinball-rpi_4.yaml index a18d034..243b8aa 100644 --- a/extra/debos/machine/rpi_4/pinball-rpi_4.yaml +++ b/extra/debos/machine/rpi_4/pinball-rpi_4.yaml @@ -1,7 +1,7 @@ {{- $architecture := or .architecture "arm64" -}} {{- $machine := or .machine "rpi_4" -}} {{- $mirror := or .mirror "https://deb.debian.org/debian" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} {{- $uboot_machine := or .uboot_machine "rpi_4" -}} architecture: {{$architecture}} diff --git a/extra/debos/pinball.yaml b/extra/debos/pinball.yaml index f1a6289..415e2af 100644 --- a/extra/debos/pinball.yaml +++ b/extra/debos/pinball.yaml @@ -3,7 +3,9 @@ {{- $machine := or .machine "generic" -}} {{- $mirror := or .mirror "https://deb.debian.org/debian" -}} {{- $project := or .project "pinball" -}} -{{- $suite := or .suite "bullseye" -}} +{{- $suite := or .suite "bookworm" -}} +{{- $bootloader := or .bootloader "grub-pc" -}} +{{- $partitiontype := or .partitiontype "msdos" -}} {{- $uboot_machine := or .uboot_machine "generic" -}} {{- $image := or .image (printf "%s-%s-%s.img" $project $architecture $machine) -}} @@ -15,6 +17,7 @@ actions: components: - main - non-free + - non-free-firmware mirror: {{$mirror}} variant: minbase @@ -24,7 +27,7 @@ actions: cat /etc/os-release cat<&1 | tee /var/log/weston.log" +ExecStart=/usr/bin/weston --tty=2 [Install] Alias=display-manager.service