[Pkg-dkms-maint] Bug#600803: #600803 tp-smapi-dkms: Invalid module format

Michael Gebetsroither michael at mgeb.org
Tue Nov 2 08:39:24 UTC 2010


Evgeni Golov wrote:
Hi,

>> Using current tp-smapi through dkms results in:
>> # modprobe tp-smapi
>> FATAL: Error inserting tp_smapi (/lib/modules/2.6.35-trunk-amd64/updates/dkms/tp_smapi.ko): Invalid module format
>>
>> Even after clean successful rebuild the error remains
>> dpkg-reconfigure tp-smapi-dkms
>>
>> # uname -a                      
>> Linux z 2.6.35-trunk-amd64 #1 SMP Tue Aug 3 21:31:37 UTC 2010 x86_64 GNU/Linux
>
> 
> What happens on dpkg-reconfigure tp-smapi-dkms?

[0].

> dkms is called to uninstall tp-smapi, then again to build and install.
> For some reason it did not for you.
> Could you please share
> /var/lib/dkms/tp-smapi/0.40/2.6.35-trunk-amd64/x86_64/log/make.log

DKMS make.log for tp-smapi-0.40 for kernel 2.6.35-trunk-amd64 (x86_64)
Tue Nov  2 09:29:03 CET 2010
make: Entering directory `/usr/src/linux-headers-2.6.35-trunk-amd64'
  LD      /var/lib/dkms/tp-smapi/0.40/build/built-in.o
  CC [M]  /var/lib/dkms/tp-smapi/0.40/build/thinkpad_ec.o
  CC [M]  /var/lib/dkms/tp-smapi/0.40/build/tp_smapi.o
  CC [M]  /var/lib/dkms/tp-smapi/0.40/build/hdaps.o
/var/lib/dkms/tp-smapi/0.40/build/hdaps.c: In function ‘hdaps_dmi_match_invert’:
/var/lib/dkms/tp-smapi/0.40/build/hdaps.c:717: warning: cast from pointer to integer of different size
  Building modules, stage 2.
  MODPOST 3 modules
  CC      /var/lib/dkms/tp-smapi/0.40/build/hdaps.mod.o
  LD [M]  /var/lib/dkms/tp-smapi/0.40/build/hdaps.ko
  CC      /var/lib/dkms/tp-smapi/0.40/build/thinkpad_ec.mod.o
  LD [M]  /var/lib/dkms/tp-smapi/0.40/build/thinkpad_ec.ko
  CC      /var/lib/dkms/tp-smapi/0.40/build/tp_smapi.mod.o
  LD [M]  /var/lib/dkms/tp-smapi/0.40/build/tp_smapi.ko
make: Leaving directory `/usr/src/linux-headers-2.6.35-trunk-amd64'

> Also the output of dkms status -m tp-smapi please.

# dkms status -m tp-smapi
tp-smapi, 0.40, 2.6.35-trunk-amd64, x86_64: installed

michael

[0]:
BEGIN - dpkg-reconfigure tp-smapi-dkms
# dpkg-reconfigure tp-smapi-dkms

-------- Uninstall Beginning --------
Module:  tp-smapi
Version: 0.40
Kernel:  2.6.35-trunk-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

thinkpad_ec.ko:
 - Uninstallation
   - Deleting from: /lib/modules/2.6.35-trunk-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


tp_smapi.ko:
 - Uninstallation
   - Deleting from: /lib/modules/2.6.35-trunk-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
^[7

hdaps.ko:
 - Uninstallation
   - Deleting from: /lib/modules/2.6.35-trunk-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.......

DKMS: uninstall Completed.

------------------------------
Deleting module version: 0.40
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/tp-smapi/0.40/source ->
                 /usr/src/tp-smapi-0.40

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.35-trunk-amd64 -C /lib/modules/2.6.35-trunk-amd64/build M=/var/lib/dkms/tp-smapi/0.40/build......
cleaning build area....

DKMS: build Completed.

thinkpad_ec.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.35-trunk-amd64/updates/dkms/

tp_smapi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.35-trunk-amd64/updates/dkms/

hdaps.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/2.6.35-trunk-amd64/updates/dkms/

depmod....

DKMS: install Completed.
END - dpkg-reconfigure tp-smapi-dkms



More information about the Pkg-dkms-maint mailing list