From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 31 Oct 2022 09:02:19 +0100 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 1opPkR-008wBV-M2 for lore@lore.pengutronix.de; Mon, 31 Oct 2022 09:02:19 +0100 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 1opPkQ-00087p-94; Mon, 31 Oct 2022 09:02:18 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1opPjb-0007xa-3V; Mon, 31 Oct 2022 09:01:27 +0100 Message-ID: <50eb7f21-9075-abf8-27f4-6064bb3f1194@pengutronix.de> Date: Mon, 31 Oct 2022 09:01:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 To: ptxdist@pengutronix.de, "Joshi, Pranay" , Michael Olbrich References: Content-Language: en-US From: Ahmad Fatoum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4 X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Schwebel , distrokit@pengutronix.de 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 Hello Pranay, On 28.10.22 14:47, Joshi, Pranay wrote: > Hi Michael, > > Thank you for your support. > > Earlier we were stuck in building toolchain and root filesystem for Raspberry Pi platform using PTXDist Tool, OSELAS Toolchain and DistroKit. We have been successfully able to prepare an image with the solutions provided by you. Cc += DistroKit Mailing List The PTXdist mailing list is rather for the build system itself, toolchain and upstream rules and not about particular board support packages. > We tried prepared image over RPi 4, once we have powered up RPi 4 it is showing an error like "This board requires newer software". > > After some inspection we understood that the prepared image can support RPi 3. The DistroKit "next" branch supports Raspberry Pi 4 in 32-bit mode. The changes are not yet in "master". The resulting image can be installed on Rasperry Pi 2, 3, CM3 and 4. Keep in mind that I did not test rpi4 support on a CM4. It may need some slight tweaking. > Now can you please give some path to prepare supported image for RPi 4 using PTXDist tool? > > From where can we get an idea to modify an image for a new platform like RPi 4 using PTXDist? If you are willing to help, adding support for Raspberry Pi 3 and 4 64-bit to DistroKit platform-v8a should be quite straight-forward. All components built by platform-v7a for Raspberry Pi can be configured for 64-bit (bootloader, kernel, rootfs, rpi firmware), but some integration into DistroKit is still required: - Add a new barebox-rpi.{make,in} rule to platform-v8a, which collects the same files as barebox-rpi2.make in platform-v7a. platform-v7a has barebox-common, but we don't have that for platform-v8a, so either add it or add it as a standalone rule - copy the barebox-rpi3.config to platform-v8a and change it to have CONFIG_64BIT=y - configure the kernel to enable all the Raspberry Pi 4 related drivers - Have DistroKit build the Raspberry Pi 4 device trees and generate bootspec entries using them - ensure config.txt has arm_64bit=1 - Add image recipes that pull in the firmware, bootloader and rootfs When done correctly, you will end up with a rpi.hdimg that can be booted from SD on either Rpi3 or Rpi4. Cheers, Ahmad > > > Pranay Joshi > > Lead Engineer-Firmware Engineering > > Drilling Services > > Baker Hughes > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |