* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
[not found] <PH0PR08MB801478F4321D6EC7F26475AB82329@PH0PR08MB8014.namprd08.prod.outlook.com>
@ 2022-10-31 8:01 ` Ahmad Fatoum
[not found] ` <PH0PR08MB80142B5E46E08F7A38197224823C9@PH0PR08MB8014.namprd08.prod.outlook.com>
0 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2022-10-31 8:01 UTC (permalink / raw)
To: ptxdist, Joshi, Pranay, Michael Olbrich; +Cc: Robert Schwebel, distrokit
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 <distrokit@pengutronix.de>
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 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
[not found] ` <SN4PR0801MB8017A9D758C4B6BB3D006FAD82059@SN4PR0801MB8017.namprd08.prod.outlook.com>
@ 2022-11-14 10:58 ` Marco Felsch
2022-11-15 6:05 ` Joshi, Pranay
0 siblings, 1 reply; 14+ messages in thread
From: Marco Felsch @ 2022-11-14 10:58 UTC (permalink / raw)
To: ptxdist; +Cc: Robert Schwebel, Michael Olbrich, distrokit, Ahmad Fatoum
Hi Pranay,
On 22-11-14, Joshi, Pranay wrote:
> Any help on below query?
I'm not aware of the DistroKit integration nor the Barebox integration,
but maybe I can support you since Ahmad is on vacation. Please see my
question below.
> From: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Sent: Monday, November 7, 2022 5:09 PM
> To: Ahmad Fatoum <a.fatoum@pengutronix.de>; ptxdist@pengutronix.de; Michael Olbrich <m.olbrich@pengutronix.de>
> Cc: Robert Schwebel <rsc@pengutronix.de>; distrokit@pengutronix.de
> Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
>
> Hi Ahmad,
>
> Thanks for your response.
>
> We prepared images for the platform-rpi and platform-v7a using
> Distrokit "next" branch, as you mentioned it's having support of RPi
> for 32-bit. When prepared image is loaded into SD card and powered
> Raspberry Pi 4B, we are getting error "start_cd.elf: is not
> compatible".
Can you please provide the whole error string barebox is printing?
> Is there any configuration needs to update? Or anything else needs to
> do?
If you can provide us the whole barebox log we can see a bit more what
is going on.
Regards,
Marco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-14 10:58 ` Marco Felsch
@ 2022-11-15 6:05 ` Joshi, Pranay
2022-11-15 9:41 ` Marco Felsch
0 siblings, 1 reply; 14+ messages in thread
From: Joshi, Pranay @ 2022-11-15 6:05 UTC (permalink / raw)
To: ptxdist; +Cc: Robert Schwebel, Michael Olbrich, distrokit, Ahmad Fatoum
[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]
Hi Marco,
Thanks for response.
Please find attached error logs for more detail.
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: ptxdist <ptxdist-bounces@pengutronix.de> On Behalf Of Marco Felsch
Sent: Monday, November 14, 2022 4:28 PM
To: ptxdist@pengutronix.de
Cc: Robert Schwebel <rsc@pengutronix.de>; Michael Olbrich <m.olbrich@pengutronix.de>; distrokit@pengutronix.de; Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
[You don't often get email from m.felsch@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.
Hi Pranay,
On 22-11-14, Joshi, Pranay wrote:
> Any help on below query?
I'm not aware of the DistroKit integration nor the Barebox integration, but maybe I can support you since Ahmad is on vacation. Please see my question below.
> From: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Sent: Monday, November 7, 2022 5:09 PM
> To: Ahmad Fatoum <a.fatoum@pengutronix.de>; ptxdist@pengutronix.de;
> Michael Olbrich <m.olbrich@pengutronix.de>
> Cc: Robert Schwebel <rsc@pengutronix.de>; distrokit@pengutronix.de
> Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
>
> Hi Ahmad,
>
> Thanks for your response.
>
> We prepared images for the platform-rpi and platform-v7a using
> Distrokit "next" branch, as you mentioned it's having support of RPi
> for 32-bit. When prepared image is loaded into SD card and powered
> Raspberry Pi 4B, we are getting error "start_cd.elf: is not
> compatible".
Can you please provide the whole error string barebox is printing?
> Is there any configuration needs to update? Or anything else needs to
> do?
If you can provide us the whole barebox log we can see a bit more what is going on.
Regards,
Marco
[-- Attachment #2: RPi-4_BootLog_using_hd_img.txt --]
[-- Type: text/plain, Size: 2526 bytes --]
pranay@pranay-Latitude-5400:~$ sudo minicom
[sudo] password for pranay:
Welcome to minicom 2.7.1
OPTIONS: I18n
Compiled on Dec 23 2019, 02:06:26.
Port /dev/ttyUSB0, 12:17:05
Press CTRL-A Z for help on special keys
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://www.raspberrypi.com/software/
ERROR: 44
Retry SD 1
SD HOST: 250000000 CTL0: 0x00000000 BUS: 200000 Hz actual: 200000 HZ div: 1250 (625) status: 0x1fff0000 delay0
SD HOST: 250000000 CTL0: 0x00000f00 BUS: 200000 Hz actual: 200000 HZ div: 1250 (625) status: 0x1fff0000 delay0
OCR c0ff8000 [7]
CID: 000353445343313647805cc2ce990166
CSD: 400e00325b59000076b27f800a404000
SD: bus-width: 4 spec: 2 SCR: 0x02358043 0x00000000
SD HOST: 250000000 CTL0: 0x00000f04 BUS: 50000000 Hz actual: 41666666 HZ div: 6 (3) status: 0x1fff0000 delay:2
MBR: 0x00000800, 65536 type: 0x0c
MBR: 0x00010800, 143360 type: 0x83
MBR: 0x00000000, 0 type: 0x00
MBR: 0x00000000, 0 type: 0x00
Trying partition: 0
type: 16 lba: 2048 oem: 'mkfs.fat' volume: ' V ^ '
rsc 4 fat-sectors 64 c-count 16343 c-size 4
root dir cluster 1 sectors 32 entries 512
FAT16 clusters 16343
Trying partition: 0
type: 16 lba: 2048 oem: 'mkfs.fat' volume: ' V ^ '
rsc 4 fat-sectors 64 c-count 16343 c-size 4
root dir cluster 1 sectors 32 entries 512
FAT16 clusters 16343
Read config.txt bytes 407 hnd 0x00000000
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://www.raspberrypi.com/software/
ERROR: 44
Boot mode: USB-MSD (04) order f
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 8
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
USBSTS 9
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC ports 5 slots 32 intrs 4
USB2[1] 400202e1 connected
USB2 root HUB port 1 init
DEV [01:00] 2.16 000000:01 class 9 VID 2109 PID 3431
HUB init [01:00] 2.16 000000:01
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 6:05 ` Joshi, Pranay
@ 2022-11-15 9:41 ` Marco Felsch
2022-11-15 9:47 ` Joshi, Pranay
2022-11-15 10:16 ` Roland Hieber
0 siblings, 2 replies; 14+ messages in thread
From: Marco Felsch @ 2022-11-15 9:41 UTC (permalink / raw)
To: ptxdist; +Cc: Robert Schwebel, Michael Olbrich, distrokit, Ahmad Fatoum
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://www.raspberrypi.com/software/
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:
- You're using DistoKit Git-Version:
4dd74b5 v7a: barebox: enable of_diff command
- You have selected the platform-v7a platform
- Which compiler you did used?
- You have no local changes?
- Which RPI4 you're using (RPI4, CM4, ...)?
Regards,
Marco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 9:41 ` Marco Felsch
@ 2022-11-15 9:47 ` Joshi, Pranay
2022-11-15 10:04 ` Marco Felsch
2022-11-15 10:16 ` Roland Hieber
1 sibling, 1 reply; 14+ messages in thread
From: Joshi, Pranay @ 2022-11-15 9:47 UTC (permalink / raw)
To: ptxdist; +Cc: Robert Schwebel, Michael Olbrich, distrokit, Ahmad Fatoum
Hi,
Thanks to stepped in.
We have clone Distrokit "next" branch and used that.
- Which compiler you did used?
We are using OSELAS.Toolchain-2020.08.0
- You have no local changes?
Yes, no local changes, used default configuration.
- Which RPI4 you're using (RPI4, CM4, ...)?
Raspberry Pi 4B
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: ptxdist <ptxdist-bounces@pengutronix.de> On Behalf Of Marco Felsch
Sent: Tuesday, November 15, 2022 3:11 PM
To: ptxdist@pengutronix.de
Cc: Robert Schwebel <rsc@pengutronix.de>; Michael Olbrich <m.olbrich@pengutronix.de>; distrokit@pengutronix.de; Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
[You don't often get email from m.felsch@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.
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%2Fwww.
> raspberrypi.com%2Fsoftware%2F&data=05%7C01%7Cpranay.joshi%40bakerh
> ughes.com%7Cd4294c5d564c40f57c4d08dac6ed93b5%7Cd584a4b7b1f24714a578fd4
> d43c146a6%7C0%7C0%7C638041020940805444%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> 7C%7C&sdata=R1RrE%2FMyBkeQleIquzTsdr4yrtGJs%2Ff3SJzJK5y3O4c%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:
- You're using DistoKit Git-Version:
4dd74b5 v7a: barebox: enable of_diff command
- You have selected the platform-v7a platform
- Which compiler you did used?
- You have no local changes?
- Which RPI4 you're using (RPI4, CM4, ...)?
Regards,
Marco
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 9:47 ` Joshi, Pranay
@ 2022-11-15 10:04 ` Marco Felsch
0 siblings, 0 replies; 14+ messages in thread
From: Marco Felsch @ 2022-11-15 10:04 UTC (permalink / raw)
To: ptxdist; +Cc: Robert Schwebel, Michael Olbrich, distrokit, Ahmad Fatoum
On 22-11-15, Joshi, Pranay wrote:
> Hi,
>
> Thanks to stepped in.
>
> We have clone Distrokit "next" branch and used that.
>
> - Which compiler you did used?
> We are using OSELAS.Toolchain-2020.08.0
And you're using the arm-v7a version?
> - You have no local changes?
> Yes, no local changes, used default configuration.
>
> - Which RPI4 you're using (RPI4, CM4, ...)?
> Raspberry Pi 4B
Which platform did you select and which image did you flashed to the
SD card?
Regards,
Marco
>
>
> Pranay Joshi
> Lead Engineer-Firmware Engineering
> Drilling Services
> Baker Hughes
>
>
> -----Original Message-----
> From: ptxdist <ptxdist-bounces@pengutronix.de> On Behalf Of Marco Felsch
> Sent: Tuesday, November 15, 2022 3:11 PM
> To: ptxdist@pengutronix.de
> Cc: Robert Schwebel <rsc@pengutronix.de>; Michael Olbrich <m.olbrich@pengutronix.de>; distrokit@pengutronix.de; Ahmad Fatoum <a.fatoum@pengutronix.de>
> Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
>
> [You don't often get email from m.felsch@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.
>
>
> 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%2Fwww.
> > raspberrypi.com%2Fsoftware%2F&data=05%7C01%7Cpranay.joshi%40bakerh
> > ughes.com%7Cd4294c5d564c40f57c4d08dac6ed93b5%7Cd584a4b7b1f24714a578fd4
> > d43c146a6%7C0%7C0%7C638041020940805444%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> > iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> > 7C%7C&sdata=R1RrE%2FMyBkeQleIquzTsdr4yrtGJs%2Ff3SJzJK5y3O4c%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:
>
> - You're using DistoKit Git-Version:
> 4dd74b5 v7a: barebox: enable of_diff command
> - You have selected the platform-v7a platform
> - Which compiler you did used?
> - You have no local changes?
> - Which RPI4 you're using (RPI4, CM4, ...)?
>
> Regards,
> Marco
>
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 9:41 ` Marco Felsch
2022-11-15 9:47 ` Joshi, Pranay
@ 2022-11-15 10:16 ` Roland Hieber
2022-11-15 10:30 ` Joshi, Pranay
1 sibling, 1 reply; 14+ messages in thread
From: Roland Hieber @ 2022-11-15 10:16 UTC (permalink / raw)
To: Joshi, Pranay
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Ahmad Fatoum,
Marco Felsch
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://www.raspberrypi.com/software/
>
> 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://github.com/raspberrypi/firmware/tree/master/boot 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://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 10:16 ` Roland Hieber
@ 2022-11-15 10:30 ` Joshi, Pranay
2022-11-15 11:00 ` Marco Felsch
0 siblings, 1 reply; 14+ messages in thread
From: Joshi, Pranay @ 2022-11-15 10:30 UTC (permalink / raw)
To: Roland Hieber
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Ahmad Fatoum,
Marco Felsch
> And you're using the arm-v7a version?
We have used platform-rpi and platform-v7a, both.
> 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.
Thanks Roland. We will try your suggestion.
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: Roland Hieber <rhi@pengutronix.de>
Sent: Tuesday, November 15, 2022 3:46 PM
To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>; Marco Felsch <m.felsch@pengutronix.de>
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%2Fww
> > w.raspberrypi.com%2Fsoftware%2F&data=05%7C01%7Cpranay.joshi%40ba
> > kerhughes.com%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a
> > 578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d
> > 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> > 7C3000%7C%7C%7C&sdata=0Krk8ee8ZLDh9ev0puV61aVmuN3srVLlLbK%2Fd9Qa
> > 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%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NnQIczuz1XiA6xORUuHcOjy5inYFWVFCQs0LT5nPpLM%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%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5OLgrwdAWtBihl2GUmwvWRdN4HGBEx2ESSFO3X6FK0M%3D&reserved=0 |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 10:30 ` Joshi, Pranay
@ 2022-11-15 11:00 ` Marco Felsch
2022-11-15 11:27 ` Joshi, Pranay
0 siblings, 1 reply; 14+ messages in thread
From: Marco Felsch @ 2022-11-15 11:00 UTC (permalink / raw)
To: Joshi, Pranay
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Ahmad Fatoum,
Roland Hieber
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 <rhi@pengutronix.de>
> Sent: Tuesday, November 15, 2022 3:46 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>; Marco Felsch <m.felsch@pengutronix.de>
> 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%2Fww
> > > w.raspberrypi.com%2Fsoftware%2F&data=05%7C01%7Cpranay.joshi%40ba
> > > kerhughes.com%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a
> > > 578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d
> > > 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> > > 7C3000%7C%7C%7C&sdata=0Krk8ee8ZLDh9ev0puV61aVmuN3srVLlLbK%2Fd9Qa
> > > 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%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NnQIczuz1XiA6xORUuHcOjy5inYFWVFCQs0LT5nPpLM%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%7Cf65894b84494477078fa08dac6f275e6%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041041910681676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5OLgrwdAWtBihl2GUmwvWRdN4HGBEx2ESSFO3X6FK0M%3D&reserved=0 |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 11:00 ` Marco Felsch
@ 2022-11-15 11:27 ` Joshi, Pranay
2022-12-01 12:09 ` Ahmad Fatoum
0 siblings, 1 reply; 14+ messages in thread
From: Joshi, Pranay @ 2022-11-15 11:27 UTC (permalink / raw)
To: Marco Felsch
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Ahmad Fatoum,
Roland Hieber
> 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.
> 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.
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: Marco Felsch <m.felsch@pengutronix.de>
Sent: Tuesday, November 15, 2022 4:30 PM
To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
Cc: Roland Hieber <rhi@pengutronix.de>; ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>
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 <rhi@pengutronix.de>
> Sent: Tuesday, November 15, 2022 3:46 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
> <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>;
> Marco Felsch <m.felsch@pengutronix.de>
> 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%7C34f075792bea4a8e256008dac6f8904d%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041068130984689%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=irAsz2Rgkhs4rsEcZalwc1LLGsw3bt8g%2FNaBMqT7Q8c%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%7C34f075792bea4a8e256008dac6f8904d%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041068130984689%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FJMKFVHcSyd6WUPH9fKvNMXwGzIRNuvl8W3X%2Fcx%2B7y0%3D&reserved=0 |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-11-15 11:27 ` Joshi, Pranay
@ 2022-12-01 12:09 ` Ahmad Fatoum
2022-12-02 5:39 ` Joshi, Pranay
0 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2022-12-01 12:09 UTC (permalink / raw)
To: Joshi, Pranay, Marco Felsch
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Roland Hieber
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 <m.felsch@pengutronix.de>
> Sent: Tuesday, November 15, 2022 4:30 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Cc: Roland Hieber <rhi@pengutronix.de>; ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>
> 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 <rhi@pengutronix.de>
>> Sent: Tuesday, November 15, 2022 3:46 PM
>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
>> <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>;
>> Marco Felsch <m.felsch@pengutronix.de>
>> 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%7C34f075792bea4a8e256008dac6f8904d%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041068130984689%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=irAsz2Rgkhs4rsEcZalwc1LLGsw3bt8g%2FNaBMqT7Q8c%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%7C34f075792bea4a8e256008dac6f8904d%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638041068130984689%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FJMKFVHcSyd6WUPH9fKvNMXwGzIRNuvl8W3X%2Fcx%2B7y0%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 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-12-01 12:09 ` Ahmad Fatoum
@ 2022-12-02 5:39 ` Joshi, Pranay
2022-12-02 6:14 ` Ahmad Fatoum
0 siblings, 1 reply; 14+ messages in thread
From: Joshi, Pranay @ 2022-12-02 5:39 UTC (permalink / raw)
To: Ahmad Fatoum, Marco Felsch
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Roland Hieber
Hi Ahmad,
Great, I will check master as well.
It is working for me as well, after getting suggestion by Marco.
Thanks,
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Sent: Thursday, December 1, 2022 5:40 PM
To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>; Marco Felsch <m.felsch@pengutronix.de>
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Roland Hieber <rhi@pengutronix.de>
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 <m.felsch@pengutronix.de>
> Sent: Tuesday, November 15, 2022 4:30 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
> Cc: Roland Hieber <rhi@pengutronix.de>; ptxdist@pengutronix.de
> distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum
> <a.fatoum@pengutronix.de>
> 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 <rhi@pengutronix.de>
>> Sent: Tuesday, November 15, 2022 3:46 PM
>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
>> <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>;
>> Marco Felsch <m.felsch@pengutronix.de>
>> 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 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-12-02 5:39 ` Joshi, Pranay
@ 2022-12-02 6:14 ` Ahmad Fatoum
2022-12-05 6:00 ` Joshi, Pranay
0 siblings, 1 reply; 14+ messages in thread
From: Ahmad Fatoum @ 2022-12-02 6:14 UTC (permalink / raw)
To: Joshi, Pranay, Marco Felsch
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Roland Hieber
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 <a.fatoum@pengutronix.de>
> Sent: Thursday, December 1, 2022 5:40 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>; Marco Felsch <m.felsch@pengutronix.de>
> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Roland Hieber <rhi@pengutronix.de>
> 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 <m.felsch@pengutronix.de>
>> Sent: Tuesday, November 15, 2022 4:30 PM
>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>> Cc: Roland Hieber <rhi@pengutronix.de>; ptxdist@pengutronix.de
>> distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum
>> <a.fatoum@pengutronix.de>
>> 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 <rhi@pengutronix.de>
>>> Sent: Tuesday, November 15, 2022 3:46 PM
>>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>>> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
>>> <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>;
>>> Marco Felsch <m.felsch@pengutronix.de>
>>> 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 |
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4
2022-12-02 6:14 ` Ahmad Fatoum
@ 2022-12-05 6:00 ` Joshi, Pranay
0 siblings, 0 replies; 14+ messages in thread
From: Joshi, Pranay @ 2022-12-05 6:00 UTC (permalink / raw)
To: Ahmad Fatoum, Marco Felsch
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de, Roland Hieber
Hi Ahmad,
For now 32-bit Distrokit is good for us, in future if that is required I will check with you, the required things.
Stay Safe,
Pranay Joshi
Lead Engineer-Firmware Engineering
Drilling Services
Baker Hughes
-----Original Message-----
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Sent: Friday, December 2, 2022 11:45 AM
To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>; Marco Felsch <m.felsch@pengutronix.de>
Cc: ptxdist@pengutronix.de distrokit@pengutronix.de <distrokit@pengutronix.de>; Roland Hieber <rhi@pengutronix.de>
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 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 <a.fatoum@pengutronix.de>
> Sent: Thursday, December 1, 2022 5:40 PM
> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>; Marco Felsch
> <m.felsch@pengutronix.de>
> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
> <distrokit@pengutronix.de>; Roland Hieber <rhi@pengutronix.de>
> 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 <m.felsch@pengutronix.de>
>> Sent: Tuesday, November 15, 2022 4:30 PM
>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>> Cc: Roland Hieber <rhi@pengutronix.de>; ptxdist@pengutronix.de
>> distrokit@pengutronix.de <distrokit@pengutronix.de>; Ahmad Fatoum
>> <a.fatoum@pengutronix.de>
>> 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 <rhi@pengutronix.de>
>>> Sent: Tuesday, November 15, 2022 3:46 PM
>>> To: Joshi, Pranay <Pranay.Joshi@bakerhughes.com>
>>> Cc: ptxdist@pengutronix.de distrokit@pengutronix.de
>>> <distrokit@pengutronix.de>; Ahmad Fatoum <a.fatoum@pengutronix.de>;
>>> Marco Felsch <m.felsch@pengutronix.de>
>>> 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%7Cca963f2202434059e1fc08dad42c8a83%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638055585036763849%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=USulOKeVhfRFu7gQi%2FDUmLuvJ9iDD0NwhH7SzUcJRX8%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%7Cca963f2202434059e1fc08dad42c8a83%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638055585036763849%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=n521atrzAon1SiLYU3GzfdxHA527a1SQK7gCfPIZRlc%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%7Cca963f2202434059e1fc08dad42c8a83%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638055585036763849%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4QVPrDUvPVISBFr09UYgzYd0UsGCRyniVwS1N%2FHC7K0%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%7Cca963f2202434059e1fc08dad42c8a83%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638055585036763849%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4QVPrDUvPVISBFr09UYgzYd0UsGCRyniVwS1N%2FHC7K0%3D&reserved=0 |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-12-05 6:01 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <PH0PR08MB801478F4321D6EC7F26475AB82329@PH0PR08MB8014.namprd08.prod.outlook.com>
2022-10-31 8:01 ` [DistroKit] [ptxdist] Prepare Image for Raspberry Pi 4 Ahmad Fatoum
[not found] ` <PH0PR08MB80142B5E46E08F7A38197224823C9@PH0PR08MB8014.namprd08.prod.outlook.com>
[not found] ` <SN4PR0801MB8017A9D758C4B6BB3D006FAD82059@SN4PR0801MB8017.namprd08.prod.outlook.com>
2022-11-14 10:58 ` Marco Felsch
2022-11-15 6:05 ` Joshi, Pranay
2022-11-15 9:41 ` Marco Felsch
2022-11-15 9:47 ` Joshi, Pranay
2022-11-15 10:04 ` Marco Felsch
2022-11-15 10:16 ` Roland Hieber
2022-11-15 10:30 ` Joshi, Pranay
2022-11-15 11:00 ` Marco Felsch
2022-11-15 11:27 ` Joshi, Pranay
2022-12-01 12:09 ` Ahmad Fatoum
2022-12-02 5:39 ` Joshi, Pranay
2022-12-02 6:14 ` Ahmad Fatoum
2022-12-05 6:00 ` Joshi, Pranay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox