Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2006 12:30:04 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: New UMASS driver available for testing
Message-ID:  <200609181230.05147.hselasky@c2i.net>
In-Reply-To: <1158517549.754.29.camel@RabbitsDen>
References:  <200609171214.49165.hselasky@c2i.net> <1158517549.754.29.camel@RabbitsDen>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 17 September 2006 20:25, Alexandre "Sunny" Kovalenko wrote:
> On Sun, 2006-09-17 at 12:14 +0200, Hans Petter Selasky wrote:
> > Hi,
> >
> > I have finished the conversion of the UMASS driver to my new USB API. If
> > you have got a UMASS device laying around, and want to help the USB
> > project, please give the new driver a test.
> >
> > I want you to collect some statistics first:
> >
> > dd if=/dev/daX of=/dev/null bs=131072
> >
> > dd if=/dev/daX of=/dev/null bs=524288
> >
> > 1)
> >
> > What is the maximum speed you get before and after installing the driver?
> >
> > 2)
> >
> > What is the maximum CPU load reported by "ps aux" before and after
> > installing the driver [while doing the "dd"]?
> >
> > #
> > # How to install the new USB driver
> > # on FreeBSD 6.x / 7.x:
> > #
> >
> > #
> > # First get all the sources
> > # (you need /usr/ports/devel/subversion installed):
> > #
> >
> > svn --username anonsvn --password anonsvn \
> >       checkout svn://svn.turbocat.net/i4b
> >
> > #
> > # The following commands will
> > # install the driver on FreeBSD 6.x/7.x:
> > #
> >
> > cd i4b/trunk/i4b/FreeBSD.usb
> > make S=../src package
> > make install
> >
> > #
> > # Then build a new kernel (with modules)
> > #
> >
> > NOTE: You still can't detach the UMASS device while it is in use, but
> > this problem is being worked on.
> >
> > --HPS
> > _______________________________________________
> > freebsd-usb@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"
>
> At first crack I get this:
>
> ===> netgraph/bluetooth/ubtbcmfw (all)
> cc -O2 -fno-strict-aliasing -pipe -march=athlon-xp -Werror -D_KERNEL
> -DKLD_MODULE -std=c99 -nostdi nc -I-
> -I/usr/src/sys/modules/netgraph/bluetooth/ubtbcmfw/../../../../netgraph/blu
>etooth/include
> -I/usr/src/sys/modules/netgraph/bluetooth/ubtbcmfw/../../../../netgraph/blu
>etooth/drivers/ubtbcmfw  -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/AVERATEC/opt_global.h -I. -I@ -I@/cont rib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fn o-common -g -I/usr/obj/usr/src/sys/AVERATEC
> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls
> -Wnested-e xterns -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -ff ormat-extensions -c
> /usr/src/sys/modules/netgraph/bluetooth/ubtbcmfw/../../../../netgraph/bluet
>oot h/drivers/ubtbcmfw/ubtbcmfw.c
> /usr/src/sys/modules/netgraph/bluetooth/ubtbcmfw/../../../../netgraph/bluet
>ooth/drivers/ubtbcmfw/u btbcmfw.c:56:1: "USBDEVNAME" redefined In file
> included from @/dev/usb2/usb.h:49,
>                  from @/dev/usb/usb.h:1,
>
> from
> /usr/src/sys/modules/netgraph/bluetooth/ubtbcmfw/../../../../netgraph/bluet
>o oth/drivers/ubtbcmfw/ubtbcmfw.c:47: @/dev/usb2/usb_port.h:312:1: this is
> the location of the previous
> definition
> *** Error code 1
>

I found another bug in my install script which prevented UMASS from compiling. 

Just type "make deinstall" where you typed "make install". Then type "svn 
update" and repeat the packaging process. Then install and build new kernel. 
Sorry for the inconvenience

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609181230.05147.hselasky>