Firefly开源社区

打印 上一主题 下一主题

[Linux] 求助,RK3399,build缺少deviceio相关文件

21

积分

0

威望

0

贡献

技术小白

积分
21

求助,RK3399,build缺少deviceio相关文件

发表于 2019-7-15 10:22:10      浏览:7511 | 回复:2        打印      只看该作者   [复制链接] 楼主
刚入RK3399,还请高手解惑,

./build.sh编译结果:

# configuration written to /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/.config
#
make: Leaving directory '/home/seeing-am335x/linux/buildroot'
umask 0022 && make -C /home/seeing-am335x/linux/buildroot O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399
/usr/bin/make -j1 O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
  GEN     /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile
>>> deviceio  Syncing from source dir /home/seeing-am335x/linux/buildroot/../external/deviceio
ERROR: /home/seeing-am335x/linux/buildroot/../external/deviceio does not exist
package/pkg-generic.mk:201: recipe for target '/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_rsynced' failed
make[1]: *** [/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_rsynced] Error 1
/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:54.20 to build builroot
====Build buildroot failed!====

查找工程仅有下面这个位置有相关的,但是拷过去还是编译失败
seeing-am335x@seeing:~/linux$ find ./ -name "deviceio"
./buildroot/package/rockchip/deviceio
拷贝过去后编译结果:
make: Leaving directory '/home/seeing-am335x/linux/buildroot'
umask 0022 && make -C /home/seeing-am335x/linux/buildroot O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399
/usr/bin/make -j1 O=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
  GEN     /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile
>>> deviceio  Syncing from source dir /home/seeing-am335x/linux/buildroot/../external/deviceio
rsync -au --chmod=u=rwX,go=rX --exclude .svn --exclude .git --exclude .hg --exclude .bzr --exclude CVS /home/seeing-am335x/linux/buildroot/../external/deviceio/ /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio
>>> deviceio  Configuring
(mkdir -p /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ && cd /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ && rm -f CMakeCache.txt && PATH="/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/bin:/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/sbin:/home/seeing-am335x/tools/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/seeing-am335x/bin:/home/seeing-am335x/.local/bin:/usr/local/cmake-3.8.2/bin:/usr/local/eclipse:/usr/local/jdk1.8.0_121/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"  /usr/local/cmake-3.8.2/bin/cmake /home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/ -DCMAKE_TOOLCHAIN_FILE="/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON  -DBLUEZ5_UTILS=TRUE -DBLUEZ=TRUE -DCPU_ARCH="aarch64" -DBUILD_TYPE=arm64 -DCMAKE_INSTALL_STAGING=/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/host/aarch64-buildroot-linux-gnu/sysroot )
CMake Error: The source directory "/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
package/pkg-generic.mk:244: recipe for target '/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_configured' failed
make[1]: *** [/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/build/deviceio/.stamp_configured] Error 1
/home/seeing-am335x/linux/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:36.47 to build builroot
====Build buildroot failed!====

回复

使用道具 举报

21

积分

0

威望

0

贡献

技术小白

积分
21
发表于 2019-7-15 15:00:06        只看该作者  沙发
自己顶顶
回复

使用道具 举报

21

积分

0

威望

0

贡献

技术小白

积分
21
发表于 2019-7-16 16:42:20        只看该作者  板凳
原因找到了,在./build.sh 之前需要:
更改Buildroot配置
列出当前可用的配置
cd buildroot
make list-defconfigs
显示所下:
rockchip_rk3399_defconfig - Build for rockchip_rk3399
使用menuconfig更改配置
make rockchip_rk3399_defconfig
make menuconfig
make savedefconfig
diff .defconfig configs/rockchip_rk3399_defconfig
cp .defconfig configs/rockchip_rk3399_defconfig
重新编译
cd ../
./build.sh rootfs


相关链接:http://wiki.friendlyarm.com/wiki ... droot_for_RK3399/zh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表