OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 133|回复: 2

按照教程替换成本地linux和uboot后,编译出问题

[复制链接]

2

主题

3

帖子

0

精华

新手入门

积分
11
金钱
11
注册时间
2024-4-13
在线时间
2 小时
发表于 2024-4-13 17:37:30 | 显示全部楼层 |阅读模式
libin@libin-virtual-machine:~/zynq-pro/zynq_nav/zynq_nav$ petalinux-build -c u-boot
[INFO] building u-boot
[INFO] sourcing bitbake
INFO: bitbake virtual/bootloader
Loading cache: 100% |######################################################################################| Time: 0:00:01
Loaded 3442 entries from dependency cache.
Parsing recipes: 100% |####################################################################################| Time: 0:00:18
Parsing of 2569 .bb files complete (2534 cached, 35 parsed). 3445 targets, 149 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#################################################################################| Time: 0:00:11
Checking sstate mirror object availability: 100% |#########################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_kernel_metadata: A KBUILD_DEFCONFIG 'xilinx_zynq_defconfig' was specified, but not present in the source tree
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_kernel_metadata: Function failed: do_kernel_metadata (log file is located at /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_kernel_metadata.13242)
ERROR: Logfile of failure stored in: /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_kernel_metadata.13242
ERROR: Task (/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_kernel_metadata) failed with exit code '1'
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_configure: Function failed: do_configure (log file is located at /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_configure.13243)
ERROR: Logfile of failure stored in: /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_configure.13243
Log data follows:
| DEBUG: Executing python function externalsrc_configure_prefunc
| DEBUG: Python function externalsrc_configure_prefunc finished
| DEBUG: Executing python function check_oldest_kernel
| DEBUG: Python function check_oldest_kernel finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', 'virtual:native:/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', '/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot', '/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', '/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/core/meta/recipes-extended/xz/xz_5.2.3.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['bc-native', 'u-boot-mkimage-native', 'dtc-native', 'binutils-cross-arm', 'gcc-cross-arm', 'lzop-native', 'kern-tools-native', 'kmod-native', 'xz-native', 'texinfo-dummy-native', 'autoconf-native', 'libtool-native', 'automake-native', 'quilt-native', 'gnu-config-native', 'flex-native', 'openssl-native', 'bison-native', 'zlib-native', 'gmp-native', 'linux-libc-headers', 'mpfr-native', 'glibc', 'libmpc-native', 'pkgconfig-native', 'gtk-doc-native', 'lzo-native', 'gettext-minimal-native', 'm4-native', 'cryptodev-linux-native', 'makedepend-native', 'xproto-native', 'util-macros-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| cp: cannot stat '/home/libin/linux/kernel/arch/arm/configs/xilinx_zynq_defconfig': No such file or directory
| WARNING: /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/run.do_configure.13243:1 exit 1 from 'cp /home/libin/linux/kernel/arch/arm/configs/xilinx_zynq_defconfig /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/defconfig'
| ERROR: Function failed: do_configure (log file is located at /home/libin/zynq-pro/zynq_nav/zynq_nav/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+git999-r0/temp/log.do_configure.13243)
ERROR: Task (/home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 693 tasks of which 686 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_kernel_metadata
  /home/libin/eda/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_configure
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build u-boot
libin@libin-virtual-machine:~/zynq-pro/zynq_nav/zynq_nav$


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

0

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
64
金钱
64
注册时间
2024-3-19
在线时间
21 小时
发表于 2024-4-16 19:58:57 | 显示全部楼层
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_kernel_metadata: A KBUILD_DEFCONFIG 'xilinx_zynq_defconfig' was specified, but not present in the source tree
这行报错找不到xilinx_zynq_defconfig,可以看看uboot源码下configs文件夹里有没有xilinx_zynq_defconfig这个文件
回复 支持 反对

使用道具 举报

2

主题

3

帖子

0

精华

新手入门

积分
11
金钱
11
注册时间
2024-4-13
在线时间
2 小时
 楼主| 发表于 2024-4-18 17:53:06 | 显示全部楼层
Alexan 发表于 2024-4-16 19:58
ERROR: linux-xlnx-4.14-xilinx-v2018.3+git999-r0 do_kernel_metadata: A KBUILD_DEFCONFIG 'xilinx_zynq_ ...

1111.png

很奇怪,没有这个文件,用的是正点原子资料包里面的,不知道为啥。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-5-14 11:18

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表