Menu

#4 Unable to load the direcpc driver

open
Mike Nix
None
5
2003-09-10
2002-08-22
Anonymous
No

Thanks for posting the new driver! I got everything
compiled against 2.4.17 kernel but we were getting the
following errors:

$ make
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-
strict-aliasing -pipe -fno-strength-reduce -DCPU=686 -
march=i686 -Wall -DMODULE -D__KERNEL__ -
DLINUX -I/home/galenh/working/linux-
2.4/BUILD/linux/include/ -c dpc_usb.c -o dpc_usb.o
dpc_usb.c: In function `rx_send_context':
dpc_usb.c:119: warning: implicit declaration of function
`usb_fill_bulk_urb'
dpc_usb.c: In function `init_intr':
dpc_usb.c:492: warning: implicit declaration of function
`usb_fill_int_urb'
ld -O2 -r -s -o direcpc.o dpc_usb.o dpc_common.o

Since the functions were inline in the new kernel
modules (2.4.19 kernel) for usb we put them in the
dpc_usb.c file directly so that we did not receive any
compile errors:

$ diff dpc_usb.c.orig dpc_usb.c.new
67a68,106
>
> static inline void usb_fill_bulk_urb (struct urb *urb,
> struct usb_device *dev,
> unsigned int pipe,
> void *transfer_buffer,
> int buffer_length,
> usb_complete_t complete,
> void *context)
>
> {
> spin_lock_init(&urb->lock);
> urb->dev = dev;
> urb->pipe = pipe;
> urb->transfer_buffer = transfer_buffer;
> urb->transfer_buffer_length = buffer_length;
> urb->complete = complete;
> urb->context = context;
> }
> static inline void usb_fill_int_urb (struct urb *urb,
> struct usb_device *dev,
> unsigned int pipe,
> void *transfer_buffer,
> int buffer_length,
> usb_complete_t complete,
> void *context,
> int interval)
> {
> spin_lock_init(&urb->lock);
> urb->dev = dev;
> urb->pipe = pipe;
> urb->transfer_buffer = transfer_buffer;
> urb->transfer_buffer_length = buffer_length;
> urb->complete = complete;
> urb->context = context;
> urb->interval = interval;
> urb->start_frame = -1;
> }
>
>

When I plug in the direcpc router it is not able to load
the driver:

Aug 22 16:32:34 direcpc.c: Hughes DirecPC USB
Satmodem:v0.0.0 (2002/06/01)
Aug 22 16:32:34 usb.c: registered new driver direcpc
Aug 22 16:32:34 dpc_probe: Start
Aug 22 16:32:34 usb-uhci.c: uhci_submit_urb: pipesize
for pipe c0020480 is zero
Aug 22 16:32:34 direcpc.c: Can't init USB code (-12)

Have you seen this error before? Do you have any
feedback that you can provide on this error?

Thank you for your help.

--Rob

Discussion

  • RockClimbers

    RockClimbers - 2002-08-22

    Logged In: YES
    user_id=599411

    I apologize, I was not logged in when I submitted.

    --Rob

     
  • Mike Nix

    Mike Nix - 2003-09-10

    Logged In: YES
    user_id=591288

    This occurs when using the original grey dish driver on a
    white dish system. Upgrade to at least 1.1.4

     
  • Mike Nix

    Mike Nix - 2003-09-10
    • assigned_to: nobody --> whitedeath
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.