LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-02-2005, 02:08 PM   #1
jbrashear
Member
 
Registered: Aug 2003
Posts: 33

Rep: Reputation: 15
Loadable Kernel Modules


I'm tyring to add smbfs using the following instructions that I got from somone. Long and short of it...it doesn't work for me...are there any tutorials on this site that discuss adding modules? Any suggestions?

- apt-get the source (not image) of your current kernel (apt-get install kernel-source-`uname -r`.
- cd /usr/src/kernel-source-`uname -r`
- cp /boot/config-`uname -r` ./config
- make menuconfig (or whatever kind of config you want)
- Here, it's as if you're rolling your own kernel, but in fact all you want do is choose SMBFS support as a module. It's under ``filesystems'' or something pretty intuitive.
- Save & quit ...
- make-kpkg modules

Thanks!
 
Old 04-02-2005, 03:07 PM   #2
jbrashear
Member
 
Registered: Aug 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Little more clarification...

I guess I should mention that I do get through all the steps and reboot; however, no sign of any change...i.e., modprobe smbfs turns up nothing...
 
Old 04-02-2005, 05:20 PM   #3
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
<EDIT> Ooops, misread about the rebooting part......... </EDIT>

Last edited by thegeekster; 04-02-2005 at 05:38 PM.
 
Old 04-02-2005, 05:25 PM   #4
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
PS: Don't forget to add the kernel to Lilo or Grub before rebooting.........
 
Old 04-02-2005, 11:41 PM   #5
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Found this Samba howto, written specifically for Debian: Samba Client Howto.......

HTH
 
Old 04-03-2005, 04:32 AM   #6
jbrashear
Member
 
Registered: Aug 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Hmmmm....

Okay, I am learning as I go along here...thanks geekster

So I realized something tonight...I am using 2.2.20-compact. So is the 2.2.20 source going to do me any good? I did 'make modules' and then 'make modules_install' and it created /lib/modules/2.2.20/fs/smbfs.o; however, I cannot throw smbfs.o into /lib/modules/2.2.20-compact/fs b/c it complains about the smbfs.o being compiled for 2.2.20.

Any suggestions? At this point, I am looking for step-by-step instuctions on how to enable smbfs for 2.2.20-compact as a module.

Thanks!
 
Old 04-03-2005, 03:51 PM   #7
jbrashear
Member
 
Registered: Aug 2003
Posts: 33

Original Poster
Rep: Reputation: 15
My latest try...

Here is what I tried now...

1. Edit the Makefile and add EXTRAVERSION = -compact
2. cp /boot/config-2.2.20-compact ./.config
3. make menuconfig (add smbfs as a module)
4. make dep; make modules; make modules_install
5. restart (don't know if this is necessary)
6. modprobe smbfs

I get all kinds of unresolved symbol (too many to put in this thread) and the, "Hint: You are trying to load a module without a GPL compatible license and it has unresolved symbols..."

I'm either making some progress or in a patch of weeds...=)
 
Old 04-03-2005, 06:11 PM   #8
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
I suppose you'll need to find out what is different about the "compact" version..........Here's a few links for this kernel version:

Package: kernel-image-2.2.20-compact (2.2.20-5woody5)
Package: kernel-headers-2.2.20-compact (2.2.20-5woody5)
Overview of kernel-image-2.2.20-i386 source package
Changelog (2.2.20-5woody5)

Just a thought, but do you have the kernel headers installed for that particular kernel........Don't know if it's necessary being new to how things are done in Debian...........At any rate, you might want to email the kernel maintainer (mail link found on the "Overview" page)

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
debug loadable modules with kgdb??? Igor007 Programming 0 09-09-2005 05:42 PM
Loadable modules question dudds Linux - Newbie 5 07-20-2004 03:13 AM
loadable modules help -- unresolved symbols dklaming Linux - Newbie 1 04-30-2004 03:06 PM
of course I have loadable modules enabled! jmynkbht Linux - Software 0 04-26-2004 04:52 AM
loadable modules vs built-in modules nuzzy Linux - Hardware 1 07-21-2003 05:16 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration