Solved CD-RW device not recognized: got CAM status 0x50

Installing FreeBSD-RELEASE-10.x from a CDROM medium is posible, after stumbling over some error messages when booting from the device.
Code:
(cd0:ata0:0:0:0): READ(10), CDB: 28 00 00 04 cf 41 00 00 01 00
(cd0:ata0:0:0:0): CAM status: Auto-Sense Retrieval Failed
(cd0:ata0:0:0:0): Error 5, Unretryable error
(cd0:ata0:0:0:0): cddone: got error 0x5 back
Trying to mount root from cd9660:/dev/iso9660/10_2_RELEASE_I386_CD (ro)...

But after installation cd0 for the CD-RW device does not show up in /dev .
Code:
> dmesg | grep  cd0
(cd0:ata0:0:0:0): got CAM status 0x50
(cd0:ata0:0:0:0): fatal error, failed to attach to device
When the device can be used for installation, what is needed to use it afterwards?
 
OK, this thread gives some useful information about your problem. Especially if you've used an snapshot to install FreeBSD. It's worth to try with another ISO.
 
I did read the linked thread understanding that something has been fixed back in 2013. I cannot get something what I can do out of it.

Did you try with another ISO? I suggest you to try it and report back here.
 
Try to disable DMA on that device with loader tunable
Code:
hint.ata.0.mode=PIO4
by adding this line to /boot/loader.conf

If it doesn't work, please, file a PR on the freebsd-bugs mailing list.
 
Try to disable DMA on that device with loader tunable
Code:
hint.ata.0.mode=PIO4
by adding this line to /boot/loader.conf
Hey! You are very smart. Problem solved.
Now I get:
Code:
> dmesg | grep cd
cd0 at ata0 bus 0 scbus2 target 0 lun 0
cd0: <PLEXTOR CD-R   PX-W5224A 1.02> Removable CD-ROM SCSI device
cd0: 16.700MB/s transfers (PIO4, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
being really happy. Thank you!
 
Back
Top