[root@localhost read_write]# ./build.sh
1:Ubuntu Linux
2:S3C6410开发板
3:Android模拟器
请选择要在那类设备上运行(1)3
make: Entering directory `/home/shikun/android-git/goldfish'
CC [M] /root/drivers/ch06/word_count/read_write/word_count.o
/root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_write':
/root/drivers/ch06/word_count/read_write/word_count.c:39:16: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
/root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_read':
/root/drivers/ch06/word_count/read_write/word_count.c:22:15: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
Building modules, stage 2.
MODPOST 1 modules
WARNING: "misc_deregister" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
WARNING: "misc_register" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
WARNING: "__copy_to_user" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
WARNING: "printk" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
WARNING: "__memzero" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
WARNING: "__copy_from_user" [/root/drivers/ch06/word_count/read_write/word_count.ko] undefined!
CC /root/drivers/ch06/word_count/read_write/word_count.mod.o
/root/drivers/ch06/word_count/read_write/word_count.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type
/root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: error: unknown field 'name' specified in initializer
/root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: warning: excess elements in struct initializer [enabled by default]
/root/drivers/ch06/word_count/read_write/word_count.mod.c:9:2: warning: (near initialization for '__this_module') [enabled by default]
/root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: error: unknown field 'init' specified in initializer
/root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: warning: excess elements in struct initializer [enabled by default]
/root/drivers/ch06/word_count/read_write/word_count.mod.c:10:2: warning: (near initialization for '__this_module') [enabled by default]
/root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: error: unknown field 'arch' specified in initializer
/root/drivers/ch06/word_count/read_write/word_count.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
/root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: warning: excess elements in struct initializer [enabled by default]
/root/drivers/ch06/word_count/read_write/word_count.mod.c:14:2: warning: (near initialization for '__this_module') [enabled by default]
make[1]: *** [/root/drivers/ch06/word_count/read_write/word_count.mod.o] Error 1
make: *** [modules] Error 2
make: Leaving directory `/home/shikun/android-git/goldfish'
exit after make!
[root@localhost read_write]# ./build.sh
1:Ubuntu Linux
2:S3C6410开发板
3:Android模拟器
请选择要在那类设备上运行(1)3
make: Entering directory `/home/shikun/android-git/goldfish'
CC [M] /root/drivers/ch06/word_count/read_write/word_count.o
/root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_write':
/root/drivers/ch06/word_count/read_write/word_count.c:39:16: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
/root/drivers/ch06/word_count/read_write/word_count.c: In function 'word_count_read':
/root/drivers/ch06/word_count/read_write/word_count.c:22:15: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
Building modules, stage 2.
MODPOST 1 modules
CC /root/drivers/ch06/word_count/read_write/word_count.mod.o
LD [M] /root/drivers/ch06/word_count/read_write/word_count.ko
make: Leaving directory `/home/shikun/android-git/goldfish'
exit after make!
[root@localhost read_write]#
Android模拟器/read_write/word_count.ko
原创
©著作权归作者所有:来自51CTO博客作者autumn的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
HarmonyOS Next 模拟器安装与探索
一篇文章带你了解最新的HarmonyOS Next!!!
开发者 应用程序 摇一摇 鸿蒙 harmonyOS -
Android开发--调试--模拟器--加快模拟器速度
方法一:关闭模拟器自动侦测手机旋转的设置具体位置为:设置 - 声音和显示 - 关闭“方向K Manag...
移动开发 Android Image 安卓模拟器 -
Android 模拟器入门
要玩GPhone的模拟器,当然需要先去google上面下载Android的SDK,解压出来后在SDK的根目录下有一个tools文件夹,里面就是
移动开发 shell 操作系统 android Android -
android 模拟器 tcpdump android 模拟器 开源
相信大家在做Android开发的时候都会用到Android模拟器,但是原生的Android模拟器并不好用,启动速度慢,而且不支持OpenGL,不支持GPS,所以很多应用、游戏都不能运行。今天给大家介绍一个工具,本人亲测,非常好用,叫做Genymotion。这是一个Android模拟器,支持OpenGL,支持GPS。1.下载并安装VirtualBox2.注册Genymotion帐号3.下载并且安装G
android 模拟器 tcpdump Android 移动开发 Android模拟器 Android游戏开发 Genymotion -
Android模拟器
Android模拟器 Bluestackshttp://www.bluestacks.cn/download.html 夜神http://www.yeshen.com/#p3
Android android模拟器 html mysql