Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307027 - app-laptop/tp_smapi-0.40: tp_smapimodule fails to load
Summary: app-laptop/tp_smapi-0.40: tp_smapimodule fails to load
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-27 02:43 UTC by a_tevelev
Modified: 2012-10-06 15:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.89 KB, text/plain)
2010-02-27 02:43 UTC, a_tevelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a_tevelev 2010-02-27 02:43:08 UTC
tp_smapi (app-laptop/tp_smapi-0.40) fails to load with 2.6.30-tuxonice-r6 kernel:

# modprobe tp_smapi
FATAL: Error inserting tp_smapi (/lib/modules/2.6.30-tuxonice-r6/extra/tp_smapi.ko): Unknown symbol in module, or unknown parameter (see dmesg)

# dmesg
...
thinkpad_ec: cannot claim IO ports 0x1600-0x161f... consider using force_io=1.
tp_smapi: Unknown symbol thinkpad_ec_unlock
tp_smapi: Unknown symbol thinkpad_ec_invalidate
tp_smapi: Unknown symbol thinkpad_ec_read_row
tp_smapi: Unknown symbol thinkpad_ec_lock
Comment 1 a_tevelev 2010-02-27 02:43:51 UTC
Created attachment 221381 [details]
emerge --info
Comment 2 Patrick Lauer gentoo-dev 2010-03-01 14:23:59 UTC
Build the modules against the exact kernel config of your running kernel - these errors usually happen when you change the /usr/src/linux/ kernel config without changing the running kernel, thus causing a mismatch
Comment 3 a_tevelev 2010-03-07 01:13:11 UTC
Rebuild the module. The same error:

# emerge -v app-laptop/tp_smapi                     

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-laptop/tp_smapi-0.40  USE="-hdaps" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-laptop/tp_smapi-0.40
 * tp_smapi-0.40.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * CPV:  app-laptop/tp_smapi-0.40                                                                                                                           
 * REPO: gentoo                                                                                                                                             
 * USE:  amd64 elibc_glibc kernel_linux userland_GNU                                                                                                        
 * Determining the location of the kernel source code                                                                                                       
 * Found kernel source directory:                                                                                                                           
 *     /usr/src/linux                                                                                                                                       
 * Found kernel object directory:                                                                                                                           
 *     /lib/modules/2.6.30-tuxonice-r6/build                                                                                                                
 * Found sources for kernel version:                                                                                                                        
 *     2.6.30-tuxonice-r6                                                                                                                                   
>>> Unpacking source...                                                                                                                                     
>>> Unpacking tp_smapi-0.40.tgz to /tmp/portage/app-laptop/tp_smapi-0.40/work                                                                               
>>> Source unpacked in /tmp/portage/app-laptop/tp_smapi-0.40/work                                                                                           
>>> Preparing source in /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40 ...                                                                        
>>> Source prepared.                                                                                                                                        
>>> Configuring source in /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40 ...                                                                      
>>> Source configured.                                                                                                                                      
>>> Compiling source in /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40 ...                                                                        
ln: creating symbolic link `Module.symvers': File exists                                                                                                    
 * Preparing thinkpad_ec module                                                                                                                             
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KSRC=/usr/src/linux KBUILD=/lib/modules/2.6.30-tuxonice-r6/build default 
make -C /lib/modules/2.6.30-tuxonice-r6/build M=/tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40 O=/lib/modules/2.6.30-tuxonice-r6/build modules     
make[1]: Entering directory `/usr/src/linux-2.6.30-tuxonice-r6'                                                                                              
  CC [M]  /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/thinkpad_ec.o                                                                             
  CC [M]  /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/tp_smapi.o                                                                                
  Building modules, stage 2.                                                                                                                                 
  MODPOST 2 modules                                                                                                                                          
  CC      /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/tp_smapi.mod.o                                                                            
  CC      /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/thinkpad_ec.mod.o                                                                         
  LD [M]  /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/thinkpad_ec.ko                                                                            
  LD [M]  /tmp/portage/app-laptop/tp_smapi-0.40/work/tp_smapi-0.40/tp_smapi.ko                                                                               
