IncentivesPro Forum Index IncentivesPro
Leading USB solutions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Raspberry Pi 3.12.30+ Error: Can't load stub driver!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux
View previous topic :: View next topic  
Author Message
wacken



Joined: 21 Oct 2014
Posts: 5

PostPosted: Tue Oct 21, 2014 12:03 pm    Post subject: Raspberry Pi 3.12.30+ Error: Can't load stub driver! Reply with quote

Hi
I installed the software without errors. I followed the instruction from:
http://www.incentivespro.com/forum/viewtopic.php?t=787&highlight=kernel

So the Kernel and Header should be compatible.

How can i fix the problem.
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Tue Oct 21, 2014 12:09 pm    Post subject: Reply with quote

Hi wacken,

What Linux version do you use?
Back to top
View user's profile Send private message
wacken



Joined: 21 Oct 2014
Posts: 5

PostPosted: Tue Oct 21, 2014 12:51 pm    Post subject: Reply with quote

Rasbian Image:
Linux raspberrypi 3.12.30+ #717 PREEMPT Fri Oct 17 18:46:31 BST 2014 armv6l GNU/Linux
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Mon Nov 17, 2014 12:29 pm    Post subject: Reply with quote

wacken wrote:
Rasbian Image:
Linux raspberrypi 3.12.30+ #717 PREEMPT Fri Oct 17 18:46:31 BST 2014 armv6l GNU/Linux


Wacken, if you successfully followed that procedure I think your problem is the module is already loaded, that's why the script complains about not being able to load it.

To solve this, in the rc.usbsrvd script I replaced the line:
Code:
/sbin/insmod $INSTALLDIR/bin/$STUBNAME.ko

with the following
Code:
 egrep -q "^tusbd " /proc/modules || /sbin/insmod $INSTALLDIR/bin/$STUBNAME.ko


I think the underlying problem is different and is just related to the daemon. In facts, I am on "Linux raspberrypi 3.12.32+ #721 PREEMPT Fri Nov 7 16:50:31 GMT 2014 armv6l GNU/Linux", compilation went OK, the module gets loaded, but the daemon silently exits.

Code:
oot@raspberrypi:~# lsmod | grep usb
tusbd                  45937  0
root@raspberrypi:~# modinfo /usr/local/usb-redirector/bin/tusbd.ko
filename:       /usr/local/usb-redirector/bin/tusbd.ko
license:        GPL
srcversion:     57DD87B84970935E0F09AD0
depends:       
vermagic:       3.12.32 preempt mod_unload modversions ARMv6
parm:           IIlIlIII:int
root@raspberrypi:~# /etc/init.d/rc.usbsrvd  start
Starting USB Redirector:  /sbin/insmod /usr/local/usb-redirector/bin/tusbd.ko
                          /usr/local/usb-redirector/bin/usbsrvd
root@raspberrypi:~# USB Server Startup...

root@raspberrypi:~#
root@raspberrypi:~#
root@raspberrypi:~#
root@raspberrypi:~# ps aux | grep usbsrv
root      2716  0.0  0.1   3548   808 pts/0    S+   13:08   0:00 grep usbsrv


To get more info I tried to launch the daemon with strace; here is what I get:

