Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-15 Thread Marco Felsch
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  On Behalf Of Marco Felsch
> Sent: Tuesday, November 15, 2022 3:11 PM
> To: ptxdist@pengutronix.de
> Cc: Robert Schwebel ; Michael Olbrich 
> ; distro...@pengutronix.de; Ahmad Fatoum 
> 
> Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4
> 
> [You don't often get email from m.fel...@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 0x
> > Read fixup_cd.dat bytes 2657 hnd 0x
> > Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep  9 2019 
> > 18:51:29
> > 0x00d03114 0x 0x
> > 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%2Fdata=05%7C01%7Cpranay.joshi%40bakerh
> > ughes.com%7Cd4294c5d564c40f57c4d08dac6ed93b5%7Cd584a4b7b1f24714a578fd4
> > d43c146a6%7C0%7C0%7C638041020940805444%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> > iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> > 7C%7Csdata=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
> 
> 
> 



Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-15 Thread Joshi, Pranay
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  On Behalf Of Marco Felsch
Sent: Tuesday, November 15, 2022 3:11 PM
To: ptxdist@pengutronix.de
Cc: Robert Schwebel ; Michael Olbrich 
; distro...@pengutronix.de; Ahmad Fatoum 

Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4

[You don't often get email from m.fel...@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 0x
> Read fixup_cd.dat bytes 2657 hnd 0x
> Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep  9 2019 
> 18:51:29
> 0x00d03114 0x 0x
> 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%2Fdata=05%7C01%7Cpranay.joshi%40bakerh
> ughes.com%7Cd4294c5d564c40f57c4d08dac6ed93b5%7Cd584a4b7b1f24714a578fd4
> d43c146a6%7C0%7C0%7C638041020940805444%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> 7C%7Csdata=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




Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-15 Thread Marco Felsch
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 0x
> Read fixup_cd.dat bytes 2657 hnd 0x
> Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep  9 2019 18:51:29
> 0x00d03114 0x 0x
> 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



Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-14 Thread Joshi, Pranay
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  On Behalf Of Marco Felsch
Sent: Monday, November 14, 2022 4:28 PM
To: ptxdist@pengutronix.de
Cc: Robert Schwebel ; Michael Olbrich 
; distro...@pengutronix.de; Ahmad Fatoum 

Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4

[You don't often get email from m.fel...@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 
> Sent: Monday, November 7, 2022 5:09 PM
> To: Ahmad Fatoum ; ptxdist@pengutronix.de; 
> Michael Olbrich 
> Cc: Robert Schwebel ; distro...@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

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 0x
Read fixup_cd.dat bytes 2657 hnd 0x
Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep  9 2019 18:51:29
0x00d03114 0x 0x
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: 25000 CTL0: 0x BUS: 20 Hz actual: 20 HZ div: 1250 
(625) status: 0x1fff delay0
SD HOST: 25000 CTL0: 0x0f00 BUS: 20 Hz actual: 20 HZ div: 1250 
(625) status: 0x1fff delay0
OCR c0ff8000 [7]
CID: 000353445343313647805cc2ce990166
CSD: 400e00325b5976b27f800a404000
SD: bus-width: 4 spec: 2 SCR: 0x02358043 0x
SD HOST: 25000 CTL0: 0x0f04 BUS: 5000 Hz actual: 4166 HZ div: 6 
(3) status: 0x1fff delay:2
MBR: 0x0800,   65536 type: 0x0c
MBR: 0x00010800,  143360 type: 0x83
MBR: 0x,   0 type: 0x00
MBR: 0x,   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 0x
Read start_cd.elf bytes   685540 hnd 0x
Read fixup_cd.dat bytes 2657 hnd 0x
Firmware: 679ebca20dc08ca3f5392e02d772fed727debdae Sep  9 2019 18:51:29
0x00d03114 0x 0x
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 fc31 00e70004 HCC: 002841eb
USBSTS 8
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc31 00e70004 HCC: 002841eb
USBSTS 9
xHC ver: 256 HCS: 05000420 fc31 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 00:01 class 9 VID 2109 PID 3431
HUB init [01:00] 2.16 00:01



Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-14 Thread Marco Felsch
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 
> Sent: Monday, November 7, 2022 5:09 PM
> To: Ahmad Fatoum ; ptxdist@pengutronix.de; Michael 
> Olbrich 
> Cc: Robert Schwebel ; distro...@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



Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-14 Thread Joshi, Pranay
Any help on below query?


From: Joshi, Pranay 
Sent: Monday, November 7, 2022 5:09 PM
To: Ahmad Fatoum ; ptxdist@pengutronix.de; Michael 
Olbrich 
Cc: Robert Schwebel ; distro...@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".

Is there any configuration needs to update? Or anything else needs to do?

Thanks,

Pranay Joshi



From: Ahmad Fatoum mailto:a.fat...@pengutronix.de>>
Sent: Monday, October 31, 2022 1:31 PM
To: ptxdist@pengutronix.de<mailto:ptxdist@pengutronix.de> 
mailto:ptxdist@pengutronix.de>>; Joshi, Pranay 
mailto:pranay.jo...@bakerhughes.com>>; Michael 
Olbrich mailto:m.olbr...@pengutronix.de>>
Cc: Robert Schwebel mailto:r...@pengutronix.de>>; 
distro...@pengutronix.de<mailto:distro...@pengutronix.de> 
mailto:distro...@pengutronix.de>>
Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4

[You don't often get email from 
a.fat...@pengutronix.de<mailto:a.fat...@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.


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 
mailto:distro...@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   | 
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pengutronix.de%2Fdata=05%7C01%7Cpranay.joshi%40bakerhughes.com%7C3556808f85664a4aaf9008dabb161d76%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638028000907852739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=HaW55%2BSdTFjHWm10UzmhtdcOhQ91Qlsph0Zo4sfVcqU%3Dreserved=0
  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |


Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-11-07 Thread Joshi, Pranay
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".

Is there any configuration needs to update? Or anything else needs to do?

Thanks,

Pranay Joshi



From: Ahmad Fatoum 
Sent: Monday, October 31, 2022 1:31 PM
To: ptxdist@pengutronix.de ; Joshi, Pranay 
; Michael Olbrich 
Cc: Robert Schwebel ; distro...@pengutronix.de 

Subject: Re: [ptxdist] Prepare Image for Raspberry Pi 4

[You don't often get email from a.fat...@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.


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   | 
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pengutronix.de%2Fdata=05%7C01%7Cpranay.joshi%40bakerhughes.com%7C3556808f85664a4aaf9008dabb161d76%7Cd584a4b7b1f24714a578fd4d43c146a6%7C0%7C0%7C638028000907852739%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=HaW55%2BSdTFjHWm10UzmhtdcOhQ91Qlsph0Zo4sfVcqU%3Dreserved=0
  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |



Re: [ptxdist] Prepare Image for Raspberry Pi 4

2022-10-31 Thread Ahmad Fatoum
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- |




[ptxdist] Prepare Image for Raspberry Pi 4

2022-10-28 Thread Joshi, Pranay
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.

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.

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?


Pranay Joshi

Lead Engineer-Firmware Engineering

Drilling Services

Baker Hughes