From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 29 04:52:40 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42271312 for ; Mon, 29 Oct 2012 04:52:40 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.224.110]) by mx1.freebsd.org (Postfix) with ESMTP id E293E8FC1A for ; Mon, 29 Oct 2012 04:52:39 +0000 (UTC) Received: from X220.ovitrap.com ([122.129.201.27]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id q9T4qUw4026909; Sun, 28 Oct 2012 22:52:32 -0600 Date: Mon, 29 Oct 2012 11:52:30 +0700 From: Erich Dollansky To: Yuri Subject: Re: 'device atapicam' breaks the build Message-ID: <20121029115230.21872b62@X220.ovitrap.com> In-Reply-To: <508E0944.9080903@rawbw.com> References: <508E0944.9080903@rawbw.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 04:52:40 -0000 Hi, On Sun, 28 Oct 2012 21:42:44 -0700 Yuri wrote: > Following atapicam(4), I added 'device atapicam' into > sys/amd64/conf/GENERIC. This causes 'make buildkernel' to fail: > > ld -d -warn-common -r -d -o zlib.ko.debug zlib.o > :> export_syms > awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug export_syms | > xargs -J% objcopy % zlib.ko.debug > objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols > objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols > zlib.ko.debug zlib.ko > 1 error > *** [buildkernel] Error code 2 > 1 error > *** [buildkernel] Error code 2 > 1 error > > Also loading it manually with 'kldload atapicam' fails: > kldload: can't load atapicam: Exec format error > with system log having an error: link_elf_obj: symbol ata_controlcmd > undefined > > What is wrong with atapicam? > > I need atapicam because section 23.3.3 of handbook suggests that it > is a prerequisite for being able to use DVD drive from the vbox > guests. > > Yuri > > 9.1-RC3 > I found this in my kernel configuration. # # 21.06.12 ed: # # atapicam or ATA_CAM can be defined. We have a try first with this one # removed. Switch both if writing to a DVD fails. # # options ATA_CAM # Handle legacy controllers with CAM # options ATA_STATIC_ID # Static device numbering It looks like you have to disable above's options. Erich