Subject: Re: SATA DVD support?
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-kern
Date: 11/28/2007 12:03:41
On Wednesday 28 November 2007 10:10:21 Manuel Bouyer wrote:
> On Wed, Nov 28, 2007 at 10:48:41AM +1030, Berndt Josef Wulf wrote:
> > On Friday 16 November 2007 09:02:54 Joerg Sonnenberger wrote:
> > > On Fri, Nov 16, 2007 at 08:35:47AM +1030, Berndt Josef Wulf wrote:
> > > > Are SATA DVD and CDROM devices supported on NetBSD-current? I've a LG
> > > > SATA dual layer DVD drive that isn't detected.
> > >
> > > What's your controller? AHCI got some ATAPI support a few days ago.
> > >
> > > Joerg
> >
> > G'day,
> >
> > sorry for late reply, but I was away from home. Here is what the kernel
> > had to say:
> >
> > jmide0 at pci2 dev 0 function 0: JMicron Technology JMB361 SATA/PATA
> > controller
> > jmide0: 1 PATA port, 1 SATA port
> > jmide0: interrupting at ioapic0 pin 16 (irq 10)
> > ahcisata0 at jmide0
> > ahcisata0: AHCI revision 1.0, 2 ports, 32 command slots, features
> > 0xc722e000 atabus0 at ahcisata0 channel 0
> > atabus1 at ahcisata0 channel 1
> >
> > I don't have a SATA harddisk, so I can not verify if the controller works
> > at all.
> >
> > I tried building a new release with current system sources, but it
> > currently fails during compilation of XEN kernels. I'm currently running
> > NetBSD-i386 v4.99.34 as of 5th of November.
>
> Your SATA ATAPI drive should work now in current ... at last I hope so :)

The current sources don't build the XEN related kernels. It bails out with the 
following error messages:

#   compile  XEN2_DOM0/privcmd.o
/usr/obj/toolsdir/bin/i386--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss -march=i686 -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Di386 -I. -I/usr/obj/sys/arch/i386/compile/XEN2_DOM0/xen-ma -I/usr/src/sys/contrib/dev/ath/netbsd -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/xen/xen/privcmd.c
/usr/src/sys/arch/xen/xen/privcmd.c: In function 'privcmd_ioctl':
/usr/src/sys/arch/xen/xen/privcmd.c:144: error: 'struct vop_ioctl_args' has no 
member named 'a_l'
/usr/src/sys/arch/xen/xen/privcmd.c:204: error: 'struct vop_ioctl_args' has no 
member named 'a_l'

cheerio Berndt