can't use cdrecord on -current - lots of warnigs, possible ATA_CAM issue?

Anton Shterenlikht mexas at bristol.ac.uk
Tue Jul 17 13:01:47 UTC 2012


# uname -a
FreeBSD mech-anton240.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #6 r235474: Tue Jul 17 13:52:07 BST 2012     root at mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF  sparc64
#

After updating to ATA_CAM framework
I cannot use cdrecord:

# cdrecord -dev=1,0,0 -sao /home/mexas/FreeBSD-8.1-RELEASE-ia64-livefs.iso
Cdrecord-ProDVD-ProBD-Clone 3.01a07 (sparc64-unknown-freebsd10.0) Copyright (C)
1995-2012 Joerg Schilling
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'TSSTcorp'
Identifikation : 'CDW/DVD TS-H492C'
Revision       : 'SI00'
Device seems to be: Generic mmc2 DVD-ROM.
cdrecord: Warning: controller returns zero sized CD write parameter page.
cdrecord: Warning: controller returns wrong size for CD write parameter page.
cdrecord: Warning: controller returns wrong page 0 for CD write parameter page (
5).
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
resid: 2
resid: 24
DMA overrun, resid: -24
resid: 30
cdrecord: Warning: controller returns zero sized CD write parameter page.
cdrecord: Warning: controller returns wrong size for CD write parameter page.
cdrecord: Warning: controller returns wrong page 0 for CD write parameter page (
5).
cdrecord: Warning: controller returns zero sized CD write parameter page.
cdrecord: Warning: controller returns wrong size for CD write parameter page.
cdrecord: Warning: controller returns wrong page 0 for CD write parameter page (
5).
cdrecord: Cannot init drive.
#


while on the console:


ata3: unknown transfer phase
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - MODE_SENSE_BIG read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 60>0
ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
ata3: WARNING - READ_BUFFER read data overrun 4>0
ata3: WARNING - START_STOP read data overrun 18>0
ata3: WARNING - TEST_UNIT_READY read data overrun 16>0
ata3: WARNING - READ_CAPACITY read data overrun 8>0
ata3: WARNING - READ_TOC read data overrun 4>0
ata3: WARNING - READ_TOC read data overrun 2>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - READ_DISK_INFO read data overrun 4>0
ata3: WARNING - TEST_UNIT_READY read data overrun 34>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 2>0
ata3: WARNING - TEST_UNIT_READY read data overrun 10>0
ata3: WARNING - SYNCHRONIZE_CACHE read data overrun 2>0


# dmesg|grep cd0
cd0 at ata3 bus 0 scbus1 target 0 lun 0
cd0: <TSSTcorp CDW/DVD TS-H492C SI00> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
losed
#


my kernel config:

cpu	SUN4U
ident	QOF

makeoptions	DEBUG=-g
makeoptions	MODULES_OVERRIDE="geom/geom_part geom/geom_label"

options ALT_BREAK_TO_DEBUGGER
options	ATA_CAM		# Handle legacy controllers with CAM
options	AUDIT			# Security event auditing
options BREAK_TO_DEBUGGER
options	CAPABILITIES		# Capsicum capabilities
options	CAPABILITY_MODE		# Capsicum capability mode
options CD9660			# ISO 9660 Filesystem
options	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD7		# Compatible with FreeBSD7
options DDB			# Support DDB.
options DEADLKRES		# Enable the deadlock resolver
options FFS
#options	GEOM_PART_GPT		# GUID Partition Tables.
#options	GEOM_LABEL		# Provides labelization
options GDB			# Support remote GDB.
options	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options	INCLUDE_CONFIG_FILE	# Include this file in kernel
options INET
options INET6
options INVARIANTS		# Enable calls of extra sanity checking
options INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
options	KBD_INSTALL_CDEV # install a CDEV entry in /dev
options	KDB			# Enable kernel debugger support.
#options	KDB_TRACE		# Print a stack trace for a panic.
options	KTRACE			# ktrace(1) support
options	MAC			# TrustedBSD MAC Framework
options MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
options	MD_ROOT			# MD is a potential root device
options	MSDOSFS			# MSDOS Filesystem
options	NFSCL			# New Network Filesystem Client
options NFSD			# New Network Filesystem Server
options NFSLOCKD		# Network Lock Manager
options NFS_ROOT		# NFS usable as /, requires NFSCL
options 	P1003_1B_SEMAPHORES
options	PREEMPTION
options	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options	PROCFS			# Process filesystem (requires PSEUDOFS)
options	PSEUDOFS		# Pseudo-filesystem framework
options	SCHED_ULE
options	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options	SCTP			# Stream Control Transmission Protocol
#options	SMP			# Symmetric MultiProcessor Kernel
options	SOFTUPDATES
options	STACK			# stack(9) support
options	SYSVMSG			# SYSV-style message queues
options	SYSVSEM			# SYSV-style semaphores
options	SYSVSHM			# SYSV-style shared memory
options	UFS_ACL			# Support for access control lists
options	UFS_DIRHASH		# Improve performance on big directories
options	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options	USB_DEBUG	# enable debug msgs
options WITNESS			# Enable checks to detect deadlocks and cycles
options WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
options	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions

device	ada
device	ahci		# AHCI-compatible SATA controllers
device	ata
#device	atadisk
#device	atapicd
#device	atapicam
device	auxio		# auxiliary I/O device
device	bge		# Broadcom BCM570xx Gigabit Ethernet
device	bpf		# Berkeley packet filter
device	cd		# CD
device	central
device	ctl		# CAM Target Layer
device	da		# Direct Access (disks)
device	ebus
device	eeprom		# eeprom (really a front-end for the MK48Txx)
device	ehci		# EHCI PCI->USB interface (USB 2.0)
device	ether		# Ethernet support
device	faith		# IPv6-to-IPv4 relaying (translation)
device	fhc
device	firmware	# firmware assist module
device	gif		# IPv6 and IPv4 tunneling
device	isa
device	loop		# Network loopback
device	lpt		# Printer
device	machfb		# ATI Mach64 framebuffers
device	mc146818	# Motorola MC146818 and compatible clocks
device	md		# Memory "disks"
device	miibus		# MII bus support
device	mk48txx		# Mostek MK48Txx clocks
device	ohci		# OHCI PCI->USB interface
device	pass		# Passthrough device (direct ATA/SCSI access)
device	pci
device	pty		# BSD-style compatibility pseudo ttys
device	puc		# Multi-channel uarts
device	ppbus		# Parallel port bus (required)
device	ppc
device	ppi		# Parallel port interface device
device	random		# Entropy device
device	rtc		# rtc (really a front-end for the MC146818)
device	sbbc		# Sun BootBus controller (time-of-day clock for
			# Serengeti and StarCat, console for Serengeti,
			# requires device uart)
device	sbus
device	sc
device	scbus		# SCSI bus (required for ATA/SCSI)
device	scc		# Serial communications controllers.
device	snd_audiocs	# Crystal Semiconductor CS4231
device	snd_t4dwave	# Acer Labs M5451
device	sound		# Generic sound driver (required)
device	tun		# Packet tunnel.
device	uart		# Multi-uart driver
device	uhci		# UHCI PCI->USB interface
device	ukbd		# Keyboard
device	umass		# Disks/Mass storage - Requires scbus and da
device	ums		# Mouse
device	usb		# USB Bus (required)
device	vlan		# 802.1Q VLAN support


What am I doing wrong?

Many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423


More information about the freebsd-sparc64 mailing list