[Buildroot] [PATCH v1 1/2] add configs/zynqmp_kria_kv260_defconfig

Wesley Revens wesley at sonifex.co.uk
Fri May 6 11:17:42 UTC 2022


Hi Neal,

I have been working on a Buildroot image for the Kria recently so my 
company can evaluate the K26 SOM.
I reached a similar position to what has been included in your patch 
however I have not been able to
get the Kria to boot using the U-Boot SPL.

I have tried out your patch and found that the Linux kernel is booting 
fine from the SD card using
the pre-programmed boot.bin that is already present on the Kria. 
However, after building using your patch,
I tried uploading the boot.bin that appears in buildroot/output/images 
to my Kria using the
"Boot Image Recovery Tool" web UI that runs on the Kria if you hold down 
the FWUEN button
during reset of the board. On boot, I then get the following output from 
U-Boot SPL:

U-Boot SPL 2022.01 (May 06 2022 - 11:21:55 +0100)
PMUFW:  v1.1
Loading new PMUFW cfg obj (2016 bytes)
Silicon version:        3
EL Level:       EL3
Chip ID:        xck26
Multiboot:      64
Trying to boot from SPI

Then nothing else happens.

There is a big difference in the file sizes for the boot.bin from 
buildroot/output/images and the BOOT.BIN
I downloaded from 
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM#Boot-Firmware-Updates
so I am obviously missing something somewhere. I think all the 
components are being built but I'm not sure
they are being packaged in a similar way to how the pre-loaded boot.bin 
is laid out (or I am using the wrong output file!)

In my own testing I was able to test the u-boot.img produced by my 
Buildroot build but I had to use the
Xilinx bootgen tools and use the Xilinx fsbl rather than the U-Boot SPL.

In future, we would like to be able to bypass this step and just use 
whatever Buildroot produces.
I was wondering if you could point me in the right direction.

Regards,

Wesley


On 05/05/2022 16:54, Neal Frager via buildroot wrote:
> This patch adds support for Xilinx Kria KV260 starter kit.
>
> KV260 features can be found here:
> https://www.xilinx.com/products/boards-and-kits/kv260.html
>
> While the Kria SOM is based on a ZynqMP SoC, there are some key
> boot config differences from the other ZynqMP evaluation boards.
>
> 1. There are no boot switches on Kria SOMs. The boot mode is thus
> hard configured for QSPI flash. A pre-programmed boot.bin comes
> with every Starter Kit. U-Boot can then find the Linux kernel and
> file system on the SD card.
>
> Optional instructions for updating the boot.bin in the QSPI flash
> can be found in the readme.txt file and the link below.
>
> https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
>
> 2. Kria SOMs use UART1 for the console instead of UART0. For this
> reason, Kria Starter Kits will use a separate extlinux.conf file
> from other ZynqMP evaluation boards.
<snip>
To unsubscribe click: http://link.sonifex.co.uk/us/?e=1nXvxxPuEp2Zja.ddedfjkAKO6ol



More information about the buildroot mailing list