[X2Go-Commits] [live-build-x2go] 15/59: This is an attempt to create a bootable image for the raspberry pi. It will not do anything if the pi firmware cannot be found during the build, so it is safe even on non-ARM platforms

git-admin at x2go.org git-admin at x2go.org
Mon Nov 28 19:34:49 CET 2022


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox-magic-pixel-workaround-buster
in repository live-build-x2go.

commit f46d45c2b05a5b9759a20f4b7c0acf6a23e67b5d
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Wed Sep 18 14:39:00 2019 +0200

    This is an attempt to create a bootable image for the raspberry pi. It will not do anything if the pi firmware cannot be found during the build, so it is safe even on non-ARM platforms
---
 config/hooks/50-install-rpi-firmware.binary | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/config/hooks/50-install-rpi-firmware.binary b/config/hooks/50-install-rpi-firmware.binary
new file mode 100755
index 0000000..96d1c34
--- /dev/null
+++ b/config/hooks/50-install-rpi-firmware.binary
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Installs the Raspberry PI firmware (bootloader, kernel etc)
+
+if [ -f chroot/boot/firmware/bootcode.bin ]; then
+	# This is a Raspi Build
+	cp -a chroot/boot binary/
+
+	cat >binary/cmdline.txt <<EOF
+boot=live components noswap lang=de vconsole.keymap=de keyboard-layouts=de locales=de_DE.UTF-8 live-media=/dev/sda1
+EOF
+
+	cat >binary/config.txt <<EOF
+kernel $(realpath ./live/vmlinuz*)
+initramfs $(realpath ./live/initrd.img*) 0x00800000
+EOF
+
+fi

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list