[ltp] Re: can not open /dev/thinkpad
Rob Walker
linux-thinkpad@linux-thinkpad.org
15 Oct 2002 22:36:01 -0700
On Tue, 2002-10-15 at 10:55, Thomas Hood wrote:
> *** List MOVED use linux-thinkpad@linux-thinkpad.org for future postings ***On Tue, 2002-10-15 at 17:19, Rob Walker wrote:
> > > R.W.: What do you see in /var/log/syslog when you try
> > > to insmod the superio module?
> >
> >
> > from modprobe superio:
> >
> > Oct 15 08:16:42 tp600x kernel: thinkpad: I have registered to handle major: 10 minor: 170.
> > Oct 15 08:16:43 tp600x kernel: superio: Super I/O chip (non-virgin) in plug-n-play mode found at port base 0x2e. :-)
> > Oct 15 08:16:43 tp600x kernel: superio: I/O ports for Super I/O chip not available, but ignoring this.
> >
> > tp600x:~# tpctl --rsx
> > tpctl: System error message is: No such device
> > tpctl: Can't open device file /dev/thinkpad with flags O_RDONLY. Exiting.
>
> What is the output of lsmod at this point?
I am going to start at some semblance of the beginning, and try to get
it all together, in one place.
I have just made sure that there is no module superio, smapi, or
thinkpad in the kernel.
tp600x:~# lsmod | grep -i thinkpad | wc -l
0
modprobe superio gives me, in /var/log/syslog...
Oct 15 22:27:06 tp600x kernel: thinkpad: I have registered to handle major: 10 minor: 170.
Oct 15 22:27:06 tp600x kernel: superio: Super I/O chip (non-virgin) in plug-n-play mode found at port base 0x2e. :-)
Oct 15 22:27:06 tp600x kernel: superio: I/O ports for Super I/O chip not available, but ignoring this.
and modprobe smapi, in /var/log/syslog
Oct 15 22:28:22 tp600x kernel: smapi: 32-bit protected mode SMAPI BIOS found. :-)
Now, as for the output of lsmod, do you want all of it, or just the
thinkpad stuff?
I will start with just the thinkpad, if you want more, just say so.
tp600x:~# lsmod | grep thinkpad ; lsmod | wc -l
thinkpad 2548 0 [smapi superio]
41
> What do you see in the files under /proc/driver/thinkpad?
tp600x:/proc/driver/thinkpad# for file in * ; do { echo $file; cat $file; }; done
smapi
smapi module ver. 3.1 interfacing to 32-bit protected mode System-Management-API BIOS ver. 1.7 at address 0xc00fe9c4 through interface version 0.93
superio
superio version 3.0 controlling Super I/O chip at ioports 0x2e, 0x2f
thinkpad
thinkpad version 3.0 enabled to access modules: smapi superio rtcmosram thinkpadpm.
Well, duh! I need to load up the rtcmosram module....
in /var/log/syslog, after modprobe rtcmosram...
Oct 15 22:32:21 tp600x kernel: rtcmosram: I/O ports for RT CMOS RAM not available, but ignoring this.
> > [...]
> > yet,
> >
> > tp600x:~# tpctl --rsx
> > tpctl: System error message is: No such device
> > tpctl: Can't open device file /dev/thinkpad with flags O_RDONLY. Exiting.
>
> What do you have in your tpctl section of /etc/modules.conf?
um, nothing at all.
>
> What is the output of depmod -a?
no output, a lot of disk churning, and nothing.
>
> Which distro are you running? Which kernel?
Debian, used to be on unstable, moved back to testing a month or so
ago.
tp600x:/etc# uname -a
Linux tp600x 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown unknown GNU/Linux
thx for the help,
rob