0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看威廉希尔官方网站 视频
  • 写文章/发帖/加入社区
会员中心
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示

AMD Xilinx SoC:定制PetaLinux中的FSBL

jf_pJlTbmA9 来源:博客园-HankFu 作者:博客园-HankFu 2023-07-10 17:05 次阅读

需求
客户为AMD Xilinx SoC创建了PetaLinux工程。需要定制PetaLinux中的FSBL。

PetaLinux默认从内部指定的源取代码。

取出FSBL代码
使用命令“petalinux-devtool modify fsbl-firmware”, 可以取出FSBL代码到目录“components/yocto/workspace/sources/fsbl-firmware/”。FSBL的主代码是文件“lib/sw_apps/zynq_fsbl/src/main.c”。

修改目录“components/yocto/workspace/sources/fsbl-firmware/”中的代码,会影响以后在PetaLinux中的编译的FSBL。

编译FSBL代码
使用命令“petalinux-build -c fsbl-firmware -x distclean && petalinux-build -c fsbl-firmware”,能编译FSBL代码,会导入目录“components/yocto/workspace/sources/fsbl-firmware/”中的代码,使其生效。

编译目录
编译时,PetaLinux会把目录“components/yocto/workspace/sources/fsbl-firmware/”中的代码,复制到类似下面的目录。

build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/fsbl-firmware-2021.2+git999/fsbl-firmware/zynq_fsbl_bsp

PetaLinux接着在上述目录中执行编译。上述目录也包含单板相关的ps7_init或者psu_init文件。

版本更改后,上述目录的名称可能变化。

注意事项
从PetaLinux 2021.1起,FSBL的 recipe 名称,从fsbl.bb改为了fsbl-firmware.bb。编译时,要使用fsbl-firmware,而不是fsbl。

从PetaLinux 2021.1起,PLM的 recipe 名称,从plm.bb改为了plm-firmware.bb。

测试环境
ZC706 单板
PetaLinux 2021.2

额外信息
外部目录信息
使用外部目录的源代码编译,会打印字符串“compiling from external source tree”。

NOTE: fsbl-firmware: compiling from external source tree /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/workspace/sources/fsbl-firmware

编译成功的信息

[INFO] Sourcing buildtools
[INFO] Building fsbl-firmware
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake fsbl-firmware
NOTE: Started PRServer with DBfile: /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 38015, PID: 62600
Loading cache...done.
Loaded 5126 entries from dependency cache.
Parsing recipes...done.
Parsing of 3476 .bb files complete (3469 cached, 7 parsed). 5133 targets, 268 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks...done.
Sstate summary: Wanted 1 Found 1 Missed 0 Current 103 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Running task 1 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_populate_lic)
NOTE: Running task 3 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_deploy_source_date_epoch)
NOTE: Running noexec task 350 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_rm_work_all)
NOTE: Running task 363 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_fetch)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_lic: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_fetch: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_fetch: Succeeded
NOTE: Running task 391 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_prepare_recipe_sysroot)
NOTE: Running task 392 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_unpack)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_lic: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_unpack: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_unpack: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 393 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_create_yaml)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_create_yaml: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_create_yaml: Succeeded
NOTE: Running task 394 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_configure)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_configure: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_configure: Succeeded
NOTE: Running task 395 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_compile)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_compile: Started
NOTE: fsbl-firmware: compiling from external source tree /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/workspace/sources/fsbl-firmware
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_compile: Succeeded
NOTE: Running task 396 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_install)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_install: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_install: Succeeded
NOTE: Running task 397 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_populate_sysroot)
NOTE: Running task 398 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_package)
NOTE: Running task 399 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_deploy)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_sysroot: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_sysroot: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package: Succeeded
NOTE: Running task 400 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_packagedata)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_packagedata: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_packagedata: Succeeded
NOTE: Running task 401 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_package_qa)
NOTE: Running task 402 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_package_write_rpm)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package_qa: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package_write_rpm: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package_write_rpm: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_package_qa: Succeeded
NOTE: Running noexec task 403 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_build)
NOTE: Tasks Summary: Attempted 403 tasks of which 386 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built fsbl-firmware

编译失败的信息
如果故意在代码添加错误,会得到类似下面的信息。

