Date: Sun, 13 Jan 2008 00:45:07 -0600 From: "Scot Hetzel" <swhetzel@gmail.com> To: "michel Junger" <michel.junger@gmail.com> Cc: rpaulo@fnop.net, freebsd-current@freebsd.org Subject: Re: FreeBSD on macbook & backlight module Message-ID: <790a9fff0801122245n4a11fe6y5b1cfe72dca15681@mail.gmail.com> In-Reply-To: <20080113042318.GA5312@mua.local> References: <20080113042318.GA5312@mua.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/12/08, michel Junger <michel.junger@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0801122245n4a11fe6y5b1cfe72dca15681>