Ok, got 3 of modules loaded, a 4th compiled though it won't load, but
nothing works as yet. I'm stuck on trying to get smapi compiled.
To get thinkpad, thinkpadpm, rtcmosram, and superio to compile properly
I put them into the kernel source tree for 2.6.0-test11.
I put the drivers tree in /usr/src/linux/drivers/thinkpad and copied the
include files into the thinkpad directory. Using a simple Makefile I
could compile them with everything else.
Kconfig:
#
# Thinkpad configuration
#
menu "Thinkpad Drivers"
config THINKPAD
tristate "Thinkpad extra features"
---help---
When in doubt, say N.
config THINKPAD_SMAPI
tristate "Thinkpad SMAPI Features"
depends on THINKPAD
---help---
When in doubt, say N.
config THINKPAD_SUPERIO
tristate "Thinkpad SUPERIO Features"
depends on THINKPAD
---help---
When in doubt, say N.
config THINKPAD_RTCMOSRAM
tristate "Thinkpad TRCMOSRAM Features"
depends on THINKPAD
---help---
config THINKPAD_PM
tristate "Thinkpad Power Management Features"
depends on THINKPAD
---help---
When in doubt, say N.
endmenu
Makefile:
obj-$(CONFIG_THINKPAD) += thinkpad.o
obj-$(CONFIG_THINKPAD_SUPERIO) += superio.o
obj-$(CONFIG_THINKPAD_RTCMOSRAM) += rtcmosram.o
obj-$(CONFIG_THINKPAD_PM) += thinkpadpm.o
In the /usr/src/linux/drivers directory modify the Kconfig file to
contain a line like:
source "drivers/thinkpad/Kconfig"
right above the "endmenu" entry.
Now you can run "make xconfig" and the Thinkpad options will be in the
Drivers section. After turning them to modules (and yes DO make them
modules) you can go to the /usr/src/linux/drivers/thinkpad directory and
run:
make -C /usr/src/linux SUBDIRS=$PWD modules
to compile the modules.
smapi won't build because the kernel build system is expecting a smapi.c
to exist. superio won't load into the kernel because of "unknown error
1025".
This is now beyond my capabilities, I think.
Chris Tooley
On Tue, 2003-12-02 at 10:06, Chris Tooley wrote:
> I'm sure this has been stated before, but I'd be happy to help with
> 2.6.0 drivers. I have gotten the 4.8 drivers to compile but can't load
> them as the are in the wrong format. All of my other kernel modules end
> in .ko while the ones from tpctl are .o files.
>
> Any hints?
>
|