Code:
execve("/usr/local/usb-redirector/bin/usbsrvd", ["/usr/local/usb-redirector/bin/us"...], [/* 17 vars */]) = 0
uname({sys="Linux", node="raspberrypi", ...}) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 2718
rt_sigaction(SIGRTMIN, {0x55448, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x554dc, [RTMIN], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x55608, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbee9e774, 512, (nil), 0}) = -1 ENOSYS (Function not implemented)
open("/proc/sys/kernel/version", O_RDONLY) = 3
read(3, "#721 PREEMPT Fri Nov 7 16:50:31 "..., 512) = 41
close(3)                                = 0
brk(0)                                  = 0xc31000
brk(0xc52000)                           = 0xc52000
getuid32()                              = 0
rt_sigaction(SIGTERM, {0x5881c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x5881c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x5881c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x5881c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {0x5881c, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
getpid()                                = 2718
fork()                                  = 2719
exit_group(0)                           = ?


Any hint on what's going on?

Thanks
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Mon Nov 17, 2014 12:57 pm    Post subject: Reply with quote

is there a log file at /var/log/usbsrvd.log ?
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Mon Nov 17, 2014 1:07 pm    Post subject: Reply with quote

Peter wrote:
is there a log file at /var/log/usbsrvd.log ?


Yes, this what is in there:

Code:
Mon Nov 17 13:06:34 2014
 USB Server startup
Mon Nov 17 13:06:34 2014
 USB Server daemon can not be started!
Module: 3:28 error 0

Mon Nov 17 13:06:34 2014
 USB Server shutdown
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Mon Nov 17, 2014 1:14 pm    Post subject: Reply with quote

BTW, looks like the problem is the same as the users Kejxer andGothicIII were having here: http://www.incentivespro.com/forum/viewtopic.php?t=787

the latter did non managed the issue and workarounded by downgrading to a previous NOOBS image Sad

This sounds like the usb-redirectors doe not work properly on recent kernel versions, doesn't it? ForumAdmins, may you confim this or we can try somthing else to get it work?

Thanks
PL
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Mon Nov 17, 2014 1:27 pm    Post subject: Reply with quote

The log shows that USB Redirector kernel module is not loaded. This is a usual problem with Raspberry Pi. Kernel module does not load because it was compiled with incorrect kernel sources.

See my post in this topic.
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Mon Nov 17, 2014 2:23 pm    Post subject: Reply with quote

Peter wrote:
The log shows that USB Redirector kernel module is not loaded. This is a usual problem with Raspberry Pi. Kernel module does not load because it was compiled with incorrect kernel sources.

See my post in this topic.


Hi Peter,
am aware that's the common problem, indeed I spent several hours yesterday to get through it (btw, if you want more details I think I found the root of that specific problem).

But now am pretty sure the module has been compiled against the correct sources and it gets correctly loaded:
Code:
root@raspberrypi:~# cat /proc/modules | grep usb
tusbd 45937 0 [permanent], Live 0xbf0e6000 (O)


If you wanna personally check it out I can give you access to my Pi...
PL
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Mon Nov 17, 2014 3:29 pm    Post subject: Reply with quote

Remote access would be good. Please send the credentials to our support@ e-mail.
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Mon Nov 17, 2014 3:48 pm    Post subject: Reply with quote

Peter wrote:
Remote access would be good. Please send the credentials to our support@ e-mail.


Am currently trying to downgrade to 3.6.11 (rpi-update 8234d5148aded657760e9ecd622f324d140ae891).

Then I will re-upgrade to 3.12.32+, revert to the previous situation and give the credentials.
PL
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Tue Nov 18, 2014 7:29 am    Post subject: Reply with quote

Peter wrote:
Remote access would be good. Please send the credentials to our support@ e-mail.


Ok, I sent you an email containing the info to connect.
Keep me posted.

Thanks in advance
PL
Back to top
View user's profile Send private message
plrunner



Joined: 17 Nov 2014
Posts: 7

PostPosted: Tue Nov 18, 2014 10:46 pm    Post subject: Reply with quote

I finally get it to work.
I used rpi-source https://github.com/notro/rpi-source/wiki to fetch the correct source tree and compiled usb-redirector against it.

Regards,
PL
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Wed Nov 19, 2014 2:36 pm    Post subject: Reply with quote

Thanks for update.

rpi-source worked for me too, but I had to update gcc as well (follow instructions in rpi-source wiki).

It looks like your kernel source was fine, but the problem was in gcc version: kernel is compiled with gcc 4.8, while pi had gcc 4.6, which produced bad kernel module.
Back to top
View user's profile Send private message
wacken



Joined: 21 Oct 2014
Posts: 5

PostPosted: Wed Jan 21, 2015 7:48 pm    Post subject: Reply with quote

Hi,

I'm back. I tried the update to gcc 4.8 like in this https://github.com/notro/rpi-source/wiki tut. But I still have the problem that usbsrvd isn't starting. But now I don't have any comments in the log files. So I really dont know what went wrong. Could someone of you write me step by step how I get the progamm running.

Thx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group