LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2008, 11:33 PM   #1
yangsongx
LQ Newbie
 
Registered: Jan 2005
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Why Slackware 10.0 kernel driver modules is in .o.gz format


I find all kernel module is in .o.gz format in my Slackware 10.0

Why use this format?

In ReadHat, the kernel module is .o format, or .ko under 2.6 kernel.

Is it possible to "$insmod xx.o.gz" to insert a kernel module under Slack?

Why Slack use this strange suffix for kernel module?
 
Old 05-19-2008, 02:48 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Just a guess, but Slackware 10.0 is pretty old and uses a 2.4 kernel, which may store the modules in a different format than the newer 2.6 kernel. But that's a guess. Your best bet to load a module is to use `modprobe` instead of `insmod` since it is more intelligent and loads the module's dependencies as well. A simple `modprobe module` would work for you (no need to include the extension). In Slackware 12.0 and 12.1, the modules use the .ko suffix (because it uses a 2.6 kernel). In my 11.0 installation, the 2.4 kernel uses the .o.gz extension while a custom compiled 2.6 kernel uses the .ko suffix.

Bottom line: Don't worry about it.
 
Old 05-19-2008, 03:07 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
In the old times past, Slackware 'gzipped' the kernel modules to save space on the floppies and later, CDROM. A ".o.gz" file is basically a gzipped ".o" kernel module file. The 2.4 kernel will gladly accept and load these gzipped modules, but unzipped ones are fine too - most other distros did not gzip their module files.
I believe that even the 2.6 kernel should accept ".ko.gz" kernel module files. Never tested that though.

Eric
 
Old 05-19-2008, 10:42 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I'm pretty sure that kernel-2.6 can used gzipped modules also. The space advantage is *very* minimal, though. The code for kernel modules doesn't contain much compressable empty space -if you try gzipping a few and comparing their size you'll see what I mean.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
threads in device driver or kernel modules kilambi Linux - Software 2 02-27-2007 04:11 PM
how to load ur driver as a kernel modules when the system startsup sumanth.sindiri Linux - General 1 12-05-2006 06:09 AM
kernel modules in slackware e1000 Slackware 8 12-15-2003 11:12 PM
Can i use the Red-hat, Suse driver modules for my rocketraid 454 in Slackware? kriep Slackware 6 11-17-2003 05:20 AM
kernel/modules driver problem Zarnce Slackware 4 05-05-2003 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration