[meta-xilinx] Kernel Panic: SD Boot on zcu102-zynqmp

Jason Wu jason.wu.misc at gmail.com
Tue Mar 21 21:44:42 PDT 2017

On 22/03/2017 2:42 PM, Jason Wu wrote:
> On 22/03/2017 2:19 AM, Giordon Stark wrote:
>> Hi all,
>> We've got a rev 1.0 board (HW-Z1-ZCU102) which we're trying to do an
>> FSBL boot (seeing the lack of success with SPL at the moment in the
>> meta-xilinx mailing list). There are a few issues:
>> - uEnv.txt variables set for the device tree file as well as the kernel
>> image do not seem to be understood by u-boot at all [it keeps asking for
>> system.dtb or "Image" even if we set the variable correctly). For now,
>> we just renamed the files to get things working.
>> - a kernel panic occurs after we manage to change the bootargs. Here is
>> the kernel
>> panic: https://gist.github.com/anonymous/055a978826d0a2adaf87e7b1f3ca0c70.
>> This looks highly similar
>> to https://lists.yoctoproject.org/pipermail/meta-xilinx/2016-May/001691.html but
>> I'm not sure if there was a solution?
>> The uEnv.txt looks
>> like: https://gist.github.com/kratsg/0598f6965deb0c4a03bafb64d9d01c37 
>> for us right now. 
>> I used the evaluation board bitstream, with Xilinx SDK (2016.4) to
>> create an FSBL.elf file (named fsbl.elf) as well as a boot image that
>> contains the u-boot.elf generated from bitbake (as a datafile in the
>> third slot).
> You need to make sure your FSBL matches the dts/dtb you are used.
> I am using hybrid images. I use FSBL + PMU from the system I generated
> and  ATF + U-boot + kernel + rootfs + dtb from meta-xilinx. I create the
> vivado design base on the DTS. I did have some changes to u-boot and
> kernel dts. This will give full working system. IRC, MMC + sata is not
> working for me with SPL.
>> *Some side notes:*
>> - the boot from SD Card was not possible until we set the switches to
>> SW[4:1] = 0001 (the switch at "1" is flipped to "ON" side) instead of
>> the suggested 0x5 or 0xE (neither of which worked).
> IRC 0xE is 0001 on the sw[4:1].
>> - our bootargs initially set to "root=/dev/mmcblk0p2 rw rootwait" but
>> everything hung at the "Starting kernel..." stage
>>   - changing the bootargs to "earlycon=cdns,mmio,0xFF000000,115200n8
>> root=/dev/mmcblk0p2 rw rootwait cma=256M" gets us past the hanging
>> "Starting kernel..." stage, but leads to the kernel panic above
>> - we are using "morty" everywhere. Should I change to master for
>> meta-xilinx?
> I think the best is for you to post your kernel panic message.
my bad, i did not see you have post the kernel panic log. The problem
you have is because you did not have the ATF loaded. You need to create
your boot.bin with atf.

Best regards,

> Best regards,
> Jason
>> Does anyone know what else we need to do?
>> Thanks!
>> Giordon

More information about the meta-xilinx mailing list