Author Topic: Module Usbcore.o Not Available. Why?  (Read 4475 times)

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« on: September 11, 2005, 07:03:31 pm »
Hi, I'm trying to get a CFU1 usb host workinf on my poodle.
Here's my logread:
"
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: socket 0: RATOC USB HOST CF+ Card
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: executing: 'modprobe usbcore 2>&1'
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + modprobe: module usbcore not found.
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + modprobe: failed to load module usbcore
Sep 11 21:58:29 poodle daemon.notice cardmgr[555]: modprobe exited with status 1
Sep 11 21:58:29 poodle daemon.notice cardmgr[555]: module /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/usbcore.o not available
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: executing: 'modprobe hc_sl811 2>&1'
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + Using /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/hc_sl811.o
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_alloc_bus
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_free_dev
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_deregister_bus
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_disconnect
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_connect
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_new_device
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_root_hub_string
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_alloc_dev
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_register_bus
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_free_bus
Sep 11 21:58:29 poodle daemon.info cardmgr[555]: + modprobe: failed to load module hc_sl811
Sep 11 21:58:29 poodle daemon.notice cardmgr[555]: modprobe exited with status 1
Sep 11 21:58:29 poodle daemon.notice cardmgr[555]: module /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/hc_sl811.o not available
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: executing: 'modprobe sl811_cs 2>&1'
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + Using /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/hc_sl811.o
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_alloc_bus
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_free_dev
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_deregister_bus
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_disconnect
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_connect
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_new_device
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_root_hub_string
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_alloc_dev
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_register_bus
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol usb_free_bus
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + Using /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/sl811_cs.o
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol hci_hcd_cleanup
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol hc_found_hci
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + modprobe: failed to load module sl811_cs
Sep 11 21:58:30 poodle daemon.notice cardmgr[555]: modprobe exited with status 1
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: executing: 'insmod /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/sl811_cs.o 2>&1'
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + Using /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/sl811_cs.o
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol hci_hcd_cleanup
Sep 11 21:58:30 poodle daemon.info cardmgr[555]: + insmod: unresolved symbol hc_found_hci
Sep 11 21:58:30 poodle daemon.notice cardmgr[555]: insmod exited with status 1
Sep 11 21:58:31 poodle daemon.err cardmgr[555]: get dev info on socket 0 failed: Resource temporarily unavailable
"
And here's my lsmod:
"
Module                  Size  Used by    Tainted: P  
rfcomm                 33488   0 (autoclean)
l2cap                  17028   2 (autoclean) [rfcomm]
bluez                  32616   1 (autoclean) [rfcomm l2cap]
sharp_mmcsd_m          26200   1
pxa_bi                 20028   0 (unused)
net_fd                 25012   0 (unused)
usbdcore               30424   0 [pxa_bi net_fd]
"
So I don't know why it says module usbcore not found.
It's trying to get a "module /lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/usbcore.o" with a error "not available" but this file is in /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/device so I did a copy to "/lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia" but it still says not available
Man, this zaurus is driving crazy!
Here what I've done:
reinstaled cfu1-driver_0.0.2-3_arm.ipk
installed from feed machine/poodle kernel-module-usbdcore_2.4.18-rmk7-pxa3-embedix-r36_poodle.ipk

Any help would be apprecated.Thanks
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #1 on: September 15, 2005, 04:10:17 pm »
usbcore and usbdcore are different things - usbdcore is what allows ethernet over usb iirc.

You probably need to modify the defconfig for your machine to enable usb (you may also need a minor patch - I sent the defconfig and patch for the Shepherd to the OE mailing list a long time agao, that should get you started looking in the right place).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« Reply #2 on: September 15, 2005, 06:56:39 pm »
Quote
usbcore and usbdcore are different things - usbdcore is what allows ethernet over usb iirc.

You probably need to modify the defconfig for your machine to enable usb (you may also need a minor patch - I sent the defconfig and patch for the Shepherd to the OE mailing list a long time agao, that should get you started looking in the right place).


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95943\"][{POST_SNAPBACK}][/a][/div]