make[1]: Leaving directory `/usr/src/linux-2.6.30-tuxonice-r6'                                                                                               
>>> Source compiled.                                                                                                                                         
>>> Test phase [not enabled]: app-laptop/tp_smapi-0.40                                                                                                       

>>> Install tp_smapi-0.40 into /tmp/portage/app-laptop/tp_smapi-0.40/image/ category app-laptop
 * Installing thinkpad_ec module                                                               
 * Installing tp_smapi module                                                                  
>>> Completed installing tp_smapi-0.40 into /tmp/portage/app-laptop/tp_smapi-0.40/image/       

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   lib/modules/2.6.30-tuxonice-r6/extra/thinkpad_ec.ko       
   lib/modules/2.6.30-tuxonice-r6/extra/tp_smapi.ko          

>>> Installing (1 of 1) app-laptop/tp_smapi-0.40
 * checking 4 files for package collisions      
--- /lib/                                       
--- /lib/modules/                               
--- /lib/modules/2.6.30-tuxonice-r6/            
--- /lib/modules/2.6.30-tuxonice-r6/extra/      
>>> /lib/modules/2.6.30-tuxonice-r6/extra/thinkpad_ec.ko
>>> /lib/modules/2.6.30-tuxonice-r6/extra/tp_smapi.ko   
--- /usr/                                               
--- /usr/share/                                         
--- /usr/share/doc/                                     
--- /usr/share/doc/tp_smapi-0.40/                       
>>> /usr/share/doc/tp_smapi-0.40/CHANGES.bz2            
>>> /usr/share/doc/tp_smapi-0.40/README.bz2             
>>> Safely unmerging already-installed instance...      
No package files given... Grabbing a set.               
--- replaced obj /usr/share/doc/tp_smapi-0.40/README.bz2
--- replaced obj /usr/share/doc/tp_smapi-0.40/CHANGES.bz2
--- replaced dir /usr/share/doc/tp_smapi-0.40            
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
--- replaced dir /usr
--- replaced obj /lib/modules/2.6.30-tuxonice-r6/extra/tp_smapi.ko
--- replaced obj /lib/modules/2.6.30-tuxonice-r6/extra/thinkpad_ec.ko
--- replaced dir /lib/modules/2.6.30-tuxonice-r6/extra
--- replaced dir /lib/modules/2.6.30-tuxonice-r6
--- replaced dir /lib/modules
--- replaced dir /lib
 * Removing app-laptop/tp_smapi-0.40 from moduledb.
>>> Original instance of package unmerged safely.
 * Updating module dependencies for 2.6.30-tuxonice-r6 ...                                                                                             [ ok ]
 * Adding module to moduledb.

 * Messages for package app-laptop/tp_smapi-0.40:

 * Removing app-laptop/tp_smapi-0.40 from moduledb.

 * Messages for package app-laptop/tp_smapi-0.40:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.30-tuxonice-r6/build
 * Found sources for kernel version:
 *     2.6.30-tuxonice-r6
 * Preparing thinkpad_ec module
 * Installing thinkpad_ec module
 * Installing tp_smapi module
 * Updating module dependencies for 2.6.30-tuxonice-r6 ...
 * Adding module to moduledb.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
~ # modprobe tp_smapi
FATAL: Error inserting tp_smapi (/lib/modules/2.6.30-tuxonice-r6/extra/tp_smapi.ko): Unknown symbol in module, or unknown parameter (see dmesg)


~ # uname -r
2.6.30-tuxonice-r6
Comment 4 a_tevelev 2010-03-07 12:25:29 UTC
~ # dmesg
...
thinkpad_ec: cannot claim IO ports 0x1600-0x161f... consider using force_io=1.                                                                               
tp_smapi: Unknown symbol thinkpad_ec_unlock                                                                                                                  
tp_smapi: Unknown symbol thinkpad_ec_invalidate                                                                                                              
tp_smapi: Unknown symbol thinkpad_ec_read_row                                                                                                                
tp_smapi: Unknown symbol thinkpad_ec_lock    
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2011-12-20 03:01:35 UTC
Does the problem still persist with tp_smapi-0.41 ?
Comment 6 Pacho Ramos gentoo-dev 2012-10-06 15:31:07 UTC
(In reply to comment #5)
> Does the problem still persist with tp_smapi-0.41 ?