On 1/12/08, michel Junger <michel.junger_at_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 ScotReceived on Sun Jan 13 2008 - 05:45:09 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC