All times are UTC-06:00




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

Joined: Mon Dec 18, 2006 10:08 am
Posts: 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
   
PostPosted: Mon Dec 25, 2006 5:23 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
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


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

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 9 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:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group