-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用DKMS本地编译驱动 #2636
Comments
安装header这步忽略,已经自带。 内核的补丁你本地打进去即可,或者把patch文件按仓库的说明放在固定目录即可自动添加。 |
输入后续的命令,仍然提示没有 kernel headers 文件 尝试指定kernel headers文件夹,也还是报错 请问大佬指点一下。 |
编译时找不到头文件, 可能是 /lib/modules/$(uname -r)/build 没有正确连结至 /usr/src/linux-headers-$(uname -r) 至于编译错误, 相信是你用的内核没有打开CONFIG_DVB_USB相关选项, 可以用指令'zgrep CONFIG_DVB_USB= /proc/config.gz'核查一下 我用的内核是6.1.xxx, 可以成功编译驱动:- armbian:~:# ls -l /lib/modules/$(uname -r)/build armbian:~:# zgrep CONFIG_DVB_USB= /proc/config.gz armbian:~:# dkms add -m hd2312/1.0 armbian:~:# dkms build -m hd2312/1.0 Kernel preparation unnecessary for this kernel. Skipping... Building module: hd2312.ko:
hd2312-fe.ko:
depmod.......... armbian:~:# dkms status |
大佬,我n1盒子,帮忙看看。谢谢 root@N1: |
我重新链接之后也是不行,请大佬指导一下。 root@N1:/usr/src# rm /lib/modules/$(uname -r)/build root@N1:/usr/src# ls -l /lib/modules/$(uname -r)/build root@N1:/usr/src/hd2312-1.0# dkms add -m hd2312/1.0 |
大佬不好意思,可以了。是我ln错了。 现在就想想怎么编译内核的时候把驱动编译进去,这样方便后续编译固件。大佬可以指导一下嘛!非常感谢 |
大佬再请教一下,这打内核模块的模式,是不是升级内核模块就会失效啦? |
https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/documents/README.cn.md 看仓库文档第9章,编译内核时添加补丁有文档。 |
是的,这个我看了,我现在还卡着 |
大佬,不好意思又是我。现在先打算把驱动打到现在的系统上面去,先用起来再说,后续再慢慢研究怎么把驱动集成到内核里。
驱动的github:https://github.com/hanwckf/hd2312
按照驱动的大佬的的DKMS方法编译
我输入sudo apt install dkms linux-headers-$(uname -r)提示
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-6.6.59-ophub
E: Couldn't find any package by glob 'linux-headers-6.6.59-ophub'
可是我看/usr/src目录下是有linux-headers-6.6.59-ophub的,是放在这个目录不对,还是要其他设置?请指导一下,再次感谢。
The text was updated successfully, but these errors were encountered: