From: Randy.Dunlap <rdd...@os...> - 2005-03-12 22:13:06
|
Elmano Carvalho wrote: > Dear Randy, > > First I run the build commands from my tusb dir: > #make -C /usr/src/linux-2.6.10/ O=/lib/modules/2.6.10/build M=`pwd` => to build the module > #make -C /usr/src/linux-2.6.10/ O=/lib/modules/2.6.10/build M=`pwd` modules_install => to install the module > > In the meantime, a tusb.ko copy goes to /lib/modules/2.6.10/extra/ directory. > > So, I run from the module tusb dir and get: > #modprobe tusb => I get the: FATAL: module tusb not found > > Then I try: > #insmod tusb.ko => then I get the unknown symbol in module error > > So then I run the dmesg command and get: > ... > parport0: FIFO is stuck > parport0: BUSY timeout (1) in compat_write_block_pio > FIFO write timed out > e1000: eth0: e1000_watchdog: NIC Link is Down > e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex > . > . > parport0: BUSY timeout (1) in compat_write_block_pio > FIFO write timed out > tusb: Unknown symbol usb_free_bus > tusb: Unknown symbol usb_new_device > tusb: Unknown symbol pci_find_class > tusb: Unknown symbol usb_connect > ... repeatedly usb_free_bus() is a Linux 2.4.x function (not in 2.6.x). usb_connect() : same. usb_new_device() and pci_find_class() in in 2.6.10. What is the last kernel version that this worked on? You would be better off asking for help with this on the lin...@li... mailing list. Also, have you looked at http://www.linux-usb.org/usbtest/ ? --- ~Randy > thanks for the help. > > Elmano > > ----- Original Message ----- > From: "Randy.Dunlap" <rdd...@os...> > To: "Elmano Carvalho" <emc...@ly...> > Subject: Re: [LTP] Problem with insmod on linux 2.6.10 > Date: Fri, 11 Mar 2005 15:22:55 -0800 > > >>Elmano Carvalho wrote: >> >>>Hey Randy, >>> >>>thanks for the input, as I was able to understand more about the >>>module build and install process >>>in reading all the documentations avail. But, when I successfully >>>run #make -C <path-to-kernel> M=`pwd` to build the usb-test >>>module externaly, and then >>>unsuccessfully run #modprobe tusb, I get the following error: >>> >>>FATAL: Module tusb not found. >> >>Did you install the module in /lib/modules/`uname -r`/kernel/drivers ? >> >> >>>And if I try the #insmod tusb.ko, I get a slightly different error: >>> >>>insmod: error inserting 'tusb.ko': -1 Unknown symbol in module >> >>dmesg should show you what symbol is missing there. >> >> >>>I wonder, do I have to rebuild my kernel and then try >>>"modprobing" this module or is it something I'm missing. >> >>Check dmesg then we can find out. >> >> >>>I appreciate the help. >>> >>>gratefully, Elmano >>> >>> >>> >>> >>>----- Original Message ----- >>>From: "Randy.Dunlap" <rdd...@os...> >>>To: "Elmano Carvalho" <emc...@ly...> >>>Subject: Re: [LTP] Problem with insmod on linux 2.6.10 >>>Date: Fri, 11 Mar 2005 11:36:17 -0800 >>> >>> >>> >>>>Elmano Carvalho wrote: >>>> >>>> >>>>>Hello, I am experiencing some dificulties with inserting a >>>>>module in my kernel after having it compiled with the make >>>>>command. I get the following error when I run insmod tusb_ki.o: >>>>> >>>>>insmod: error inserting 'tusb_ki.o': -1 Invalid module format >>>> >>>>Use 'modprobe modulename' without an extension. >>>>The expected extension is .ko, not .o . >>>>If you are only building a .o file, you are not using the >>>>2.6 kbuild structure. >>>>See Documentation/kbuild/* >>>> >>>> >>>> >>>>>Furthermore, the make command creates a script in the directory >>>>>called test_usb, and when I try to execute it it gives me the >>>>>following error: >>>>> >>>>>ERROR: Open of device /dev/tusb failed -1 errno = 21 >>>>>tusb driver may not be loaded >>>>> >>>>>Like I sayed, my linux version is 2.6.10, with gcc, gcc3.3 and >>>>>gcc3.4 as loaded compilers. >>>>>This problem happens even with the simple Hello-World program. >>>>> >>>>>Any pointers are greatly appreciated. >>>> >>>>Also see http://lwn.net/Articles/driver-porting/ >>>>for module building & changes. >>>> >>>>-- ~Randy |