insmod error “unknown symbol in module”

梦想的初衷 提交于 2019-12-12 05:12:05

问题


I am writing parallel LED board driver, .ko is successfully generated.

I am facing this issue

[63722.594233] led: Unknown symbol parport_register_device (err 0)

[63722.594264] led: Unknown symbol parport_register_driver (err 0)


回答1:


parport_register_device is exported in drivers/parport/share.c. So you have to load parport driver first (modprobe parport) and then your driver.



来源:https://stackoverflow.com/questions/22954268/insmod-error-unknown-symbol-in-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!