All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Dec 25, 2006 10:40 am 
Offline


Mon Dec 18, 2006 10:08 am

6
Hi,

as I was compiling a new linux kernel for my efika, I got this error:
Code:
  CC [M]  drivers/usb/host/ohci-hcd.o
In file included from drivers/usb/host/ohci-hcd.c:935:
drivers/usb/host/ohci-ppc-soc.c:225: error: redefinition of â__inittestâ
drivers/usb/host/ohci-pci.c:252: error: previous definition of â__inittestâ was here
drivers/usb/host/ohci-ppc-soc.c:225: error: redefinition of âinit_moduleâ
drivers/usb/host/ohci-pci.c:252: error: previous definition of âinit_moduleâ was here
drivers/usb/host/ohci-ppc-soc.c:226: error: redefinition of â__exittestâ
drivers/usb/host/ohci-pci.c:260: error: previous definition of â__exittestâ was here
drivers/usb/host/ohci-ppc-soc.c:226: error: redefinition of âcleanup_moduleâ
drivers/usb/host/ohci-pci.c:260: error: previous definition of âcleanup_moduleâ was here
make[3]: *** [drivers/usb/host/ohci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

As I figured out this error occures when you compile USB support as a module and have on of these three defines set (USB_OHCI_HCD_PPC_SOC, USB_OHCI_HCD_PPC_OF, USB_OHCI_HCD_PCI).
To avoid this you have to compile usb-supprort and USB_OHCI_HCD direkt into the kernel.
So it seems to me that at the moment it is not possible to compile usb-support as a module for the efika.

If somebody manages to compile usb-support as a module, pleas tell me how it is down.

Thanks
Bernd


Top
 Profile  
 
PostPosted: Mon Dec 25, 2006 5:23 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
lix wrote:
Hi,

as I was compiling a new linux kernel for my efika, I got this error:
Code:
  CC [M]  drivers/usb/host/ohci-hcd.o
In file included from drivers/usb/host/ohci-hcd.c:935:
drivers/usb/host/ohci-ppc-soc.c:225: error: redefinition of â__inittestâ
drivers/usb/host/ohci-pci.c:252: error: previous definition of â__inittestâ was here
drivers/usb/host/ohci-ppc-soc.c:225: error: redefinition of âinit_moduleâ
drivers/usb/host/ohci-pci.c:252: error: previous definition of âinit_moduleâ was here
drivers/usb/host/ohci-ppc-soc.c:226: error: redefinition of â__exittestâ
drivers/usb/host/ohci-pci.c:260: error: previous definition of â__exittestâ was here
drivers/usb/host/ohci-ppc-soc.c:226: error: redefinition of âcleanup_moduleâ
drivers/usb/host/ohci-pci.c:260: error: previous definition of âcleanup_moduleâ was here
make[3]: *** [drivers/usb/host/ohci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

As I figured out this error occures when you compile USB support as a module and have on of these three defines set (USB_OHCI_HCD_PPC_SOC, USB_OHCI_HCD_PPC_OF, USB_OHCI_HCD_PCI).
To avoid this you have to compile usb-supprort and USB_OHCI_HCD direkt into the kernel.
So it seems to me that at the moment it is not possible to compile usb-support as a module for the efika.

If somebody manages to compile usb-support as a module, pleas tell me how it is down.

Thanks
Bernd


This is well known and I think Sven worked on the problem for the Debian kernel, I am not sure if he solved it or just made OHCI a built-in module in the end though.

I will make sure he sees this thread to comment, however.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group