From patchwork Tue Sep 13 21:21:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12816 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9EADC6FA82 for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web12.766.1663104148314517830 for ; Tue, 13 Sep 2022 14:22:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=MyFHiwrK; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 89ADF3200946; Tue, 13 Sep 2022 17:22:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 13 Sep 2022 17:22:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104147; x=1663190547; bh=0j BdMYJKJ/7J8nu/EuhroqMeJj+WOVL2JgnjRb1cYNQ=; b=MyFHiwrKvvIBbkM+Ds ZlbJsiEnowrf5MN1r2J4mzv76JKmqBdTXw1CGTQBtViNH2eIgWhpl4/5RRrkZE4U JZQyv7BHHAgkn4pW5qKLWk8w+5sBCyMnD0vCBOYDoVOnABtkVKG6kTgc99il0u4i gbEQnno/CzpEADh3zrgUWshB0tO6QHbbne/IogSEV4qTD1FGsXqyWXvhMhFJJyKc sjtHyhjSRtK56oeuhSRdOOqTgZzzMityFMuMAU36B0WAQIK0/iU7TIAaUzVPBBzf W8QsrWNZkpJqxs4E3PWzYCzyKKfmI9vAxTs4eK6Qg6Jl65mliFEeIQlbVpN/pdzZ nUZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104147; x=1663190547; bh=0jBdMYJKJ/7J8 nu/EuhroqMeJj+WOVL2JgnjRb1cYNQ=; b=s0LG43Vg1WRCjzNWjtZJr1WU4kfC0 AuPuJrKN91XJdb2+uvSE7GnkGNm+UGfzdC6UETuohNApHWae7sUG+PQiwN5uIpqk L3QtCnek1XB3DsMouBfotQBC21OdCgEWnTXZ1XyuStx93BUHHlMkYuG1R0NQxpum rm53Khy5iGoZLuzUBPx2XeHSXk8jGj2fjHNAdrrwZYEJ+ZFB7wqROdeOZj6Mr7+v zch6qD4G9UQgFWDUHWpoGGhQ06Ed443mTp18KJp14YlWK8w5OKTkivdQjIiNSs+i sFKLMY+N05iMjYVtcy4Djxf4XxKjYsVtVPA/Fj4oagSikeASHRvifG50w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:26 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 1/7] sdcard_image-rpi.bbclass: Move SDIMG_KERNELIMAGE definitions to their machines Date: Tue, 13 Sep 2022 23:21:58 +0200 Message-Id: <20220913212204.3210494-2-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58030 From: Andrei Gherzan This unifies the configuration of SDIMG_KERNELIMAGE across machines. Signed-off-by: Andrei Gherzan --- classes/sdcard_image-rpi.bbclass | 5 ----- conf/machine/raspberrypi.conf | 4 ++-- conf/machine/raspberrypi2.conf | 2 +- conf/machine/raspberrypi3-64.conf | 7 +++---- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index a7b9ac8..178e4ef 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass @@ -25,11 +25,6 @@ inherit image_types # This image depends on the rootfs image IMAGE_TYPEDEP:rpi-sdimg = "${SDIMG_ROOTFS_TYPE}" -# Kernel image name -SDIMG_KERNELIMAGE:raspberrypi ?= "kernel.img" -SDIMG_KERNELIMAGE:raspberrypi2 ?= "kernel7.img" -SDIMG_KERNELIMAGE:raspberrypi3-64 ?= "kernel8.img" - # Boot partition volume id # Shorten raspberrypi to just rpi to keep it under 11 characters # now enforced by mkfs.vfat from dosfstools-4.2 diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf index b23687b..05263d7 100644 --- a/conf/machine/raspberrypi.conf +++ b/conf/machine/raspberrypi.conf @@ -7,8 +7,8 @@ DEFAULTTUNE ?= "arm1176jzfshf" require conf/machine/include/tune-arm1176jzf-s.inc include conf/machine/include/rpi-base.inc -SERIAL_CONSOLES ?= "115200;ttyAMA0" - +SDIMG_KERNELIMAGE ?= "kernel.img" UBOOT_MACHINE = "rpi_config" +SERIAL_CONSOLES ?= "115200;ttyAMA0" ARMSTUB ?= "armstub.bin" diff --git a/conf/machine/raspberrypi2.conf b/conf/machine/raspberrypi2.conf index 403d15e..8cb859e 100644 --- a/conf/machine/raspberrypi2.conf +++ b/conf/machine/raspberrypi2.conf @@ -7,8 +7,8 @@ DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4" require conf/machine/include/arm/armv7a/tune-cortexa7.inc include conf/machine/include/rpi-base.inc +SDIMG_KERNELIMAGE ?= "kernel7.img" SERIAL_CONSOLES ?= "115200;ttyAMA0" - UBOOT_MACHINE = "rpi_2_config" ARMSTUB ?= "armstub7.bin" diff --git a/conf/machine/raspberrypi3-64.conf b/conf/machine/raspberrypi3-64.conf index 95475f3..573b079 100644 --- a/conf/machine/raspberrypi3-64.conf +++ b/conf/machine/raspberrypi3-64.conf @@ -21,16 +21,15 @@ RPI_KERNEL_DEVICETREE = " \ broadcom/bcm2710-rpi-cm3.dtb \ " -SERIAL_CONSOLES ?= "115200;ttyS0" - -UBOOT_MACHINE = "rpi_arm64_config" - +SDIMG_KERNELIMAGE ?= "kernel8.img" # When u-boot is enabled we need to use the "Image" format and the "booti" # command to load the kernel KERNEL_IMAGETYPE_UBOOT ?= "Image" # "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet KERNEL_IMAGETYPE_DIRECT ?= "Image" KERNEL_BOOTCMD ?= "booti" +UBOOT_MACHINE = "rpi_arm64_config" +SERIAL_CONSOLES ?= "115200;ttyS0" VC4DTBO ?= "vc4-fkms-v3d" ARMSTUB ?= "armstub8.bin" From patchwork Tue Sep 13 21:21:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D69D4C6FA8B for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web11.780.1663104150119820523 for ; Tue, 13 Sep 2022 14:22:30 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=PIorTASv; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 5FAA9320093F; Tue, 13 Sep 2022 17:22:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 13 Sep 2022 17:22:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104148; x=1663190548; bh=iG c0ScSASIrQRP0BKgHL5W+upzjyzqKYEpRDDi65RQA=; b=PIorTASvhMzvdXbup/ 4JhxMuKPH6NV99J5y8aRe9xHoDSbGRvnDprbhTYj/rzAF3XS6eySSP8cgPxah9PY e3zMHlywmHE0f35IHGe2elrqiiPNi/D5fmXQCrw0TJgPlqHkHAG9wduYPtqWlNYm x+xal1nKVgeXl81vjJS+LgNzFPRdi/KkSk/uPqcXe3TBmr2dxnyuVVW10RVpK0Qv eFpxZjgPJfO3f/LfzdsiCX/vE6IUIlM/67aN32ON2n8IWDI9byzt1eBkik1BP3yV RhLZwQsnKmrlcN4GOLwxIgl5mGXxPs2qXklJOFg0Nq98UMu5onYkv6ot6rS+ISyo tCOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104148; x=1663190548; bh=iGc0ScSASIrQR P0BKgHL5W+upzjyzqKYEpRDDi65RQA=; b=NLYGVAaQSx+RTt7thHl66i9ZK5OCw 5JfhPY5YlorAoP+HrrxD6KmdHdCOAgUPkPHFUaj2g7JVYk9S+BwPKlbi7o6+G83x 0Yr6WTTRTLLIPi0hj5vtPQSMXKggd26+A0Z9XTQThLMFs4MV7yEpAKbS6Eve1Ne/ KEnVHZbApa3utKXio0rveS+ioVC7o4mCQuzVnwpJm35FXuiMhdRPhx7ZxDCgWUxU rcLvA/79MQ6xlmizbT3I2kAJ1O01s3689JyXnGQHwDbZocSboQH/tr96R6ZCAJDV T5wIiLyw9h1DeYVz67a+0Tey2SmsGGN1erOuAOouX95GqAAj+aHMcrEUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:28 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 2/7] raspberrypi0-2w.conf: Include the RPi 0-2w dtb for all 32-bit machines Date: Tue, 13 Sep 2022 23:21:59 +0200 Message-Id: <20220913212204.3210494-3-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58031 From: Andrei Gherzan All 32-bit machines are sharing the list of machine dtbs with the exception of raspberrypi0-2w. Move this away too to unify the machine configurations. Signed-off-by: Andrei Gherzan --- conf/machine/include/rpi-base.inc | 1 + conf/machine/raspberrypi0-2w.conf | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index a2edf06..beb1f08 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc @@ -68,6 +68,7 @@ RPI_KERNEL_DEVICETREE ?= " \ bcm2710-rpi-2-b.dtb \ bcm2710-rpi-3-b.dtb \ bcm2710-rpi-3-b-plus.dtb \ + bcm2710-rpi-zero-2.dtb \ bcm2711-rpi-4-b.dtb \ bcm2711-rpi-400.dtb \ bcm2708-rpi-cm.dtb \ diff --git a/conf/machine/raspberrypi0-2w.conf b/conf/machine/raspberrypi0-2w.conf index c360d90..63c7bfb 100644 --- a/conf/machine/raspberrypi0-2w.conf +++ b/conf/machine/raspberrypi0-2w.conf @@ -11,7 +11,3 @@ MACHINE_EXTRA_RRECOMMENDS += "\ linux-firmware-rpidistro-bcm43436s \ bluez-firmware-rpidistro-bcm43430b0-hcd \ " - -RPI_KERNEL_DEVICETREE = " \ - bcm2710-rpi-zero-2.dtb \ - " From patchwork Tue Sep 13 21:22:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12820 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5266C6FA8E for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web10.754.1663104152256976496 for ; Tue, 13 Sep 2022 14:22:32 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=RcZ5wCOy; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 81E8E3200645; Tue, 13 Sep 2022 17:22:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 13 Sep 2022 17:22:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104151; x=1663190551; bh=Ds vubmPAoLSOvAdeUJD9Khl8/Uzz26NPjqWHC8OZGXI=; b=RcZ5wCOylSW6V/gjDi Ohln6x9bhvHXRktvS8TBQodpLHFinpnQqCKBKKMu503FWfmUUq7Jx65FRC+wSiSw Eh8vMOZ0YOs0jAmZw/TLDsa3VST7un3maCVofi5XdKApe6WeXaK/aoF2PGcJ28eb YM2FjrvuSmXG5sZtD/SyijZyEUWgHeUVuWmRnEvSGDhIup/1Yh+ZNJx+0OMEW5W2 fwb7Vi55eqGbH7HzCPoc1IunFa5h/mkPC5/yGxGIdcKrgBLhe9ohc+DIP6FWNZ9x s9bekHzy619SHISMvEVTb1pbatYen+Xq3maqnpKRvDVoo4BcX8J6unJ/sdRRJ3Ae kfcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104151; x=1663190551; bh=DsvubmPAoLSOv AdeUJD9Khl8/Uzz26NPjqWHC8OZGXI=; b=vAQr+LByOnw4Y4nag4mV/TPgPTgEQ Ha7Yrhx6A9rjYEi4kDZr8PG8xMRs6/rDz2RR3GzUDP78YVCvvHk1cxn3j0OJpi/6 7eIBYYTtWkAWhJi7FqK+ka34RZ+LDBUyNV4D9Leig43GuZwEklNZe0QjtIrJjNxq qHJcj4qI4NHA9lWsZUlNMx/FMbnTeu3enWe+VpQfbIHqLZUBiBi50HVBM7anJxCT kuMRCfHtnr0SQzj67ENHFH0+5e5Kj//o6EQ40dtEBY4ZcYuF8TkD0JgPfjbkLSwm dOnbxDte08Lqm2cOaMWnDw49FjNXRX+uezrb7mpXoP9T+TQ62cB5HWuTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:29 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 3/7] rpi-base.inc: Split IMAGE_BOOT_FILES for kernel image Date: Tue, 13 Sep 2022 23:22:00 +0200 Message-Id: <20220913212204.3210494-4-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58032 From: Andrei Gherzan The kernel image deployment is now defined in IMAGE_BOOT_FILES as a separate variable: RPI_EXTRA_IMAGE_BOOT_FILES. This allows a custom kernel image deployment by redefining this variable when needed. Signed-off-by: Andrei Gherzan --- conf/machine/include/rpi-base.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index beb1f08..313c7d9 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc @@ -134,12 +134,15 @@ def make_dtb_boot_files(d): return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) +RPI_EXTRA_IMAGE_BOOT_FILES ?= " \ + ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ + '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ + '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ + " IMAGE_BOOT_FILES ?= "${BOOTFILES_DIR_NAME}/* \ ${@make_dtb_boot_files(d)} \ - ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ - '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ - '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ + ${RPI_EXTRA_IMAGE_BOOT_FILES} \ " do_image_wic[depends] += " \ rpi-bootfiles:do_deploy \ From patchwork Tue Sep 13 21:22:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12821 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D79D4C6FA8D for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web09.787.1663104154018156552 for ; Tue, 13 Sep 2022 14:22:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=MhL+XUpq; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 47E97320093B; Tue, 13 Sep 2022 17:22:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 13 Sep 2022 17:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104152; x=1663190552; bh=f1 BadxOENguHWgFJqbJz0b82OciPrr7KR6jGXrzm1Gg=; b=MhL+XUpqqBygXEFYLl tI02xzLIQ0jJHu08DC+5+gnoPV9WvPpN7TM+z90EUJNXXoerrAsGrTIHhvKRa+ci z5q89Sfz8P2DrqvyvxMElopr8PbopV3OXLTFGSwrmFXvNnU2NCc8QjGlImQg79IM AIiABvRfxu9BzaCW6fhiFYf4fsuOq8SEdh4dgXRjmOSPx68h4IsWQqO89ya+MNZ2 hvtK2P3H/ARxVkASnvLElygWNFjUrQgnX74s07DIcQwZnKuWTNFjWBDOdaHE2R/n 7DLIlYFgHEdXsRlSXdan8er/82g++UKihCokQGqcIOTXwURx8U4VKQd07cWq8srH ibDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104152; x=1663190552; bh=f1BadxOENguHW gFJqbJz0b82OciPrr7KR6jGXrzm1Gg=; b=bC2uleBSiRI3e1GdyP5+1d3B21UhR TZPnCv9ZY/QQSp95e1lvEUqwrTMPk0949f9Z8hrdST18hdSXdO5JMB8h4Va7Ss3Y 3e2WyZEboanm4b2scmnyQzKvQI5Z59nmkxjzr2CLEF4XQjejGZLW/HDC5WLjqg93 jBymwyi/XSY8peh0ndzW1XeRnsZCHwVOouW32ikq+JA2O2YdHT2AZCB7HGKaeP31 4G74q1gBy3FEQO7bqL9nANEaxD/Zi6jBoFUXJMP2d68tQhB7NdIpQ1uSJkglCI58 VNxkJxyFhi0pEOeEFpFucikYUC/c350/DQOPPXenoKrxeXoIecYrOOPQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:32 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 4/7] Add support for a ARMv7 machine supporting multiple Raspberry Pi boards Date: Tue, 13 Sep 2022 23:22:01 +0200 Message-Id: <20220913212204.3210494-5-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58033 From: Andrei Gherzan The new raspberrypi-armv7.conf aims at supporting all the ARMv7 Raspberry Pi boards. This initial support was tested on: * Raspberry Pi 4 Model B * Raspberry Pi 3 Model B * Raspberry Pi 0 2 WiFi Signed-off-by: Andrei Gherzan --- conf/machine/include/rpi-default-versions.inc | 1 + conf/machine/raspberrypi-armv7.conf | 39 +++++++++++++++++++ docs/layer-contents.md | 16 ++++++++ recipes-kernel/linux/linux-raspberrypi-v7.inc | 13 +++++++ .../linux/linux-raspberrypi-v7_5.10.bb | 6 +++ .../linux/linux-raspberrypi-v7_5.15.bb | 6 +++ recipes-kernel/linux/linux-raspberrypi.inc | 1 + .../linux/linux-raspberrypi_5.15.bb | 12 ++++++ 8 files changed, 94 insertions(+) create mode 100644 conf/machine/raspberrypi-armv7.conf create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7.inc create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7_5.10.bb create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb diff --git a/conf/machine/include/rpi-default-versions.inc b/conf/machine/include/rpi-default-versions.inc index 8ff2839..a29fd5e 100644 --- a/conf/machine/include/rpi-default-versions.inc +++ b/conf/machine/include/rpi-default-versions.inc @@ -1,3 +1,4 @@ # RaspberryPi BSP default versions PREFERRED_VERSION_linux-raspberrypi ??= "5.15.%" +PREFERRED_VERSION_linux-raspberrypi-v7 ??= "${PREFERRED_VERSION_linux-raspberrypi}" diff --git a/conf/machine/raspberrypi-armv7.conf b/conf/machine/raspberrypi-armv7.conf new file mode 100644 index 0000000..cb2e5a2 --- /dev/null +++ b/conf/machine/raspberrypi-armv7.conf @@ -0,0 +1,39 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +#@TYPE: Machine +#@NAME: RaspberryPi Development Boards (32bit) +#@DESCRIPTION: Machine configuration for the RaspberryPi boards in 32 bit mode + +DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4" +require conf/machine/include/arm/armv7a/tune-cortexa7.inc +include conf/machine/include/rpi-base.inc + +# This machine includes by default the kernel for v7l. We hook in support for +# v7. +RASPBERRYPI_v7_KERNEL = "linux-raspberrypi-v7" +RASPBERRYPI_v7_KERNEL_PACKAGE_NAME = "kernel-v7" +RASPBERRYPI_v7_KERNEL_FILE ?= "kernel7.img" +# We don't need a lot for v7l because it is the default provider, +# virtual/kernel. +RASPBERRYPI_v7l_KERNEL_FILE ?= "kernel7l.img" + +MACHINE_FEATURES += "pci" +MACHINE_EXTRA_RRECOMMENDS += "\ + linux-firmware-rpidistro-bcm43430 \ + linux-firmware-rpidistro-bcm43436 \ + linux-firmware-rpidistro-bcm43436s \ + linux-firmware-rpidistro-bcm43455 \ + linux-firmware-rpidistro-bcm43456 \ + bluez-firmware-rpidistro-bcm43430a1-hcd \ + bluez-firmware-rpidistro-bcm43430b0-hcd \ + bluez-firmware-rpidistro-bcm4345c0-hcd \ + bluez-firmware-rpidistro-bcm4345c5-hcd \ +" + +# FIXME: This machine doesn't support u-boot (yet) +RPI_EXTRA_IMAGE_BOOT_FILES = " \ + ${KERNEL_IMAGETYPE};${RASPBERRYPI_v7l_KERNEL_FILE} \ + ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}/${KERNEL_IMAGETYPE};${RASPBERRYPI_v7_KERNEL_FILE} \ +" diff --git a/docs/layer-contents.md b/docs/layer-contents.md index d12cb88..aa28a23 100644 --- a/docs/layer-contents.md +++ b/docs/layer-contents.md @@ -16,6 +16,22 @@ Note: The raspberrypi3 machines include support for Raspberry Pi 3B+. +## Multi-board Machines + +This layer generally provides support for machines that are targetting a single +Raspberry Pi board (or a very few subsets of them). This is so that the build +infrastructure can tune and tweak the configuration with the flexibility to +optimise for both runtime performance and disk storage. + +For usecases where compatibility of more boards is required, the layer provides +machines that are tagetting a wider support of Raspberry Pi boards. + +### raspberrypi-armv7 + +This machine targets support for all the ARMv7-based Raspberry Pi boards. It +will pull in the firmware and deploy the kernel image and kernel modules for +all the relevant boards. + ## Images * rpi-test-image diff --git a/recipes-kernel/linux/linux-raspberrypi-v7.inc b/recipes-kernel/linux/linux-raspberrypi-v7.inc new file mode 100644 index 0000000..77debc4 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi-v7.inc @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +KBUILD_DEFCONFIG:raspberrypi-armv7 = "bcm2709_defconfig" +KERNEL_PACKAGE_NAME = "${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}" +PROVIDES:remove = "virtual/kernel" + +KERNEL_IMAGETYPE_DIRECT ?= "zImage" + +COMPATIBLE_MACHINE = "^raspberrypi-armv7$" + +KERNEL_DEVICETREE = "" diff --git a/recipes-kernel/linux/linux-raspberrypi-v7_5.10.bb b/recipes-kernel/linux/linux-raspberrypi-v7_5.10.bb new file mode 100644 index 0000000..d594b61 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi-v7_5.10.bb @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +require linux-raspberrypi-v7.inc +require linux-raspberrypi_5.10.bb diff --git a/recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb b/recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb new file mode 100644 index 0000000..7883985 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +require linux-raspberrypi-v7.inc +require linux-raspberrypi_5.15.bb diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 6362a73..2a651bd 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -26,6 +26,7 @@ KBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig" KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig" KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig" KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig" +KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig" LINUX_VERSION_EXTENSION ?= "" diff --git a/recipes-kernel/linux/linux-raspberrypi_5.15.bb b/recipes-kernel/linux/linux-raspberrypi_5.15.bb index db93537..468737c 100644 --- a/recipes-kernel/linux/linux-raspberrypi_5.15.bb +++ b/recipes-kernel/linux/linux-raspberrypi_5.15.bb @@ -17,3 +17,15 @@ SRC_URI = " \ require linux-raspberrypi.inc KERNEL_DTC_FLAGS += "-@ -H epapr" + +RDEPENDS:${KERNEL_PACKAGE_NAME}:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}" +RDEPENDS:${KERNEL_PACKAGE_NAME}-base:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-base" +RDEPENDS:${KERNEL_PACKAGE_NAME}-image:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-image" +RDEPENDS:${KERNEL_PACKAGE_NAME}-dev:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-dev" +RDEPENDS:${KERNEL_PACKAGE_NAME}-vmlinux:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-vmlinux" +RDEPENDS:${KERNEL_PACKAGE_NAME}-modules:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-modules" +RDEPENDS:${KERNEL_PACKAGE_NAME}-dbg:raspberrypi-armv7:append = " ${RASPBERRYPI_v7_KERNEL_PACKAGE_NAME}-dbg" + +DEPLOYDEP = "" +DEPLOYDEP:raspberrypi-armv7 = "${RASPBERRYPI_v7_KERNEL}:do_deploy" +do_deploy[depends] += "${DEPLOYDEP}" From patchwork Tue Sep 13 21:22:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12818 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D68FEC54EE9 for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web11.781.1663104155816369575 for ; Tue, 13 Sep 2022 14:22:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=A1tk/+V+; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0F2253200953; Tue, 13 Sep 2022 17:22:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 13 Sep 2022 17:22:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104154; x=1663190554; bh=Tf pr8eDd198Y2A+H1kzKIUcJjDxqiMGsWpxsloZvoB0=; b=A1tk/+V+pellMbDFSz IiUtIoiHQiRvtdwJVu+SPP/oBL2y20ZJKXI7E6l+vAO1ZavnndLrzqZnsuYDEMNW tCtagRHuQzFRM8jPCOn0r5c0JbcL5vD2rtI3NOHH///n+QspiHHKw9Hy5v60Crr0 TLPFzpQz+xkodvUfTVtyeoLBj0XU/fu1aoUSOCwGr6MPQw1no6CxwDVjCw9Z5wZf 6HFH9EbVS4pwppalaje/5RSeP/+Kf3qjpiPPLUwpIweoXvFOYuAOgvPc/wJ6hEUr m90orQ4EMjbNq3FTpBv9dlHdJV0VMTYxZ2m0PiCKh6jWdQ/ugZciv7+Xw1xEEe8S K2hQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104154; x=1663190554; bh=Tfpr8eDd198Y2 A+H1kzKIUcJjDxqiMGsWpxsloZvoB0=; b=vBisEo0KCk/3bz+W0T1YpZny6x27e 2q2zMmzv9SgBHcfS4ylk7k/ZpWId46x4BGVwMBb7BZyF8Ekje6z2nLcV0K3YeQZ/ h2KIjlAto6ic5G0wzY1xZ3UANSh/z1q5c0sV544VW/W+oTwq19X2Ab+kKyY5EcS9 kRkJbyAKrfH8AyeLybHss+VfQ3eDbQtNUxuzBBnU8KAPzXyHhQOdMrKkwhZSL652 D2AFd8hlu2ERq04hhseEo7lMq2us8vVjBYGl2MTFIwZJ7Ba5I9E7XAdcBmtC50Ld U3Ox/xsLYwxQO51NBFRQWcfvthD/IrOy8ETGVjILnSQ3mvvms0rnfSvTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:33 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 5/7] ci: Add raspberrypi-armv7 to the build matrix Date: Tue, 13 Sep 2022 23:22:02 +0200 Message-Id: <20220913212204.3210494-6-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58034 From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- .github/workflows/yocto-builds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/yocto-builds.yml b/.github/workflows/yocto-builds.yml index 824745c..8644b13 100644 --- a/.github/workflows/yocto-builds.yml +++ b/.github/workflows/yocto-builds.yml @@ -27,6 +27,7 @@ jobs: - raspberrypi4 - raspberrypi-cm3 - raspberrypi-cm + - raspberrypi-armv7 image: [rpi-test-image] distro: [poky] runs-on: [self-hosted, Linux] From patchwork Tue Sep 13 21:22:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8D55ECAAD8 for ; Tue, 13 Sep 2022 21:22:38 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web09.788.1663104157513547212 for ; Tue, 13 Sep 2022 14:22:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=K0NZovsS; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BFDA53200956; Tue, 13 Sep 2022 17:22:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 13 Sep 2022 17:22:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104156; x=1663190556; bh=jh cKgElRNs6CknqgJGzMBfcViJv/CqI4wWdC0DffD3c=; b=K0NZovsSIUE+3ljHr+ ZlOAsTgj0gG7Iw16b1UvjfpUuQBFF+bEmYV3y4/jMC6RL97OW4puiO8fGhVNJz8F q8F6/MDpVjpbEInkZIWj8qFJFIBVSp5l+IHXP5c6Hj3iapecRTuLx17J8OcdVapX dIb9ZEoBqq7EGG3YzJTlQPW9VQEGvk383avYxHAcJxnR6CfycIgcVOUQWScRNaGi ySn07hlYyigpf59cEUGDXH7fQyLXn5u5MnCDj+PLAzBgqktueP2ESvcU9a2kVlfs Rysvozc/oMAyZVXAX2n5xVBGTLpcOApuXttri2IYFdLtfbXVJA7SzKrfs4Hft1PK txSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104156; x=1663190556; bh=jhcKgElRNs6Ck nqgJGzMBfcViJv/CqI4wWdC0DffD3c=; b=WF3VgVZ8EONVeRFfeRl9kB4p2JXUU SERIs5fCLdSqnv4fgclzC8PAqhGaOP26GG6Qt8f43fU+BehXutLhmAIIw+8L1qMV 59H9nhf9U3pWQYGlY6ddT390w1IDLdFzP0aSccRjsChhZ2LaGO79jCDk+sR9abGW FK47YHkpbqNzEsj2PyDuixkIp59bS2P2ZbX/K6yJHFsw3i6YAxkZBUbuprLfu8Se 71fTwTjjZlcnksryNi/uywba290yOvc3FLShwDcAnBDEQrc2iAnu7cbWT9AZWjnR 2tL5dvV6W0MAPWqZldRnvj987ClDl2hBY9Ql9buc+44qxMeEx3ssaHE1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv pedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:35 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 6/7] Add support for a ARMv8 machine supporting multiple Raspberry Pi boards Date: Tue, 13 Sep 2022 23:22:03 +0200 Message-Id: <20220913212204.3210494-7-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58035 From: Andrei Gherzan The new raspberrypi-armv8.conf aims at supporting all the ARMv8 Raspberry Pi boards. This initial support was tested on: * Raspberry Pi 4 Model B * Raspberry Pi 3 Model B * Raspberry Pi 0 2 WiFi Signed-off-by: Andrei Gherzan --- conf/machine/raspberrypi-armv8.conf | 43 ++++++++++++++++++++++ docs/layer-contents.md | 6 +++ recipes-kernel/linux/linux-raspberrypi.inc | 1 + 3 files changed, 50 insertions(+) create mode 100644 conf/machine/raspberrypi-armv8.conf diff --git a/conf/machine/raspberrypi-armv8.conf b/conf/machine/raspberrypi-armv8.conf new file mode 100644 index 0000000..fb3ffa8 --- /dev/null +++ b/conf/machine/raspberrypi-armv8.conf @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: Andrei Gherzan +# +# SPDX-License-Identifier: MIT + +#@TYPE: Machine +#@NAME: RaspberryPi Development Boards (64bit) +#@DESCRIPTION: Machine configuration for the RaspberryPi boards in 64 bit mode + +require conf/machine/include/arm/armv8a/tune-cortexa53.inc +include conf/machine/include/rpi-base.inc + +MACHINE_FEATURES += "pci" +MACHINE_EXTRA_RRECOMMENDS += "\ + linux-firmware-rpidistro-bcm43430 \ + linux-firmware-rpidistro-bcm43455 \ + linux-firmware-rpidistro-bcm43456 \ + linux-firmware-rpidistro-bcm43436 \ + linux-firmware-rpidistro-bcm43436s \ + bluez-firmware-rpidistro-bcm43430a1-hcd \ + bluez-firmware-rpidistro-bcm43430b0-hcd \ + bluez-firmware-rpidistro-bcm4345c0-hcd \ + bluez-firmware-rpidistro-bcm4345c5-hcd \ +" + +RPI_KERNEL_DEVICETREE = " \ + broadcom/bcm2710-rpi-3-b.dtb \ + broadcom/bcm2710-rpi-3-b-plus.dtb \ + broadcom/bcm2837-rpi-3-b.dtb \ + broadcom/bcm2710-rpi-cm3.dtb \ + broadcom/bcm2710-rpi-zero-2.dtb \ + broadcom/bcm2711-rpi-4-b.dtb \ + broadcom/bcm2711-rpi-400.dtb \ + broadcom/bcm2711-rpi-cm4.dtb \ +" + +SDIMG_KERNELIMAGE ?= "kernel8.img" +KERNEL_IMAGETYPE_UBOOT ?= "Image" +KERNEL_IMAGETYPE_DIRECT ?= "Image" +KERNEL_BOOTCMD ?= "booti" +UBOOT_MACHINE = "rpi_arm64_config" +SERIAL_CONSOLES ?= "115200;ttyS0" + +VC4DTBO ?= "vc4-fkms-v3d" diff --git a/docs/layer-contents.md b/docs/layer-contents.md index aa28a23..3882339 100644 --- a/docs/layer-contents.md +++ b/docs/layer-contents.md @@ -32,6 +32,12 @@ This machine targets support for all the ARMv7-based Raspberry Pi boards. It will pull in the firmware and deploy the kernel image and kernel modules for all the relevant boards. +### raspberrypi-armv8 + +This machine targets support for all the ARMv8-based Raspberry Pi boards. It +will pull in the firmware and deploy the kernel image and kernel modules for +all the relevant boards. + ## Images * rpi-test-image diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 2a651bd..be1883c 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -27,6 +27,7 @@ KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig" KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig" KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig" KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig" +KBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig" LINUX_VERSION_EXTENSION ?= "" From patchwork Tue Sep 13 21:22:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 12822 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC927C6FA8A for ; Tue, 13 Sep 2022 21:22:48 +0000 (UTC) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web11.784.1663104159875670901 for ; Tue, 13 Sep 2022 14:22:40 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gherzan.com header.s=fm3 header.b=K2HwG0cs; spf=pass (domain: gherzan.com, ip: 64.147.123.19, mailfrom: andrei@gherzan.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1F35F3200946; Tue, 13 Sep 2022 17:22:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 13 Sep 2022 17:22:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1663104158; x=1663190558; bh=8i 3QDwoFLbn+9leSLCWwNvkKmQh9JGmE4IB4CnL0iP8=; b=K2HwG0csVf/kvgaPyE Un+ZDknUC4mIwimC/NtHvQPX77zAfH/CfbzCxskIPCcsnOeRtQcVIl+VXXr2wOcQ zBy9h1W8N+RGw95YOIHpfvu99MNJ9TK07pG9W3OHGWOUccd5CM8RtMo4fVBqUV1S 2M4ozRhYYrcGM2c7s1+PaqbUSCClVv47VjDSWTgNKwoRBvgXN1l7Z21AJV/mv8Tp Ls8rjfW6L9eEX3dZJ+ylDwiLpwPXbSqoG0UEfTbVdbOjTMo6zbRk9HiLCL7mTkZ1 GpC3SAwBIMz8c2WTKXHqLF94LxWPJhgNiCrh1XDz8mDT1dwMhvn8DSpH/Wmf12ib Ly/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663104158; x=1663190558; bh=8i3QDwoFLbn+9 leSLCWwNvkKmQh9JGmE4IB4CnL0iP8=; b=eritwXRVdBqg+vsg0DHxTuf18OaIr spmqHnKERAOCOUexJhxBmpj3Nm378hV5HMUP6I7vLsMQeB+uwdd0CZb3FF/L/8im B6qxUVMkjCYhyOb4xc4z/ZMB8qR4uyezG5vSzSu9Ibll7IjOtbm5THGmBQbzE95V qFCq9dxN0p99eVc8SqM/ED7yhD/7PD36ubAe+5la6Hn9EU5fjLOMKsLtNYWH1h2s wmRYJjNN58cxRMQJk/Uu84gVCkM2euqxk3Fp3ehzVUUmr5sz1kGjauesRLXwLAha hVo/ASHv8TEHHaA3qBiD03w6Th5jIkjRjVxEr+dNEjK6uZJvGjCAsbkfA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheptehnughrvghiucfihhgvrhiirghnuceorghnughrvghi sehghhgvrhiirghnrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfevhfeggfffjeegle ekjeelieffjefggfekgefgfffgffeifeefgeehhfdtffenucevlhhushhtvghrufhiiigv peefnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvihesghhhvghriigrnhdrtg homh X-ME-Proxy: Feedback-ID: i68994715:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 17:22:37 -0400 (EDT) From: Andrei Gherzan To: yocto@lists.yoctoproject.org Cc: andrei@gherzan.com, Andrei Gherzan Subject: [meta-raspberrypi][PATCH v2 7/7] ci: Add raspberrypi-armv8 to the build matrix Date: Tue, 13 Sep 2022 23:22:04 +0200 Message-Id: <20220913212204.3210494-8-andrei@gherzan.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913212204.3210494-1-andrei@gherzan.com> References: <20220913212204.3210494-1-andrei@gherzan.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 13 Sep 2022 21:22:48 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58036 From: Andrei Gherzan Signed-off-by: Andrei Gherzan --- .github/workflows/yocto-builds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/yocto-builds.yml b/.github/workflows/yocto-builds.yml index 8644b13..3f21242 100644 --- a/.github/workflows/yocto-builds.yml +++ b/.github/workflows/yocto-builds.yml @@ -28,6 +28,7 @@ jobs: - raspberrypi-cm3 - raspberrypi-cm - raspberrypi-armv7 + - raspberrypi-armv8 image: [rpi-test-image] distro: [poky] runs-on: [self-hosted, Linux]