[INFO] Sourcing buildtools
[INFO] Building fsbl-firmware
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake fsbl-firmware
NOTE: Started PRServer with DBfile: /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34645, PID: 6208
Loading cache...done.
Loaded 5126 entries from dependency cache.
Parsing recipes...done.
Parsing of 3476 .bb files complete (3469 cached, 7 parsed). 5133 targets, 268 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks...done.
Sstate summary: Wanted 1 Found 1 Missed 0 Current 103 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Running task 1 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_populate_lic)
NOTE: Running task 3 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_deploy_source_date_epoch)
NOTE: Running noexec task 350 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_rm_work_all)
NOTE: Running task 363 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_fetch)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_lic: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_fetch: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_fetch: Succeeded
NOTE: Running task 391 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_prepare_recipe_sysroot)
NOTE: Running task 392 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_unpack)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_populate_lic: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_unpack: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_unpack: Succeeded
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 393 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_create_yaml)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_create_yaml: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_create_yaml: Succeeded
NOTE: Running task 394 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_configure)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_configure: Started
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_configure: Succeeded
NOTE: Running task 395 of 403 (/home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_compile)
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_compile: Started
NOTE: fsbl-firmware: compiling from external source tree /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/workspace/sources/fsbl-firmware
Log data follows:
| DEBUG: Executing python function externalsrc_compile_prefunc
| NOTE: fsbl-firmware: compiling from external source tree /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/workspace/sources/fsbl-firmware
| DEBUG: Python function externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j1
| make -C zynq_fsbl_bsp
| make[1]: Entering directory '/proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/fsbl-firmware-2021.2+git999/fsbl-firmware/zynq_fsbl_bsp'
| make --no-print-directory seq_libs
| Running Make include in ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src
| make -C ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -g -Wall -Wextra -fno-tree-loop-distribute-patterns"
| Running Make include in ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_11/src
.......................
| make -C ps7_cortexa9_0/libsrc/xilffs_v4_6/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -g -Wall -Wextra -fno-tree-loop-distribute-patterns"
| xtime_l.c:45:9: note: '#pragma message: For the sleep routines, Global timer is being used'
|    45 | #pragma message ("For the sleep routines, Global timer is being used")
|       |         ^~~~~~~
| Finished building libraries parallelly.
| make --no-print-directory archive
| arm-none-eabi-ar -r  ps7_cortexa9_0/lib/libxil.a ps7_cortexa9_0/lib/abort.o ps7_cortexa9_0/lib/asm_vectors.o ps7_cortexa9_0/lib/boot.o ps7_cortexa9_0/lib/close.o ps7_cortexa9_0/lib/cpputest_time.o ps7_cortexa9_0/lib/cpu_init.o ps7_cortexa9_0/lib/errno.o ps7_cortexa9_0/lib/_exit.o ps7_cortexa9_0/lib/fcntl.o ps7_cortexa9_0/lib/fstat.o ps7_cortexa9_0/lib/getpid.o ps7_cortexa9_0/lib/inbyte.o ps7_cortexa9_0/lib/isatty.o ps7_cortexa9_0/lib/kill.o ps7_cortexa9_0/lib/lseek.o ps7_cortexa9_0/lib/_open.o ps7_cortexa9_0/lib/open.o ps7_cortexa9_0/lib/outbyte.o ps7_cortexa9_0/lib/print.o ps7_cortexa9_0/lib/putnum.o ps7_cortexa9_0/lib/read.o ps7_cortexa9_0/lib/_sbrk.o ps7_cortexa9_0/lib/sbrk.o ps7_cortexa9_0/lib/sleep.o ps7_cortexa9_0/lib/time.o ps7_cortexa9_0/lib/translation_table.o ps7_cortexa9_0/lib/unlink.o ps7_cortexa9_0/lib/usleep.o ps7_cortexa9_0/lib/vectors.o ps7_cortexa9_0/lib/write.o ps7_cortexa9_0/lib/xadcps_g.o ps7_cortexa9_0/lib/xadcps_intr.o ps7_cortexa9_0/lib/xadcps.o ps7_cortexa9_0/lib/xadcps_selftest.o ps7_cortexa9_0/lib/xadcps_sinit.o ps7_cortexa9_0/lib/xcoresightpsdcc.o ps7_cortexa9_0/lib/xdevcfg_g.o ps7_cortexa9_0/lib/xdevcfg_hw.o ps7_cortexa9_0/lib/xdevcfg_intr.o ps7_cortexa9_0/lib/xdevcfg.o ps7_cortexa9_0/lib/xdevcfg_selftest.o ps7_cortexa9_0/lib/xdevcfg_sinit.o ps7_cortexa9_0/lib/xdmaps_g.o ps7_cortexa9_0/lib/xdmaps_hw.o ps7_cortexa9_0/lib/xdmaps.o ps7_cortexa9_0/lib/xdmaps_selftest.o ps7_cortexa9_0/lib/xdmaps_sinit.o ps7_cortexa9_0/lib/xemacps_bdring.o ps7_cortexa9_0/lib/xemacps_control.o ps7_cortexa9_0/lib/xemacps_g.o ps7_cortexa9_0/lib/xemacps_hw.o ps7_cortexa9_0/lib/xemacps_intr.o ps7_cortexa9_0/lib/xemacps.o ps7_cortexa9_0/lib/xemacps_sinit.o ps7_cortexa9_0/lib/xgpio_extra.o ps7_cortexa9_0/lib/xgpio_g.o ps7_cortexa9_0/lib/xgpio_intr.o ps7_cortexa9_0/lib/xgpio.o ps7_cortexa9_0/lib/xgpiops_g.o ps7_cortexa9_0/lib/xgpiops_hw.o ps7_cortexa9_0/lib/xgpiops_intr.o ps7_cortexa9_0/lib/xgpiops.o ps7_cortexa9_0/lib/xgpiops_selftest.o ps7_cortexa9_0/lib/xgpiops_sinit.o ps7_cortexa9_0/lib/xgpio_selftest.o ps7_cortexa9_0/lib/xgpio_sinit.o ps7_cortexa9_0/lib/xiicps_g.o ps7_cortexa9_0/lib/xiicps_hw.o ps7_cortexa9_0/lib/xiicps_intr.o ps7_cortexa9_0/lib/xiicps_master.o ps7_cortexa9_0/lib/xiicps.o ps7_cortexa9_0/lib/xiicps_options.o ps7_cortexa9_0/lib/xiicps_selftest.o ps7_cortexa9_0/lib/xiicps_sinit.o ps7_cortexa9_0/lib/xiicps_slave.o ps7_cortexa9_0/lib/xiicps_xfer.o ps7_cortexa9_0/lib/xil_assert.o ps7_cortexa9_0/lib/xil_cache.o ps7_cortexa9_0/lib/xil_clocking.o ps7_cortexa9_0/lib/xil-crt0.o ps7_cortexa9_0/lib/xil_exception.o ps7_cortexa9_0/lib/xil_mem.o ps7_cortexa9_0/lib/xil_misc_psreset_api.o ps7_cortexa9_0/lib/xil_mmu.o ps7_cortexa9_0/lib/xil_printf.o ps7_cortexa9_0/lib/xil_sleepcommon.o ps7_cortexa9_0/lib/xil_sleeptimer.o ps7_cortexa9_0/lib/xil_spinlock.o ps7_cortexa9_0/lib/xil_testcache.o ps7_cortexa9_0/lib/xil_testio.o ps7_cortexa9_0/lib/xil_testmem.o ps7_cortexa9_0/lib/xil_util.o ps7_cortexa9_0/lib/xl2cc_counter.o ps7_cortexa9_0/lib/xplatform_info.o ps7_cortexa9_0/lib/xpm_counter.o ps7_cortexa9_0/lib/xqspips_g.o ps7_cortexa9_0/lib/xqspips_hw.o ps7_cortexa9_0/lib/xqspips.o ps7_cortexa9_0/lib/xqspips_options.o ps7_cortexa9_0/lib/xqspips_selftest.o ps7_cortexa9_0/lib/xqspips_sinit.o ps7_cortexa9_0/lib/xscugic_g.o ps7_cortexa9_0/lib/xscugic_hw.o ps7_cortexa9_0/lib/xscugic_intr.o ps7_cortexa9_0/lib/xscugic.o ps7_cortexa9_0/lib/xscugic_selftest.o ps7_cortexa9_0/lib/xscugic_sinit.o ps7_cortexa9_0/lib/xscutimer_g.o ps7_cortexa9_0/lib/xscutimer.o ps7_cortexa9_0/lib/xscutimer_selftest.o ps7_cortexa9_0/lib/xscutimer_sinit.o ps7_cortexa9_0/lib/xscuwdt_g.o ps7_cortexa9_0/lib/xscuwdt.o ps7_cortexa9_0/lib/xscuwdt_selftest.o ps7_cortexa9_0/lib/xscuwdt_sinit.o ps7_cortexa9_0/lib/xsdps_card.o ps7_cortexa9_0/lib/xsdps_g.o ps7_cortexa9_0/lib/xsdps_host.o ps7_cortexa9_0/lib/xsdps.o ps7_cortexa9_0/lib/xsdps_options.o ps7_cortexa9_0/lib/xsdps_sinit.o ps7_cortexa9_0/lib/xtime_l.o ps7_cortexa9_0/lib/xttcps_g.o ps7_cortexa9_0/lib/xttcps.o ps7_cortexa9_0/lib/xttcps_options.o ps7_cortexa9_0/lib/xttcps_selftest.o ps7_cortexa9_0/lib/xttcps_sinit.o ps7_cortexa9_0/lib/xuartps_g.o ps7_cortexa9_0/lib/xuartps_hw.o ps7_cortexa9_0/lib/xuartps_intr.o ps7_cortexa9_0/lib/xuartps.o ps7_cortexa9_0/lib/xuartps_options.o ps7_cortexa9_0/lib/xuartps_selftest.o ps7_cortexa9_0/lib/xuartps_sinit.o ps7_cortexa9_0/lib/xusbps_endpoint.o ps7_cortexa9_0/lib/xusbps_g.o ps7_cortexa9_0/lib/xusbps_hw.o ps7_cortexa9_0/lib/xusbps_intr.o ps7_cortexa9_0/lib/xusbps.o ps7_cortexa9_0/lib/xusbps_sinit.o
| /opt/Xilinx/peta/2021.2/tools/xsct//gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: creating ps7_cortexa9_0/lib/libxil.a
| Finished building libraries
| make[1]: Leaving directory '/proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/fsbl-firmware-2021.2+git999/fsbl-firmware/zynq_fsbl_bsp'

