首页 > 其他分享 >AMD ZCU106 U-Boot 2023.1 Open Source Flow 编译的缺少“gnutls/gnutls.h”错误

AMD ZCU106 U-Boot 2023.1 Open Source Flow 编译的缺少“gnutls/gnutls.h”错误

时间:2023-07-07 11:35:46浏览次数:42  
标签:Flow boot Boot xilinx gnutls xlnx include config

AMD ZCU106 U-Boot 2023.1 Open Source Flow 编译的缺少“gnutls/gnutls.h”错误

获取代码

以下列命令获取U-Boot代码

petalinux-devtool modify u-boot-xlnx 

在目录components/yocto/workspace/sources/u-boot-xlnx 下应该有u-boot-xlnx的源代码。

获取配置文件

查找u-boot的配置文件“.config”,并复制到u-boot-xlnx的源代码目录下,以及u-boot-xlnx的源代码的“configs”目录下。

hankf@XSZGS4:zcu106-vcu-trd-231-bsp-peta$ find -name ".config" | grep -i u-boot-xlnx 
./build/tmp/work/xilinx_zcu106-xilinx-linux/u-boot-xlnx/1_v2023.01-xilinx-v2023.1+git999-r0/u-boot-xlnx-v2023.01-xilinx-v2023.1+git999/.config

hankf@XSZGS4:zcu106-vcu-trd-231-bsp-peta$ cp ./build/tmp/work/xilinx_zcu106-xilinx-linux/u-boot-xlnx/1_v2023.01-xilinx-v2023.1+git999-r0/u-boot-xlnx-v2023.01-xilinx-v2023.1+git999/.config components/yocto/workspace/sources/u-boot-xlnx/

hankf@XSZGS4:zcu106-vcu-trd-231-bsp-peta$ cp ./build/tmp/work/xilinx_zcu106-xilinx-linux/u-boot-xlnx/1_v2023.01-xilinx-v2023.1+git999-r0/u-boot-xlnx-v2023.01-xilinx-v2023.1+git999/.config components/yocto/workspace/sources/u-boot-xlnx/configs/xilinx_peta_defconfig

编译

缺少“configs/platform-top.h”错误

hankf@XSZGS4:u-boot-xlnx$ make -j 
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
In file included from ./include/common.h:16:
include/config.h:4:10: fatal error: configs/platform-top.h: No such file or directory
    4 | #include <configs/platform-top.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/common.h:16:
include/config.h:4:10: fatal error: configs/platform-top.h: No such file or directory
    4 | #include <configs/platform-top.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ./include/common.h:16:
include/config.h:4:10: fatal error: configs/platform-top.h: No such file or directory
    4 | #include <configs/platform-top.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

“platform-top.h”是单板相关的头文件。PetaLinux把它放在了目录“oe-local-files”下。复制“oe-local-files/platform-top.h”到目录“include/configs/”下,能修正上述问题。

hankf@XSZGS4:u-boot-xlnx$ cp oe-local-files/platform-top.h include/configs/

缺少“gnutls/gnutls.h”错误

hankf@XSZGS4:u-boot-xlnx$ make -j 
scripts/kconfig/conf  --syncconfig Kconfig
arch/Kconfig:379:warning: 'SYS_IMMR': number is invalid
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  ............
  ENVT    include/generated/environment.h
  HOSTCC  tools/mkeficapsule
tools/mkeficapsule.c:21:10: fatal error: gnutls/gnutls.h: No such file or directory
 #include <gnutls/gnutls.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:95: recipe for target 'tools/mkeficapsule' failed
make[1]: *** [tools/mkeficapsule] Error 1
Makefile:1872: recipe for target 'tools' failed
make: *** [tools] Error 2

这是编译Host上的工具得到的错误。执行下列命令,安装“libgnutls28-dev”后,再编译就正常了。

sudo apt-get install libgnutls28-dev

标签:Flow,boot,Boot,xilinx,gnutls,xlnx,include,config
From: https://www.cnblogs.com/hankfu/p/17534481.html

