From owner-freebsd-usb@FreeBSD.ORG Sat Jan 31 02:00:56 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E05E71065670 for ; Sat, 31 Jan 2009 02:00:56 +0000 (UTC) (envelope-from stevecalfee@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 738CE8FC13 for ; Sat, 31 Jan 2009 02:00:56 +0000 (UTC) (envelope-from stevecalfee@gmail.com) Received: by ey-out-2122.google.com with SMTP id d26so93712eyd.7 for ; Fri, 30 Jan 2009 18:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=SaAMzsmp3gOPMIcNI3zeYHYb/FZzY2PtrWlRPBi3t3o=; b=Qbo+VsBfhhaloZ4UrkDVKquYTtadWfGGkzAEj6TcmSo3s+Hyz6KiicDwxaFNVm8ChK h940qhLVNjU0fJsJD5POTaSaRGjs0G7tYqDty1fujrEflb7vlXoMnV/0caETW1PytBqW HyzP7xIaIXyfMZ5pNcAIVGxFxGd2P+WJdCdts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BoJ66v0T7j1i23V76YJ6EdvWc8rGJ8y5qxWV4qyEZkiodbOfo8fD0SY2fpgXsH2+uP 6OdohCE0oXfGzlkJ2a4LSTq9E49gVjmTXK0puW6Oyk4v1hIHxgT2YzSx2ISWtIJ2Y7ln 4qCmKDCzL4zsdPWpGEd4FZEElnUN3vSoZcl58= MIME-Version: 1.0 Received: by 10.210.92.8 with SMTP id p8mr1205330ebb.143.1233365533997; Fri, 30 Jan 2009 17:32:13 -0800 (PST) Date: Fri, 30 Jan 2009 17:32:13 -0800 Message-ID: <4a5ff6bc0901301732t7233335ch1077a74605fffb81@mail.gmail.com> From: Steve Calfee To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: newusb/usb2 build breakage in tinybsd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2009 02:00:57 -0000 Hi, I am trying to backport usb2 to freebsd7.0. I have followed the instructions at http://www.selasky.org/hans_petter/usb4bsd/index.html and things work ok on the install until I get to the recommended make step for me to manually handle (printed out by your make file). Incidentally, your web site should say to build in the FreeBSD.usb2 directory, I think. One complication is that I am crosscompiling with the tinybsd script - at least the target is an x86. I was held up for awhile because I missed the instruction echo'ed from the ..../FreeBSD.usb2/Makefile telling me to patch/change kmod.mk. Missing that causes the make to stop because usb2_if.h is missing. I had other build breakage due probably to kernel changes, so I just removed the build files for serial_xxx and storage_rio and wlan(_xxx) from /sys/modules/usb2/Makefile. Then, there are two backporting issues. The first looks pretty safe, I included the little finit routine into usb2_dev.c. That routine does not exist in FreeBSD 7.0. The other Issue I am not sure I have safely solved -- Apparently some extra info (file descriptor ptr) is tucked into struct thread called td_fpop. I could not tell what it is used for - it is stored to in the USB_VNOPS_FO_CLOSE macro, then fo_close is called, and then it is nulled. I just commented out both accesses to td_fpop - the fp is also passed to fo_close, so I don't think it is needed. Do you know of any issues around td_fpop? Thanks, and I am sure I will have some more rookie questions as I go forward, Steve