u-boot on raspberry PI4 #help


leonid.lazarev@...
 

Hello all,
 
I am trying to build AGL image for raspberry PI 4 board with u-boot support.
 
I've set the option RPI_USE_U_BOOT = "1" in configuration file build/conf/local.conf and run the build bitbake agl-demo-platform.
Build is successful, but the boot partition doesn't contain the u-boot related files (u-boot.bin. boot.src), there is only the native RPI4 boot files are on the disk: kernel8.img, dtb and etc. 
 
It is interesting, but u-boot files (u-boot.bin. boot.src) present in the deploy directory: build/tmp/deploy/images/raspberrypi4. Looks like they are built, but not included in the final image.
 
So there are questions:
 
1) Does AGL build support the RPI4 with u-boot?
2) What is the correct way to include u-boot in the AGL build for raspberry PI4?
 
branch: I use master before dunfell integration.
 
Best Regards
Leonid Lazarev


Jan Simon Moeller
 

Hi!

U-Boot.bin will be renamed to kernel8.bin in the boot partition so it is loaded as if it were the kernel.

Check the md5sums of the files, should be equal.

Best,
JS

<leonid.lazarev@...> schrieb am Mo., 11. Mai 2020, 10:42:

Hello all,
 
I am trying to build AGL image for raspberry PI 4 board with u-boot support.
 
I've set the option RPI_USE_U_BOOT = "1" in configuration file build/conf/local.conf and run the build bitbake agl-demo-platform.
Build is successful, but the boot partition doesn't contain the u-boot related files (u-boot.bin. boot.src), there is only the native RPI4 boot files are on the disk: kernel8.img, dtb and etc. 
 
It is interesting, but u-boot files (u-boot.bin. boot.src) present in the deploy directory: build/tmp/deploy/images/raspberrypi4. Looks like they are built, but not included in the final image.
 
So there are questions:
 
1) Does AGL build support the RPI4 with u-boot?
2) What is the correct way to include u-boot in the AGL build for raspberry PI4?
 
branch: I use master before dunfell integration.
 
Best Regards
Leonid Lazarev


leonid.lazarev@...
 

Hi, 

Thanks for comment, unfortunately, md5sums are different.
But in any case the boot.scr is not located in the boot partition, but it is important for u-boot loading.

/Leonid


Jan Simon Moeller
 

Hi Leonid,

I rebuilt the image here and I can see the same issue. Investigating.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org


On Mon, May 11, 2020 at 10:59 AM <leonid.lazarev@...> wrote:
Hi, 

Thanks for comment, unfortunately, md5sums are different.
But in any case the boot.scr is not located in the boot partition, but it is important for u-boot loading.

/Leonid


Jan Simon Moeller
 

Hi Leonid,


Best regards,
Jan-Simon
------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org


On Mon, May 11, 2020 at 5:42 PM Jan Simon Moeller via lists.automotivelinux.org <jsmoeller=linuxfoundation.org@...> wrote:

Hi Leonid,

I rebuilt the image here and I can see the same issue. Investigating.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org


On Mon, May 11, 2020 at 10:59 AM <leonid.lazarev@...> wrote:
Hi, 

Thanks for comment, unfortunately, md5sums are different.
But in any case the boot.scr is not located in the boot partition, but it is important for u-boot loading.

/Leonid


leonid.lazarev@...
 

Hi Jan-Simon.

Thanks a lot for your support. We will base on these changes in our activities.

Best Regards
Leonid Lazarev