|
From: Danish Q. <dx...@nj...> - 2003-03-12 15:30:06
|
Hi Neil,
I have been able to patch my njbfs module against this problem, and load
the module into a 2.4.20 kernel. The core reason is rooted with the minor
device numbers when the device is registered with the USB subsystem.
Here's a quick unified diff patch that should get you up and working while
we investigate the problem.
-----
diff -r -u ../../sf.orig/njbfs/./njb_usb.h ./njb_usb.h
--- ../../sf.orig/njbfs/./njb_usb.h 2002-02-23 19:22:43.000000000
-0500
+++ ./njb_usb.h 2003-02-22 10:41:40.000000000 -0500
@@ -25,7 +25,7 @@
#define NJB_BULK_EP 2
#define NJB_ENDPOINT_BULK 2
-#define NOMAD_MINOR 96
+#define NOMAD_MINOR 64
#define MAX_NO_OF_DEVICES 4
#define NAK_TIMEOUT (HZ)
diff -r -u ../../sf.orig/njbfs/./nomad_usb.h ./nomad_usb.h
--- ../../sf.orig/njbfs/./nomad_usb.h 2002-02-23 19:25:52.000000000
-0500
+++ ./nomad_usb.h 2003-02-22 10:40:53.000000000 -0500
@@ -44,7 +44,7 @@
-#define NOMAD_MINOR 96
+#define NOMAD_MINOR 64
//#define NOMAD_IF 0
#define MAX_NO_OF_DEVICES 4
-----
Please let me or the list know if you have any other problems.
- Danish Qadri
On Sat, 8 Mar 2003, Neil R. Channen wrote:
> I was successfully running njbfs under RedHat 7.3, but when I upgraded to 8.0
> (2.4.18-26.8.0 kernel), the driver won't load, and doesn't report anything
> useful:
>
> % insmod ./njbfs.o
> ./njbfs.o: init_module: Operation not permitted
> Hint: insmod errors can be caused by incorrect module parameters, including
> invalid IO or IRQ parameters.
> You may find more information in syslog or the output from dmesg
> %
>
> % tail /var/log/messages
>
> Mar 8 21:52:02 nchannen kernel: hub.c: USB new device connect on bus1/2,
> assigned device number 8
> Mar 8 21:52:02 nchannen kernel: usb.c: USB device 8 (vend/prod 0x471/0x222) is
> not claimed by any active driver.
> Mar 8 21:52:05 nchannen /etc/hotplug/usb.agent: ... no modules for USB product
> 471/222/100
> Mar 8 21:52:10 nchannen sudo: neil : TTY=pts/3 ;
> PWD=/home/neil/build/njbfs ; USER=root ; COMMAND=/sbin/insmod ./njbfs.o
> Mar 8 21:52:10 nchannen kernel: usb.c: error registering nomad driver
>
> I have updated to the latest CVS source, and rebuilt it; I had to change:
> nomad.c: line 42 to
> #include <linux/slab.h>
> as <linux/malloc.h> is deprecated, and the Makefile to:
> SEARCHDIRS := -I- -I${MYCODEDIR} -I/lib/modules/`uname -r`/build/include
> instead of ... -I/usr/src/linux/include, which is no longer allowed
>
> Any guesses what I'm doing wrong? I always preferred njbfs to gnomad, but I
> can't get either working!
>
> Thanks!
>
> --
> Neil
> nchannen @ alumni.uwaterloo.ca
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost and
> disoriented. TotalView can help you find your way. Available on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> njbfs-bugs mailing list
> njb...@li...
> https://lists.sourceforge.net/lists/listinfo/njbfs-bugs
>
|