LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2007, 12:57 AM   #1
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Rep: Reputation: 15
Usb keyboard problem...


Hi all,

My usb-keyboard is not detected in my ARM board(it is not even sensing that a device has been inserted)...
So,i tried the following things...

1. I compiled and tried to insert the module usb-ohci.o
It gave the following error while inserting...

usb-ohci.o: unresolved symbol pci_pool_free
usb-ohci.o: unresolved symbol pci_pool_alloc
usb-ohci.o: unresolved symbol pci_pool_destroy
usb-ohci.o: unresolved symbol pci_pool_create


2. I don't find where the above functions are
defined in the drivers/usb directry of kernel
source...

3. Then, with out any solutions...I tried to compile my kernel with usb-ohci module itself insted of inserting it after... then again while compiling the kernel source i got the following errors...
drivers/usb/usbdrv.o: In function `ohci_mem_init':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:562: undefined reference to `pci_pool_create'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:569: undefined reference to `pci_pool_create'
drivers/usb/usbdrv.o: In function `ohci_mem_cleanup':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:582: undefined reference to `pci_pool_destroy'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:586: undefined reference to `pci_pool_destroy'
drivers/usb/usbdrv.o: In function `urb_free_priv':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:615: undefined reference to `pci_pool_free'
drivers/usb/usbdrv.o: In function `sohci_submit_urb':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:598: undefined reference to `pci_pool_alloc'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:604: undefined reference to `pci_pool_free'
drivers/usb/usbdrv.o: In function `sohci_alloc_dev':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:627: undefined reference to `pci_pool_alloc'
drivers/usb/usbdrv.o: In function `sohci_free_dev':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:642: undefined reference to `pci_pool_free'
drivers/usb/usbdrv.o: In function `ep_add_ed':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:598: undefined reference to `pci_pool_alloc'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:604: undefined reference to `pci_pool_free'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:615: undefined reference to `pci_pool_free'
drivers/usb/usbdrv.o: In function `dl_del_list':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:615: undefined reference to `pci_pool_free'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:615: undefined reference to `pci_pool_free'
drivers/usb/usbdrv.o: In function `ohci_mem_init':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:562: undefined reference to `pci_pool_create'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:569: undefined reference to `pci_pool_create'
drivers/usb/usbdrv.o: In function `ohci_mem_cleanup':
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:582: undefined reference to `pci_pool_destroy'
/home/rameshchandra/Ramesh/Mywork/kernelsourcemodified/Xsbase/drivers/usb/usb-ohci.h:586: undefined reference to `pci_pool_destroy'
make: *** [vmlinux] Error 1

How can i solve this problem??Any one help me..
 
Old 06-29-2007, 01:11 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Do you the right version linux headers installed for your kernel version?
 
Old 06-30-2007, 01:49 AM   #3
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
reply:usb keyboard...

Quote:
Originally Posted by dive
Do you the right version linux headers installed for your kernel version?

Yes, the entire kernel source came intact for our project...so i think the kernel headers may be of the same version...but how do i check it??

but, anyway..now i actually compiled that usb-ohci.o successfully...and inserted it one the board...(i have copied all those missing definitions and put on the usb-ohci.c and compiled)...

But, now also my usb-keyboard is not detected??

my board has the following things...

1--> usbcore.o

2-->usb-ohci.o

3 -->hid.o
4 -->hub


i think they merged the usbcore.o in the kernel and it doesnot exist as a module...i inserted that usb-ohci now...

what may be the problem that still makes the usb keyboard not working???
 
Old 07-02-2007, 07:06 AM   #4
LN85
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Hi Ramesh,

I also have the same problem detecting a usb pen drive.
When i try to insert usb-ohci.o i get message saying unresolved symbol like pci_pool_destroy and pci_pool_create.

How did you solve that issue ?
Kindly reply .
 
Old 07-03-2007, 05:02 AM   #5
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Re:USB-pendrive problem

Hi,
Untill now i have not solved that problem...My usb-keyboard is still giving the same problem...even i somehow managed to insert the usb-ohci.o...

I have made some tweaking in inserting the usb-ohci.o...

The funtions which are said to be unresolved symbols...like pci_pool_create etc... are found in the pci.c file in the /drivers/pci/ directory...go there and copy these function definitions to your usb-ohci.c...(exactly after the line #include "usb-ohci.h" in usb-ohci.c file)...copy all the funtions needed by these pci_pool_create etc(i.e, it needs the structure pci_pool etc... and then compile the usb-ohci.c to give usb-ohci.o... and then insert the module...

You can also use "nm usb-ohci.o" to see whether these functions are defined or not...(U-for undefined, T-defined)...

with the help of pci.c itself you can make this usb-ohci.o error free...

But after inserting this usb-ohci.o without problem...even still i am facing the same proble...anyway you try it... Are you using arm board?cross-compiling?
 
Old 07-03-2007, 11:16 PM   #6
LN85
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Hi,

Im using arm board only and hence do cross compiling for the target board.

What i tried was i built it in the kernel image itself instead of going for modules since we get that unresolved symbol issue while inserting the module driver.

Now the USB is detected !

May be you can try that way if you have not tried that.

Thanks & Cheers
 
Old 07-09-2007, 03:55 AM   #7
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Re:Usb keyboard problem...

Hi... thanks for your reply...

What are the options you included while "menu-config" to build the kernel for merging usb-options inbuilt...??

Can you please list it out here...

I tried enabling the

-->Usb-ohci support
-->Usb-keyboard support
-->Mass-storage support

But my kernel is throwing out the same error as i mentioned earlier during compilation...i.e, unresolved symbols...

Now i could not cross-compile my kernel properly...I am using an 2.4.18 kernel...patched with xhyper250...

Whether your usb-keyboard is working now? and pendrive?

Still now my usb-keyboard and pen-drive is not detected..
 
Old 07-10-2007, 03:13 AM   #8
LN85
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Hi,

From USB point of view ...you need to enable the following

USB support
USB device file system support
USB interface suppport (either of the three - you have mentioned that as OHCI)
USB device driver class....( Mass storage or keyboard)
Enable debugs options too for every thing so that you can know always wat is going on .

SCSI support is also required for USB ...So enable
SCSI support
SCSI generic and SCSI device support.

Do build eveyrthing into the kernel dont build them as modules.
Coz i had problems only when i built them as modules.
Try with these and do update the status.

Cheers,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB keyboard problem... ramesh6056 Linux - Software 0 06-25-2007 01:31 AM
Problem with USB keyboard and mouse EddyHahn Linux - Hardware 1 12-05-2006 05:36 PM
Keyboard and USB mouse problem MrSnake Fedora 2 08-28-2004 05:20 AM
usb keyboard problem joepesci Linux - Hardware 0 07-20-2004 02:11 PM
usb keyboard problem in 2.4.19 malix Linux - Hardware 0 09-04-2002 11:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration