11-20-2020 11:09 AM
I'm attempting to re-create a petalinux package that a colleague created and put appropriate files under version control. Everything works great for him, but when I try to recreate his build I fail to boot, trying to debug whats going wrong. We are building petalinux into a sysroots package and then generating a boot.bin in Vitis.
So I'm performing these steps to generate a petalinux package based on the configuration controlled items.
Then we do a build in Vitis to get sd card contents and load a ZCU102 with an SD card. I have boot.scr, boot.bin, and image.ub all in one partition on the sd card. If I get my colleagues petalinux images folder and build everything works. If I use the petalinux images I built with the steps aboven it fails with the messages attached.
Seems to be failing when executing the boot.scr contents. I notice my boot.scr and my colleagues boot.scr and different sizes which surprised us. Any insights? Any way to see what command is failing and causing the ' - try 'help'd ' syntax error message?
11-21-2020 05:39 AM
The boot.scr will try to boot the image.ub. It will try to use a selection of boot devices; sd card, qspi, tftp, usb, ect until it finds the image.
In uboot, can you ls in the mounted SD card (This will be mounted automatically), and make sure that the image.ub is there.
If so, then you can just use the uboot commands manually. For example:
If this all boots, then the issue is the boot.scr
11-23-2020 11:26 AM
Thanks for your help!
I Cntrl-C'd a few times to hurry along to the ZynqMp> prompt. Once there I was able to execute the following and petalinux booted successfully.
Based on your post I guess this means the issue is in boot.scr somewhere?
11-23-2020 02:02 PM
You can update the boot.cmd in your petalinux project dir:
fdt_addr=0x1000 imageub_addr=0x2000000 kernel_addr=0x80000 kernel_offset=0x1E00200 kernel_size=0x7800000 kernel_type=image.ub