linux4sam / meta-atmel

OpenEmbedded/Yocto Project layer for for Microchip SoC (aka AT91)
https://www.linux4sam.org/bin/view/Linux4SAM/YoctoProject
MIT License
91 stars 120 forks source link

Images generated for SAMA5D3 on ubuntu 22.04. #262

Open simonkbaby opened 11 months ago

simonkbaby commented 11 months ago

Hello,

I am building for SAMA5D3 Linux ECP-EVB-KSZ9477 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux. I am referring the link https://raw.githubusercontent.com/linux4sam/meta-atmel/kirkstone/README for the build steps.

I was able to build in yocto the demo image as well as headless image. However I am not seeing some of the files in the deploy/image directory in the correct format (compared to the images provided in demo image). I am using sam-ba tool and the flashboard script from windows to flash the image into NAND flash.

The yocto generated file root file system is in tar file format where as the script is looking for ubi file format. Also the uboot end file is in text file where as the script is looking for binary file format.

below are the files expecting in the script for flashing.

set bootstrapFile "$env(O)/at91bootstrap.bin" set ubootFile "$env(O)/u-boot.bin" set kernelFile "$env(O)/zImage" set rootfsFile "$env(O)/rootfs.ubi" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Yocto generated file in tar.gz format. set build_uboot_env "yes"

Additional files to load

set ubootEnvFile "ubootEnvtFileNandFlash.bin" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>yocto generated file in .env (text file format and not in binary format).

Also I don’t see file sdcard.img in the case of -sd build option .

Can someone please help. Is there a separate script for flashing the images generated from yocto build?

Regards Simon