不知道是不是自己的 petalinux 16.4 版本或者是安装问题
在petalinux-config -get-hw 工程目录下面找不到设备树增加不了设备树节点无限郁闷
subsystems
/linux/configs/device-tree/system-top
.dts
尝试用root来建立工程 导入硬件信息 petalinux-config 就直接提示不能用root权限的错误
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
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:
Do not use Bitbake as root.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: bitbake failed to generate dot graph for petalinux-image
ERROR: Failed to config project.
ERROR: Get hw description Failed!.
真是醉了
/home/vision/workspace/linuxled/project-spec/meta-user/recipes-dt 目录下找到个文件打开后
SRC_URI_append ="\
file://system-top.dts\
"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
看手册的意思就是在这里可以添加自己的设备树,新手真爱生命,不想在折腾了,原本还想尝试在petalinux 下尝试编译,结果一个
petalinux-build -c leddriver -x do_build 简直就是等到天荒地老 感觉,足足等了十几分钟,删除了一个中断函数提示报错。看来这个工具只适合最后的驱动和应用的整合
绝不是一个好的开发环境,还得重新搭建nfs网络文件系统,本地安装交叉编译来得快,SDK在安装了petalinux的情况下可以很好的编译应用。驱动这块儿就酷毙了。
更多推荐
petalinux 设备树驱动GPIOLED
发布评论