Hi Martin,

See comments below.

Thanks,
Sandeep

From: [email protected] <[email protected]> 
On Behalf Of Martin Hollingsworth via lists.yoctoproject.org
Sent: Monday, August 10, 2020 3:34 AM
To: [email protected]
Subject: [meta-xilinx] Booting zcu104-zynqmp using meta-xilinx-tools

Hello community,
being new to zcu104 I am having some noob trouble booting core-image-minimal 
from SD using the meta-xilinx-tools and meta-petalinux layers (all on 
rel-v2020.1).

[[Sandeep]] Yes if you want to have complete SD boot flow start from FSBL then 
refer
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841883/Yocto
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842224/Getting+started+with+Yocto+Xilinx+layer
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841862/Install+and+Build+with+Xilinx+Yocto

First, do I understand it correct, that there are two ways to boot:
1) Using u-boot SPL as described in meta-xilinx-bsp/README.building.md section 
"Using SPL flow" and meta-xilinx-bsp/README.booting.md. These README applies 
only if I build only meta-xilinx, correct?

[[Sandeep]] Yes that's correct
2) Using the Xilinx FSBL as described Xilinx User Guide UG1283 (UG1283 "Bootgen 
User Guide"). Bootgen is applied by building meta-xilinx-tools and including 
the variables described in README.md, correct?

To build core-image-minimal using the Xilinx FSBL, I setup my build environment 
like:
1) repo init -u https://github.com/Xilinx/yocto-manifests.git -b rel-v2020.1
This bases the build/conf/ folder onto the conf samples from meta-petalinux.
2) Add the following lines to local.conf
MACHINE ?= "zcu104-zynqmp"
HDF_BASE = "file://"
HDF_PATH = "${TOPDIR}/../my-hardware-file.xsa"
IMAGE_INSTALL_append = " xilinx-bootbin"
Add all BIF_ variables from 
meta-xilinx-tools/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc

After baking the image with "bitbake core-image-minimal", how do I boot? When I 
follow meta-xilinx-bsp/README.booting.md u-boot hangs in boot selection with 
"Wrong image format for "source" command". Alternatively, I cannot follow the 
booting instructions from UG1283 Chapter Appx A: Use Case: Booting Linux, as no 
image.ub file has been created by bitbake.

My Question: How do I boot this board using Xilinx FSBL? Where am I taking a 
wrong turn here? Can anyone recommend me some additional reading material on 
this issue?
[[Sandeep]]
If you are using your own HDF/XSA then specify the XSA/XSA path else build will 
use pre-defined XSA, When you set the machine-name to xilinx eval boards then 
it pulls the XSA from pre-defined XSA path
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842224/Getting+started+with+Yocto+Xilinx+layer
https://github.com/Xilinx/hdf-examples/tree/master/zcu104-zynqmp

Copy BOOT-.bin, Image.bin, system.dtb, boot.src and rootfs.cpio.gz-u-boot.


  1.  cp 
${TMDDIR}/deploy/images/zcu104-zynqmp/BOOT-zcu104-zynqmp--<timestamp>.bin 
/media/sdcard/BOOT.bin
  2.  cp 
${TMDDIR}/deploy/images/zcu104-zynqmp/Image-zcu104-zynqmp-<timestamp>.bin 
/media/sdcard/Image.bin
  3.  cp 
${TMDDIR}/deploy/images/zcu104-zynqmp/zcu104-zynqmp-system-<timestamp>.bin 
/media/sdcard/system.dtb
  4.  cp ${TMDDIR}/deploy/images/zcu104-zynqmp/ 
petalinux-image-minimal-zcu111-zynqmp-<timestamp>.cpio.gz.u-boot 
/media/sdcard/rootfs.cpio.gz.u-boot
  5.  Now modify the boot.src as per your convenient with ramdsik or ext4 etc 
..., Sample for INITRD SD boot flow.
setenv bootargs $bootargs earlycon console=ttyPS0,115200 clk_ignore_unused 
root=/dev/ram0 rw
fatload mmc $sdbootdev:$partid 0x04000000 rootfs.cpio.gz.u-boot;
booti 0x00200000 0x04000000 0x00100000



Thank you all and regards,
Martin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4733): 
https://lists.yoctoproject.org/g/meta-xilinx/message/4733
Mute This Topic: https://lists.yoctoproject.org/mt/76101270/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to