From owner-freebsd-usb@FreeBSD.ORG Sat Jan 12 11:51:45 2008 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 B23F716A41B for ; Sat, 12 Jan 2008 11:51:45 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id F2C6813C447 for ; Sat, 12 Jan 2008 11:51:44 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m0CBpgOV079302; Sat, 12 Jan 2008 12:51:42 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id m0CBpX2Q035027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Jan 2008 12:51:34 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id m0CBpXLi094305; Sat, 12 Jan 2008 12:51:33 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id m0CBpWsR094304; Sat, 12 Jan 2008 12:51:32 +0100 (CET) (envelope-from ticso) Date: Sat, 12 Jan 2008 12:51:32 +0100 From: Bernd Walter To: =?iso-8859-1?Q?=D8ystein?= Andreassen Message-ID: <20080112115132.GI79270@cicely12.cicely.de> References: <683E901E-8564-49FF-B177-754EF48232A4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <683E901E-8564-49FF-B177-754EF48232A4@gmail.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: USB Slave mode - FreeBSD emulate a CDROM device? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2008 11:51:45 -0000 On Tue, Jan 08, 2008 at 11:26:26PM +0100, Øystein Andreassen wrote: > Hello, > > I would like to make my FreeBSD pc a USB CD/DVD-ROM for a server. > I have a lot of bootable ISO images and I dont like to waste time and > CD´s > on burning this images each time I need to use them (I usally damage > or loose > them between each time or they have been updated). So instead I would > like > to know if it is possible to make the FreeBSD USB stack behave as a > USB slave > and present an ISO image to another machine via a usb host-to-host > cable. > (I need to boot from the CD´s). A PC has not the required hardware to do so. There are USB devices and USB hosts. You can only connect a single USB host to many devices, but not two hosts together. There are interlink cables on the market, but those present an USB device to both sides and are not generic to do anything else than the profile they are build for. Hans Petter however did implement USB device software support to allow FreeBSD beeing used as a device. It at least supports the AT91RM9200 internal USB device controller, but I don't know if it supports anything else. And I think he just did implement a CDC ethernet device and not umass, so software needs to be written anyway. I've CC'ed him, since he can answer about other hardware that he possibly supports. I would have liked to offer the AT91RM9200 based board we produce ourself, but it wasn't designed for this purpose so our current board has no device ports. But we are planning an extended version, so this might change in the near future. There a USB device controllers that can be added to PCs, but most of them are more designed for teaching purpose. For example I'd seen PDIUSBD11 chips hooked up to printer ports, but this chip is not being manufactured anymore and this type of interfacing is very slow. The situation is much better if you use SCSI. You can interconnect two SCSI controller together - given that the addresses on both controller are not configured to be the same. FreeBSD has code for emulation disk drives with target capable SCSI controllers, which at least is supported by the ahc(4) driver. The controller on the other box can just be of any kind. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de