![]() |
building usbip on CentOS
I have been try for a while now to build this and I am not getting very far.
I have download the usbip-0.1.7.tar.gz from sourceforge.net I then followed http://wiki.centos.org/HowTos/I_need_the_Kernel_Source to get a full kernel source. then went to usbip-0.1.7/drivers/2.6.18 and issued the command Code:
make KSOURCE=~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686Code:
/home/scott/usbip-0.1.7/drivers/2.6.18/stub_rx.c:377: error: redefinition of 'usb_endpoint_xfer_bulk'Thanks Scott. |
The following worked ...
((A guess: 2.6.xx/ folders are for older than 2.6.18, head/ for 2.6.26 etc.) ( The head/ files works for 2.6.26.8 !)) So 2.6.18 will be a combination : cd usbip-0.1.7/drivers/2.6.21/ tar xvf linux-2.6.18.tar.bz2 (you can also use the hcd.h hub.h, you have in your source.) # cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} \ /usr/src/kernels/2.6.18-128.1.14.el5-i686/drivers/usb/core/ mkdir backup && mv stub_rx.c backup/ && cp ../head/stub_rx.c . ..... where the last period ( . ) means the current directory. mkdir headers cp linux-2.6.18/drivers/usb/core/{hcd.h,hub.h} headers/ make KSOURCE=/usr/src/kernels/2.6.18-128.1.14.el5-i686/ And ... usbip_common_mod.ko , usbip.ko , vhci-hcd.ko are created. ( Replace "-128.1.14.el5-i686" with your actual version of the installed package 'kernel-devel' ). .. Good luck ! .. :) P.S. : The latest source : usbip/linux/trunk ..... svn co https://usbip.svn.sourceforge.net/svnroot/usbip usbip ( Same procedure as in all the above. (headers/ folder can be omitted.)) PPS.: Updating usbip-0.1.7 to usbip-0.1.7-3 : http://usbip.sourcearchive.com/downloads/0.1.7-3/ http://usbip.sourcearchive.com/downl....1.7-3.diff.gz > usbip_0.1.7-3.diff.gz cd usbip-0.1.7/ && patch -p1 < usbip_0.1.7-3.diff .. And again, the same procedure. |
| All times are GMT -5. The time now is 12:12 AM. |