From owner-freebsd-mobile@FreeBSD.ORG Thu Mar 10 21:19:32 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBA4016A4CE; Thu, 10 Mar 2005 21:19:32 +0000 (GMT) Received: from out-2.mail.amis.net (out-2.mail.amis.net [212.18.32.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D66643D41; Thu, 10 Mar 2005 21:19:31 +0000 (GMT) (envelope-from karel.miklav@siol.net) Received: from localhost (in-3.mail.amis.net [212.18.32.22]) by out-2.mail.amis.net (Postfix) with ESMTP id 5AF9410692C; Thu, 10 Mar 2005 22:19:30 +0100 (CET) Received: from in-3.mail.amis.net ([127.0.0.1]) by localhost (in-3.mail.amis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48340-03; Thu, 10 Mar 2005 22:19:28 +0100 (CET) Received: from piranha.amis.net (piranha.amis.net [212.18.32.3]) by in-3.mail.amis.net (Postfix) with ESMTP id EC8DEFB99E; Thu, 10 Mar 2005 22:19:27 +0100 (CET) Received: from siol.net (cpe-212-18-37-87.dialup.amis.net [212.18.37.87]) by piranha.amis.net (Postfix) with ESMTP id 5BEA3B2835; Thu, 10 Mar 2005 22:19:26 +0100 (CET) Message-ID: <4230B9DE.6040908@siol.net> Date: Thu, 10 Mar 2005 22:19:26 +0100 From: Karel Miklav User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en, sl, hr MIME-Version: 1.0 References: <20050219040357.47106754@spadger.best.vwh.net> <42197CA3.7050709@understudy.net> <421E331C.10804@siol.net> <20050224181142.B60128@sasami.jurai.net> <421E7780.6050800@understudy.net> <20050224202147.A60128@sasami.jurai.net> <421EAAA5.3090304@understudy.net> <20050225095658.D60128@sasami.jurai.net> <4226996D.3020402@understudy.net> <20050303004752.V16908@sasami.jurai.net> <422B9A6B.6050109@understudy.net> In-Reply-To: <422B9A6B.6050109@understudy.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at amis.net X-Spam-Status: No, hits=-5.838 required=5 tests=ALL_TRUSTED, AWL, BAYES_00, MISSING_HEADERS X-Spam-Level: cc: Understudy cc: mdodd@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: Thinkpad 600e interrupt storm X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 21:19:33 -0000 Understudy wrote: > Slacker# make all install > --Lots of compiling stuff-- > smapi_config.o smapi_power.o smapi_action.o bcd.o > gzip -cn smapi.8 > smapi.8.gz > install -s -o root -g wheel -m 555 smapi > usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 file2 > install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > [-o owner] file1 ... fileN directory > install -d [-v] [-g group] [-m mode] [-o owner] directory ... > *** Error code 64 Brendhan, you can run the utility with ./smapi, or add 'BINDIR=/usr/sbin' to the makefile and 'make all install' again. Does it work for you? I have problems with /dev/mapi0. Maybe Mathew could give us another hint? My session follows... tp# mkdir /temp/x tp# cd /temp/x tp# tar -xf smapi.tar.gz tp# cd usr.sbin/smapi tp# vim Makefile tp# cat Makefile PROG= smapi SRCS= smapi.c smapi_subr.c \ smapi_info.c smapi_config.c smapi_power.c smapi_action.c \ bcd.c WARNS= 2 MAN= smapi.8 CFLAGS+=-I/sys BINDIR=/usr/sbin .include tp# make all install Warning: Object directory not changed from original /tmp/x/usr.sbin/smapi cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi_subr.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi_info.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi_config.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi_power.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c smapi_action.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c bcd.c cc -O -pipe -I/sys -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -o smapi smapi.o smapi_subr.o smapi_info.o smapi_config.o smapi_power.o smapi_action.o bcd.o gzip -cn smapi.8 > smapi.8.gz install -s -o root -g wheel -m 555 smapi /usr/sbin install -o root -g wheel -m 444 smapi.8.gz /usr/share/man/man8 tp# kldload smapi tp# kldstat Id Refs Address Size Name 1 4 0xc0400000 37c730 kernel 2 14 0xc077d000 537f0 acpi.ko 3 1 0xc1611000 3000 smapi.ko tp# rehash tp# smapi config serial smapi: open(/dev/smapi0, ...): No such file or directory tp# mknod smapi c 0 0 <-- a wild guess tp# smapi config serial smapi: open(/dev/smapi0, ...): No such file or directory tp# uname -a FreeBSD tp.unitedpeople.info 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Thu Mar 10 04:59:01 CET 2005 me@here:/usr/obj/usr/src/sys/TP600E i386