From owner-freebsd-current@FreeBSD.ORG Sun Jan 13 06:45:09 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2C7C16A419 for ; Sun, 13 Jan 2008 06:45:09 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 84AD813C45A for ; Sun, 13 Jan 2008 06:45:09 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so1906205fgg.35 for ; Sat, 12 Jan 2008 22:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GQnaqaEtG9sp7jcvwIFM2gzSLnfK4jL8CoKThVfoaks=; b=LQrvfT03HneSg02NlwBuQTLyhALXZD1Rd0RdDCfDYAq4buVOHN7w7tDtSvx4eJpZIlIJiS0sUn4bEYeanFRpS9Nb8QyJsZKfYbfa0qtw7umywweg/8ULUMG+MHXjNaI+0F1m2l6sXZ8pH48cgUz7dY9E+I7TcLgFxJ+XYFSF7wU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eRP39+ZFdoZPxIvCme79yg9crnOGXqebgiLT53eoeybFZARl7m3SXmf+xDpNrNkBtn4uYFZaGJtfHGqRUqNuzfhzrVNm0nIvXYVeBu+xwvmk7CAJzhT4I+jYQnC45PeXFnaqQBgilKsM5ZOJSU0XoPN9xvykCFM7a13543Sxp3k= Received: by 10.86.89.4 with SMTP id m4mr4841602fgb.12.1200206707447; Sat, 12 Jan 2008 22:45:07 -0800 (PST) Received: by 10.86.3.20 with HTTP; Sat, 12 Jan 2008 22:45:07 -0800 (PST) Message-ID: <790a9fff0801122245n4a11fe6y5b1cfe72dca15681@mail.gmail.com> Date: Sun, 13 Jan 2008 00:45:07 -0600 From: "Scot Hetzel" To: "michel Junger" In-Reply-To: <20080113042318.GA5312@mua.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080113042318.GA5312@mua.local> Cc: rpaulo@fnop.net, freebsd-current@freebsd.org Subject: Re: FreeBSD on macbook & backlight module X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 06:45:09 -0000 On 1/12/08, michel Junger wrote: > > Hello, > > The wiki page about FreeBSD on MacBook explains that it's possible to > build a module to control backlight. A link points a depot where to > download backlight.c and backlightvar.h but there's no README. > > I've tried to create a directory /usr/src/sys/dev/backlight put files in > it, add a line "device backlight" in /usr/src/sys/i386/conf/GENERIC > but make buildkernel ends with: > config: Error: device "backlight" is unknown > config: 1 errors > *** Error code 1 > > Is there someone who knows where to put these files under /usr/src and > compile a new kernel ? > Thanks for any help. > I had to google search to find the wiki, a link to it would have been nice. To create the backlight.ko module, you'll need to create the /sys/modules/backlight and then place the module Makefile in there: cd /sys/modules/backlight ; fetch -o Makefile \ http://repoman.freebsd.org/fileDownLoad.cgi?FSPC=//depot/projects/soc2007/rpaulo%2dmacbook/modules/backlight/Makefile&REV=1 You'll also need to add backlight to /sys/modules/Makefile, as shown here: http://repoman.freebsd.org/fileDiffView.cgi?FSPC=%2F%2Fdepot%2Fprojects%2Fsoc2007%2Frpaulo-macbook%2Fmodules%2FMakefile&ACT=edit&REV=1&REV2=2&Go=Go To build it with your kernel, you would need to modify /sys/conf/files, as shown here: http://repoman.freebsd.org/fileDiffView.cgi?FSPC=%2F%2Fdepot%2Fprojects%2Fsoc2007%2Frpaulo-macbook%2Fconf%2Ffiles&ACT=edit&REV=1&REV2=2&Go=Go Scot