From owner-freebsd-current@FreeBSD.ORG Mon Nov 10 16:32:42 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B37F1065696 for ; Mon, 10 Nov 2008 16:32:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 9A03D8FC27 for ; Mon, 10 Nov 2008 16:32:40 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d6BVkb5LuPPVEe4iNQMLyA==:17 a=wcZ8zYsp8wmRnsDY6K4A:9 a=yDb_2cvmmfkaDFcDsrgA:7 a=4dxYoXx1x1XQi7xypelAudqEOW8A:4 a=LY0hPdMaydYA:10 Received: from [62.113.135.6] (account mc467741@c2i.net [62.113.135.6] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1151853740; Mon, 10 Nov 2008 17:32:38 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Mon, 10 Nov 2008 17:34:49 +0100 User-Agent: KMail/1.9.7 References: <1226307084.20208.42.camel@nat.cfdhome.com> In-Reply-To: <1226307084.20208.42.camel@nat.cfdhome.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811101734.49989.hselasky@c2i.net> Cc: Charles DeBardeleben Subject: Re: usb2 stack. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 16:32:42 -0000 On Monday 10 November 2008, Charles DeBardeleben wrote: > I have upgraded to the new usb2 stack and am having several problems. > > First, I too could not prevent the old usb stack from getting loaded. I > decided to take the approach of static loading of the usb2 stack, > and discovered that I could not include usb2_bluetooth, and > usb2_bluetooth_ng whithouk adding more of the netgraph stack, > to the statuc kernel, so I added > > options NETGRAPH_BLUETOOTH # ng_bluetooth(4) > options NETGRAPH_BLUETOOTH_BT3C # ng_bt3c(4) > options NETGRAPH_BLUETOOTH_HCI # ng_hci(4) > options NETGRAPH_BLUETOOTH_L2CAP # ng_l2cap(4) > options NETGRAPH_BLUETOOTH_SOCKET # ng_btsocket(4) > > to my config. Now I bind with the new stack. However, many > usb devices still are not working correctly. > First, many devices > are not making entries in /dev, even though they seam to bind > to the driver. The entries are invisible. > This seams to include ums, uhid, and ugen. I was > hoping to have my mouse bind to ums, so that I can run hid2hci > on it so that I activate my bluetooth hub. My m-audio usb audio > codec is binding to audio, but it is not working. As I was trying > to debug this, I decided I needed usbconfig. I ran buildworld and > found that none of the userland code has been added to the makefiles. > So I edited these files to add libusb20, the header files, and > usbconfig to the build: > > M include/Makefile > M share/mk/bsd.libnames.mk > M usr.sbin/Makefile > M lib/Makefile > M etc/mtree/BSD.include.dist > M sys/dev/usb2/bluetooth/ng_ubt2.c Yes, this will be fixed eventually. > > I then found the kdump will not build due to ioctl definition confilcts > with the old usb stack. So I guess at this point the 2 stacks do not > really coexist together. However the build got far enough along to build > usbconfig. Looks like a problem that needs to be addressed. > > I have not added the patch that was posted today, but I doubt that that > is the underlying cause of my issues. > > I had high hopes for this new stack as my usb often "locks up" making my > keyboard stop. > > 2 more issues I had, not related to usb2. First when I did a cvs update, > I got many conflicts on files I had not changed. I was guessing maybe > something was wrong with the svn-cvs bridge, so I decided to try the > svn server. However, there seam to be no ID strings if you checout the > svn tree. This seams to confuse mergemaster. Is there a new procedure > for upgrading a system built from the svn tree? I don't know. Maybe you need to resolve the code first. Could you send me your current patchset again, and I will see if I can get some parts of it in. --HPS