相关文章

  • Spingboot启动jar包引用外部的yml配置文件
    Spingboot启动jar包引用外部的yml配置文件1、指定文件目录命令java-jarxxxxx.jar--spring.config.location=路径(application.yml)2、jar包目录下java-jarxxxx.jar2.1可以在当前Jar文件目录建config同级目录,这个config同级目录放入application.yml2.2也可以在当前......
  • springboot微服务架构有哪些?这些都是需要了解的
    SpringBoot是一种用于构建独立的、可扩展的、轻量级的Java应用程序的框架。它简化了Spring应用程序的开发过程,并提供了丰富的功能和集成的支持。在微服务架构中,SpringBoot可以作为一个基础框架来构建和管理各个微服务。下面是一些常用的SpringBoot微服务架构组件和技术:Sprin......
  • vue 自定义指令实现overflow-tooltip
    利用elementui el-tooltip组件实现1.创建overflow-tooltip指令importVuefrom'vue'/*eslint-disable*/functiongetStyle(obj,attr){if(obj.currentStyle){returnobj.currentStyle[attr];}else{returngetComputedStyle(obj)[attr];......
  • 手把手教你自定义自己SpringBoot Starter组件源码剖析
    我们知道SpringBootStarter也就是启动器。是SpringBoot组件化的一大优点。基于这个思想,基于这个思想SpringBoot才变得非常强大,官方给我们提供很多开箱即用的启动器。SpringBootStarter是SpringBoot的一个重要特性,它有以下优点:依赖管理:Starter自动处理项目的依赖关系,......
  • spring boot
    当spriingboot后端出现 springboot启动异常java.sql.SQLNonTransientConnectionException:Couldnotcreateconnectiontodatabaseserver.Attemptedreconnect3times.Givingup这个是因为数据库链接url未加入时区在后面加上server&Timezong=UTC就可以解决了......
  • SpringBoot整合EasyExcel 3.x
    目录1EasyExcel3.x1.1简介1.2引入依赖1.3简单导出1.3.1定义实体类1.3.2自定义转换器1.3.3定义接口1.4简单导入1.5复杂导出1.5.1引言1.5.2自定义注解1.5.3定义实体类1.5.4数据映射与平铺1.5.5自定义单元格合并策略1.5.6定义接口1EasyExcel3.x1.1简介EasyExce......
  • Qt+opencv dnn模块调用tensorflow模型
    参考网址(1条消息)Qt+opencvdnn模块调用tensorflow模型_vsqt调用tensorflow_街道口扛把子的博客-CSDN博客代码地址:GitHub-Whu-wxy/Simple_Qt_opencv_dnn:UsingdeeplearningmodelwithopencvinQt修改运行后的代码如下:#include<QCoreApplication>#include<opencv2\o......
  • SpringBoot之限流方案
    目录1限流方案1.1引言1.2常用限流策略1.3基于guava限流实现1.3.1引入guava依赖1.3.2自定义限流注解1.3.3限流AOP类1.3.4测试接口1.4基于sentinel限流实现1.4.1引入sentinel核心依赖包1.4.2自定义限流注解1.4.3自定义AOP类实现限流1.4.4自定义测试接口1.5基于redis+l......
  • 71. mybatis 如何获取插入的id【从零开始学习SpirngBoot】
      【从零开始学习SpirngBoot—常见异常汇总】      在之前的文章已经讲过springboot集成mybatis了,但是忘记说一个很重要的知识点了,那就是获取获取主键id,这篇文章补充下,springboot集成mybatis看之前文章:       其实这个也很简单,主要是使用@Options注解,核心代......
  • 尝试写一个SpringBoot的demo
    在Spring官网使用脚手架:  https://start.spring.io/选择3项依赖:   编写代码: 启动运行应用:   启动了8080端口 访问:http://localhost:8080/hyc健康检查:  http://localhost:8080/actuator/health......