Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2012 10:45:02 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Darrel <levitch@iglou.com>
Cc:        Garrett Cooper <yanegomi@gmail.com>, current@freebsd.org
Subject:   Re: Fwd: device atapicam on r240673
Message-ID:  <506160FE.7070004@FreeBSD.org>
In-Reply-To: <CAGH67wSqZ4sXsnj-kzMMCxbMxmOmeRBC_rBiS3Nb8ve2_rNE6g@mail.gmail.com>
References:  <alpine.GSO.2.00.1209242343510.21303@shell1> <CAGH67wSqZ4sXsnj-kzMMCxbMxmOmeRBC_rBiS3Nb8ve2_rNE6g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25.09.2012 07:51, Garrett Cooper wrote:
> For years I have put 'device atapicam' in my kernel.  If my memory
> serves my well, this was to assist with dvd recording.  I must have
> missed something.  Is it now as simple as adding hw.ata.atapi_dma="1"
> to /boot/loader.conf?

atapicam is no longer needed after migration to CAM-based ATA stack. 
hw.ata.atapi_dma="1" is also default value starting from about 2004.

> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
> -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
> -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys
> -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
> -include opt_global.h -fno-common -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000
> -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx
> -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
> -fstack-protector -Werror  vers.c
> ctfconvert -L VERSION -g vers.o
> linking kernel.debug
> atapi-cam.o: In function `atapi_action':
> /usr/src/sys/dev/ata/atapi-cam.c:436: undefined reference to `ata_controlcmd'
> /usr/src/sys/dev/ata/atapi-cam.c:651: undefined reference to `ata_queue_request'
> *** [kernel.debug] Error code 1
>
> Stop in /usr/obj/usr/src/sys/D.
> *** [buildkernel] Error code 1
>
> Stop in /usr/src.
> *** [buildkernel] Error code 1
>
> Stop in /usr/src.
> (132) @ 23:41:19>

That is probably result of building atapicam together with option 
ATA_CAM, that is at least useless combination.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506160FE.7070004>