Bug 40197

Summary: BurnCD doesn't "just work" at 4.6-p1
Product: Base System Reporter: Dave Hayes <dave>
Component: miscAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Dave Hayes 2002-07-04 21:30:01 UTC
Burning CDs has never worked on this (or any other) machine I have with a CD burner. I have 5 different machines with a CD burner, 4 run FreeBSD. None work. Here's an example for one machine:

# burncd -f /dev/acd0c data SomeFile.iso fixate
next writeable LBA 0
writing from file SomeFile.iso size 181708 KB

only wrote -1 of 32768 bytes err=5

burncd: ioctl(CDRIOCFLUSH): Input/output error

# dmesg
atapci0: <Intel PIIX4 ATA33 controller> port 0xb800-0xb80f at device 4.1 on 
pci0
.
atapci1: <CMD 648 ATA66 controller> port 0x9800-0x980f,0xa000-0xa003,0xa400-0xa
407,0xa800-0xa803,0xb000-0xb007 irq 10 at device 7.0 on pci0
..
acd0: CD-RW <MATSHITA CD-RW CW-7585> at ata0-slave PIO4
..
acd0: WRITE_BIG - ILLEGAL REQUEST asc=0x2c ascq=0x00 error=0x04

# uname -a
FreeBSD archive 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 ...

One more try...

# atacontrol list
ATA channel 0:
    Master:  ad0 <Maxtor 54098U8/DA620CQ0> ATA/ATAPI rev 5
    Slave:  acd0 <MATSHITA CD-RW CW-7585/1.04> ATA/ATAPI rev 0
ATA channel 1:
    Master:  ad2 <Maxtor 54098H8/DAC10SC0> ATA/ATAPI rev 6
    Slave:   ad3 <Maxtor 54098H8/DAC10SC0> ATA/ATAPI rev 6
ATA channel 2:
    Master:      no device present
    Slave:       no device present
ATA channel 3:
    Master:      no device present
    Slave:       no device present
# atacontrol mode 0 
Master = UDMA33 
Slave  = PIO4
# atacontrol mode 0 XXX udma33
Master = UDMA33 
Slave  = WDMA2
# burncd -f /dev/acd0c data SomeFile.iso fixate
next writeable LBA 0
writing from file SomeFile.iso size 181708 KB

only wrote -1 of 32768 bytes err=5

burncd: ioctl(CDRIOCFLUSH): Input/output error

Fix: 

The only fix I know is burning a CD on win-doh-ze. That's probably not what you wanted to hear. I was told to "buy a plextor", and I did, and even the plextor doesn't work.
How-To-Repeat: # burncd -f /dev/acd0c data SomeFile.iso fixate
next writeable LBA 0
writing from file SomeFile.iso size 181708 KB

only wrote -1 of 32768 bytes err=5

burncd: ioctl(CDRIOCFLUSH): Input/output error
Comment 1 dschultz 2002-07-05 11:38:46 UTC
> ATA channel 0:
>     Master:  ad0 <Maxtor 54098U8/DA620CQ0> ATA/ATAPI rev 5
>     Slave:  acd0 <MATSHITA CD-RW CW-7585/1.04> ATA/ATAPI rev 0
...
> # atacontrol mode 0 
> Master = UDMA33 
> Slave  = PIO4

This is mostly a shot in the dark, but a number of CD-RWs like to
be master on the controller.  Moreover, some non-UDMA2 devices do
not interact well with UDMA2 devices on the same controller.  Just
for fun, you might see what happens when you remove the Maxtor
drive from ata0 and make the CD-RW master.
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2002-08-03 02:47:01 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to burncd author/maintainer
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2002-09-12 15:18:17 UTC
State Changed
From-To: open->suspended

The drive in question is known not to work with burncd. 
However you could try the ATAPICAM stuff that went into 
current lately.
Comment 4 Søren Schmidt freebsd_committer freebsd_triage 2003-10-25 20:37:23 UTC
State Changed
From-To: suspended->closed

No responses to this, timeout.