From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 02 Dec 2022 07:15:06 +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 1p0zKD-008EY3-H2 for lore@lore.pengutronix.de; Fri, 02 Dec 2022 07:15:06 +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 1p0zKC-0000O0-Sd; Fri, 02 Dec 2022 07:15:04 +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 1p0zK5-0000Nb-OO; Fri, 02 Dec 2022 07:14:57 +0100 Message-ID: <39cddb22-6310-510c-d685-108d892075c9@pengutronix.de> Date: Fri, 2 Dec 2022 07:14:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: "Joshi, Pranay" , Marco Felsch References: <50eb7f21-9075-abf8-27f4-6064bb3f1194@pengutronix.de> <20221114105803.6gmyv3fcwz4skzfw@pengutronix.de> <20221115094115.rxiaepnmabnkmeav@pengutronix.de> <20221115101626.t3tofvn56vrupw7t@pengutronix.de> <20221115110008.swrhxebrbdveo7zh@pengutronix.de> <4106a816-32d8-bd4d-a116-eca4c9f260d2@pengutronix.de> From: Ahmad Fatoum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: "ptxdist@pengutronix.de distrokit@pengutronix.de" , Roland Hieber 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 02.12.22 06:39, Joshi, Pranay wrote: > Hi Ahmad, > > Great, I will check master as well. > > It is working for me as well, after getting suggestion by Marco. Great to hear you got it working. As mentioned in my first mail, you may want to reconfigure DistroKit for 64-bit operation on the board, which should likely improve your performance. Cheers, Ahmad > > Thanks, > Pranay Joshi > Lead Engineer-Firmware Engineering > Drilling Services > Baker Hughes > > -----Original Message----- > From: Ahmad Fatoum > Sent: Thursday, December 1, 2022 5:40 PM > To: Joshi, Pranay ; Marco Felsch > Cc: ptxdist@pengutronix.de distrokit@pengutronix.de ; Roland Hieber > Subject: Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4 > > EXTERNAL EMAIL: This email originated outside of our organization. Do not click on any links or open attachments from unexpected or unknown senders unless you can verify the content is safe. > > > Hello Pranay, > > On 15.11.22 12:27, Joshi, Pranay wrote: >>> You need to use the platform-v7a platform, everything else will not work. I mean by "And you're using the arm-v7a version", you use the oselas-toolchain for ARMv7-A. >> >> Yes, we are using OSELAS Toolchain for ARMv7a. > > In the meantime, Raspberry Pi 4 32-bit support has now reached DistroKit master as well as a new PTXdist release and the newest OSELAS.Toolchain. > >>> Also the only image you should use is the rpi.hdimg which comes from the platform-v7a/images/ dir. Since you switched from origin/master to origin/next, there could be a problem with dependency tracking. Can you please run 'ptxdist clean' and say 'y' while you getting asked to clean all. After this step you can rebuild your whole project. Please ensure before that you selected the platform-v7a platformconfig and the IMAGE_RPI2. >> >> Ok, We will check. > > As my colleagues have mentioned, your issue is consistent with having deployed an old raspberry pi firmware. I just tested on a Raspberry Pi 4b and system boots to shell fine when building current DistroKit master. > > Cheers, > Ahmad > >> >> Pranay Joshi >> Lead Engineer-Firmware Engineering >> Drilling Services >> Baker Hughes >> >> >> -----Original Message----- >> From: Marco Felsch >> Sent: Tuesday, November 15, 2022 4:30 PM >> To: Joshi, Pranay >> Cc: Roland Hieber ; ptxdist@pengutronix.de >> distrokit@pengutronix.de ; Ahmad Fatoum >> >> Subject: Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4 >> >> EXTERNAL EMAIL: This email originated outside of our organization. Do not click on any links or open attachments from unexpected or unknown senders unless you can verify the content is safe. >> >> >> On 22-11-15, Joshi, Pranay wrote: >>>> And you're using the arm-v7a version? >>> We have used platform-rpi and platform-v7a, both. >> >> You need to use the platform-v7a platform, everything else will not work. I mean by "And you're using the arm-v7a version", you use the oselas-toolchain for ARMv7-A. >> >>>> Which platform did you select and which image did you flashed to the SD card? >>> Used "hd.img" from both platform and also used "rpi.hdimg" from platform-v7a. >> >> Also the only image you should use is the rpi.hdimg which comes from the platform-v7a/images/ dir. Since you switched from origin/master to origin/next, there could be a problem with dependency tracking. Can you please run 'ptxdist clean' and say 'y' while you getting asked to clean all. After this step you can rebuild your whole project. Please ensure before that you selected the platform-v7a platformconfig and the IMAGE_RPI2. >> >> Regards, >> Marco >> >>> >>> Pranay Joshi >>> Lead Engineer-Firmware Engineering >>> Drilling Services >>> Baker Hughes >>> >>> >>> -----Original Message----- >>> From: Roland Hieber >>> Sent: Tuesday, November 15, 2022 3:46 PM >>> To: Joshi, Pranay >>> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de >>> ; Ahmad Fatoum ; >>> Marco Felsch >>> Subject: Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4 >>> >>> [You don't often get email from rhi@pengutronix.de. Learn why this is >>> important at https://aka.ms/LearnAboutSenderIdentification ] >>> >>> EXTERNAL EMAIL: This email originated outside of our organization. Do not click on any links or open attachments from unexpected or unknown senders unless you can verify the content is safe. >>> >>> >>> On Tue, Nov 15, 2022 at 10:41:15AM +0100, Marco Felsch wrote: >>>> Hi, >>>> >>>> On 22-11-15, Joshi, Pranay wrote: >>>>> Hi Marco, >>>>> >>>>> Thanks for response. >>>>> >>>>> Please find attached error logs for more detail. >>>> >>>> Thanks for the error log. >>>> >>>>> Read start_cd.elf bytes 685540 hnd 0x00000000 >>>>> Read fixup_cd.dat bytes 2657 hnd 0x00000000 >>>>> Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep 9 2019 >>>>> 18:51:29 >>>>> 0x00d03114 0x00000000 0x00000000 >>>>> start_cd.elf: is not compatible >>>>> This board requires newer software Get the latest software from >>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2F >>>>> ww >>>>> w.raspberrypi.com%2Fsoftware%2F&data=05%7C01%7Cpranay.joshi%40 >>>>> ba >>>>> kerhughes.com%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f2471 >>>>> 4a >>>>> 578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb >>>>> 3d >>>>> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 >>>>> D% >>>>> 7C3000%7C%7C%7C&sdata=0Krk8ee8ZLDh9ev0puV61aVmuN3srVLlLbK%2Fd9 >>>>> Qa >>>>> ZbE%3D&reserved=0 >>>> >>>> The version of the start_cd.elf seems a bit old since Ahmad updated >>>> it to v1.20220331 and the loader says it is from 2019. >>>> >>>> To sum up a few things since I just stepped in into this conversation: >>> >>> Let me just step into this conversation too… 🙂 I'm not very >>> experienced with RPi 4 either, but you can try using the newer >>> firmware files from >>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fraspberrypi%2Ffirmware%2Ftree%2Fmaster%2Fboot&data=05%7C01%7Cpranay.joshi%40bakerhughes.com%7Cfa74a824d2034c8f369f08dad394f8e5%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638054934043871535%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pccGPlfT4n74zXnMEwHUEDBJyThBvNS6scFz3De0Ip0%3D&reserved=0 and put them into /rpi-firmware in your DistroKit tree. I'm not sure if barebox will work, but it's worth a try. >>> >>> - Roland >>> >>> -- >>> Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | >>> Steuerwalder Str. 21 | https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pengutronix.de%2F&data=05%7C01%7Cpranay.joshi%40bakerhughes.com%7Cfa74a824d2034c8f369f08dad394f8e5%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638054934043871535%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QowFOg0YkIAfDv7fX%2FVBvyP2iFiZctnXf6YUnunZ0z4%3D&reserved=0 | >>> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >>> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pengutronix.de%2F&data=05%7C01%7Cpranay.joshi%40bakerhughes.com%7Cfa74a824d2034c8f369f08dad394f8e5%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638054934043871535%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BoI3CYQqEdG1m%2FfUg6Mkd8t7iqKYB6P%2FSfdbUEWBQuw%3D&reserved=0 | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > -- 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 |