From patchwork Fri Oct 13 18:01:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 1848482 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::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4S6Z8z0l7Fz1yqZ for ; Sat, 14 Oct 2023 05:02:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id CB8C4402E7; Fri, 13 Oct 2023 18:02:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org CB8C4402E7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bgi-h0bYrVfa; Fri, 13 Oct 2023 18:02:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 68AFA404E0; Fri, 13 Oct 2023 18:02:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 68AFA404E0 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D052A1BF326 for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A781840901 for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A781840901 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xaPOy8kXEVrl for ; Fri, 13 Oct 2023 18:02:05 +0000 (UTC) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by smtp2.osuosl.org (Postfix) with ESMTPS id 3BB12402E7 for ; Fri, 13 Oct 2023 18:02:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3BB12402E7 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40572aeb6d0so24380845e9.1 for ; Fri, 13 Oct 2023 11:02:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697220123; x=1697824923; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A0k6fwCRfJdjscqiDBnArQ9UzIVEWVMfQdQ76fLJmfk=; b=feqH6wt0MHKFEp9WyEVVRc4GhtzqzcUzgFlcs49my5WZSNuDDURCtZwgkykadXJSmG W159Gpc8R5v6anYRbgRNvY05yx2QdBrHK5T4WAJrCx0ioVHKvLXjvnL/pJP6xlaU5GMR y0hXjmzZwfUntoH0B+N4LJesRSigcmQ6otxeN0MBQAkO36ghJJ+loPs42xBWSbLJUXFk bCBy3BDBdMi83+IH7FZfkZNvNivbeoCpEwa7I9Tr5EZgz4A49g+JDr3u0FdScZEPcf1t JQwa67Zv/1kl16qnNrqZS2Yg5ievsFfek6P8ETv5i0uveCwxmku52TLU4oAP9kfD+Y+p oP9Q== X-Gm-Message-State: AOJu0Yy/DLBX+Iigosj9YyD4ll/rpg+pY0j8bEQJI3j9vDXYBN04oD4T U0Ycvh2Ja/bdf/FGW3vcEJ4Hj9vFsTjoYUrejTrE6nCa X-Google-Smtp-Source: AGHT+IEA5hhN5AN/CVhUjKLKFEf9oBFDFO2uk3TPzW4ifdsVq1qb8URObkGO25ZuecDhovUCWDpUlg== X-Received: by 2002:a1c:4b11:0:b0:405:3455:e1a3 with SMTP id y17-20020a1c4b11000000b004053455e1a3mr24735617wma.17.1697220122861; Fri, 13 Oct 2023 11:02:02 -0700 (PDT) Received: from archlinux.. ([2a01:e0a:ce:f2f0:2a6b:35ff:feb8:77d9]) by smtp.gmail.com with ESMTPSA id i9-20020a05600c354900b0040531f5c51asm788860wmq.5.2023.10.13.11.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:02:02 -0700 (PDT) From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org Date: Fri, 13 Oct 2023 20:01:43 +0200 Message-ID: <20231013180145.162565-2-gael.portay@rtone.fr> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231013180145.162565-1-gael.portay@rtone.fr> References: <20231013180145.162565-1-gael.portay@rtone.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtone.fr; s=google; t=1697220123; x=1697824923; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A0k6fwCRfJdjscqiDBnArQ9UzIVEWVMfQdQ76fLJmfk=; b=V0+yARUj9C2YsnerhQ1P9G3A78qa7pMzbpl0QtY002kuJyqlYi4cIt+TVVGDUXwsrU WyGmWKzhrPGeZ8kVFYaW/BUNjJt25WGr1/FxvVueWbF9hOIOp7SQl0C96Xu10+Rzj8Nb 1zGOCaF/e3hyDwV8kwlplDb+bLu0ddsnvBEYs= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=rtone.fr header.i=@rtone.fr header.a=rsa-sha256 header.s=google header.b=V0+yARUj Subject: [Buildroot] [RFC PATCH 1/3] package/rpi-firmware: bump version for pi5 support 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: =?utf-8?q?Ga=C3=ABl_PORTAY?= , Martin Bark , Julien Grossholtz , Mahyar Koshkouei Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This bumps to 7e9c2063fc15274fbc4dab1ca614f9228834d881[1] that states "Add support for PI 5", and it updates the comments of Pi4 variants for Pi5. Note: That commit bumps the kernel files (images, modules, device-trees and device-tree overlays) but it does not bump the bootloader files for VC (start.elf, fixup.dat). This bump appears to not be really needed to bring the support for the Pi 5; it assumes the Pi5's VC7 uses the exact same files as the Pi4's VC6 (i.e. start4.elf, fixup4.dat, and cd, x and debug variants) at least for now. [1]: https://github.com/raspberrypi/firmware/commit/7e9c2063fc15274fbc4dab1ca614f9228834d881 Signed-off-by: Gaël PORTAY --- package/rpi-firmware/Config.in | 22 +++++++++++----------- package/rpi-firmware/rpi-firmware.hash | 2 +- package/rpi-firmware/rpi-firmware.mk | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package/rpi-firmware/Config.in b/package/rpi-firmware/Config.in index a9aeaed745..90ad35fd3c 100644 --- a/package/rpi-firmware/Config.in +++ b/package/rpi-firmware/Config.in @@ -14,9 +14,9 @@ if BR2_PACKAGE_RPI_FIRMWARE config BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN bool "rpi 0/1/2/3 bootcode.bin" help - The bootcode.bin for versions Zero/1/2/3 (not needed on rpi4, - because it has been replaced by boot code in the onboard - EEPROM). + The bootcode.bin for versions Zero/1/2/3 (not needed on + rpi4/5, because it has been replaced by boot code in the + onboard EEPROM). config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI bool "rpi 0/1/2/3 (default)" @@ -41,27 +41,27 @@ config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_DB The debug set of files for versions Zero/1/2/3. config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 - bool "rpi 4 (default)" + bool "rpi 4/5 (default)" help - The default set of files for versions 4 (standard GPU + The default set of files for versions 4/5 (standard GPU features). config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_X - bool "rpi 4 (extended)" + bool "rpi 4/5 (extended)" help - The extended set of files for versions 4 (additional GPU + The extended set of files for versions 4/5 (additional GPU features, eg. more audio/video codecs). config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_CD - bool "rpi 4 (cut-down)" + bool "rpi 4/5 (cut-down)" help - The cut-down set of files for versions 4 (only features + The cut-down set of files for versions 4/5 (only features required to boot a Linux kernel). config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_DB - bool "rpi 4 (debug)" + bool "rpi 4/5 (debug)" help - The debug set of files for versions 4. + The debug set of files for versions 4/5. config BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE string "Path to a file stored as boot/config.txt" diff --git a/package/rpi-firmware/rpi-firmware.hash b/package/rpi-firmware/rpi-firmware.hash index ec13115f3b..659613591d 100644 --- a/package/rpi-firmware/rpi-firmware.hash +++ b/package/rpi-firmware/rpi-firmware.hash @@ -1,3 +1,3 @@ # Locally computed -sha256 33aea2cb9c3be94c3dd6a96fbb3443eee5af1dc5fc9140e1fadc50832983064e rpi-firmware-3f20b832b27cd730deb6419b570f31a98167eef6.tar.gz +sha256 f3442fb80966faf1e28a32f9d9b91acb4b87c6ff33f0ced4179ec6ccbfa92c65 rpi-firmware-7e9c2063fc15274fbc4dab1ca614f9228834d881.tar.gz sha256 c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b boot/LICENCE.broadcom diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk index 53d6d8ca06..e765d0ea82 100644 --- a/package/rpi-firmware/rpi-firmware.mk +++ b/package/rpi-firmware/rpi-firmware.mk @@ -4,7 +4,7 @@ # ################################################################################ -RPI_FIRMWARE_VERSION = 3f20b832b27cd730deb6419b570f31a98167eef6 +RPI_FIRMWARE_VERSION = 7e9c2063fc15274fbc4dab1ca614f9228834d881 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 Fri Oct 13 18:01:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 1848483 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::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4S6Z9F3w3wz1yqZ for ; Sat, 14 Oct 2023 05:02:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 91F3F41176; Fri, 13 Oct 2023 18:02:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 91F3F41176 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x-J1YeG2altF; Fri, 13 Oct 2023 18:02:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 5C44740BFC; Fri, 13 Oct 2023 18:02:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5C44740BFC 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 E556E1BF425 for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id BDCFF82144 for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org BDCFF82144 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gtlzTqAOs2u9 for ; Fri, 13 Oct 2023 18:02:06 +0000 (UTC) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by smtp1.osuosl.org (Postfix) with ESMTPS id 4F6E482134 for ; Fri, 13 Oct 2023 18:02:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4F6E482134 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-405361bb9f7so24840995e9.2 for ; Fri, 13 Oct 2023 11:02:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697220124; x=1697824924; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lwCTR2Ea3ZWd0ekFHiOYm8H+zj2nfFNIpHU43DmjBzU=; b=fjzlSll769Q65vmIaXL7NZvO7JMpI7iMDLf7HaHO9NPsUjXP4TwFshRlK8lHXKCcX6 dqXEeaTkC/eVOrxW1J2FfnOF61pIX7b5pE+sg9sFZlsasnC0zEIIPPGJHeoXcIrIAGQX qa9UWFkIlWgPSjcTp4lkOQP4keDflqiuU86Q5rTnp4gSmZmN+zXXyGQ2zMd7MOrKcjeB 5TRh48CUHAXxkM/QRIOAH/0SSTGZZTPDiRinZeYx5LCxIUPHlNMHsFUo3CLe8wA8eS54 3ixB1eXU8RDB5/rkFv0Uy/vmjaAN5u69JBTforaKiuldzFKZ/daeArLdSm6/dWWlAlq/ u0mA== X-Gm-Message-State: AOJu0YwXfzgD1Oo6LanU9gS0s3vW6Ig1bvo9iEPOf7j6Zg9JiIJ7T01J nEKJQgcm0IwJAzVw/9r/Fs1hq8QSKp2sgKSMY7Ozg7U7 X-Google-Smtp-Source: AGHT+IGDikS220B2786Z7nj43fx3TqlEeFqGIa16f7KeU4sbnTbozIOV3aUmhivFpaYDQCe78kFSTg== X-Received: by 2002:a05:600c:5120:b0:407:5b54:bb09 with SMTP id o32-20020a05600c512000b004075b54bb09mr8625593wms.7.1697220123815; Fri, 13 Oct 2023 11:02:03 -0700 (PDT) Received: from archlinux.. ([2a01:e0a:ce:f2f0:2a6b:35ff:feb8:77d9]) by smtp.gmail.com with ESMTPSA id i9-20020a05600c354900b0040531f5c51asm788860wmq.5.2023.10.13.11.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:02:03 -0700 (PDT) From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org Date: Fri, 13 Oct 2023 20:01:44 +0200 Message-ID: <20231013180145.162565-3-gael.portay@rtone.fr> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231013180145.162565-1-gael.portay@rtone.fr> References: <20231013180145.162565-1-gael.portay@rtone.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtone.fr; s=google; t=1697220124; x=1697824924; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lwCTR2Ea3ZWd0ekFHiOYm8H+zj2nfFNIpHU43DmjBzU=; b=Yi6T7b10HHs9QDqwr1PuJ03KxDs6B5Bli6q0yEM3wvv7Wgypiu6fR9O+9NHwPEsW+h AwFmROY67l0oKhIh78ucsqaLNQLomI+7HNy5UYh2RWlo9zcGpejTa0xD5z3yo/qxspyD 4H6KYyJX5n+67XFEPkftMyVHFz0Eb0ahN4JX8= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=rtone.fr header.i=@rtone.fr header.a=rsa-sha256 header.s=google header.b=Yi6T7b10 Subject: [Buildroot] [RFC PATCH 2/3] configs: add raspberrypi 5 64-bit defconfig 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: =?utf-8?q?Ga=C3=ABl_PORTAY?= , Martin Bark , Julien Grossholtz , Mahyar Koshkouei Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This configuration builds a 64-bit image for RaspberryPi 5. Signed-off-by: Gaël PORTAY --- board/raspberrypi/config_5_64bit.txt | 30 ++++++++++++++++++++++ board/raspberrypi/readme.txt | 1 + board/raspberrypi5-64 | 1 + configs/raspberrypi5_64_defconfig | 38 ++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 board/raspberrypi/config_5_64bit.txt create mode 120000 board/raspberrypi5-64 create mode 100644 configs/raspberrypi5_64_defconfig diff --git a/board/raspberrypi/config_5_64bit.txt b/board/raspberrypi/config_5_64bit.txt new file mode 100644 index 0000000000..0511f2c400 --- /dev/null +++ b/board/raspberrypi/config_5_64bit.txt @@ -0,0 +1,30 @@ +# Please note that this is only a sample, we recommend you to change it to fit +# your needs. +# You should override this file using BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE. +# See http://buildroot.org/manual.html#rootfs-custom +# and http://elinux.org/RPiconfig for a description of config.txt syntax + +start_file=start4.elf +fixup_file=fixup4.dat + +kernel=Image + +# To use an external initramfs file +#initramfs rootfs.cpio.gz + +# 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 + +# How much memory in MB to assign to the GPU on Pi models having +# 256, 512 or 1024 MB total memory +gpu_mem_256=100 +gpu_mem_512=100 +gpu_mem_1024=100 + +dtoverlay=vc4-kms-v3d-pi5 +dtoverlay=imx219 +#dtoverlay=ov5647 + +# enable 64bits support +arm_64bit=1 diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt index c81fd801ae..f2af502251 100644 --- a/board/raspberrypi/readme.txt +++ b/board/raspberrypi/readme.txt @@ -90,6 +90,7 @@ After building, you should obtain this tree: +-- bcm2710-rpi-cm3.dtb [1] +-- bcm2711-rpi-4-b.dtb [1] +-- bcm2711-rpi-cm4.dtb [1] + +-- bcm2712-rpi-5-b.dtb [1] +-- bcm2837-rpi-3-b.dtb [1] +-- boot.vfat +-- rootfs.ext4 diff --git a/board/raspberrypi5-64 b/board/raspberrypi5-64 new file mode 120000 index 0000000000..fcdafc81ed --- /dev/null +++ b/board/raspberrypi5-64 @@ -0,0 +1 @@ +raspberrypi \ No newline at end of file diff --git a/configs/raspberrypi5_64_defconfig b/configs/raspberrypi5_64_defconfig new file mode 100644 index 0000000000..717082f215 --- /dev/null +++ b/configs/raspberrypi5_64_defconfig @@ -0,0 +1,38 @@ +BR2_aarch64=y +BR2_cortex_a76_a55=y +BR2_ARM_FPU_VFPV4=y + +BR2_TOOLCHAIN_BUILDROOT_CXX=y + +BR2_SYSTEM_DHCP="eth0" + +# Linux headers same as kernel, a 6.1 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,feb4ea51e77af09c1a4c7c3e5dd33237750f95cd)/linux-feb4ea51e77af09c1a4c7c3e5dd33237750f95cd.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="bcm2712" + +# Build the DTB from the kernel sources +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2712-rpi-5-b" + +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y +BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi5-64/config_5_64bit.txt" + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +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_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi5-64/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi5-64/post-image.sh" From patchwork Fri Oct 13 18:01:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 1848484 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.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 4S6Z9X40Wkz1yqZ for ; Sat, 14 Oct 2023 05:02:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4E01C402E7; Fri, 13 Oct 2023 18:02:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 4E01C402E7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fFimCJRVzt4J; Fri, 13 Oct 2023 18:02:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id DC73F41176; Fri, 13 Oct 2023 18:02:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org DC73F41176 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id DCE061BF326 for ; Fri, 13 Oct 2023 18:02:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B48AF402E7 for ; Fri, 13 Oct 2023 18:02:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B48AF402E7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yo95h8ApAzve for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by smtp2.osuosl.org (Postfix) with ESMTPS id 1E651405DD for ; Fri, 13 Oct 2023 18:02:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1E651405DD Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32d81864e3fso1996247f8f.2 for ; Fri, 13 Oct 2023 11:02:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697220125; x=1697824925; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zHErn79cfVe4RmKMpzEeuZ8+ax9r7fgg8GJN+bIX4Nk=; b=LlrxMq21Pog9CEq1fQL6plSX63eKSLy5UvIdzDMO8RBXXU6yguxKWXCx8GV8sluIqa pGOQwT/puK7T0pVGun6sU+ugOrFQpNLbDQbA91dvynq58a7cWbEvYvmAwjP5Kh4NH638 Zc3vVDxOFM/sQ9XFF6k8q0OY/+oWBxFP3Fq6+53T3PmCcYOeYjEXVYd1l3QWhU4TF1G9 rMyudHtV8vJDnxnou+wt2QZ0wxETqjGEnBaUlgY52xKZHeedqQl9T81QoZ3HWpMtVGNO /70L+UVvu2K4ohhDR6xRPmsmqdCkqlOoPsFotJ5JBz1uNuR5oUiKnsTALOAMV3pVYVa7 la2A== X-Gm-Message-State: AOJu0YzC5rx7ILIT2EJ3fwZhgJ4O1k+x2zcfwGBzLdLXWyALwIHuAtSL 4szK3Ex5nZjEzMAciS2+zFoEvNxfnwSsf33M2nszAA== X-Google-Smtp-Source: AGHT+IE8ej42yOnDI1u8chPSRADdkDaEk1OoabaIT/kPjHnXG262qYohDkAR4ZjQsEpOvT9NB0Bwrw== X-Received: by 2002:adf:a4d5:0:b0:32d:701b:a585 with SMTP id h21-20020adfa4d5000000b0032d701ba585mr8951385wrb.69.1697220124696; Fri, 13 Oct 2023 11:02:04 -0700 (PDT) Received: from archlinux.. ([2a01:e0a:ce:f2f0:2a6b:35ff:feb8:77d9]) by smtp.gmail.com with ESMTPSA id i9-20020a05600c354900b0040531f5c51asm788860wmq.5.2023.10.13.11.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 11:02:04 -0700 (PDT) From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org Date: Fri, 13 Oct 2023 20:01:45 +0200 Message-ID: <20231013180145.162565-4-gael.portay@rtone.fr> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231013180145.162565-1-gael.portay@rtone.fr> References: <20231013180145.162565-1-gael.portay@rtone.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtone.fr; s=google; t=1697220125; x=1697824925; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zHErn79cfVe4RmKMpzEeuZ8+ax9r7fgg8GJN+bIX4Nk=; b=C3q59kh5P4tn930DTT3eNjF8yy/qjCLYCBPbnI4PG35MFG3wKjb/8REqEtlAfpxcKR DqDCvKTZF83qtmlSA3XB+NV3NNudW2JivBPu3qy6q6wWFW3zZpzDyU4mQ0Z+7iwrXqaB oekKTrWrTVQNRWH5VluLmDESj1xqOtC9OTi1o= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=rtone.fr header.i=@rtone.fr header.a=rsa-sha256 header.s=google header.b=C3q59kh5 Subject: [Buildroot] [RFC PATCH 3/3] configs: add raspberrypi 5 32-bit defconfig 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: =?utf-8?q?Ga=C3=ABl_PORTAY?= , Martin Bark , Julien Grossholtz , Mahyar Koshkouei Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This configuration builds a 32-bit image for RaspberryPi 5. Note: It reuses the Pi4'S defconfig as there is no specific defconfig for BCM2712 on ARM 32-bit. On ARM 64-bit, the main difference is the BCM2712 uses 16k pages while the BC2711 uses 4k pages. See the difference below between the two ARM64 defconfigs: gportay@archlinux ~/src/linux-raspberrypi $ diff -Nurd arch/arm64/configs/bcm271* --- arch/arm64/configs/bcm2711_defconfig 2023-10-08 11:45:20.470238993 +0200 +++ arch/arm64/configs/bcm2712_defconfig 2023-10-08 11:45:20.470238993 +0200 @@ -1,4 +1,4 @@ -CONFIG_LOCALVERSION="-v8" +CONFIG_LOCALVERSION="-v8_16k" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y @@ -41,6 +41,7 @@ # CONFIG_CAVIUM_ERRATUM_22375 is not set # CONFIG_CAVIUM_ERRATUM_23154 is not set # CONFIG_CAVIUM_ERRATUM_27456 is not set +CONFIG_ARM64_16K_PAGES=y CONFIG_COMPAT=y CONFIG_ARMV8_DEPRECATED=y CONFIG_SWP_EMULATION=y @@ -65,6 +66,8 @@ CONFIG_VIRTUALIZATION=y CONFIG_KVM=y CONFIG_JUMP_LABEL=y +CONFIG_ARCH_MMAP_RND_BITS=18 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS=11 CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODVERSIONS=y Signed-off-by: Gaël PORTAY --- board/raspberrypi/config_5.txt | 23 ++++++++++++++++++++ board/raspberrypi/readme.txt | 1 + board/raspberrypi5 | 1 + configs/raspberrypi5_defconfig | 38 ++++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 board/raspberrypi/config_5.txt create mode 120000 board/raspberrypi5 create mode 100644 configs/raspberrypi5_defconfig diff --git a/board/raspberrypi/config_5.txt b/board/raspberrypi/config_5.txt new file mode 100644 index 0000000000..ac343250c8 --- /dev/null +++ b/board/raspberrypi/config_5.txt @@ -0,0 +1,23 @@ +# Please note that this is only a sample, we recommend you to change it to fit +# your needs. +# You should override this file using BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE. +# See http://buildroot.org/manual.html#rootfs-custom +# and http://elinux.org/RPiconfig for a description of config.txt syntax + +start_file=start4.elf +fixup_file=fixup4.dat + +kernel=zImage + +# To use an external initramfs file +#initramfs rootfs.cpio.gz + +# 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 + +# How much memory in MB to assign to the GPU on Pi models having +# 256, 512 or 1024 MB total memory +gpu_mem_256=100 +gpu_mem_512=100 +gpu_mem_1024=100 diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt index f2af502251..de93ad6772 100644 --- a/board/raspberrypi/readme.txt +++ b/board/raspberrypi/readme.txt @@ -102,6 +102,7 @@ After building, you should obtain this tree: | +-- fixup4.dat [1] | +-- start.elf [1] | +-- start4.elf [1] + | +-- start5.elf [1] | `-- overlays/ [2] +-- sdcard.img +-- Image [1] diff --git a/board/raspberrypi5 b/board/raspberrypi5 new file mode 120000 index 0000000000..fcdafc81ed --- /dev/null +++ b/board/raspberrypi5 @@ -0,0 +1 @@ +raspberrypi \ No newline at end of file diff --git a/configs/raspberrypi5_defconfig b/configs/raspberrypi5_defconfig new file mode 100644 index 0000000000..df00e035da --- /dev/null +++ b/configs/raspberrypi5_defconfig @@ -0,0 +1,38 @@ +BR2_arm=y +BR2_cortex_a76_a55=y +BR2_ARM_FPU_VFPV4=y + +BR2_TOOLCHAIN_BUILDROOT_CXX=y + +BR2_SYSTEM_DHCP="eth0" + +# Linux headers same as kernel, a 5.10 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,feb4ea51e77af09c1a4c7c3e5dd33237750f95cd)/linux-feb4ea51e77af09c1a4c7c3e5dd33237750f95cd.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="bcm2711" + +# Build the DTB from the kernel sources +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2712-rpi-5-b" + +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI5=y +BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi5/config_5.txt" + +# Required tools to create the SD image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +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_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi5/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi5/post-image.sh"