From patchwork Sun Jul 14 16:04:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Athaariq Ardhiansyah X-Patchwork-Id: 1960359 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WMVY42BHGz1xqj for ; Mon, 15 Jul 2024 02:05:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 555A960605; Sun, 14 Jul 2024 16:05:24 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id W341nASqnQBF; Sun, 14 Jul 2024 16:05:23 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5DEB960614 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 5DEB960614; Sun, 14 Jul 2024 16:05:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2099E1BF4E7 for ; Sun, 14 Jul 2024 16:05:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0C29A811D0 for ; Sun, 14 Jul 2024 16:05:22 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id eOInQj4pRZHl for ; Sun, 14 Jul 2024 16:05:21 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=117.53.144.211; helo=mail.selirafood.com; envelope-from=foss@athaariq.my.id; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 31E7B811CA DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 31E7B811CA Received: from mail.selirafood.com (mail.selirafood.com [117.53.144.211]) by smtp1.osuosl.org (Postfix) with ESMTPS id 31E7B811CA for ; Sun, 14 Jul 2024 16:05:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.selirafood.com (Postfix) with ESMTP id 98A9D323EA; Sun, 14 Jul 2024 23:05:16 +0700 (WIB) Received: from localhost.localdomain (unknown [192.168.100.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.selirafood.com (Postfix) with ESMTPSA id 139A551276; Sun, 14 Jul 2024 23:05:14 +0700 (WIB) From: Athaariq Ardhiansyah To: buildroot@buildroot.org Date: Sun, 14 Jul 2024 23:04:52 +0700 Message-ID: <20240714160457.39434-1-foss@athaariq.my.id> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=athaariq.my.id; h=content-transfer-encoding:mime-version:x-mailer:message-id :date:date:subject:subject:from:from:received; s=dkim20240121; t=1720973116; x=1722182717; bh=n3eBI4L1UzEJ35+aaE8eW/X48SBEIZcG bbZTv9pz9Dc=; b=V2rSddfcT9qquTFW3E9ZnUWa8U/hXaTIiJC9LnzO2q2aAjS5 Z/JaEaDXQcQvCe/GOvlAHVxLSGGTtrfD7sd1WPnPhcrKRLoxTYYsWitEzFnroqFK wWJ1n/jt0s7w40nhwIvdi6chrbzdLRibW29lnhQIxGhSwdgyFaxHEP4lc4F1rlpv HEbc0XZ/KcKJAnOEMgTO6NkvZLH9eAhlKhXyPmwjPmc1Ho+S1pMkSHxo6k2C119T xXN0xv2GJaX3ykMwPEe5nx00GOVjcpihR4gdQe9/cSu19wF2IjzVfD/X8rr8XnKh rVUSDbUyblRYGlBPOwbC2V1v6kk3zbmezE0BuQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=athaariq.my.id X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=athaariq.my.id header.i=@athaariq.my.id header.a=rsa-sha256 header.s=dkim20240121 header.b=V2rSddfc X-Mailman-Original-Authentication-Results: mail.selirafood.com (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=athaariq.my.id Subject: [Buildroot] [PATCH v4 1/3] package/rpi-firmware: bump version to 1.20240529 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Athaariq Ardhiansyah , Mahyar Koshkouei , Martin Bark Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Latest RPi firmware already provided support for Raspberry Pi 5. Signed-off-by: Athaariq Ardhiansyah --- Changes v1 -> v2: - Fix missing description due to terminal issue Changes v2 -> v4: - Change back from commit ID to commit tag Signed-off-by: Athaariq Ardhiansyah --- package/rpi-firmware/rpi-firmware.hash | 2 +- package/rpi-firmware/rpi-firmware.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/rpi-firmware/rpi-firmware.hash b/package/rpi-firmware/rpi-firmware.hash index 4501db739c..5dc6efd8b3 100644 --- a/package/rpi-firmware/rpi-firmware.hash +++ b/package/rpi-firmware/rpi-firmware.hash @@ -1,3 +1,3 @@ # Locally computed -sha256 00fe5487376e9d5ed14cbc72a9b7a5bd8d6900c84aee10f6d656f192a26d161c rpi-firmware-5476720d52cf579dc1627715262b30ba1242525e.tar.gz +sha256 48d0b1b041bf77dc81d7ed04c423a7f4ce0afd0e3fbea26462309e738b89a552 rpi-firmware-1.20240529.tar.gz sha256 c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b boot/LICENCE.broadcom diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk index 7ae9ff6c28..81066f0fc0 100644 --- a/package/rpi-firmware/rpi-firmware.mk +++ b/package/rpi-firmware/rpi-firmware.mk @@ -4,7 +4,7 @@ # ################################################################################ -RPI_FIRMWARE_VERSION = 5476720d52cf579dc1627715262b30ba1242525e +RPI_FIRMWARE_VERSION = 1.20240529 RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION)) RPI_FIRMWARE_LICENSE = BSD-3-Clause RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom From patchwork Sun Jul 14 16:04:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Athaariq Ardhiansyah X-Patchwork-Id: 1960360 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WMVY75sYNz1xqj for ; Mon, 15 Jul 2024 02:05:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DA7C5606EB; Sun, 14 Jul 2024 16:05:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PfGO0mjIxQyV; Sun, 14 Jul 2024 16:05:26 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 612A860644 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 612A860644; Sun, 14 Jul 2024 16:05:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id F183C1BF4E7 for ; Sun, 14 Jul 2024 16:05:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id EAB03403A0 for ; Sun, 14 Jul 2024 16:05:23 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ciP_WwRkv-22 for ; Sun, 14 Jul 2024 16:05:22 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=117.53.144.211; helo=mail.selirafood.com; envelope-from=foss@athaariq.my.id; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 2DF454039B DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2DF454039B Received: from mail.selirafood.com (mail.selirafood.com [117.53.144.211]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2DF454039B for ; Sun, 14 Jul 2024 16:05:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.selirafood.com (Postfix) with ESMTP id 5C066510DB; Sun, 14 Jul 2024 23:05:19 +0700 (WIB) Received: from localhost.localdomain (unknown [192.168.100.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.selirafood.com (Postfix) with ESMTPSA id 204922501C; Sun, 14 Jul 2024 23:05:19 +0700 (WIB) From: Athaariq Ardhiansyah To: buildroot@buildroot.org Date: Sun, 14 Jul 2024 23:04:53 +0700 Message-ID: <20240714160457.39434-2-foss@athaariq.my.id> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240714160457.39434-1-foss@athaariq.my.id> References: <20240714160457.39434-1-foss@athaariq.my.id> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=athaariq.my.id; h=content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received; s=dkim20240121; t=1720973119; x=1722182720; bh=zT4dHz I/ojdDHZdLSrF79Zaeb3dj+E1PkA1VIjr9jN8=; b=YLjI/VO9533R5ROiY9KOrk bIGkSqd70ySc1oZWJDRaLvEcFfdXoRamx7reYwtxEPTqnIuxVKij9F6dOSfTISce eDaygUdZlSVvjYgpCWmRRN9MeTNT6kMFAqw4nNvd9nFgubyN7q1h9OkH3CfkVloz uGAZoKkVO6Z9XcELzJkifGeta9CxI2hbKBx8HixPzorgeQLm42H2g0Q5AoJ6Hf0c 7LIiI1K3ZYVea8Rln6DVL8dwdDCpkFKFbZOaOaElVWKwDQPP2phzZ9+3HQRvn6QX tMFFG+MLW9gNDcjAiTmEAWP+zEzWUuAfI6CryXCzDYyuMDU03JqLVlM8OiAQydOw == X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=athaariq.my.id X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=athaariq.my.id header.i=@athaariq.my.id header.a=rsa-sha256 header.s=dkim20240121 header.b=YLjI/VO9 X-Mailman-Original-Authentication-Results: mail.selirafood.com (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=athaariq.my.id Subject: [Buildroot] [PATCH v4 2/3] package/raspberrypi-usbboot: bump version to master (commit 4a3d311) X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Athaariq Ardhiansyah Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Latest raspberrypi-usbboot package has Raspberry Pi 5 support. It is considerably matured at commit 4a3d31171769f87d919340778e5aaeaba01e10b5. Signed-off-by: Athaariq Ardhiansyah --- Changes v1 -> v2: - Fix missing description due to terminal issue - Use the latest commit instead of the latest tag Changes v2 -> v3: - Update the commit title - Add more explanation on commit description Signed-off-by: Athaariq Ardhiansyah --- ...akefile-allow-passing-CFLAGS-LDFLAGS.patch | 27 +++++++++---------- .../raspberrypi-usbboot.hash | 2 +- .../raspberrypi-usbboot.mk | 2 +- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/package/raspberrypi-usbboot/0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch b/package/raspberrypi-usbboot/0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch index 29a9311651..ea53f8360a 100644 --- a/package/raspberrypi-usbboot/0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch +++ b/package/raspberrypi-usbboot/0001-Makefile-allow-passing-CFLAGS-LDFLAGS.patch @@ -1,31 +1,28 @@ -From acd175aa53af1f1b8422bf1f1fe57eafc710cdca Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni -Date: Fri, 2 Dec 2016 23:09:44 +0100 +From e09c92d68efa4efbd48a3366f9053a4f8c275091 Mon Sep 17 00:00:00 2001 +From: Athaariq Ardhiansyah +Date: Mon, 3 Jun 2024 15:35:49 +0700 Subject: [PATCH] Makefile: allow passing CFLAGS/LDFLAGS -This might be needed to pass some custom CFLAGS/LDFLAGS when building -rpiboot. +This might be needed to pass some custom CFLAGS/LDFLAGS when building rpiboot. Submitted-upstream: https://github.com/raspberrypi/usbboot/pull/2 Signed-off-by: Thomas Petazzoni -[Rebased on 9324fd7] Signed-off-by: Peter Seiderer -[Rebased on 20221215-105525-0-g1afa26c5] -Signed-off-by: Fiona Klute +Signed-off-by: Athaariq Ardhiansyah --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index dc78cfe..c9d4910 100755 +index 4479b1b..076ae43 100755 --- a/Makefile +++ b/Makefile -@@ -1,7 +1,7 @@ - PKG_VER=$(shell grep rpiboot debian/changelog | head -n1 | sed 's/.*(\(.*\)).*/\1/g') - GIT_VER=$(shell git rev-parse HEAD 2>/dev/null | cut -c1-8 || echo "") - rpiboot: main.c msd/bootcode.h msd/start.h msd/bootcode4.h msd/start4.h -- $(CC) -Wall -Wextra -g -o $@ $< `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -+ $(CC) -Wall -Wextra -g $(CFLAGS) -o $@ $< `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" $(LDFLAGS) +@@ -3,7 +3,7 @@ GIT_VER=$(shell git rev-parse HEAD 2>/dev/null | cut -c1-8 || echo "") + INSTALL_PREFIX?=/usr + + rpiboot: main.c bootfiles.c msd/bootcode.h msd/start.h msd/bootcode4.h msd/start4.h +- $(CC) -Wall -Wextra -g -o $@ main.c bootfiles.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" ++ $(CC) -Wall -Wextra -g $(CFLAGS) -o $@ main.c bootfiles.c `pkg-config --cflags --libs libusb-1.0` -DGIT_VER="\"$(GIT_VER)\"" -DPKG_VER="\"$(PKG_VER)\"" -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" $(LDFLAGS) %.h: %.bin ./bin2c ./bin2c $< $@ diff --git a/package/raspberrypi-usbboot/raspberrypi-usbboot.hash b/package/raspberrypi-usbboot/raspberrypi-usbboot.hash index 830ead8243..1a183bf47f 100644 --- a/package/raspberrypi-usbboot/raspberrypi-usbboot.hash +++ b/package/raspberrypi-usbboot/raspberrypi-usbboot.hash @@ -1,5 +1,5 @@ # Locally calculated -sha256 2f02dbe9a88e9dfad5f05e513e1f30afd47b1575820f7c3b09665dfefc45bbaa raspberrypi-usbboot-20221215-105525.tar.gz +sha256 2182a6bf5ca9cd54ee3bca2d7667758ceac685fa78a3a6ae663762bde03e781a raspberrypi-usbboot-4a3d31171769f87d919340778e5aaeaba01e10b5.tar.gz # License files sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE diff --git a/package/raspberrypi-usbboot/raspberrypi-usbboot.mk b/package/raspberrypi-usbboot/raspberrypi-usbboot.mk index 24a1f6d906..7eef7df600 100644 --- a/package/raspberrypi-usbboot/raspberrypi-usbboot.mk +++ b/package/raspberrypi-usbboot/raspberrypi-usbboot.mk @@ -4,7 +4,7 @@ # ################################################################################ -RASPBERRYPI_USBBOOT_VERSION = 20221215-105525 +RASPBERRYPI_USBBOOT_VERSION = 4a3d31171769f87d919340778e5aaeaba01e10b5 RASPBERRYPI_USBBOOT_SITE = \ $(call github,raspberrypi,usbboot,$(RASPBERRYPI_USBBOOT_VERSION)) RASPBERRYPI_USBBOOT_LICENSE = Apache-2.0 From patchwork Sun Jul 14 16:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Athaariq Ardhiansyah X-Patchwork-Id: 1960361 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WMVYB592Mz1xqj for ; Mon, 15 Jul 2024 02:05:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EE33560730; Sun, 14 Jul 2024 16:05:31 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KkjdvbLkyO4j; Sun, 14 Jul 2024 16:05:30 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B675D60792 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id B675D60792; Sun, 14 Jul 2024 16:05:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 584281BF4E7 for ; Sun, 14 Jul 2024 16:05:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 53061811CB for ; Sun, 14 Jul 2024 16:05:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 4lXVr8XVbXmm for ; Sun, 14 Jul 2024 16:05:24 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=117.53.144.211; helo=mail.selirafood.com; envelope-from=foss@athaariq.my.id; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 14E5E811CA DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 14E5E811CA Received: from mail.selirafood.com (mail.selirafood.com [117.53.144.211]) by smtp1.osuosl.org (Postfix) with ESMTPS id 14E5E811CA for ; Sun, 14 Jul 2024 16:05:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.selirafood.com (Postfix) with ESMTP id 04B605122E; Sun, 14 Jul 2024 23:05:22 +0700 (WIB) Received: from localhost.localdomain (unknown [192.168.100.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.selirafood.com (Postfix) with ESMTPSA id 70298323E1; Sun, 14 Jul 2024 23:05:21 +0700 (WIB) From: Athaariq Ardhiansyah To: buildroot@buildroot.org Date: Sun, 14 Jul 2024 23:04:54 +0700 Message-ID: <20240714160457.39434-3-foss@athaariq.my.id> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240714160457.39434-1-foss@athaariq.my.id> References: <20240714160457.39434-1-foss@athaariq.my.id> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=athaariq.my.id; h=content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received; s=dkim20240121; t=1720973121; x=1722182722; bh=TfAhwn 5Lu+qUG/wN6bhb/lUB2pz16yoCfqPp+4QqUDg=; b=1wtG8ZWYeBosM1CB3XcTRK obBdYUhRxhajFYijKX8sOuV5YdNfgSo8XVpUDZcWpHp0hsmwLRR5ffdMhaaQ2XOz 0+6avPk0NHTkKyPE8yEPCAMqlyfIucwYbOyxT5bdTuk43geoNCDQAZaXhRNtLV0R YHp7dZv3Vj2tnzQhLiR62Z+Ajr2grQSwv+HCS9ESNdj/nKyQBH+/SwgVxLs2JMoP ok7FuoFAqOhqZ+X9wnlmiGHWCxUFuBLMWbuoUWgGBAstaMCZZgf1cqJkc/VtLwzt bjZrNAnst7wVCPjOn83fMxikEYjkkrFKFHPz9bCod+fwTyUJfT4VN+8HM0+1xdgQ == X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=athaariq.my.id X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=athaariq.my.id header.i=@athaariq.my.id header.a=rsa-sha256 header.s=dkim20240121 header.b=1wtG8ZWY X-Mailman-Original-Authentication-Results: mail.selirafood.com (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=athaariq.my.id Subject: [Buildroot] [PATCH v4 3/3] board/raspberrypi: add support for Raspberry Pi 5 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Athaariq Ardhiansyah , Martin Bark , Julien Grossholtz Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since the last Raspberry Pi 5 submission has no progress, I'm submitting these patches anyway. The newly released Raspberry Pi 5 board shares similar software structure except it has less proprietary API. Therefore, rpi-userland and all of raspberry-centric GPIO utilities are no longer supported. Keep in mind that RPi 5 has no native 32-bit support due to Cortex-A76 processor specification. That is the reason why I did not add _64. Signed-off-by: Athaariq Ardhiansyah --- Changes v1 -> v2: - Fix missing newlines due to terminal issue Changes v3 -> v4: - Rebase to master - Drop 4K page size, until we figured out how to run 32bit userspace on top of 64bit kernel - Change back from commit ID to commit tag - Rewrite the commit description - Fix incorrect CPU from upstream config, RPi5 has no LITTLE.big Signed-off-by: Athaariq Ardhiansyah --- board/raspberrypi/config_5.txt | 42 +++++++++++++++++++ .../patches/linux-headers/linux-headers.hash | 1 - board/raspberrypi/patches/linux/linux.hash | 2 +- configs/raspberrypi5_defconfig | 17 ++++---- 4 files changed, 50 insertions(+), 12 deletions(-) delete mode 120000 board/raspberrypi/patches/linux-headers/linux-headers.hash diff --git a/board/raspberrypi/config_5.txt b/board/raspberrypi/config_5.txt index bbed19fe46..738c2198c8 100644 --- a/board/raspberrypi/config_5.txt +++ b/board/raspberrypi/config_5.txt @@ -9,6 +9,48 @@ kernel=Image # To use an external initramfs file #initramfs rootfs.cpio.gz +# Automatically load initramfs files, if found +auto_initramfs=1 + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +dtoverlay=vc4-kms-v3d-pi5 +max_framebuffers=2 + +# Don't have the firmware create an initial video= setting in cmdline.txt. +# Use the kernel's default instead. +disable_fw_kms_setup=1 + # Disable overscan assuming the display supports displaying the full resolution # If the text shown on the screen disappears off the edge, comment this out disable_overscan=1 + +# fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console +dtoverlay=miniuart-bt + +# enable autoprobing of Bluetooth driver without need of hciattach/btattach +dtparam=krnbt=on + +# enable 64bits support +arm_64bit=1 + +# Run as fast as firmware / board allows +arm_boost=1 + +# Raspberry PI 5 won't use UART0 as terminal out of the box. We need to enable +# this through config.txt +enable_uart=1 +dtoverlay=uart0-pi5 diff --git a/board/raspberrypi/patches/linux-headers/linux-headers.hash b/board/raspberrypi/patches/linux-headers/linux-headers.hash deleted file mode 120000 index 5808d92afe..0000000000 --- a/board/raspberrypi/patches/linux-headers/linux-headers.hash +++ /dev/null @@ -1 +0,0 @@ -../linux/linux.hash \ No newline at end of file diff --git a/board/raspberrypi/patches/linux/linux.hash b/board/raspberrypi/patches/linux/linux.hash index 8d43c25151..fc7338d0d0 100644 --- a/board/raspberrypi/patches/linux/linux.hash +++ b/board/raspberrypi/patches/linux/linux.hash @@ -1,2 +1,2 @@ # Locally calculated -sha256 dab3052783c68c46a5bc645b1c38d9705da995ab42823566518b62eb1fa1ef97 linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz +sha256 05ac851ea9b720ba44c66eb88cdcb7cbd280401b1dd1fab3391a3883e4719197 linux-stable_20240529.tar.gz diff --git a/configs/raspberrypi5_defconfig b/configs/raspberrypi5_defconfig index 3c88ce46cd..0517fcd36b 100644 --- a/configs/raspberrypi5_defconfig +++ b/configs/raspberrypi5_defconfig @@ -1,8 +1,9 @@ BR2_aarch64=y -BR2_cortex_a76_a55=y -BR2_ARM_FPU_VFPV4=y +BR2_cortex_a76=y -BR2_TOOLCHAIN_BUILDROOT_CXX=y +# patches +BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_SYSTEM_DHCP="eth0" @@ -10,9 +11,8 @@ BR2_SYSTEM_DHCP="eth0" BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y BR2_LINUX_KERNEL=y -BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/raspberrypi/linux-4k-page-size.fragment" BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,stable_20240529)/linux-stable_20240529.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="bcm2712" # Build the DTB from the kernel sources @@ -34,8 +34,8 @@ BR2_PACKAGE_HOST_MTOOLS=y # Filesystem / image BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y -BR2_TARGET_ROOTFS_EXT2_SIZE="120M" -# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ROOTFS_EXT2_SIZE="256M" +BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS="-O 64bit" BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi5/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi5/post-image.sh" @@ -45,6 +45,3 @@ BR2_PACKAGE_KMOD_TOOLS=y BR2_PACKAGE_XZ=y BR2_PACKAGE_KMOD=y BR2_PACKAGE_HOST_KMOD_XZ=y - -BR2_DOWNLOAD_FORCE_CHECK_HASHES=y -BR2_GLOBAL_PATCH_DIR="board/raspberrypi5/patches"