Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2005 14:34:46 +0200
From:      Bruno Ducrot <ducrot@poupinou.org>
To:        Neil Short <neshort@yahoo.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: Dumb R3000Z / zv5000 questions
Message-ID:  <20050401123446.GN2298@poupinou.org>
In-Reply-To: <20050401064719.30057.qmail@web30703.mail.mud.yahoo.com>
References:  <20050401064719.30057.qmail@web30703.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 31, 2005 at 10:47:19PM -0800, Neil Short wrote:
> 1) are there any instructions on how to use the powerd
> (http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/powerd/)
> or the powernow tools? It's not intuitive to me.


for -current, just kldload cpufreq, or compile kernel with
device cpufreq
then you can configure powerd via /etc/rc.conf
for RELENG_5, specific low level drivers are not yet been MFC,
but the cpufreq infrastucture is.  So you have to do something
like that in the time beeing:
On, say, $HOME/cpufreq,

cvs co src/sys/dev/acpica/acpi_perf.c
cvs co -P src/sys/dev/cpufreq
cvs co -P src/sys/i386/cpufreq
cvs co -P src/usr.sbin/powerd
mkdir acpi_perf
cp src/sys/dev/acpica/acpi_perf.c acpi_perf
cp -r src/sys/i386/cpufreq .
cp src/sys/dev/cpufreq/ichss.c cpufreq
cp -r src/usr.sbin/powerd .

Then modify or add some Makefile:

I'm using the following:
cat Makefile
SUBDIR = acpi_perf cpufreq powerd

.include <bsd.subdir.mk>


cat acpi_perf/Makefile
CFLAGS+=        -I@/contrib/dev/acpica

KMOD=           acpi_perf
WARNS?=         2
SRCS=           acpi_perf.c
SRCS+=          acpi_if.h bus_if.h cpufreq_if.h device_if.h opt_acpi.h \
                pci_if.h

.include <bsd.kmod.mk>
cat cpufreq/Makefile 
KMOD=   cpufreq
SRCS=   est.c ichss.c p4tcc.c powernow.c
SRCS+=  bus_if.h cpufreq_if.h device_if.h

.include <bsd.kmod.mk>

I also have to modify a little the Makefile for powerd as such:
# $FreeBSD: src/usr.sbin/powerd/Makefile,v 1.2 2005/02/26 22:50:25 njl
# Exp $

PROG=   powerd
MAN=    powerd.8
WARNS?= 6

BINDIR= /usr/sbin

.include <bsd.prog.mk>


Then do a make followed by a make install.

You can then, in order:
kldload acpi_perf
kldload cpufreq

and launch powerd(8) with option '-v' for testing purpose.
> 1a) Does it work with the XP-M (32 bit) processor?

Yes

> 
> 2) what is the recommended sound module for this
> equipment? I know this was answered somewhere before
> but I sure can't find it.

Don't know.

Cheers,

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.



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