OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: magickarle 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
-
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
-
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
-
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.
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 (http://students.bath.ac.uk/enpsgp/Zaurus/defconfig-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 (http://students.bath.ac.uk/enpsgp/Zaurus/enable-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:
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 (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
-
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.
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 (http://students.bath.ac.uk/enpsgp/Zaurus/defconfig-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 (http://students.bath.ac.uk/enpsgp/Zaurus/enable-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:
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 (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
-
Get OE setup (see http://openembedded.org (http://openembedded.org) -> wiki -> GettingStarted), then I'll run you through it,
Si
-
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
Get OE setup (see http://openembedded.org (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]
-
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
-
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.
-
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
-
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.
-
'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