OpenWrt Forum Archive

Topic: sourcecode of kmod-usb-printer (usblp)?

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there!
Can somebody please tell me where I can get the sourcecode of the usb-printer driver?

I tried to install that driver on an modifed OpenWRT firmware,...

* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-printer: 
*      kernel (= 3.10.49-1-0114c71ed85677c9c1e4911437af4743) *  
* opkg_install_cmd: Cannot install package kmod-usb-printer.

after forcing opkg to install it anyway (the kernel version is the same therefore checksum didn't match i guess), i got:

usblp: Unknown symbol ___ratelimit (err 0)

Well, that's maybe the reason why opkg didn't liked the idea of installing that kmod^^


Anyway... I try to understand where that error comes from and therefore I need the sourcecode of usblp.ko.
I thank you in advance for the information.

Btw, i am on an MR3020 (TP Link)


Flo

(Last edited by dollinger.florian on 10 Jan 2017, 12:37)

Most probably your installed kernel version and that of the kernel-module are not the same. That can have (at least) two reasons:
1) You are downloading the usb-printer module form another repository. Is your opkg properly configured ? Check /etc/opkg.conf and /etc/conf/*feeds.conf if they are pointing to the same repositories as where the openwrt-image that you isntalled, came from (for example chaos_calmer 15.05 or 15.05.1)

2) Did you build the kernel yourself or upgrade it in the mean time? Or the module?

The discussion might have continued from here.