安装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安装避坑指南