Re: Thinkpad 600e interrupt storm

Understudy <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
Karel Miklav wrote:

> 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 <bsd.prog.mk>
> 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
>
Karel,
That is a great instructional. Thank you very much. I am going to try 
that tomorrow. I will post my results then.

Sincerely,
Brendhan
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.