当前位置:首页 > FPGA > Versal ACAP > 正文内容

(二)自定义Versal BSP编译Petalinux

接下来我们配置uboot、内核,弹出uboot页面按两次Esc按键即可退出

chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$ petalinux-config -c u-boot
[INFO] Bitbake is not available, some functionality may be reduced.
[INFO] Using HW file: /home/chanra1n/vd100/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:46149, PID: 1145997
INFO: Specified workspace already set up, leaving as-is
[INFO] Configuring: u-boot
[INFO] bitbake virtual/bootloader -c menuconfig
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:36569, PID: 1146069
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Checking sstate mirror object availability: 100% |##############################################################| Time: 0:00:03
Sstate summary: Wanted 135 Local 0 Mirrors 133 Missed 2 Current 153 (98% match, 99% complete)
NOTE: Executing Tasks
WARNING: u-boot-xlnx-1_2024.01-xilinx-v2024.2+git-r0 do_menuconfig: Terminal gnome is supported but did not start
WARNING: u-boot-xlnx-1_2024.01-xilinx-v2024.2+git-r0 do_menuconfig: Terminal xterm is supported but did not start
Setscene tasks: 288 of 288
Currently  1 running tasks (958 of 959)  99% |############################################################################### |
0: u-boot-xlnx-1_2024.01-xilinx-v2024.2+git-r0 do_menuconfig - 0s (pid 1149212)
Trying to run: screen -r devshell_1149212
[screen is terminating]
Setscene tasks: 288 of 288
Currently  1 running tasks (958 of 959)  99% |############################################################################### |
0: u-boot-xlnx-1_2024.01-xilinx-v2024.2+git-r0 do_menuconfig - 1m0s (pid 1149212)
Setscene tasks: 288 of 288
No currently running tasks (958 of 959)  99% |############################################################################### |
NOTE: Tasks Summary: Attempted 959 tasks of which 951 didn't need to be rerun and all succeeded.

Summary: There were 3 WARNING messages.
[INFO] bitbake virtual/bootloader -c diffconfig
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:34403, PID: 1149910
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)##################         | ETA:  0:00:00
Initialising tasks: 100% |######################################################################################| Time: 0:00:00
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
[INFO] Successfully configured u-boot

And

chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$ petalinux-config -c kernel
[INFO] Bitbake is not available, some functionality may be reduced.
[INFO] Using HW file: /home/chanra1n/vd100/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:36107, PID: 1151562
INFO: Specified workspace already set up, leaving as-is
[INFO] Configuring: kernel
[INFO] bitbake virtual/kernel -c cleansstate
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:35245, PID: 1151634
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)##################         | ETA:  0:00:00
Initialising tasks: 100% |######################################################################################| Time: 0:00:00
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
[INFO] bitbake virtual/kernel -c menuconfig
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:45719, PID: 1152958
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Checking sstate mirror object availability: 100% |##############################################################| Time: 0:00:02
Sstate summary: Wanted 106 Local 0 Mirrors 104 Missed 2 Current 161 (98% match, 99% complete)
NOTE: Executing Tasks
WARNING: linux-xlnx-6.6.40+git-r0 do_menuconfig: Terminal gnome is supported but did not start
WARNING: linux-xlnx-6.6.40+git-r0 do_menuconfig: Terminal xterm is supported but did not start
Setscene tasks: 267 of 267
Currently  1 running tasks (890 of 891)  99% |############################################################################### |
0: linux-xlnx-6.6.40+git-r0 do_menuconfig - 0s (pid 1165869)
Trying to run: screen -r devshell_1165869
[screen is terminating]
Setscene tasks: 267 of 267
Currently  1 running tasks (890 of 891)  99% |############################################################################### |
0: linux-xlnx-6.6.40+git-r0 do_menuconfig - 1m35s (pid 1165869)
Changed configuration saved at:
 /home/chanra1n/vd100/build/tmp/work/versal_generic_xcve2302-xilinx-linux/linux-xlnx/6.6.40+git/linux-versal_generic_xcve2302-standard-build/.config
Recompile will be forced
NOTE: Tasks Summary: Attempted 891 tasks of which 878 didn't need to be rerun and all succeeded.

Summary: There were 3 WARNING messages.
[INFO] bitbake virtual/kernel -c diffconfig
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:40873, PID: 1167183
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Sstate summary: Wanted 53 Local 0 Mirrors 53 Missed 0 Current 92 (100% match, 100% complete)###########         | ETA:  0:00:00
Initialising tasks: 100% |######################################################################################| Time: 0:00:01
NOTE: Executing Tasks
Config fragment has been dumped into:
 /home/chanra1n/vd100/build/tmp/work/versal_generic_xcve2302-xilinx-linux/linux-xlnx/6.6.40+git/fragment.cfg
NOTE: Tasks Summary: Attempted 486 tasks of which 485 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
[INFO] recipetool appendsrcfile -wW /home/chanra1n/vd100/project-spec/meta-user virtual/kernel /home/chanra1n/vd100/build/tmp/work/versal_generic_xcve2302-xilinx-linux/linux-xlnx/6.6.40+git/user_2025-03-09-08-09-00.cfg
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:45325, PID: 1168511
WARNING: /home/chanra1n/vd100/components/yocto/layers/meta-qt5/lib/recipetool/create_qt5.py:133: SyntaxWarning: invalid escape sequence '\s'
  if re.match('^QT\s*[+=]+', line):

WARNING: /home/chanra1n/vd100/components/yocto/layers/meta-qt5/lib/recipetool/create_qt5.py:141: SyntaxWarning: invalid escape sequence '\s'
  elif re.match('^SUBDIRS\s*[+=]+', line):

WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5799 cached, 1 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.

Summary: There was 1 WARNING message.
NOTE: Writing append file /home/chanra1n/vd100/project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend
NOTE: Copying /home/chanra1n/vd100/build/tmp/work/versal_generic_xcve2302-xilinx-linux/linux-xlnx/6.6.40+git/user_2025-03-09-08-09-00.cfg to /home/chanra1n/vd100/project-spec/meta-user/recipes-kernel/linux/linux-xlnx/user_2025-03-09-08-09-00.cfg
[INFO] bitbake virtual/kernel -c cleansstate
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:41963, PID: 1168689
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |###########################################################################################| Time: 0:00:03
Loaded 8453 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:00:01
Parsing of 5800 .bb files complete (5793 cached, 7 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)##################         | ETA:  0:00:00
Initialising tasks: 100% |######################################################################################| Time: 0:00:00
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
[INFO] Successfully configured kernel
chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$

可以选择关闭CPU频率调节:

image.png

最后配置rootfs:

image.png

image.png

image.png

image.png

image.png

然后一个劲Esc退出保存就行

chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$ petalinux-config -c rootfs
[INFO] Bitbake is not available, some functionality may be reduced.
[INFO] Using HW file: /home/chanra1n/vd100/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Menuconfig rootfs
[INFO] Generating configuration files
[INFO] Generating plnxtool conf file
[INFO] Successfully configured rootfs
chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$

最后就可以编译:

petalinux-build && petalinux-package --boot --u-boot --force

日志:

chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$ petalinux-build && petalinux-package --boot --u-boot --force
[INFO] Building project
[INFO] Bitbake is not available, some functionality may be reduced.
[INFO] Using HW file: /home/chanra1n/vd100/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:32893, PID: 1172319
INFO: Specified workspace already set up, leaving as-is
[INFO] bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /home/chanra1n/vd100/build/cache/prserv.sqlite3, Address: 127.0.0.1:33387, PID: 1172391
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |                                                                                          | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################| Time: 0:01:41
Parsing of 5800 .bb files complete (0 cached, 5800 parsed). 8454 targets, 998 skipped, 27 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Checking sstate mirror object availability: 100% |##############################################################| Time: 0:00:38
Sstate summary: Wanted 2413 Local 3 Mirrors 2211 Missed 199 Current 484 (91% match, 93% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6376 tasks of which 5718 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
[INFO] copy to TFTP-boot directory is not enabled
[INFO] Successfully built project
[NOTE] Argument: "--boot" has been deprecated. It is recommended to start using new python command line Argument.
[NOTE] Use: petalinux-package boot [OPTIONS]
[INFO] Getting Default pdi file
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/project-spec/hw-description/pcs_led.pdi"
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/images/linux/plm.elf"
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/images/linux/psmfw.elf"
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/images/linux/system.dtb"
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/images/linux/bl31.elf"
[INFO] File in BOOT BIN: "/home/chanra1n/vd100/images/linux/u-boot.elf"
[INFO] Generating versal binary package BOOT.BIN...
[INFO]

****** Bootgen v2024.2
  **** Build date : Oct 21 2024-10:58:34
    ** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.
    ** Copyright 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved.


[INFO]   : Bootimage generated successfully


[INFO] Generating QEMU boot images...
[INFO] File in qemu_boot.img: /home/chanra1n/vd100/images/linux/BOOT.BIN
[INFO] File in qemu_boot.img: /home/chanra1n/vd100/images/linux/boot.scr
[INFO] File in qemu_boot.img: /home/chanra1n/vd100/images/linux/rootfs.cpio.gz.u-boot
[INFO] Binary is ready.
[INFO] Successfully Generated BIN File
chanra1n@chanra1n-Standard-PC-i440FX-PIIX-1996:~/vd100$





扫描二维码推送至手机访问。

版权声明:本文由我的FPGA发布,如需转载请注明出处。

本文链接:https://myfpga.cn/index.php/post/439.html

分享给朋友:

“(二)自定义Versal BSP编译Petalinux” 的相关文章

what is network on chip(NOC)?

what is network on chip(NOC)?

上面的一堆主要是说:现在PS、PL、DDR甚至外设和AIE都能通过统一的NOC进行通信。具体有以下这些单元来实现:1. NMU(NoC Master Units)功能 :NMU是数据进入NoC(片上网络)的入口 ,类似高速公路的“入口收费站”。它负责将主设备(如CPU、DMA控制器等)发出的数据请求...

Versal ACAP Primer Handbook

Versal ACAP Primer Handbook

一、核心架构区别1. Versal(ACAP)异构计算架构 :Versal是AMD/Xilinx推出的自适应计算加速平台(ACAP) ,集成多种计算单元:标量处理引擎 (Scalar Engine):包含ARM Cortex-A72应用处理器(APU)和Cortex-R5实时处理器(RPU),支持L...

自定义Versal BSP编译Petalinux

自定义Versal BSP编译Petalinux

首先设计XSA文件略紧接着我们开始编译Petalinux我的系统版本:LSB Version:    core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch Distributor ...

自定义Versal BSP创建XSA文件

自定义Versal BSP创建XSA文件

新建工程:紧接着添加CIPS双击,然后根据你的硬件添加外设,例如我添加SPI的存储器、EMMC和SD卡这里图片截图有问题,GEM0需要勾选MDIO。接下来按OK即可,我们现在开始配置NOC按OK后退出,我们配置这个时钟紧接着创建例化模板:Verilog程序(top.v)`timescale ...