Great. thanks. I'm a newbie n not sure how to modify defconfig n neither to get the oesf mailing list.
I did some research on google and on this site about those but I didn't get much info.
Any links or more info about how to modify defconfig?
Thanks
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #3 on: September 16, 2005, 07:46:28 am »
You'll need to modify your defconfig file (called defconfig-poodle in packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107 I think) to add the appropriate lines - see my shepherd patch, then patch the kernel (see below) re-build the kernel so that usbcore is built.

Quote
Message: 1
Date: Fri, 11 Feb 2005 15:59:14 -0000
From: Simon Pickering <S.G.Pickering@bath.ac.uk>
Subject: [Oe] Proposed patch to enable usbcore.o (and other usb)
   module build
To: oe@handhelds.org
Message-ID: <200502111601.aa27442@bath.ac.uk>
Content-Type: text/plain;   charset="us-ascii"

I submitted the driver for the REX-cfu1 usb host CF card earlier today. It needs the usbcore.o module to run.

I have modified the defconfig-shepherd (via make menuconfig) to produce some USB related modules (I just went through and clicked on anything that looked interesting). The patch is here:
http://students.bath.ac.uk/enpsgp/Zaurus/d...g-shepherd.diff

The kernel also needs a patch to remove an ifneq check I'd guess comes directly from the Sharp code, otherwise usbcore.o isn't built.

Lines 45-47 of drivers/usb/Makefile are as follows:

ifneq ($(CONFIG_ARCH_SHARP_SL),y)
obj-$(CONFIG_USB)  += usbcore.o
endif

To make usbcore build I simply removed the ifneq/endif from around the middle line.

Patch here: http://students.bath.ac.uk/enpsgp/Zaurus/e...e-usbcore.patch

