From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 Sep 2022 18:22:16 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oeImG-001ZF9-1I for lore@lore.pengutronix.de; Fri, 30 Sep 2022 18:22:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oeImD-0006Ik-7E; Fri, 30 Sep 2022 18:22:13 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeIm2-0006ET-9i for distrokit@pengutronix.de; Fri, 30 Sep 2022 18:22:02 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oeIm2-003pq6-BI for distrokit@pengutronix.de; Fri, 30 Sep 2022 18:22:00 +0200 Received: from afa by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oeIlz-003SH9-UO for distrokit@pengutronix.de; Fri, 30 Sep 2022 18:21:59 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 30 Sep 2022 18:21:49 +0200 Message-Id: <20220930162159.814389-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 00/10] v7a: add Raspberry Pi 4 32-bit support X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false We already support the Raspberry Pi 2 & 3 in 32-bit mode with our v7a configuration. With some changes we can have the same rpi.hdimg boot on the Raspberry Pi 4 as well. Users will probably want to deploy 64-bit kernels on these boards, but that will need some more work on the BSP side as we don't have 64-bit Raspberry Pi 3 support to build upon, so this will follow later in a separate PR. Ahmad Fatoum (10): v7a: barebox: version bump v2022.06.0 → v2022.09.0 v7a: barebox: switch to new broken-cd device parameter v7a: rpi2: move rpi-firmware directory to top-level workspace rpi-firmware: Update firmware to v1.20220331 for Rpi4 support barebox: deploy new barebox-raspberry-pi.img v7a: kernel: configure for 32-bit Raspberry Pi 4 support v7a: dts: build Raspberry Pi 4 device trees v7a: rpi4: add boot loader spec support v7a: rpi4: place DT into /boot for VideoCore consumption v7a: barebox: enable of_diff command .../nv/dev.mmc0.broken_cd | 1 + .../platform-v7a/barebox-am335x-mlo.config | 18 +-- configs/platform-v7a/barebox-am335x.config | 19 +-- .../platform-v7a/barebox-am335x.config.diff | 14 +- configs/platform-v7a/barebox-at91.config | 19 ++- configs/platform-v7a/barebox-at91.config.diff | 16 ++- .../nv/dev.mmc0.broken_cd | 1 + configs/platform-v7a/barebox-mx6.config | 17 +-- configs/platform-v7a/barebox-mx6.config.diff | 14 +- .../nv/dev.mci0.broken_cd | 1 + configs/platform-v7a/barebox-rpi2.config | 59 +++++++-- configs/platform-v7a/barebox-rpi2.config.diff | 28 +--- .../nv/dev.mmc0.broken_cd | 1 + configs/platform-v7a/barebox-stm32mp.config | 16 +-- .../platform-v7a/barebox-stm32mp.config.diff | 17 +-- configs/platform-v7a/barebox-vexpress.config | 17 +-- .../platform-v7a/barebox-vexpress.config.diff | 12 +- configs/platform-v7a/barebox.config | 28 ++-- .../platform-v7a/config/images/rpi2.config | 8 +- configs/platform-v7a/kernelconfig | 21 +-- ...new-MCI_BROKEN_CD-option-for-testing.patch | 122 ------------------ .../patches/barebox-2022.06.0/series | 1 - ...-upon-broken-cd-device-tree-property.patch | 60 +++++++++ ...-core-add-broken_cd-device-parameter.patch | 46 +++++++ ...broken-cd-information-into-kernel-DT.patch | 67 ++++++++++ .../patches/barebox-2022.09.0/series | 3 + configs/platform-v7a/platformconfig | 7 +- configs/platform-v7a/platforms/blspec-rpi4.in | 5 + .../platform-v7a/rpi-firmware/bootcode.bin | Bin 52296 -> 0 bytes configs/platform-v7a/rpi-firmware/fixup.dat | Bin 6736 -> 0 bytes .../platform-v7a/rpi-firmware/fixup_cd.dat | Bin 2657 -> 0 bytes .../platform-v7a/rpi-firmware/fixup_db.dat | Bin 9808 -> 0 bytes configs/platform-v7a/rpi-firmware/fixup_x.dat | Bin 9810 -> 0 bytes .../platform-v7a/rpi-firmware/start_cd.elf | Bin 685540 -> 0 bytes configs/platform-v7a/rules/barebox-rpi2.make | 4 +- configs/platform-v7a/rules/image-rpi2.make | 2 +- projectroot/loader/entries/rpi400.conf | 6 + projectroot/loader/entries/rpi4b.conf | 6 + .../LICENCE.broadcom | 3 +- rpi-firmware/bootcode.bin | Bin 0 -> 52460 bytes .../rpi-firmware => rpi-firmware}/config.txt | 0 rpi-firmware/fixup.dat | Bin 0 -> 7221 bytes rpi-firmware/fixup4.dat | Bin 0 -> 5352 bytes rpi-firmware/fixup4cd.dat | Bin 0 -> 3147 bytes rpi-firmware/fixup4db.dat | Bin 0 -> 8356 bytes rpi-firmware/fixup4x.dat | Bin 0 -> 8358 bytes rpi-firmware/fixup_cd.dat | Bin 0 -> 3147 bytes rpi-firmware/fixup_db.dat | Bin 0 -> 10201 bytes rpi-firmware/fixup_x.dat | Bin 0 -> 10199 bytes .../rpi-firmware => rpi-firmware}/start.elf | Bin 2877892 -> 2966048 bytes rpi-firmware/start4.elf | Bin 0 -> 2241824 bytes rpi-firmware/start4cd.elf | Bin 0 -> 801212 bytes rpi-firmware/start4db.elf | Bin 0 -> 3739240 bytes rpi-firmware/start4x.elf | Bin 0 -> 2993800 bytes rpi-firmware/start_cd.elf | Bin 0 -> 801212 bytes .../start_db.elf | Bin 4854600 -> 4811176 bytes .../rpi-firmware => rpi-firmware}/start_x.elf | Bin 3792104 -> 3717480 bytes rules/blspec-rpi4.make | 38 ++++++ 58 files changed, 421 insertions(+), 276 deletions(-) create mode 100644 configs/platform-v7a/barebox-am335x-defaultenv/nv/dev.mmc0.broken_cd create mode 100644 configs/platform-v7a/barebox-mx6-defaultenv/nv/dev.mmc0.broken_cd create mode 100644 configs/platform-v7a/barebox-rpi2-defaultenv/nv/dev.mci0.broken_cd create mode 100644 configs/platform-v7a/barebox-stm32mp-defaultenv/nv/dev.mmc0.broken_cd delete mode 100644 configs/platform-v7a/patches/barebox-2022.06.0/0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch delete mode 100644 configs/platform-v7a/patches/barebox-2022.06.0/series create mode 100644 configs/platform-v7a/patches/barebox-2022.09.0/0001-mci-core-act-upon-broken-cd-device-tree-property.patch create mode 100644 configs/platform-v7a/patches/barebox-2022.09.0/0002-mci-core-add-broken_cd-device-parameter.patch create mode 100644 configs/platform-v7a/patches/barebox-2022.09.0/0003-mci-core-fixup-broken-cd-information-into-kernel-DT.patch create mode 100644 configs/platform-v7a/patches/barebox-2022.09.0/series create mode 100644 configs/platform-v7a/platforms/blspec-rpi4.in delete mode 100644 configs/platform-v7a/rpi-firmware/bootcode.bin delete mode 100644 configs/platform-v7a/rpi-firmware/fixup.dat delete mode 100644 configs/platform-v7a/rpi-firmware/fixup_cd.dat delete mode 100644 configs/platform-v7a/rpi-firmware/fixup_db.dat delete mode 100644 configs/platform-v7a/rpi-firmware/fixup_x.dat delete mode 100644 configs/platform-v7a/rpi-firmware/start_cd.elf create mode 100644 projectroot/loader/entries/rpi400.conf create mode 100644 projectroot/loader/entries/rpi4b.conf rename {configs/platform-v7a/rpi-firmware => rpi-firmware}/LICENCE.broadcom (91%) create mode 100644 rpi-firmware/bootcode.bin rename {configs/platform-v7a/rpi-firmware => rpi-firmware}/config.txt (100%) create mode 100644 rpi-firmware/fixup.dat create mode 100644 rpi-firmware/fixup4.dat create mode 100644 rpi-firmware/fixup4cd.dat create mode 100644 rpi-firmware/fixup4db.dat create mode 100644 rpi-firmware/fixup4x.dat create mode 100644 rpi-firmware/fixup_cd.dat create mode 100644 rpi-firmware/fixup_db.dat create mode 100644 rpi-firmware/fixup_x.dat rename {configs/platform-v7a/rpi-firmware => rpi-firmware}/start.elf (51%) create mode 100644 rpi-firmware/start4.elf create mode 100644 rpi-firmware/start4cd.elf create mode 100644 rpi-firmware/start4db.elf create mode 100644 rpi-firmware/start4x.elf create mode 100644 rpi-firmware/start_cd.elf rename {configs/platform-v7a/rpi-firmware => rpi-firmware}/start_db.elf (53%) rename {configs/platform-v7a/rpi-firmware => rpi-firmware}/start_x.elf (53%) create mode 100644 rules/blspec-rpi4.make -- 2.30.2