LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-18-2005, 02:18 AM   #16
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46

OK, the driver was mentioned in the first post and is at http://legousb.sourceforge.net/legousbtower/index.shtml so I've downloaded it.

Now I guess I'd have to

tar zxvf legousbtower-0.5.4.tar.gz
./configure
make
su
make install

so far so good.... but where do I go from here?

Linmix
 
Old 06-18-2005, 02:23 AM   #17
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
... not so good:

[linmix@localhost legousbtower-0.5.4]$ ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for gmake... gmake
checking for kernel include tree... configure: error: no suitable configured kernel include tree found
[linmix@localhost legousbtower-0.5.4]$

So I'll have to recompile the kernel anyway?
 
Old 06-18-2005, 03:39 PM   #18
kdogksu
Member
 
Registered: Dec 2004
Location: Kansas, United States
Distribution: Ubuntu
Posts: 52

Rep: Reputation: 16
You're in luck. In the kernel config file, m=module, so your kernel already has it built as a module. (This isn't surprising. Most out-of-the-box distros compile EVERYTHING as a module). All you need to do is use the modprobe command (as root) as follows: modprobe <modulename>. I don't remember offhand the name of the module (it's on another computer), but you can find it easily enough by doing something like 'modprobe -l | grep -i lego'. You should see the message about it being added to the kernel when you type 'dmesg' (should appear at the bottom). If the device doesn't appear in your /dev/ directory, you may have to add a node as described above. Good luck!
 
Old 06-18-2005, 04:03 PM   #19
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
[linmix@localhost ~]$ /sbin/modprobe -l | grep -i lego
/lib/modules/2.6.11-1.27_FC3/kernel/drivers/usb/misc/legousbtower.ko
[linmix@localhost ~]$ /sbin/modprobe legousbtower
FATAL: Error inserting legousbtower (/lib/modules/2.6.11-1.27_FC3/kernel/drivers/usb/misc/legousbtower.ko): Operation not permitted
[linmix@localhost ~]$ su
Password:
[root@localhost linmix]# /sbin/modprobe legousbtower
[root@localhost linmix]# dmesg
.
.
usbcore: registered new driver legousbtower
drivers/usb/misc/legousbtower.c: LEGO USB Tower Driver v0.96

Great!! (it's loaded now I only need to find out that it really works...)

In post #5 I read I should now add the module to /etc/module.conf but I have no such file on my system. I could of course simply do:

# gedit /etc/module.conf

but I have no idea how I should format the file. Cou you (ar anybody else) show me a sampel entry for module.conf?

Thanks!!

BTW I was halfway through compiling a kernel (which I'd never done before) when I read your post. I'm willing to learn but really appreciate any 'shortcuts' you can provide for saving me from reading 1000+ webpages on about anything remotely connected to getting my Mindstorm to work with Linux
 
Old 06-20-2005, 12:07 AM   #20
kdogksu
Member
 
Registered: Dec 2004
Location: Kansas, United States
Distribution: Ubuntu
Posts: 52

Rep: Reputation: 16
I run Debian, which deals with modules a little differently than other distros. However, I have never messed with my modules.conf (note the 's') that I can remember. You can modprobe the lego module every time you reboot your computer, however I am able to put the name of the module in /etc/modules, and it is automatically load at boot time (I don't know if all distros work this way). I don't know much about modules and the associated files, but I don't think you should have to mess with any of them since the lego module is part of the kernel and not compiled seperately.

I think you have all the info you need to get going. Remember to create the device node if it doesn't exist, set the "RCXTTY" variable (make sure you 'export' it), and then just use firmdl3 and dll to communicate with the RCX brick (if you're using brickOS). All the stuff you need is probably available as a package from your distro. I just used `apt-get install brickos`, and everything worked great from there. If you still have trouble, post another message and I'll try to dig up the how-tos I used to get started (again, they're not on this machine).
 
Old 07-20-2005, 04:42 PM   #21
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
been away for a while, but back at it.

I'm currently installing apt and will ry brickos although I'd like to have a look at NQC too since I read an interesing programming utorial.

I tried finding modules.conf again and came up with the following:

[linmix@localhost ~]$ slocate modules.conf
/etc/gnome-vfs-2.0/modules/ssl-modules.conf
/etc/gnome-vfs-2.0/modules/default-modules.conf
/etc/gnome-vfs-2.0/modules/mapping-modules.conf

that's all there is. Should I use one of those (strange!) and which one?? Again, if anyone has a sample file I'd appreciate it.

Also if you happen to come across the howtos do post the links.
 
Old 07-20-2005, 10:06 PM   #22
NetRAVEN5000
Member
 
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320

Rep: Reputation: 30
Well I've got Slackware 10.1, and I've never tried hooking my LEGO tower up (and it's not even USB - it's serial) but, just out of curiosity, what are you going to do with it? You can't make LEGO programs in Linux without Wine and RoboLab, can you?
 
Old 07-21-2005, 12:42 AM   #23
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
yes you can NQC (not quite C) is a programmin language for the RCX based on C and there are numerous websites that provide sample code and also a couple of tutorials
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good, quite ATX-mid tower case that supports 6 usb ports? r_jensen11 General 1 03-21-2005 08:36 PM
Read/Write LEGO USB Tower swinchen Programming 0 01-25-2005 09:36 PM
roadrunner wireless usb tower compatibility eruhk Linux - Wireless Networking 0 08-16-2004 02:32 PM
KDS USB CD Tower LinuxMWB Linux - Hardware 0 01-20-2004 09:24 PM
LEGO Mindstorms RIS 2.0 L.Tilley Linux - General 2 03-12-2002 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration