From owner-freebsd-firewire Wed Apr 10 5:56:19 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mail.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by hub.freebsd.org (Postfix) with ESMTP id 1795A37B419 for ; Wed, 10 Apr 2002 05:56:12 -0700 (PDT) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [10.6.1.30]) by mail.sat.t.u-tokyo.ac.jp (Postfix) with ESMTP id 0EA1B2DAC8; Wed, 10 Apr 2002 21:56:11 +0900 (JST) Date: Wed, 10 Apr 2002 21:56:10 +0900 Message-ID: From: Hidetoshi Shimokawa To: freebsd-firewire@freebsd.org Cc: dvts-users@sfc.wide.ad.jp, ikob@koganei.wide.ad.jp Subject: Re: [Firewire-BSD 261] driver update (SBP-II/Firewire) In-Reply-To: References: <3C8C283C.A5161533@cablespeed.com> <200203101530.AAA05124@ns.kobe1995.net> User-Agent: Wanderlust/2.4.1 (Stand By Me) REMI/1.14.3 (Matsudai) FLIM/1.13.2 (Kasanui) APEL/10.3 MULE XEmacs/21.2 (beta19) (Shinjuku) (i386-unknown-freebsd3.2) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Updated, http://people.freebsd.org/~simokawa/firewire-20020410.tar.gz A dumb ethernet-emulation has been added. Enjoy, /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html $Id: 00README,v 1.1 2002/04/08 09:03:02 simokawa Exp $ IEEE 1394 support for FreeBSD-5.X and 4.X. 1. Introduction This tarball contains IEEE1394(Firewire) driver which is first written by Katsushi Kobayashi[1] and modified by Hidetoshi Shimokawa . Please note this driver is still under development. The driver consists of 5 parts: - fwohci.c/fwohci_pci.c OHCI[2] driver - IEEE1394 link/phys chip control - firewire.c Chip independent driver - CSR - Transaction - Character devices for userland - sbp.c SBP-II[3] (a.k.a. SCSI over Firewire) driver - if_fwe.c NON-Standard implementation of Ethernet over FireWire. - bus_mgm.c (userland) Bus management function for user. show topology map, change gap count, bus reset, etc. 2. Installation Suppose you have kernel source at /sys. - Extract tarball at root directory. - cd /sys/dev/firewire - make - make install - make load For FreeBSD-4 user: - ./MAKEDEV 3. SBP-II support (sbp) - You need CAM(SCSI) support in your kernel. If you are using FreeBSD-5 before 2002/03/23 or FreeBSD-4 before 2002/4/8, you need to apply CAM-patch in this archive to handle HDD's(T_RBC or T_DIRECT which doesn't support READ_6). - If you connect a few firwire devices only, try the following to reduce gap overhead. - ./bus_mgm -g 8 4. Ethernet over Firewire (if_fwe) This is a sample driver for ethernet emulation. Please note this does NOT conform to any standards like IP over Firewire(RFC2734[4]). It just sends ethernet frames encapsulated in asynchronous stream packets. It doesn't scale because it does something like unicast over multicast, but it's easy to be implemented and you can use any facilities what ethernet can do. (ipv6, bridging, vlan etc.) It also has DEVICE_POLLING[5] support. To enable it, edit your kernel config file and Makefile.fwe then rebuild kernel and if_fwe.ko. Note this driver checks kern.polling.enable only when enabling the interface. When you enable polling after the interface is up, try 'ifconfig fwe0 down;ifconfig fwe0 up'. 5. DV I have not tested yet. References: [1] ftp://ftp.uec.ac.jp/pub/firewire/beta/ [2] http://developer.intel.com/technology/1394/download/ohci_11.htm [3] http://www.t10.org/scsi-3.htm [4] http://www.faqs.org/rfcs/rfc2734.html [5] http://info.iet.unipi.it/~luigi/polling/ Hidetoshi Shimokawa simokawa@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message