From owner-freebsd-scsi Sat Feb 20 10:42:24 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (Postfix) with ESMTP id 79A2C111CF for ; Sat, 20 Feb 1999 10:42:21 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.2/8.8.5) id LAA13528; Sat, 20 Feb 1999 11:42:07 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199902201842.LAA13528@panzer.plutotech.com> Subject: Re: IOCTL question In-Reply-To: from David Miller at "Feb 20, 1999 8:47:29 am" To: dmiller@search.sparks.net (David Miller) Date: Sat, 20 Feb 1999 11:42:07 -0700 (MST) Cc: freebsd-scsi@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David Miller wrote... > Hello all:) > > I'm struggling to bring up a scsi based mpeg2 decoder on 2.2.7. Right now > I'm trying to kick start it with the "scsi" command. In order to write to > it I'm using: > > alex# dd if=test.mpg bs=64k count=1 | ./scsi -f /dev/uk0 -c "2A 0 0 0 80 > 0" -o 65536 "-" > 1+0 records in > 1+0 records out > 65536 bytes transferred in 0.008196 secs (7996099 bytes/sec) > SCIOCCOMMAND ioctl: Input/output error > > > Since I certainly can talk to the board (identification inquiry, color > bars, soft reset) this is not a general communications problem. > > Is this a case of ioctl not wanting to issue this command to uk0? If so, > how do I tweak uk() so as to write to it? If not, what is it telling me? There are several things wrong with the above command. - the CDB length is wrong - you either have not specified the length of the command, or if the '80' above is part of the length, it doesn't match up with the length you gave to the scsi command on the command line. Try something like: ./scsi -f /dev/uk0 -c "2A 0 0 0 0 0 0 ff ff 0" -o 65535 "-" That will hopefully write 65535 bytes at address 0. What kind of device is this, any way? I mean, what device type does it probe as? Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message