In yocto build of Renesas RZ/G2UL, it generates "tar.gz" image along with the bootloader and kernel images.
After that, we need to follow manual steps to partition the SD card and put the kernel and rootfs in seperate partition along with the DD of the bootloaders on initial sectors of SD card.
# sudo dd if=/dev/zero of=/dev/sda bs=1M status=progress
# sudo dd if=bootparams-smarc-rzg2ul.bin of=/dev/sda seek=1 count=1
# sudo dd if=bl2-smarc-rzg2ul.bin of=/dev/sda seek=8
# sudo dd if=fip-smarc-rzg2ul.bin of=/dev/sda seek=128
# sudo cp Image-r9a07g043u11-smarc.dtb /media/embedded/RZ_FAT/
# sudo cp <Image>.bin /media/embedded/RZ_FAT/
# cd /media/embedded/RZ_ext/
# sudo tar jxvf <IMAGE>.tar.bz2
To avoid this manual process and do all the above processes in single common steps with command like "DD" (common way of other processor like NXP, TI ) way, do we have any WIC image generation WKS file?
How we can automate this process? (especially flash and prepare SD Card in Windows machine as well - with single wic or image file we can achieve that through different flash writer utility in Windows.)
A fast response would be appreciated.
Thanks and Regards,
Hi Anil,WKS file to make WIC image is not supported yet in current BSP. But it will be supported soon.(It is also possible to make your own WKS file and add to current BSP).> How we can automate this…
As the create_image.sh script in Chris's answer does,
egret said:U-boot can load the kernel and device tree from an ext4 partition.Also, I don't think SMARC RZ/G2UL board and the software support anything that requires a FAT partition (e.g. UEFI).Why…
Hi Anil,WKS file to make WIC image is not supported yet in current BSP. But it will be supported soon.(It is also possible to make your own WKS file and add to current BSP).> How we can automate this process?
Isn't a script file like your command list enough?
Hello HungT,Script file with listed command will not work on windows system.
For windows, wic image is suitable and expected behavior.
Is there any specific reason why we don't follow the standard yocto way for creating single file (like wic) and flash sd card and instead go with this manual process?
Hmmm, are you building the BSP with a Linux machine anyway?