petalinux安装避坑指南

编程知识 更新时间:2023-05-01 23:48:48

安装petalinux过程中遇到的问题:

  1. 之前用的是ubuntu18.04,而安装的petalinux文件为2017.4版本的,在通过source /opt/pkg/petalinux/settings.sh设置petalinux环境变量的时候会有两个一样的警告:environment: line 314: ((: 10#15~1 > 10#3: syntax error in expression (error token is "~1 < 10#3")这其实就是表明版本不太合适了。如果无视了这个警告,我在装完petalinux之后,执行petalinux-config -c kernel指令配置内核时,会出现下面的提示:
    ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:
    You system needs to support the en_US.UTF-8 locale.Summary:
    There was 1 ERROR message shown, returning a non-zero exit code.
    ERROR: bitbake failed to cleansstate kernel.
    ERROR: Failed to config kernel.
    按照提示我将系统显示改为en_US.UTF-8 还是没有解决,最后重新安装了ubuntu16.04,重新装了一遍,就没有这个问题了。

  2. 在执行指令:petalinux-config --get-hw-description ../linux_base.sdk之前,我们需要切换到普通用户,否则,安装后在执行petalinux-config -c kernel指令时会出现错误提示你切换到普通用户模式执行,这时候之前的文件都是root权限的,很多请求会被deny。

这样执行下来就没问题了。

更多推荐

petalinux安装避坑指南

本文发布于:2023-04-24 14:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/19f521ee3cbcf6cfe15afdf7702e4b14.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:指南   petalinux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 100862文章数
  • 26067阅读数
  • 0评论数