I don't know why this ifneq is in there, and hopefully this patch won't break anything (the kernel and modules all built correctly, but I've only tested the usbcore.o module).

Cheers,


Si

You'll also need to build cfu1 for your kernel/machine combo. This is in OE:

Quote
Message: 5
Date: Fri, 11 Feb 2005 11:21:44 -0000
From: Simon Pickering <S.G.Pickering@bath.ac.uk>
Subject: [Oe] cfu1-driver (ratoc CF usb host card driver)
To: oe@handhelds.org
Message-ID: <200502111123.aa26043@bath.ac.uk>
Content-Type: text/plain;   charset="us-ascii"

Builds, and works fine on my Shepherd.

http://students.bath.ac.uk/enpsgp/Zaurus/cfu1-driver.tar.gz

Requires usbcore.o (kernel-module-usbcore) to run (this is in the bb as an RDEPENDS), defconfig patch and kernel patch to follow to create this module as part of openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb

Cheers,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« Reply #4 on: September 19, 2005, 12:55:29 pm »
Quote
You'll need to modify your defconfig file (called defconfig-poodle in packages/linux/openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107 I think) to add the appropriate lines - see my shepherd patch, then patch the kernel (see below) re-build the kernel so that usbcore is built.

Quote
Message: 1
Date: Fri, 11 Feb 2005 15:59:14 -0000
From: Simon Pickering <S.G.Pickering@bath.ac.uk>
Subject: [Oe] Proposed patch to enable usbcore.o (and other usb)
   module build
To: oe@handhelds.org
Message-ID: <200502111601.aa27442@bath.ac.uk>
Content-Type: text/plain;   charset="us-ascii"

I submitted the driver for the REX-cfu1 usb host CF card earlier today. It needs the usbcore.o module to run.

I have modified the defconfig-shepherd (via make menuconfig) to produce some USB related modules (I just went through and clicked on anything that looked interesting). The patch is here:
http://students.bath.ac.uk/enpsgp/Zaurus/d...g-shepherd.diff

The kernel also needs a patch to remove an ifneq check I'd guess comes directly from the Sharp code, otherwise usbcore.o isn't built.

Lines 45-47 of drivers/usb/Makefile are as follows:

ifneq ($(CONFIG_ARCH_SHARP_SL),y)
obj-$(CONFIG_USB)  += usbcore.o
endif

To make usbcore build I simply removed the ifneq/endif from around the middle line.

Patch here: http://students.bath.ac.uk/enpsgp/Zaurus/e...e-usbcore.patch

I don't know why this ifneq is in there, and hopefully this patch won't break anything (the kernel and modules all built correctly, but I've only tested the usbcore.o module).

Cheers,


Si

You'll also need to build cfu1 for your kernel/machine combo. This is in OE:

Quote
Message: 5
Date: Fri, 11 Feb 2005 11:21:44 -0000
From: Simon Pickering <S.G.Pickering@bath.ac.uk>
Subject: [Oe] cfu1-driver (ratoc CF usb host card driver)
To: oe@handhelds.org
Message-ID: <200502111123.aa26043@bath.ac.uk>
Content-Type: text/plain;   charset="us-ascii"

Builds, and works fine on my Shepherd.

http://students.bath.ac.uk/enpsgp/Zaurus/cfu1-driver.tar.gz

Requires usbcore.o (kernel-module-usbcore) to run (this is in the bb as an RDEPENDS), defconfig patch and kernel patch to follow to create this module as part of openzaurus-pxa_2.4.18-rmk7-pxa3-embedix20031107.bb

Cheers,


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96019\"][{POST_SNAPBACK}][/a][/div]


So I need to recompile a new kernel with usbcore "enabled" right?
Any good "how to" about this recompile process?
thanks alot
« Last Edit: September 19, 2005, 02:11:47 pm by magickarle »
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #5 on: September 19, 2005, 01:31:10 pm »
Get OE setup (see http://openembedded.org -> wiki -> GettingStarted), then I'll run you through it,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« Reply #6 on: November 11, 2005, 04:06:13 pm »
Hi, I did it.
So...  what's next? It seems that a lot of people needs those steps. Asa I'm finished with it, I'll post the new rom with usbcore module for the 5600
Cheers

Quote
Get OE setup (see http://openembedded.org -> wiki -> GettingStarted), then I'll run you through it,


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96291\"][{POST_SNAPBACK}][/a][/div]
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #7 on: November 12, 2005, 05:25:36 am »
I'm glad you've got it sorted - you don't need to post an entire 'ROM', just the ipks for the kernel modules will be enough for others to install and use.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« Reply #8 on: November 12, 2005, 01:26:55 pm »
Quote
I'm glad you've got it sorted - you don't need to post an entire 'ROM', just the ipks for the kernel modules will be enough for others to install and use.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103434\"][{POST_SNAPBACK}][/a][/div]
No it's not sorted out, I just need the other steps that you were talking about.
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #9 on: November 12, 2005, 04:43:47 pm »
Ah, sorry, I mis-understood.

So you have OE setup and working fine? Have you built something to test that it's working okay (try 'bitbake virtual/kernel')

Now you want to build the kernel modules & build the cfu1 driver I take it?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

magickarle

  • Newbie
  • *
  • Posts: 32
    • View Profile
Module Usbcore.o Not Available. Why?
« Reply #10 on: November 14, 2005, 02:10:14 pm »
Quote
Ah, sorry, I mis-understood.

So you have OE setup and working fine? Have you built something to test that it's working okay (try 'bitbake virtual/kernel')

Now you want to build the kernel modules & build the cfu1 driver I take it?


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103480\"][{POST_SNAPBACK}][/a][/div]

Yes, that's right, I'm not too sure where to start for the built of kernel n module.
Poodle Zaurus 5600
Qtopia 2.1.2
Linux kernel V2.4.18-rmk7-pxe-embedix-3.5.3

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Module Usbcore.o Not Available. Why?
« Reply #11 on: November 15, 2005, 05:27:47 am »
'bitbake virtual/kernel'

should build the correct kernel for your machine.

Then just do

'bitbake cfu1'

Which will build the cfu1 drivers.

Then you'll need to look in the packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/ directory and alter the defconfig-poodle in there.

I would first cd to the kernel build directory in tmp/work/* and run the following to choose the kernel options you want (this has to be done after you build the kernel of course).

export ARCH=arm
make menuconfig

Then select the various usb drivers which you want, and either replace the defconfig file (see above) with the .config file in the kernel source directory, or look in it and add the extra parts to the defconfig file.

Then you need to make bitbake rebuild the kernel - run 'bitbake -c clean virtual/kernel', then run 'bitbake virtual/kernel' again and it should make your usb modules.

Hope that made some sense,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva