From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 Sep 2022 18:22:40 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oeIme-001ZJO-AN for lore@lore.pengutronix.de; Fri, 30 Sep 2022 18:22:40 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oeImc-0006fT-Tr; Fri, 30 Sep 2022 18:22:38 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeImA-0006GN-Iw; Fri, 30 Sep 2022 18:22:10 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oeImB-003pqZ-DK; Fri, 30 Sep 2022 18:22:09 +0200 Received: from afa by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oeIm8-003SJ2-Nr; Fri, 30 Sep 2022 18:22:08 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 30 Sep 2022 18:21:57 +0200 Message-Id: <20220930162159.814389-9-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220930162159.814389-1-a.fatoum@pengutronix.de> References: <20220930162159.814389-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 08/10] v7a: rpi4: add boot loader spec support X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false We now build device trees and have a kernel capable of booting on the Raspberry Pi 4b, so generate bootloader spec entries as well. We add an entry for the Raspberry Pi 400 as well. This is untested, but isn't costly to enable. Signed-off-by: Ahmad Fatoum --- configs/platform-v7a/platformconfig | 1 + configs/platform-v7a/platforms/blspec-rpi4.in | 5 +++ projectroot/loader/entries/rpi400.conf | 6 +++ projectroot/loader/entries/rpi4b.conf | 6 +++ rules/blspec-rpi4.make | 38 +++++++++++++++++++ 5 files changed, 56 insertions(+) create mode 100644 configs/platform-v7a/platforms/blspec-rpi4.in create mode 100644 projectroot/loader/entries/rpi400.conf create mode 100644 projectroot/loader/entries/rpi4b.conf create mode 100644 rules/blspec-rpi4.make diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig index 645e8e801b71..93ed5d93668f 100644 --- a/configs/platform-v7a/platformconfig +++ b/configs/platform-v7a/platformconfig @@ -229,6 +229,7 @@ PTXCONF_BLSPEC_NITROGEN6X=y PTXCONF_BLSPEC_RIOTBOARD=y PTXCONF_BLSPEC_RPI2=y PTXCONF_BLSPEC_RPI3=y +PTXCONF_BLSPEC_RPI4=y PTXCONF_BLSPEC_RPICM3=y PTXCONF_BLSPEC_SABRELITE=y PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y diff --git a/configs/platform-v7a/platforms/blspec-rpi4.in b/configs/platform-v7a/platforms/blspec-rpi4.in new file mode 100644 index 000000000000..0c0ce14f47bf --- /dev/null +++ b/configs/platform-v7a/platforms/blspec-rpi4.in @@ -0,0 +1,5 @@ +## SECTION=blspec + +config BLSPEC_RPI4 + tristate + prompt "/loader/entries/rpi4*.conf bootloader spec entries" diff --git a/projectroot/loader/entries/rpi400.conf b/projectroot/loader/entries/rpi400.conf new file mode 100644 index 000000000000..4d212c0b9e71 --- /dev/null +++ b/projectroot/loader/entries/rpi400.conf @@ -0,0 +1,6 @@ +title Raspberry Pi 400 - Pengutronix-DistroKit +version 4.6 +options rootwait rw +linux /boot/zImage +devicetree /boot/bcm2711-rpi-400.dtb +linux-appendroot true diff --git a/projectroot/loader/entries/rpi4b.conf b/projectroot/loader/entries/rpi4b.conf new file mode 100644 index 000000000000..c0fd6f1fa5d8 --- /dev/null +++ b/projectroot/loader/entries/rpi4b.conf @@ -0,0 +1,6 @@ +title Raspberry Pi 4b - Pengutronix-DistroKit +version 4.6 +options rootwait rw +linux /boot/zImage +devicetree /boot/bcm2711-rpi-4-b.dtb +linux-appendroot true diff --git a/rules/blspec-rpi4.make b/rules/blspec-rpi4.make new file mode 100644 index 000000000000..50a5f88ac9cf --- /dev/null +++ b/rules/blspec-rpi4.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2022 by Ahmad Fatoum +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BLSPEC_RPI4) += blspec-rpi4 + +BLSPEC_RPI4_VERSION := 4.6 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-rpi4.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-rpi4) + @$(call install_fixup,blspec-rpi4,PRIORITY,optional) + @$(call install_fixup,blspec-rpi4,SECTION,base) + @$(call install_fixup,blspec-rpi4,AUTHOR,"Ahmad Fatoum ") + @$(call install_fixup,blspec-rpi4,DESCRIPTION,missing) + + @$(call install_alternative, blspec-rpi4, 0, 0, 0644, \ + /loader/entries/rpi4b.conf) + @$(call install_alternative, blspec-rpi4, 0, 0, 0644, \ + /loader/entries/rpi400.conf) + + @$(call install_finish,blspec-rpi4) + + @$(call touch) + +# vim: syntax=make -- 2.30.2