From nobody@FreeBSD.org  Tue Sep 15 16:32:50 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7B4641065698
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Sep 2009 16:32:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6902F8FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Sep 2009 16:32:50 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8FGWnmb091011
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Sep 2009 16:32:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8FGWnK1091010;
	Tue, 15 Sep 2009 16:32:49 GMT
	(envelope-from nobody)
Message-Id: <200909151632.n8FGWnK1091010@www.freebsd.org>
Date: Tue, 15 Sep 2009 16:32:49 GMT
From: Jrg Schilling <Joerg.Schilling@fokus.fraunhofer.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD by default does not support ATAPI CDs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138851
>Category:       kern
>Synopsis:       [ata] FreeBSD by default does not support ATAPI CDs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 15 16:40:06 UTC 2009
>Closed-Date:    Tue Jun 07 15:50:40 UTC 2011
>Last-Modified:  Tue Jun 07 15:50:40 UTC 2011
>Originator:     Jrg Schilling
>Release:        7.1
>Organization:
>Environment:
FreeBSD bsd.fokus.fraunhofer.de 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
It seems that by thefault the _needed_ ATAPICAM
support is missing in the kernel. This makes it
impossible for novice users to write CDs/DVDs/BluRays


>How-To-Repeat:
Install from a downloaded CD, install cdrecord
and then call cdrecord.

>Fix:
Add ATAPICAM support by default.

>Release-Note:
>Audit-Trail:

From: Xin LI <delphij@delphij.net>
To: JXrg Schilling <Joerg.Schilling@fokus.fraunhofer.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Tue, 15 Sep 2009 11:54:41 -0700

 Hi,
 
 I think it's cdrtools that requires ATAPICAM to work.  FreeBSD's
 built-in utility, burncd, can work out-of-box directly against acd0...
 
 Cheers,
 -- 
 Xin LI <delphij@delphij.net>	http://www.delphij.net/
 FreeBSD - The Power to Serve!

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: d@delphij.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Tue, 15 Sep 2009 21:53:46 +0200

 Xin LI <delphij@delphij.net> wrote:
 
 > Hi,
 >
 > I think it's cdrtools that requires ATAPICAM to work.  FreeBSD's
 > built-in utility, burncd, can work out-of-box directly against acd0...
 
 Well, this "burncd" is a very limited tool.
 
 AFAIK, it does not support DVDs. It definitely does not support BluRay
 and it does not include work arounds for the various firmware bugs in the
 drives you find in the field.
 
 cdrecord gives you all you need for serious CD/DVD/BluRay media support
 and you need cdrtools anyway in order to get mkisofs.
 
 Why should FreeBSD not by default include a technology that is available 
 since 7 years?
 
 Jrg
 
 -- 
  EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jrg Schilling D-13353 Berlin
        js@cs.tu-berlin.de                (uni)  
        joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
  URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Joerg Schilling <Joerg.Schilling@fokus.fraunhofer.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Mon, 28 Sep 2009 17:42:10 +0300

 On Tue, 15 Sep 2009 20:10:06 GMT,
 Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) wrote:
 >> I think it's cdrtools that requires ATAPICAM to work.  FreeBSD's
 >> built-in utility, burncd, can work out-of-box directly against
 >> acd0...
 >
 > Well, this "burncd" is a very limited tool.
 >
 > AFAIK, it does not support DVDs. It definitely does not support BluRay
 > and it does not include work arounds for the various firmware bugs in
 > the drives you find in the field.
 >
 > cdrecord gives you all you need for serious CD/DVD/BluRay media
 > support and you need cdrtools anyway in order to get mkisofs.
 >
 > Why should FreeBSD not by default include a technology that is
 > available since 7 years?
 
 The support for ATAPICAM is loadable as a kernel module too.  We can
 probably add ATAPICAM to the default 'GENERIC' kernel config file.  It
 may also be useful to patch cdrtools to try kldload-ing "atapicam.ko"
 when it detects that "dev.atapicam.0.%driver" is not available as a
 sysctl knob.
 

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: keramida@ceid.upatras.gr
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Mon, 28 Sep 2009 21:05:40 +0200

 Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
 
 > > Why should FreeBSD not by default include a technology that is
 > > available since 7 years?
 >
 > The support for ATAPICAM is loadable as a kernel module too.  We can
 > probably add ATAPICAM to the default 'GENERIC' kernel config file.  It
 > may also be useful to patch cdrtools to try kldload-ing "atapicam.ko"
 > when it detects that "dev.atapicam.0.%driver" is not available as a
 > sysctl knob.
 
 If you believe that this is needed and helps, please help with the 
 implementation as I plan to pulish cdrtools-3.0-final in areox. 2 weeks.
 
 Jrg
 
 -- 
  EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jrg Schilling D-13353 Berlin
        js@cs.tu-berlin.de                (uni)  
        joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
  URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

