18)最后,就是到PetaLinux项目根目录,petalinux-build构建PetaLinux项目、采用如下命令,基于zynq_fsbl.elf建立BOOT.bin,生成的文件存放在images/linux目录中: petalinux-package --boot --fsbl --fpga --u-boot < U-boot.elf> 19)接下来就是,遵循SDK Kernel Debugging部分开始内核调试。
对了很重要的一点:在官方的的fsbl工程中是有调试开关的,在src/fsbl_debug.h中增加FSBL_DEBUG_INFO的宏定义,这样就将fsbl中所有的调试信息打开,启动过程中会有各种打印信息。 在 ZYNQ SoC 的启动和配置过程中, 既需要 PS 的配置信息,又需要 PL 的配置信息。 为了简化配置 PS和 PL 的处理过程,...
使用命令“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/”中的代码,复制到类似下...
SRC_URI_append += " file://0001_fsbl_patch.patch" FILESEXTRAPATHS_prepend := "${THISDIR}/files:" #Enable FSBL DEBUG YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG_INFO -DXPS_BOARD_ZCU102" 4.将 0001_fsbl_patch.patch 从 fsbl_patch 文件夹(从附加到此博客的 zip 文件)添加到‘files’文...
YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG_INFO -DXPS_BOARD_ZCU102" 4.将 0001_fsbl_patch.patch 从 fsbl_patch 文件夹(从附加到此博客的 zip 文件)添加到‘files’文件夹,这样它就是 fsbl_%.bbappend 文件下的一层了。它会用“Hello Linux PDC” printf 语句更新源代码。
+#define FSBL_DEBUG_INFO + #define DEBUG_GENERAL 0x00000001 /* general debug messages */ #define DEBUG_INFO 0x00000002 /* More debug information */ diff -uNr zynq_fsbl_old/src/fsbl.h zynq_fsbl_new/src/fsbl.h --- zynq_fsbl_old/src/fsbl.h 2021-06-17 09:52:02.062166000 +0800 ...
18) Save and close the file. You are almost set with your Kernel Debug. For more information refer to(Xilinx Answer 61332) 19) Finally, go to your PetaLinux project root directory and build your PetaLinux project withpetalinux-build. Also, build your BOOT.bin using the zynq_fsbl.elf file...
fsbl_debug.h - (optional) Add a #define FSBL_DEBUG_INFO at approximately line 75 (prior to the #define for DEBUG_GENERAL). This puts the FSBL into debug mode for additional information during boot. See the Zynq Software Developers Guide (UG821) for complete details main.c At approximately...
更换PetaLinux工程的HDF/XSA文件后,PetaLinux工程编译出现FSBL do_configureh错误。使用命令“petalinux-build -x mrproper -f ”,彻底清除工程,再编译工程,不再有问题。 错误记录如下: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 DEBUG: Executing shell function do_configure MISC_ARG is -yamlconf /proj...
INFO: Checking free disk space INFO: Checking installed tools INFO: Checking installed development libraries INFO: Checking network and other services WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution ...