Dumb R3000Z / zv5000 questions

Bruno Ducrot ducrot at poupinou.org
Fri Apr 1 04:35:02 PST 2005

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 \

.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

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?


> 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.


Bruno Ducrot

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

More information about the freebsd-amd64 mailing list