| arm-none-eabi-gcc  -O2 -c -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard  -c fsbl_hooks.c -o fsbl_hooks.o -Izynq_fsbl_bsp/ps7_cortexa9_0/include -I.
| arm-none-eabi-gcc  -O2 -c -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard  -c image_mover.c -o image_mover.o -Izynq_fsbl_bsp/ps7_cortexa9_0/include -I.
| arm-none-eabi-gcc  -O2 -c -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard  -c main.c -o main.o -Izynq_fsbl_bsp/ps7_cortexa9_0/include -I.
| main.c:216:1: error: unknown type name 'hankf_error_ffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'
|   216 | hankf_error_ffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
|       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| main.c:218:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hankf_error_ffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'
|   218 | hankf_error_ffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
|       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| main.c:218:1: error: unknown type name 'hankf_error_ffdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'
| make: *** [Makefile:35: main.o] Error 1
| WARNING: /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680:165 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| 	#1: bbfatal_log, /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680, line 165
| 	#2: die, /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680, line 175
| 	#3: oe_runmake, /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680, line 170
| 	#4: do_compile, /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680, line 152
| 	#5: main, /proj/hankf/hankf/zc706/v212/zc706-v211-bsp-peta/build/tmp/work/zc706-xilinx-linux-gnueabi/fsbl-firmware/2021.2+git999-r0/temp/run.do_compile.7680, line 194
| 
| Backtrace (metadata-relative locations):
| 	#1: bbfatal_log, /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/core/meta/classes/logging.bbclass, line 72
| 	#2: die, /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/core/meta/classes/base.bbclass, line 56
| 	#3: oe_runmake, /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/core/meta/classes/base.bbclass, line 65
| 	#4: do_compile, /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx-tools/classes/xsctapp.bbclass, line 25
NOTE: recipe fsbl-firmware-2021.2+git999-r0: task do_compile: Failed
NOTE: Tasks Summary: Attempted 395 tasks of which 386 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/hankf/proj/zc706/v212/zc706-v211-bsp-peta/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2021.2.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

本文转载自:博客园

审核编辑:汤梓红

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
  • amd
    amd
    +关注

    关注

    25

    文章

    5466

    浏览量

    134109
  • soc
    soc
    +关注

    关注

    38

    文章

    4163

    浏览量

    218174
  • Xilinx
    +关注

    关注

    71

    文章

    2167

    浏览量

    121321
  • 编译
    +关注

    关注

    0

    文章

    657

    浏览量

    32858
收藏 人收藏

    评论

    相关推荐

    ZCU102在PetaLinux超过2G字节内存的地方在哪里?

    -ZCU102-v2016.2-final.bsp)使用PetaLinux构建Linux映像(包括u-boot,FSBL等)。 Linux启动并运行正常。我的问题是Linux中有2Gbytes的总内存(易于检查“top”)但是ZCU102板有
    发表于 09-27 10:12

    如何使用ZCU102 Petalinux教程获取BSP?

    使用Vivado2017.3和petalinux 2017.3在XAPP的PDF,wiki.xilinx.com上的wiki以及Xilinx嵌入式设计教程(UG1209)之间,我看过
    发表于 10-21 07:46

    Petalinux许可证无效

    启动Xilinx SDK,当我在控制台窗口(在sdk gui)返回SDK时:SDK Environment = /opt/pkg/petalinux
    发表于 04-06 10:24

    使用 PCIE 更新 AMD ZYNQ™ 的 QSPI Flash 参考设计

    至 ZYNQ 的 S_AXI_GP0,以访问 PS QSPI 控制器。 BD 需要分配 XDMA 的 M_AXI 地址如下,可以用 AMD Vivado™ 的自动地址分配工具完成
    发表于 11-30 18:49

    基于Ubuntu的PetaLinux安装教程

    PetalLinux是Xilinx公司推出的嵌入式Linux开发工具,专门针对Xilinx公司的FPGA SoC芯片和开发板,用户可以在PetaLinux工具的帮助下进行完整的开发流程
    的头像 发表于 07-04 07:32 6521次阅读

    Docker 构建 PetaLinux 开发环境应用教程

    0. 背景 0.1 PetaLinux 是什么 PetaLinuxXilinx 推出的用于在其自家 SoC 上构建嵌入式 Linux 的一套工具集,集成了编译、调试、仿真等众多工
    发表于 11-15 11:24 2374次阅读

    petalinux(二)开启petalinux内核调试模式

    要调试基于Xilinx SDK的Linux内核模块,必须使能 KERNEL_DEBUG_INFO和KERNEL_DEBUGGING。这篇博文全面记录了在Petalinux是如何处理的。解决方案
    发表于 11-18 13:46 1.1w次阅读
    <b class='flag-5'>petalinux</b>(二)开启<b class='flag-5'>petalinux</b>内核调试模式

    Xilinx FSBL如何操作启动Zynq器件

    了解Xilinx FSBL如何操作以启动Zynq器件。 包括程序执行概述,调试技巧以及有关特定引导设备的信息。 还包括FSBL角度的启动安全性简要概述。
    的头像 发表于 11-23 06:32 4585次阅读

    Docker里玩转PetaLinux的上手教程

    作者:Alex He,Xilinx 嵌入式威廉希尔官方网站 专家 Xilinx 嵌入式威廉希尔官方网站 专家 Alex He 与大家分享在Docker里玩转PetaLinux的上手教程~ PetaLinux
    的头像 发表于 12-25 14:30 2485次阅读

    如何安装PetaLinux 2020.1 ubuntu

    安装好vitis后,继续安装petalinux,本人纯纯新手,记录过程就好。Xilinx官网下载petalinux2020.1,还有sstate aarch64 downloads,前者是ZCU102,后者是mirror用,还有
    的头像 发表于 02-08 10:04 2182次阅读

    PetaLinux 2020.1 ubuntu 安装

    安装好vitis后,继续安装petalinux,本人纯纯新手,记录过程就好。Xilinx官网下载petalinux2020.1,还有sstate aarch64 downloads,前者是ZCU102,后者是mirror用,还有
    发表于 01-27 08:05 11次下载
    <b class='flag-5'>PetaLinux</b> 2020.1 ubuntu 安装

    Petalinux工程设备树的介绍

    设备树是 Petalinux kernel 的关键组件,接下来以 2020.1 版本为例,为大家介绍一下在Xilinx Petalinux 工程的设备树是如何产生,配置以及修改
    的头像 发表于 02-20 16:32 6912次阅读
    <b class='flag-5'>Petalinux</b>工程<b class='flag-5'>中</b>设备树的介绍

    petalinux安装过程

    Xilinx提供的手册《ug1144-petalinux-tools-reference-guide_chn》,该文档有说明petalinux版本支持的平台,本次使用的Ubuntu16.04。
    的头像 发表于 12-01 09:22 3156次阅读

    Rpi SenseHAT与AMD-Xilinx Kria KR260和Petalinux的接口

    电子发烧友网站提供《Rpi SenseHAT与AMD-Xilinx Kria KR260和Petalinux的接口.zip》资料免费下载
    发表于 07-13 10:18 0次下载
    Rpi SenseHAT与<b class='flag-5'>AMD-Xilinx</b> Kria KR260和<b class='flag-5'>Petalinux</b>的接口

    基于AMD SOC的QT应用程序开发

    基于AMD SOC的QT应用程序开发方法主要有两种方式:一种方式是基于petalinux工程新建一个application将源码导入在使用petalinux-build进行编译部署
    的头像 发表于 08-04 15:52 1110次阅读
    基于<b class='flag-5'>AMD</b> <b class='flag-5'>SOC</b>的QT应用程序开发