Carlo V. - 2004-10-12

Logged In: YES
user_id=977207

I'm running linux-2.6.8 and I got BrickOS working by
applying the USB patch, and using the LegoUSB's header file.
The #include <LegoUSB/driver.h> found in the patch (to
util/firmdl/rcx_comm.c) should include the header provided
by LegoUSB.
This way you still use the driver included in the kernel.
You don't need to install LegoUSB!

I think it's even enough to paste
#define LEGO_TOWER_SET_READ_TIMEOUT _IOW('u', 0xc8, int)
at the top of util/firmdl/rcx_comm.c
or maybe even remove the ioctl call at line 176 (well...
somewhere around it) since the kernel module accepts the
timeout value as parameter, and set it when the tower is
plugged in (AFAIK).

Before being able to use the tower you may also have to
create the device, simply done with
mknod /dev/usb/lego0 c 180 160
(you have to do this as root, and remember to set rights to
allow users to access the device)