|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
v2.2.2 adding USB-Server kernel moduleHi,
Trevor sent me here since my problem is of devolper nature :) So: redirection of usb mass storage devices works through rdesktop on the remote machine. To enable other devices, such as usb scanner or a webcam, to be used on the server I found the USB Server from (http://www.usb-server.com/usb-server.html) "Incentives Pro" . The linux version is open source under the GPL v2. It includes the source code for a kernel module and a patch for the rdesktop 1.6.0 (can be downloaded here: http://incentivespro.com/usb-server.tar.gz ). What I did: -Downloaded and extracted the Thinstation-src2.2.1 added the Delta files. Now, it's all located here "/thinstation/thinstation_src-2.2" - put the sources of the usb-server module to "/thinstation/thinstation_src-2.2/sources/tusbd" - executed RUNME and switched directory to /source/tusbd - make install said " make: *** No rule to make target `install'. Stop." I tried just "make" with this output >make -C /source/kernel-2.6.16.5/linux-2.6.16.5 M=/source/tusbd modules >make[1]: Entering directory `/source/kernel-2.6.16.5/linux-2.6.16.5' > Building modules, stage 2. > MODPOST >make[1]: Leaving directory `/source/kernel-2.6.16.5/linux-2.6.16.5' Here is the listing of the Makefile ############################################### ########Makefile for tusbd kernel module####### DEBUG ?= n obj-m := tusbd.o tusbd-objs := usbdriver.o usbdcdev.o minor_control.o minor_device.o usbdevice.o fifo.o utils.o waitable_queue.o bind_unbind.o KERNELDIR ?=/source/kernel-2.6.16.5/linux-2.6.16.5 #I adjusted this PWD:=$(shell pwd) ifeq ($(DEBUG),y) EXTRA_CFLAGS += -D_DEBUG_BUILD_ endif default: make -C $(KERNELDIR) M=$(PWD) modules # cp tusbd.ko .. # make clean # mv ../tusbd.ko ./ clean: make -C $(KERNELDIR) M=$(PWD) clean "Makefile" 22 lines, 430 characters ########Makefile for tusbd kernel module####### ############################################### Since there was a new .ko file in the folder and a new tusbd-directory in /source/kernel-2.6.16.5/linux-2.6.16.5 folder (in the chrooted environment). I thought it went good. Patching and compiling rdesktop1.6.0 told me few warnings but worked I think. The next step was to update the kernel in the build environment, located "/thinstation/build/Thinstation-2.2.2" Here the values of the files in the /utils/ path >cat SOURCE_PATH /thinstation/thinstation_src-2.2/source >cat KERNEL_PATH kernel-2.6.16.5/linux-2.6.16.5 >cat X_PATH x.org-R6.9.0/xc I executed the update_kernel.sh I added the line "module tusbd" in the build.conf and executed ". build" with following errormessage: cp: missing destination file operand after './tmp-tree/lib/modules/tusbd/tusbd.ko' Well, I don't know what to do. Writing my own Makefile for the kernel module is one option, I think, or the error lies in the build script. I have no idea. regards Frank Matthes ------------------------------------------------------------------------------ _______________________________________________ Thinstation-developer mailing list Thinstation-developer@... https://lists.sourceforge.net/lists/listinfo/thinstation-developer |
|
|
Re: v2.2.2 adding USB-Server kernel moduleOn Thu, 2009-03-26 at 13:09 +0100, Matthes, Frank wrote:
> Hi, > > Trevor sent me here since my problem is of devolper nature :) And in the next sentence I asked you I didn't see a make install after the make. So you would need to have copied over the tusbd.ko file into the build/kernel tree somewhere or it wouldn't get included. Can you check? Trevor B > So: > > redirection of usb mass storage devices works through rdesktop on the > remote machine. To enable other devices, such as usb scanner or a > webcam, > to be used on the server I found the USB Server from > (http://www.usb-server.com/usb-server.html) > "Incentives Pro" . The linux version is open source under the GPL v2. It > includes the source code for a kernel module and a patch for the > rdesktop 1.6.0 (can be downloaded here: > http://incentivespro.com/usb-server.tar.gz ). > > What I did: > -Downloaded and extracted the Thinstation-src2.2.1 added the Delta > files. > Now, it's all located here "/thinstation/thinstation_src-2.2" > - put the sources of the usb-server module to > "/thinstation/thinstation_src-2.2/sources/tusbd" > - executed RUNME and switched directory to /source/tusbd > - make install said " make: *** No rule to make target `install'. > Stop." > I tried just "make" with this output > >make -C /source/kernel-2.6.16.5/linux-2.6.16.5 M=/source/tusbd modules > >make[1]: Entering directory `/source/kernel-2.6.16.5/linux-2.6.16.5' > > Building modules, stage 2. > > MODPOST > >make[1]: Leaving directory `/source/kernel-2.6.16.5/linux-2.6.16.5' > > > Here is the listing of the Makefile > ############################################### > ########Makefile for tusbd kernel module####### > DEBUG ?= n > > obj-m := tusbd.o > tusbd-objs := usbdriver.o usbdcdev.o minor_control.o minor_device.o > usbdevice.o fifo.o utils.o waitable_queue.o bind_unbind.o > > KERNELDIR ?=/source/kernel-2.6.16.5/linux-2.6.16.5 #I adjusted this > > PWD:=$(shell pwd) > > ifeq ($(DEBUG),y) > EXTRA_CFLAGS += -D_DEBUG_BUILD_ > endif > > > default: > make -C $(KERNELDIR) M=$(PWD) modules > # cp tusbd.ko .. > # make clean > # mv ../tusbd.ko ./ > > clean: > make -C $(KERNELDIR) M=$(PWD) clean > "Makefile" 22 lines, 430 characters > ########Makefile for tusbd kernel module####### > ############################################### > > Since there was a new .ko file in the folder and a new > tusbd-directory in /source/kernel-2.6.16.5/linux-2.6.16.5 > folder (in the chrooted environment). I thought it went good. > > Patching and compiling rdesktop1.6.0 told me few warnings but worked I > think. > The next step was to update the kernel in the build environment, > located "/thinstation/build/Thinstation-2.2.2" > Here the values of the files in the /utils/ path > >cat SOURCE_PATH > /thinstation/thinstation_src-2.2/source > >cat KERNEL_PATH > kernel-2.6.16.5/linux-2.6.16.5 > >cat X_PATH > x.org-R6.9.0/xc > I executed the update_kernel.sh > I added the line "module tusbd" in the build.conf and executed ". build" > with following errormessage: > cp: missing destination file operand after > './tmp-tree/lib/modules/tusbd/tusbd.ko' > > Well, I don't know what to do. > Writing my own Makefile for the kernel module is one option, I think, or > the error lies in the build script. I have no idea. > > > regards > Frank Matthes > > > ------------------------------------------------------------------------------ > _______________________________________________ > Thinstation-developer mailing list > Thinstation-developer@... > https://lists.sourceforge.net/lists/listinfo/thinstation-developer Trevor Batley Thinstation Developer http://thinstation.org ------------------------------------------------------------------------------ _______________________________________________ Thinstation-developer mailing list Thinstation-developer@... https://lists.sourceforge.net/lists/listinfo/thinstation-developer |
|
|
Re: v2.2.2 adding USB-Server kernel moduleI'm sorry ;)
I copied the tusbd.ko to /thinstation/build/Thinstation-2.2.2/kernel/2.6.16.5/kernel/tusbd and the errormessage disappeared. >I didn't see a make install after the make. So you would need to have >copied over the tusbd.ko file into the build/kernel tree somewhere or it >wouldn't get included. I hadn't realized that "somewhere into the build/kernel tree" meant literally _somehwere_, instead of somewhere there specific. And, as us can see in the Makefile listing, there is no install section, so make install didn't work. Next step is testing, whether it works like I thought it would. Big thx. ------------------------------------------------------------------------------ _______________________________________________ Thinstation-developer mailing list Thinstation-developer@... https://lists.sourceforge.net/lists/listinfo/thinstation-developer |
|
|
Re: v2.2.2 adding USB-Server kernel moduleHello Frank. For you it has turned out to instal usb-server? Will impart experience please or a package. |
|
|
Re: v2.2.2 adding USB-Server kernel moduleI followed the steps said by Frank and it worked great.
I have to add that is necessary to copy the binaries of the usb-server tar file to the packages/base/bin directory and the file rc.usbsrvd.sh to the packages/base/etc/init.d It's also good idea to edit the rc.usbsrv.sh file to add the flag --autoshareon in the script, so all the usb devices can be shared. I've tested it over rdp, using the trial Terminal server client software of the same vendor and it was amazing how easy and fast everything worked. The downside is that the Guindows version of the client is licensed but the linux version is totally free. Regards. |
| Free embeddable forum powered by Nabble | Forum Help |