_Sai
1
为什么我编译内核出现错误,腾讯云和百度云两份源码都不行
make 100ask_firefly-rk3288_defconfig
*** Can’t find default configuration “arch/arm64/configs/100ask_firefly-rk3288_defconfig”!
scripts/kconfig/Makefile:110: recipe for target ‘100ask_firefly-rk3288_defconfig’ failed
make[1]: *** [100ask_firefly-rk3288_defconfig] Error 1
Makefile:570: recipe for target ‘100ask_firefly-rk3288_defconfig’ failed
make: *** [100ask_firefly-rk3288_defconfig] Error 2
bg4365507 发表于 2019-11-29 16:46
为什么我编译内核出现错误,腾讯云和百度云两份源码都不行
make 100ask_firefly-rk3288_defconfig
找到问题了,因为用的RK3288板子,编译器却是用的arch64的
为什么我的执行./hello_drv_test -w 或者./hello_drv_test -r出错呢 打印can not open file /dev/hello。驱动安装好了,可以看到设备号和节点、crw------- 1 root root 239, 0 Jan 1 16:05 /dev/hello。
hjr0607 发表于 2020-3-8 17:11
为什么我的执行./hello_drv_test -w 或者./hello_drv_test -r出错呢 打印can not open file /dev/hello。驱 …
代码是自己照着视频里的写的,应用程序里的open函数里if(fd==-1)写成了if(fd=-1)…