嵌入式开发者社区

标题: 驱动模块不能被正确加载 [打印本页]

作者: 梁淑怡-Tronlong    时间: 2019-9-24 15:50
标题: 驱动模块不能被正确加载
1.更换内核镜像zImage后,如需使用驱动模块,一般需要重新编译与安装驱动模块。包括模块驱动和extra 驱动。
2.在文件系统下查看驱动模块是否有加载
lsmod

3.如发现没有驱动模块加载,可能是驱动模块安装没有成功,或者名字不匹配
需要确认/lib/modules/目录下的驱动模块包的名字与 uname -r 里的驱动名字一致



作者: sanye1780    时间: 2019-9-24 17:25

root@AM57xx-Tronlong:~# uname -r
4.9.65-rt23
root@AM57xx-Tronlong:~# ls /lib/modules/
4.9.65-rt23           4.9.65-rt23-gcaf89f0  4.9.69-g9ce43c71ae
这是我启动之后的样子,略有不同

作者: sanye1780    时间: 2019-9-24 17:29
按照extra模块的重新编译和安装,其中编译正常。但是
1.sudo make cmem-mod_install
2.sudo make ti-sgx-ddk-km_install
这两个指令会出现错误
1.jailhouse:ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05$ sudo make cmem-mod_install
[sudo] password for jailhouse:
================================
Installing CMEM Module
================================
make[1]: Entering directory '/home/jailhouse/trlong/linux-rt-4.9.65-gcaf89f0-v1.2'
Makefile:628: arch/armv7a/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7a/Makefile'.  Stop.
make[1]: Leaving directory '/home/jailhouse/trlong/linux-rt-4.9.65-gcaf89f0-v1.2'
Makefile:524: recipe for target 'cmem-mod_install' failed
make: *** [cmem-mod_install] Error 2

2.jailhouse:ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05$ sudo make ti-sgx-ddk-km_install
================================
Installing ti-sgx-ddk-km
================================
make[1]: Entering directory '/home/jailhouse/trlong/linux-rt-4.9.65-gcaf89f0-v1.2'
Makefile:628: arch/armv7a/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7a/Makefile'.  Stop.
make[1]: Leaving directory '/home/jailhouse/trlong/linux-rt-4.9.65-gcaf89f0-v1.2'
Makefile:496: recipe for target 'ti-sgx-ddk-km_install' failed
make: *** [ti-sgx-ddk-km_install] Error 2
希望给解决一下
作者: 梁淑怡-Tronlong    时间: 2019-10-12 11:24
sanye1780 发表于 2019-9-24 17:29
按照extra模块的重新编译和安装,其中编译正常。但是
1.sudo make cmem-mod_install
2.sudo make ti-sgx-dd ...

am5728 linux-rt extra模块部分安装失败
http://51ele.net/forum.php?mod=v ... 8&fromuid=50814
(出处: 嵌入式开发者社区)





欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4