驱动
JewinH
create as god, work as slave.
展开
-
08.linux5.0x驱动demo
https://github.com/JewinH/Linux_driver_learning原创 2022-01-22 18:47:08 · 284 阅读 · 0 评论 -
00.linux驱动视频学习
https://www.bilibili.com/video/BV1pf4y1974n?p=2&spm_id_from=pageDriver原创 2021-08-29 18:16:21 · 111 阅读 · 0 评论 -
05.把驱动编译进linux内核
将word_count.c文件放到/root/goldfish/driver/char/ 中 修改该文件夹下的Kconfig , 在endmenu前面添加这段内容 Kconfig添加内容 config WORD_COUNT bool "word_count driver" help this is a word_count driver . It can get a word count from /dev/wordcount ...原创 2021-08-24 15:03:01 · 97 阅读 · 0 评论 -
04.在android模拟器中运行linux驱动
驱动编译makefileobj-m += word_count.oall: make -C /root/goldfish/ M=$(PWD) modules # -C 到 linux kernel源码目录。生成word_count.ko文件clean: make -C /root/goldfish/ M=$(PWD) cleanpush到模拟器中adb push word_count.ko /data/local/驱动测试程序编译配置编译环境.原创 2021-08-24 15:02:04 · 208 阅读 · 0 评论 -
03.android模拟器使用自己编译的内核
内核代码单独管理,通过清华源下载:# 下载git clone https://aosp.tuna.tsinghua.edu.cn/kernel/goldfish.git# 编译cd goldfishexport PATH=$PATH:/share/aosp/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin ##aosp的prebuild工具export ARCH=x86_64 # cpu架构export CROSS..原创 2021-08-24 15:01:15 · 879 阅读 · 0 评论 -
02.AOSP编译并运行
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/先传入aosp-latest.tar,(最好用FileZilla工具去传,其他工具容易出错,目前已存放在/mnt/share/目录中,大家可以在启动docker镜像时,把该文件挂载上去,然后直接解压即可。)tar xf aosp-latest.tarcd aospcurl https://storage.googleapis.com/git-repo-downloads/repo >..原创 2021-08-24 15:00:44 · 2737 阅读 · 0 评论 -
01.编写一个驱动程序
Android深度探索 卷1 HAL与驱动开发.pdfP77开始测试驱动程序git仓库:https://ce4.midea.com:8078/huangjy138/test_linux_driver已实现书中在ubuntu中的操作,下一步实现在android模拟器的操作。原创 2021-08-24 15:00:08 · 148 阅读 · 0 评论 -
Linux/android 驱动开发学习
参考资料:《Android深度探索 卷1 HAL与驱动开发.pdf》《嵌入式linux开发教程(下册).pdf》https://blog.51cto.com/u_13800449/3003212基本调试方法:编写一个驱动程序 编写驱动测试程序(这个测试程序,对设备进行读写操作等) 在linux上测试linux驱动 通过Android模拟器测试驱动 使用Android的NDK来调用Linux驱动。(02.Android 串口驱动实现,已经有具体实现) 用JAVA直接打开文件.原创 2021-08-24 14:59:24 · 207 阅读 · 0 评论