Re: Regarding compiling kernel-2.6.38.6-1 with PLX USB338x Linux driver modules on fedora 15

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 19, 2013 at 10:58:26AM +0100, humanshu bhatia wrote:
> Hello Sebastian,
Hi humanshu,

> I have compiled linux-2.6.38.6.tar.bz2  on fedora 15.
> 
> make menuconfig (Selecting PLX support and gadget zero option )
> make rpm
> 
> But after including latest PLX_USB338x_Linux_Driver_v_1_3_1:   gadget and
> include files as given by vendor in this kernel
> 
> 
> make menuconfig (Selecting PLX support and gadget zero option )
> make rpm

That PLX driver is not part of the standard kernel and I've never seen the
source nor what it does to the kernel.

> During compilation I face below errors:
> 
> drivers/usb/core/hcd.c: In function 'register_root_hub':
> drivers/usb/core/hcd.c:986:3: error: implicit declaration of function
> 'HCD_DEAD' [-Werror=implicit-function-declaration]
> drivers/usb/core/hcd.c: In function 'usb_hcd_link_urb_to_ep':
> drivers/usb/core/hcd.c:1092:2: error: implicit declaration of function
> 'HCD_RH_RUNNING' [-Werror=implicit-function-declaration]
> drivers/usb/core/hcd.c: In function 'hcd_bus_suspend':
> drivers/usb/core/hcd.c:1938:13: error: 'HCD_FLAG_RH_RUNNING' undeclared
> (first use in this function)
> drivers/usb/core/hcd.c:1938:13: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/usb/core/hcd.c: In function 'hcd_bus_resume':
> drivers/usb/core/hcd.c:1986:12: error: 'HCD_FLAG_RH_RUNNING' undeclared
> (first use in this function)
> drivers/usb/core/hcd.c: In function 'usb_hc_died':
> drivers/usb/core/hcd.c:2134:12: error: 'HCD_FLAG_RH_RUNNING' undeclared
> (first use in this function)
> drivers/usb/core/hcd.c:2135:10: error: 'HCD_FLAG_DEAD' undeclared (first
> use in this function)
> drivers/usb/core/hcd.c: In function 'usb_add_hcd':
> drivers/usb/core/hcd.c:2282:10: error: 'HCD_FLAG_RH_RUNNING' undeclared
> (first use in this function)
> drivers/usb/core/hcd.c: In function 'usb_remove_hcd':
> drivers/usb/core/hcd.c:2404:12: error: 'HCD_FLAG_RH_RUNNING' undeclared
> (first use in this function)
> cc1: some warnings being treated as errors
> make[5]: *** [drivers/usb/core/hcd.o] Error 1
> make[4]: *** [drivers/usb/core] Error 2
> make[3]: *** [drivers/usb] Error 2
> make[2]: *** [drivers] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.Ok7Rxz (%build)

This looks strange. If you enable USB in kernel it should compile without the
errors you have here. I would assume that the PLX driver is touching the files
and it does work with v2.6.38 but some other kernel and now you see the errors.

> 
> Now I compiled the kernel without  including latest
> PLX_USB338x_Linux_Driver_v_1_3_1:   gadget and include files.
> 
> So now after compilation I get required rpm file :
> # ls /root/rpmbuild/SRPMS/
> kernel-2.6.38.6-1.src.rpm
> 
> I think the issue is with the headers but I do not know where to define
> these headers.
> Please tell me how to resolve above errors.

Either you ask the vendor which kernel works with your PLX driver or you try
to make it with your current kernel by fixing the errors that pop up. Or you
try different hardware :)

> Thanks & Regards,
> Humanshu

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux