Hi Mark,

On Wed, Feb 3, 2021 at 11:02 PM Mark Hatle
<[email protected]> wrote:
>
> > NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
> > NOTICE:  BL31: v2.2(release):xilinx_rebase_v2.2_2020.1-10-ge6eea88b1
> > NOTICE:  BL31: Built : 06:05:12, Nov 19 2020
>
> You should be able to build the ATF by doing:
>
> MACHINE=zynqmp-generic DISTRO=poky bitbake arm-trusted-firmware
>
Yes, and for the U-Boot SPL flow, my u-boot_%.bbappend then has this:

DEPENDS += "arm-trusted-firmware"

# Required to the bl31.bin into the U-Boot FIT, as our kernel won't
boot without ATF.
do_compile_prepend() {
  cp -aL ${DEPLOY_DIR_IMAGE}/arm-trusted-firmware.bin ${B}/b31.bin
}

# EXTRA_OEMAKE seems not respected, DEVICE_TREE is not set, and PM_CFG
not supported yet in OE
do_configure_append() {
  cd ${B}
  sed -i 
's,^CONFIG_DEFAULT_DEVICE_TREE.*,CONFIG_DEFAULT_DEVICE_TREE="zynqmp-zcu102-rev1.0",g'
.config
  sed -i 's,^CONFIG_OF_LIST.*,CONFIG_OF_LIST="zynqmp-zcu102-rev1.0",g' .config
  sed -i 
's,^CONFIG_PMUFW_INIT_FILE.*,CONFIG_PMUFW_INIT_FILE="${PMU_FIRMWARE_DEPLOY_DIR}/${PMU_FIRMWARE_IMAGE_NAME}.bin",g'
.config
  sed -i 
's,^CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE.*,CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE="${PMU_FIRMWARE_DEPLOY_DIR}/${PMU_CFG_OBJ_IMAGE_NAME}.bin",g'
.>
}

# SPL no longer support legacy images, we need to build a FIT image
do_deploy_append() {
  install -D -m 644 ${B}/u-boot.itb ${DEPLOYDIR}/u-boot.itb
}

Another worry:

Would this still work with a multiconfig setup, as described in
https://github.com/Xilinx/meta-xilinx/blob/master/meta-xilinx-bsp/README.building.md?

I think meta-microblaze layer should *only* be in the pmu
(multi)config, but AFAIK, we do not support a different bblayers.conf
for a multi(config).

Regards,

Leon.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4846): 
https://lists.yoctoproject.org/g/meta-xilinx/message/4846
Mute This Topic: https://lists.yoctoproject.org/mt/80113688/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to