From: Patrick Lamaiziere <patfbsd@davenulle.org>
To: bug-followup@FreeBSD.org
Cc: Joerg.Schilling@fokus.fraunhofer.de
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Mon, 28 Sep 2009 21:49:51 +0200

 Le Mon, 28 Sep 2009 19:20:05 GMT,
 Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling):
 
 Hello,
 
 >  > The support for ATAPICAM is loadable as a kernel module too.  We
 >  > can probably add ATAPICAM to the default 'GENERIC' kernel config
 >  > file.  It may also be useful to patch cdrtools to try kldload-ing
 >  > "atapicam.ko" when it detects that "dev.atapicam.0.%driver" is not
 >  > available as a sysctl knob.
 >  
 >  If you believe that this is needed and helps, please help with the 
 >  implementation as I plan to pulish cdrtools-3.0-final in areox. 2
 > weeks. 
 
 IMHO that is not needed, just because it is not enough. On FreeBSD,
 cdrecord is not installed with the suid root bit and the user must also
 set the good properties on the devices xpt, pass and cd with devfs(8).
 
 Regards

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: patfbsd@davenulle.org, bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Mon, 28 Sep 2009 22:10:25 +0200

 Patrick Lamaiziere <patfbsd@davenulle.org> wrote:
 
 > >  > The support for ATAPICAM is loadable as a kernel module too.  We
 > >  > can probably add ATAPICAM to the default 'GENERIC' kernel config
 > >  > file.  It may also be useful to patch cdrtools to try kldload-ing
 > >  > "atapicam.ko" when it detects that "dev.atapicam.0.%driver" is not
 > >  > available as a sysctl knob.
 > >  
 > >  If you believe that this is needed and helps, please help with the 
 > >  implementation as I plan to pulish cdrtools-3.0-final in areox. 2
 > > weeks. 
 >
 > IMHO that is not needed, just because it is not enough. On FreeBSD,
 > cdrecord is not installed with the suid root bit and the user must also
 > set the good properties on the devices xpt, pass and cd with devfs(8).
 
 IFAIK, cdrecord needs root privileges. If this is true, why isn't it delivered 
 suid root?
 
 http://www.fokus.fraunhofer.de/usr/schilling	ftp://ftp.berlios.de/pub/schily

From: Giorgos Keramidas <keramida@freebsd.org>
To: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
Cc: bug-followup@freebsd.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Tue, 29 Sep 2009 02:46:28 +0300

 On Mon, 28 Sep 2009 21:05:40 +0200, Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) wrote:
 >Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
 >>> Why should FreeBSD not by default include a technology that
 >>> is available since 7 years?
 >>
 >> The support for ATAPICAM is loadable as a kernel module too.
 >> We can probably add ATAPICAM to the default 'GENERIC' kernel
 >> config file.  It may also be useful to patch cdrtools to try
 >> kldload-ing "atapicam.ko" when it detects that
 >> "dev.atapicam.0.%driver" is not available as a sysctl knob.
 >
 > If you believe that this is needed and helps, please help with
 > the implementation as I plan to pulish cdrtools-3.0-final in
 > areox. 2 weeks.
 
 Hi Joerg,
 
 I'll try to write a patch for the latest cdrtools-devel sources
 and email it to you asap.  If it matches the preferred coding
 style of cdrtools and it successfully loads atapicam.ko on
 demand, it would be nice to see it included in this release.
 

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: keramida@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: kern/138851: FreeBSD by default does not support ATAPI CDs
Date: Tue, 29 Sep 2009 08:52:05 +0200

 Giorgos Keramidas <keramida@freebsd.org> wrote:
 
 > >> kldload-ing "atapicam.ko" when it detects that
 > >> "dev.atapicam.0.%driver" is not available as a sysctl knob.
 > >
 > > If you believe that this is needed and helps, please help with
 > > the implementation as I plan to pulish cdrtools-3.0-final in
 > > areox. 2 weeks.
 >
 > Hi Joerg,
 >
 > I'll try to write a patch for the latest cdrtools-devel sources
 > and email it to you asap.  If it matches the preferred coding
 > style of cdrtools and it successfully loads atapicam.ko on
 > demand, it would be nice to see it included in this release.
 
 Thank you foryour offer!
 please start with the latest 2.01.01a65
 
 ftp://ftp.berlios.de/pub/cdrecord/alpha/
 
 Jrg
 
 -- 
  EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jrg Schilling D-13353 Berlin
        js@cs.tu-berlin.de                (uni)  
        joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
  URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Tue Jun 7 15:48:25 UTC 2011 
State-Changed-Why:  
ATA_CAM is now the default in 9.0-CURRENT. The atapicam.ko kernel module 
can beloaded on older release to support ATAPICAM. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138851 
>Unformatted:
