Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mindstorms Troubles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Thu Jun 10, 2004 4:01 am    Post subject: Mindstorms Troubles Reply with quote

Whenever I try to access my Lego USB Tower using NQC, I get the following error:
Code:

Could not open serial port or USB device


I have the legousbtower module loaded, and usb is in my USE flags.

What is my problem and how do I fix it?

Thanks for any help.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Thu Jun 10, 2004 4:19 am    Post subject: Reply with quote

If you are using Gentoo's ebuilds, i don't think they have usb support. Use my ebuilds. Its late here and I need to goto bed. I'll get back to you with more info. BTW.. if you are using my ebuilds, make sure that /usr/src/linux points to the proper kernel version.
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Thu Jun 10, 2004 4:29 am    Post subject: Reply with quote

I'm using your ebuilds. /usr/src/linux is correct.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Thu Jun 10, 2004 1:35 pm    Post subject: Reply with quote

do you have a /dev/usb/legousbtower0?
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Thu Jun 10, 2004 9:36 pm    Post subject: Reply with quote

Yes;
Code:

lr-xr-xr-x  1 root root       13 Jun 11  2004 lego0 -> legousbtower0
crw-rw-r--  1 root root 180, 160 Jan  1  1970 legousbtower0


I just noticed, on startup, that legousbtower failed to load, but when I lsmod, it is loaded:
Code:

legousbtower           14276  0


Dmesg shows this:
Code:

drivers/usb/core/usb.c: registered new driver legousbtower
drivers/usb/misc/legousbtower.c: LEGO USB Tower Driver v0.9
drivers/usb/misc/legousbtower.c: LEGO USB Tower #0 now attached to major 180 minor 160
drivers/usb/misc/legousbtower.c: LEGO USB Tower firmware version is 1.0 build 134
Back to top
View user's profile Send private message
Legoguy
Apprentice
Apprentice


Joined: 22 Dec 2003
Posts: 166
Location: Edmonton, Alberta, Canada

PostPosted: Fri Jun 11, 2004 3:03 am    Post subject: Reply with quote

I've tried this before with similar fate. I guess I'm glad I have a Mindstorms 1.0 set with the Serial tower and the RCX with the power jack on the back :D

I ordered the USB tower from PITSCO LEGO and enjoyed using it on Windows until I relized it had lower range - I suggest getting a serial tower if you can.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Jun 11, 2004 3:23 am    Post subject: Reply with quote

Try not putting the USB tower behind any hubs and btw do you use ehci (usb 2.0) in your kernel? and do you use uhci or ohci?
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Jun 11, 2004 3:30 am    Post subject: Reply with quote

if you do have ehci try legousbtower.c 0.92.

Oh by the way. Did you ever patch the legousbtower in the kernel at all? The one currently in the kernel only works on some ohci systems. Not uhci or ehci.
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Fri Jun 11, 2004 5:08 am    Post subject: Reply with quote

I've tried the new version, still the same problems.
I did patch the kernel.
The tower is not behind a hub.
I don't know weather i'm using ohci or uhci. My mobo is an Asus K8V.
Ehci, ohci, and uhci are all modules, and are loaded.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Jun 11, 2004 12:51 pm    Post subject: Reply with quote

try it without loading the ohci or ehci. Mainly the driver still has trouble with usb2.0 and functioning behind hubs.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Fri Jun 11, 2004 9:08 pm    Post subject: Reply with quote

Ohci_hcd and ehci_hcd are loaded weather I like it or not.
Do I have to not compile them at all?
Note that i'm using genkernel.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Jun 11, 2004 11:52 pm    Post subject: Reply with quote

try rmmod

I know that the legousbtower driver has problems with ehci, but i thought it was fully fixed. i think there is also a 0.93 though that i may have lost :-/
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Sat Jun 12, 2004 12:12 am    Post subject: Reply with quote

Tried that, still the same problem.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Thu Jun 17, 2004 10:40 pm    Post subject: Reply with quote

Sorry been busy lately.

Does the light on your tower light up when you attempt a download via nqc?
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Thu Jun 17, 2004 11:03 pm    Post subject: Reply with quote

No, I only get the error. Nqc, it seems, cannot open the device, so it terminates.
The tower lights up when I plug it in, though.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Jun 18, 2004 12:26 am    Post subject: Reply with quote

do you have proper permissions to /dev/usb/legousbtower0?

do you have legousb emerged even though 2.6 already contains the module?
you are using USE=usb to emerge nqc i believe you already said.

if you say yes to all these try this:
edit my nqc ebuild on the following line

epatch ${FILESDIR}/nqc-${PV}-${My_KV}.patch

to say:
epatch ${FILESDIR}/nqc-${PV}-2.6.patch

It seems to me either nqc doesn't know howto use usb, can't find /dev/usb/legousbtower0, is trying to access a different inode (eg. /dev/legotower0), or simply doesn't have access.

are you using the right command? 'nqc -Susb -d program'
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Sun Jun 20, 2004 1:18 am    Post subject: Reply with quote

Did you get it working okay? Or will this problem require a more in-depth solution? I'm very interested in working the bugs out.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Sat Jun 26, 2004 10:57 am    Post subject: Reply with quote

Sorry, due to a bug in the forums, I have not recieved topic reply notifications about this topic, and did not know about your reply until I checked this topic manually.

The nqc ebuild does not contain the line "epatch ${FILESDIR}/nqc-${PV}-${My_KV}.patch"

Code:
crw-rw-r--  1 root root 180, 160 Jan  1  1970 /dev/usb/legousbtower0


Code:

*  dev-lang/legousb
      Latest version available: 0.5.4
      Latest version installed: 0.5.4
      Size of downloaded files: 22 kB
      Homepage:    http://legousb.sourceforge.net/
      Description: Lego USB Tower Linux Driver Modules
      License:     GPL-2
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Mon Jun 28, 2004 3:25 am    Post subject: Reply with quote

if you use the nqc ebuild (2.5.1-r1) in that package, it should contain that line. This patches nqc to use USB in linux.

I feel you pain about the email notifications :-p, by the way, hehe!
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Mon Jun 28, 2004 5:18 am    Post subject: Reply with quote

I was probably looking at 2.5.1, not 2.5.1-r1.

Still the same error.
Back to top
View user's profile Send private message
JCDenton
n00b
n00b


Joined: 25 Jan 2005
Posts: 8

PostPosted: Fri Feb 18, 2005 10:50 pm    Post subject: Reply with quote

tomthewombat wrote:
Sorry been busy lately.

Does the light on your tower light up when you attempt a download via nqc?


I had the same problem as farrioth but my light blinks once,
but still I get the message "Couldn't open serial or usb device"

HELP ???
Back to top
View user's profile Send private message
will_in_wi
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2004
Posts: 117

PostPosted: Tue Mar 01, 2005 11:48 pm    Post subject: Reply with quote

make a symlink from /dev/usb/legousbtower0 (or whatever it is) to /dev/tower0. I need to figure out how to make that a patch as I am having permission problems with symlinks and the most recent versions of udev.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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