简体   繁体   English

yocto sunxi机器名称

[英]yocto sunxi machine name

While running nanopi-neo image in yocto it throws the following error. 在yocto中运行nanopi-neo图像时,它将引发以下错误。 In local.conf MACHINE ??= "nanopi-neo 在local.conf MACHINE ?? =“ nanopi-neo

ERROR: OE-core's config sanity checker detected a potential misconfiguration. 错误:OE核心的配置健全性检查程序检测到潜在的配置错误。 Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). 修复导致此错误的原因,或者自行承担禁用检查程序的风险(请参阅sanity.conf)。 Following is the list of potential problems / advisories: 以下是潜在问题/建议的列表:

MACHINE=nanopi-neo is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

Can anyone please tell me to fix this error? 谁能告诉我解决此错误?

Apparently, nanopi-neo is unknown target device for your setup. 显然, nanopi-neo是您设置中未知的目标设备。 MACHINE ??= nanopi-neo looks as default value, so you most probably should set this variable to the target that is available in your bsp layer, which typically has name meta-bsp- smth . MACHINE ?? = nanopi-neo是默认值,因此您很可能应该将此变量设置为bsp层中可用的目标,该目标通常具有名称meta-bsp- smth You can find the list of available devices in meta-bsp- smth /conf/machine folder (eg meta-bsp- smth /conf/machine/some_dev_name.conf ). 你可以找到可用的设备在元bsp- 不便 / conf目录/机文件夹列表(如元bsp- 不便 /conf/machine/some_dev_name.conf)。 Then add to local.conf: 然后添加到local.conf中:

MACHINE ?= "some_dev_name"

Check also in conf/bblayers.conf which layers are enabled if error remains, that bsp layer's full path should be in the list of BBLAYERS . 如果仍然存在错误,请在conf / bblayers.conf中检查启用了哪些层,该bsp层的完整路径应在BBLAYERS列表中。

Update 更新资料

You can also check available products by running 您还可以通过运行以下命令检查可用产品

# bitbake-layers show-products

and check the first column for availability and correct name of product. 并检查第一列的可用性和正确的产品名称。 Then, available layers you can check by running: 然后,可以通过运行以下命令检查可用的图层:

# bitbake-layers show-layers

and check if meta-sunxi is in the output list. 并检查meta-sunxi是否在输出列表中。

you need to add meta-sunxi to your layermix. 您需要将meta-sunxi添加到layermix中。

git clone git://git.yoctoproject.org/poky
cd poky
git clone git://github.com/linux-sunxi/meta-sunxi
. ./oe-init-build-env
bitbake-layers add-layer ../meta-sunxi
MACHINE=nanopi-neo-air bitbake core-image-minimal

you can bitbake any image you like, if you want to not use MACHINE on cmdline it can be added to local.conf for persistence 您可以对任何喜欢的图像进行位烤,如果您不想在cmdline上使用MACHINE,则可以将其添加到local.conf中以实现持久性

MACHINE = "nanopi-neo-air"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM