Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 1999 16:18:15 -0500 (EST)
From:      David Miller <dmiller@search.sparks.net>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: IOCTL question
Message-ID:  <Pine.BSF.3.96.990220161317.22285C-100000@search.sparks.net>
In-Reply-To: <199902201842.LAA13528@panzer.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Feb 1999, Kenneth D. Merry wrote:

> 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

Bingo!  I saw that while reading the doc's for the tenth time this
morning:)  I mistakenly changed the 0a to 2a without adding the other
fields in the CDB:(


>  - 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.

The 80 is correct in this case. Length is specified for this device as the
number of 512 byte blocks.  Not that there was any way for you to know an
idiosynchrasy (sp) like this:)


> 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?

It's a Vela Research scsi-2 mpeg-2 decoder, and probes as device type 12.

Any words of wisdom on how to create a device type vl (as opposed to st,
uk, pt, etc:) ?  I'd like to clean things up a little.

OTOH, I should probably do this under 3.1Stable, and the scsi system is
all changed.  Is it easier/harder under CAM?

Thanks Ken!

--- David



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990220161317.22285C-100000>