From owner-freebsd-firewire Tue Nov 12 14: 2: 3 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70A7437B401 for ; Tue, 12 Nov 2002 14:02:00 -0800 (PST) Received: from gaia.arc.nasa.gov (gaia.arc.nasa.gov [143.232.155.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0EF943E4A for ; Tue, 12 Nov 2002 14:01:59 -0800 (PST) (envelope-from buzz@gaia.arc.nasa.gov) Received: from mono.arc.nasa.gov (mono.arc.nasa.gov [143.232.155.67]) by gaia.arc.nasa.gov (8.11.6/8.11.6) with ESMTP id gACM1vZ07305 for ; Tue, 12 Nov 2002 14:01:57 -0800 (PST) Date: Tue, 12 Nov 2002 14:01:54 -0800 (PST) From: Buzz Slye X-X-Sender: buzz@mono.arc.nasa.gov To: freebsd-firewire@freebsd.org Subject: Howto send inquiry orb Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-851401618-1037138514=:1154" Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-851401618-1037138514=:1154 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, I am trying to run a Kodak camera from the firewire with the attached program. (I am currently debugging the packet sending using an Oxford disk). The attached progam is attempting to send a command orb inquiry to the device. da4 at sbp0 bus 0 target 0 lun 0 da4: Fixed Simplified Direct Access SCSI-4 device sbp0:0:0 XPT_GET_TRAN_SETTINGS:. sbp0:0:0 XPT_PATH_INQ:. da4: 50.000MB/s transfers da4: 28615MB (58605120 512 byte sectors: 255H 63S/T 3648C) After the login, running the program, the response I get is: fw_rcv: unknown response tcode=2 src=0xffc1 tl=20 rt=1 data=0x84516ce3 try ad-hoc work around!! no use... Apparently, the response destination does not agree with the original source. Questions. What to use for ---.mode.wreqb.src ? What about dest_lo ? Is wreqb the correct mode ? Where does the response go ? Thanx, Robert Slye MS 242-4 NASA/Ames Research Center Moffett Field, CA 94035 buzz@gaia.arc.nasa.gov ---559023410-851401618-1037138514=:1154 Content-Type: TEXT/plain; name="test.c" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="test.c" LyoNCiAqICRJZCBGaXJld2lyZSB0ZXN0IHByb2dyYW0gLSByZXMgIDEwLzMw LzAyDQogKi8NCi8qIEtvZGFrICovDQovKiAjZGVmaW5lICBERVZJQ0VfRVVJ X0hJIDB4MDBlMDI2M2QgKi8NCi8qICNkZWZpbmUgIERFVklDRV9FVUlfTE8g MHgwMDAwNjVlMiAqLw0KDQovKiBPeGZvcmQgKi8NCiNkZWZpbmUgIERFVklD RV9FVUlfSEkgMHgwMDMwZTAwMA0KI2RlZmluZSAgREVWSUNFX0VVSV9MTyAw eDAwMDAwMTllDQoNCiNpbmNsdWRlIDxzeXMvcGFyYW0uaD4NCiNpbmNsdWRl IDxzeXMvbWFsbG9jLmg+DQojaW5jbHVkZSA8c3lzL2lvY3RsLmg+DQojaW5j bHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZSA8c3lzL3Vpby5oPg0KI2lu Y2x1ZGUgIi9zeXMvZGV2L2ZpcmV3aXJlL2ZpcmV3aXJlLmgiDQoNCiNpbmNs dWRlIDxmY250bC5oPg0KI2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8 ZXJyLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQojaW5jbHVkZSA8c3RyaW5n cy5oPg0KI2luY2x1ZGUgPHVuaXN0ZC5oPg0KDQppbnQNCm1haW4oaW50IGFy Z2MsIGNoYXIgKiphcmd2KQ0Kew0KCWludCBmZDsNCgljaGFyICpmd2RldjsN CiAgICAgICAgc3RydWN0IGZ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hc3lyZXEt PnBrdC5tb2RlLndyZXFiLnBheWxvYWRbM10gPSAwOw0KCWFzeXJlcS0+cGt0 Lm1vZGUud3JlcWIucGF5bG9hZFs0XSA9IGh0b25sKDB4OGE5MDAwMDApOw0K CWFzeXJlcS0+cGt0Lm1vZGUud3JlcWIucGF5bG9hZFs1XSA9IGh0b25sKDB4 MTIwMDAwMDApOw0KCWFzeXJlcS0+cGt0Lm1vZGUud3JlcWIucGF5bG9hZFs2 XSA9IGh0b25sKDB4MjQwMDAwMDApOw0KDQoJcHJpbnRmKCIgIENhbGxpbmcg aW9jdGwgd2l0aCBldWkgaW5xdWlyZVxuIik7DQogICAgICAgIGlmIChpb2N0 bChmZCwgRldfQVNZUkVRLCBhc3lyZXEpIDwgMCkNCgkJZXJyKDEsICJDYW4n dCBleGVjIGlvY3RsIik7DQoNCglwcmludGYoIiAgRlcgcmVzcG9uc2U6XG4i KTsNCglwcmludGYoIiAgJTA4eCwgJTA4eCwgJTA4eCwgJTA4eCwgJTA4eCwg JTA4eFxuIiwNCgkgICAgYnVmWzBdLCBidWZbMV0sIGJ1ZlsyXSwgYnVmWzNd LCBidWZbNF0sIGJ1Zls1XSk7DQoJcHJpbnRmKCIgICUwOHgsICUwOHgsICUw OHgsICUwOHgsICUwOHgsICUwOHhcbiIsDQoJICAgIGJ1Zls2XSwgYnVmWzdd LCBidWZbOF0sIGJ1Zls5XSwgYnVmWzEwXSwgYnVmWzExXSk7DQoNCgljbG9z ZShmZCk7DQoJZnJlZShhc3lyZXEpOw0KCXJldHVybiAwOw0KfQ0K ---559023410-851401618-1037138514=:1154-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Tue Nov 12 17:38:54 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1350F37B401 for ; Tue, 12 Nov 2002 17:38:53 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED6BF43E3B for ; Tue, 12 Nov 2002 17:38:47 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id EAB9721809F for ; Wed, 13 Nov 2002 10:38:41 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id gAD1cfQ02168; Wed, 13 Nov 2002 10:38:41 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHI49198; Wed, 13 Nov 2002 10:38:40 +0900 (JST) Date: Wed, 13 Nov 2002 10:38:40 +0900 Message-ID: From: Hidetoshi Shimokawa To: Buzz Slye Cc: freebsd-firewire@freebsd.org Subject: Re: Howto send inquiry orb In-Reply-To: References: User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) 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 At Tue, 12 Nov 2002 14:01:54 -0800 (PST), Buzz Slye wrote: > > [1 ] > Hi, > > I am trying to run a Kodak camera from the firewire with the attached program. I'm not sure what a Kodak camera look like. Is it a SBP-II device? If it's so, you don't need to reimplement SBP-II. > (I am currently debugging the packet sending using an Oxford disk). > The attached progam is attempting to send a command orb inquiry to the > device. > > da4 at sbp0 bus 0 target 0 lun 0 > da4: Fixed Simplified Direct Access SCSI-4 device > sbp0:0:0 XPT_GET_TRAN_SETTINGS:. > sbp0:0:0 XPT_PATH_INQ:. > da4: 50.000MB/s transfers > da4: 28615MB (58605120 512 byte sectors: 255H 63S/T 3648C) > > After the login, running the program, the response I get is: > > fw_rcv: unknown response tcode=2 src=0xffc1 tl=20 rt=1 data=0x84516ce3 > try ad-hoc work around!! > no use... > > Apparently, the response destination does not agree with the original source. > > Questions. > > What to use for ---.mode.wreqb.src ? > > What about dest_lo ? > > Is wreqb the correct mode ? > > Where does the response go ? What is a orb inquiry? Is it SBP-II's ORB? SBP-II's ORB is not written by the host but fetched by the device(e.g. HDD). /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Thu Nov 14 19:42:31 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA85337B401 for ; Thu, 14 Nov 2002 19:42:30 -0800 (PST) Received: from quack.kfu.com (adsl-67-113-12-90.dsl.snfc21.pacbell.net [67.113.12.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A591643E91 for ; Thu, 14 Nov 2002 19:42:29 -0800 (PST) (envelope-from nsayer@kfu.com) Received: from icarus.kfu.com (icarus.kfu.com [IPv6:3ffe:1200:301b:2:230:abff:fe06:62e5]) by quack.kfu.com (8.12.6/8.12.6) with ESMTP id gAF3gQDb086345 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 14 Nov 2002 19:42:27 -0800 (PST) (envelope-from nsayer@kfu.com) Received: from kfu.com (localhost [127.0.0.1]) by icarus.kfu.com (8.12.6/8.12.6) with ESMTP id gAF3gKd5020176 for ; Thu, 14 Nov 2002 19:42:20 -0800 (PST) (envelope-from nsayer@kfu.com) Message-ID: <3DD46D1C.90001@kfu.com> Date: Thu, 14 Nov 2002 19:42:20 -0800 From: Nick Sayer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021024 X-Accept-Language: en, en-US, en-GB MIME-Version: 1.0 To: freebsd-firewire@freebsd.org Subject: iPod confirmed working Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-1.0 required=5.0 tests=SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.41 Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was shocked to see that firewire has arrived in -STABLE. I upgraded my Vaio (Z505JE) this evening and sure enough, I can now plug it in and 'dd if=/dev/da0 bs=10m count=5 of=/dev/null' and get about 115 mbps out of it. Not bad. A tip: I found that if you are paranoid, you can make the iPod switch from it's "do not disconnect" to its "OK to disconnect" state by doing a 'camcontrol eject 0:0:0'. I have no idea if this does anything substantive in the iPod itself. Of course, I have a mac iPod, so I can't do anything more than that (no HFS+, no mac partition table support), but that doesn't annoy me or anything. Now if only we had an EHCI driver (for USB 2.0)... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message From owner-freebsd-firewire Fri Nov 15 17:48:47 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89D9737B401 for ; Fri, 15 Nov 2002 17:48:37 -0800 (PST) Received: from isber.ucsb.edu (research.isber.ucsb.edu [128.111.147.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8ABA43E88 for ; Fri, 15 Nov 2002 17:48:36 -0800 (PST) (envelope-from randall@isber.ucsb.edu) Received: from localhost ([127.0.0.1] helo=research.isber.ucsb.edu) by isber.ucsb.edu with esmtp (Exim 3.36 #2) id 18Cs4T-000PJN-00; Fri, 15 Nov 2002 17:48:29 -0800 Date: Fri, 15 Nov 2002 17:48:29 -0800 (PST) From: randall ehren To: Cc: , , , , Subject: ipod working Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanner: exiscan *18Cs4T-000PJN-00*513Wr24kdQg* (ISBER - Institute for Social, Behavioral, and Economic Research) Sender: owner-freebsd-firewire@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi there, just wanted to say that i got freebsd to recognize my iPod. now onto getting filetransfers to work... is there anyone specific that would like more constant updates on using an iPod w/ freebsd? - randall s. ehren :// 805.893.5632 systems administrator :// isber|survey|avss.ucsb.edu institute for social, behavioral, and economic research ---------- Forwarded message ---------- Date: Fri, 15 Nov 2002 17:45:06 -0800 From: Charlie Root To: randall@isber.ucsb.edu Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #0: Thu Nov 14 23:10:26 PST 2002 root@rerun.redigital.org:/usr/local/src/sys/compile/RERUN Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (567.96-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 268369920 (262080K bytes) avail memory = 256843776 (250824K bytes) Preloaded elf kernel "kernel" at 0xc0436000. netsmb_dev: loaded Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 8 entries at 0xc00f7670 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xc400-0xc41f irq 10 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 2 uhub1: 3 ports with 2 removable, bus powered ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/1 kbd1 at ukbd0 uhid0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/0 ums0: Microsoft Microsoft IntelliMouse \M-. with IntelliEye, rev 1.10/1.07, addr 4, iclass 3/1 ums0: 3 buttons and Z dir. ichsmb0: at device 7.4 on pci0 device_probe_and_attach: ichsmb0 attach returned 6 pcm0: port 0xc800-0xc803,0xcc00-0xcc03,0xd000-0xd0ff irq 11 at device 7.5 on pci0 pci0: at 14.0 fwohci0: mem 0xdeff8000-0xdeffbfff,0xdeffe000-0xdeffe7ff irq 9 at device 15.0 on pci0 fwohci0: PCI bus latency was changing to 250. cache size 8. fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: resetting OHCI...done (0) fwohci0: BUS_OPT 0xa002 -> 0xf800a002 fwohci0: Link 1394a available S400, 3 ports, maxrec 2048 bytes. fwohci0: Enable 1394a Enhancements fwohci0: EUI64 00:50:42:d1:02:10:b5:f6 fwochi_set_intr: 1 firewire0: on fwohci0 firewire0: firewire bus attach sbp_identify sbp_probe sbp0: on firewire0 sbp_attach twe0: <3ware Storage Controller> port 0xd400-0xd40f mem 0xde000000-0xde7fffff,0xdeffeff0-0xdeffefff irq 11 at device 16.0 on pci0 twe0: 2 ports, Firmware FE7X 1.05.00.034, BIOS BE7X 1.08.00.038 fxp0: port 0xc000-0xc03f mem 0xdee00000-0xdeefffff,0xdeffd000-0xdeffdfff irq 10 at device 17.0 on pci0 fxp0: Ethernet address 00:d0:b7:b2:f7:42 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: port 0xbc00-0xbc3f mem 0xdec00000-0xdecfffff,0xdeffc000-0xdeffcfff irq 9 at device 18.0 on pci0 fxp1: Ethernet address 00:02:b3:10:b2:b1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: