From owner-freebsd-scsi Thu Feb 18 16:45:40 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from pike.cdrom.com (pike.cdrom.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 91DF411721 for ; Thu, 18 Feb 1999 16:45:39 -0800 (PST) (envelope-from r3cgm@pike.cdrom.com) Received: (from r3cgm@localhost) by pike.cdrom.com (8.9.1a/8.9.1) id QAA08755; Thu, 18 Feb 1999 16:45:55 -0800 (PST) Date: Thu, 18 Feb 1999 16:45:54 -0800 From: "Christopher G. Mann" To: "Kenneth D. Merry" Cc: freebsd-scsi@freebsd.org Subject: Re: Unusual CAM Error w/FreeBSD 3.1 (tosha) Message-ID: <19990218164554.B7822@cdrom.com> References: <19990218154119.A7504@cdrom.com> <199902190040.RAA05032@panzer.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199902190040.RAA05032@panzer.plutotech.com>; from Kenneth D. Merry on Thu, Feb 18, 1999 at 05:40:02PM -0700 X-Operating-System: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org : Can you try the following: : : camcontrol devlist : camcontrol tur -n cd -u 0 -v : : Do you have your securelevel set to anything non-standard? (i.e., have you : set the kern.securelevel sysctl variable at all?) : : As far as I can tell, there's nothing in the XPT device open routine that : could return EACCES (i.e. Permission denied). : : Hopefully the camcontrol commands above will help us diagnose the problem a : little more... : : Ken : -- : Kenneth Merry : ken@plutotech.com %camcontrol devlist < > at scbus-1 target -1 lun -1 (xpt0) at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 1 lun 0 (pass1,da1) at scbus0 target 2 lun 0 (pass2,cd0) at scbus0 target 4 lun 0 (pass3,cd1) at scbus0 target 6 lun 0 (pass4,da2) < > at scbus0 target -1 lun -1 () %camcontrol tur -n cd -u 0 -v Unit is ready I haven't tickled the securelevel settings at all. : ----------------------------- Kenneth D. Merry : Christopher G. Mann wrote... : > Greetings FreeBSD SCSI Team, : > : > Two days ago, I installed FreeBSD 3.1 from CDROM (we get them 2 weeks : > earlier than anyone else, neener neener). :) I immediately set up : > cvsup for my /ports and /src tree to run daily. Yesterday I installed : > tosha from /ports. Some time ago I wrote a utility to rip audio tracks : > and encode them, and I parse "tosha -i" output to determine how many : > songs there are. : > : > Recently I purchased a "slot-in" Pioneer CDROM drive... 32x SCSI. It : > didn't work with my old system at all (which was originally installed as : > 2.2.5 and make world'ed every week or so until I finally nuked it). I : > would frequently get fatal SCSI read errors with it that eventually : > would make the system unstable enough so that I would have to reboot. : > The CAM support in 3.x seems to have solved that problem. : > : > I can mount the cdrom drive, I can dd images from it, I can even use : > workman to play tunes like a pro, but the simple act of using tosha to : > get info from any audio CD generates weird cam errors. : : I must say I'm quite perplexed by this one. : : : > [beacon.cdrom.com : r3cgm] ~ - tosha -i : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > : > [beacon.cdrom.com : r3cgm] ~ - ls -l /usr/local/bin/tosha : > -rwsr-xr-x 1 bin bin 21304 Feb 18 03:07 /usr/local/bin/tosha : > : > [beacon.cdrom.com : r3cgm] ~ - su -m : > Password: : > : > %tosha -i : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > : > %tosha -i -d /dev/cd0a : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > %tosha -i -d /dev/cd0c : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > %tosha -i -d /dev/cd1a : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > %tosha -i -d /dev/cd1c : > tosha: cam_lookup_pass: couldn't open /dev/xpt0 : > cam_lookup_pass: Permission denied : > : > %ls -l /dev/x* : > crw------- 1 root operator 104, 0 Feb 16 16:56 /dev/xpt0 : > crw------- 1 root operator 104, 1 Feb 16 16:56 /dev/xpt1 : > %ls -l /dev/pas* : > crw------- 1 root operator 31, 0 Feb 16 16:56 /dev/pass0 : > crw------- 1 root operator 31, 1 Feb 16 16:56 /dev/pass1 : > crw------- 1 root operator 31, 2 Feb 16 16:56 /dev/pass2 : > crw------- 1 root operator 31, 3 Feb 16 16:56 /dev/pass3 : > : > %fgrep "pass" /usr/src/sys/i386/conf/BEACON : > device pass0 : > : > I have tried rebooting, but the behavior is the same. Here is my dmesg : > VERBOSE output. Please let me know if you can think of anything to try. : -- Christopher G. Mann - IT Manager, Webmaster Walnut Creek CDROM (www.cdrom.com) The FreeBSD Mall (www.freebsdmall.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message