LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-16-2005, 06:39 PM   #1
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
which kernel option includes pcmcia_core and ds?


i'm trying to compile a custome 2.6.10 kernel, and i have a Dell Truemobile wireless pcmcia card. i know i need the pcmcia_core and ds modules (or at least these are the only ones i'm missing after comparing lsmod with my 2.4.26 kernel), but i can't figure out which options to enable in the kernel to build these modules. does anyone know?
 
Old 02-16-2005, 07:33 PM   #2
rdmenotte
Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
I'm trying to do the same thing. I've looked through almost EVERY option in the 2.6.10 kernel but to no avail.

What do I need to do to get the ds.o module?

To get the pcmcia_core module select:

Bus options ---> PCCARD (PCMCIA/CardBus) support ---> [M] PCCard (PCMCIA/CardBus) support

You'll probably need the yenta_socket as well. To get that select

Bus options ---> PCCARD (PCMCIA/CardBus) support ---> [M] CardBus yenta-compatible bridge support

Anyone know where the ds.o module comes from?!
 
Old 02-16-2005, 07:54 PM   #3
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
wow, thanks i'll check those options when i get home. mind if i ask what your symptoms are? you've got pcmcia_core and your wireless card modules loaded right? does cardctl info find your card?
 
Old 02-16-2005, 11:10 PM   #4
rdmenotte
Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
actually... i can't bring my pcmcia slot up.

i type /etc/init.d/pcmcia start but it fails stating
cardmgr[20174]: no pcmcia driver in /proc/devices


can you even get that far?
 
Old 02-17-2005, 02:53 AM   #5
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
my situation is very strange. when i boot my 2.6.10 kernel, cardmgr says no sockets found! lsmod shows only yenta_socket loaded, no orinoco, hermes, pcmcia_core, or ds modules (which are all present in my working 2.4.26 kernel). cardctl ident shows all 3 sockets empty.

after stopping rc.inet1, rc.inet2 and rc.pcmcia i started them each up again one by one. cardmgr said it was watching 3 sockets, and cardctl ident shows my truemobile 1150 in socket 3. but i can't get an IP address. i don't get any errors when i start rc.inet1 or 2, but when i iwconfig eth0 is empty, same for ifconfig. orinoco, orinoco_cs, and hermes are all loaded, as well as yenta_socket. but no pcmcia_core and no ds.
 
Old 02-17-2005, 03:02 AM   #6
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
also, by using slocate, i found that i had xxxxx.ko files in /lib/modules/2.6.10/kernel/drivers/net/wireless/ for both orinoco modules, as well as hermes and yenta_socket. that's why i can insert them be running my rc.d scripts i think. my guess is that the /drivers/net/wireless is a new layout, and it can't find the path during boot. but slocate shows that the only pcmcia_core and ds modules in /lib/modules/ are in the 2.4.26 directory. i can see pcmcia_core.o and ds.o in the 2.6.10 build directory, which is in my home directory. i just don't know which options they are in menuconfig, and i don't know how to turn ds.o into ds.ko.
 
Old 02-17-2005, 08:26 AM   #7
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
Silly question, but are you sure that eth0 is a wireless device? Usually eth0 is the wired portion.
 
Old 02-17-2005, 10:11 AM   #8
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
2.6.x kernels create *.ko files for modules vs. 2.4.x's *.o files.

When configuring your kernel options, look for section:
PCCard (PCMCIA/CardBus) support
and read the help that comes with each option. Have you
used the new make xconfig? The window has three frames open
by default, and bottom right is the help info.

You will also probably want to enable the 'hotplug' support.

Wireless card drivers do not all create the same ethernet device name,
some use ethX, some use wlanX, some use their own unique name like
athX.
 
Old 02-17-2005, 12:30 PM   #9
BlackHatRob
Member
 
Registered: Feb 2005
Posts: 36

Rep: Reputation: 15
I have read the help for each item that I thought pretains to the PCMCIA slot. Nowhere did I see the hotplug support. Could you give the path to those options we should enable?

I am using the make menuconfig right now because i just started installing gentoo on my laptop and don't have the X server set up yet.

Example:

general drivers-->blah-->[M] foo
 
Old 02-17-2005, 01:29 PM   #10
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Device Drivers -> Generic Driver Options -> Hotplug blah blah

and just after Bus options -> PC Card is
PCI Hotplug, but I don't think you need that one unless you've
got Cardbus cards (which look like PCMCIA, but they're not)

HTH
 
Old 02-17-2005, 07:27 PM   #11
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
i'm not home right now, so i can't try recompiling atm, but i'm curious about modules. you said 2.6.x kernels build .ko files, and 2.4.26 build .o files. but i've got lots of .o files in my /home/severian/src/linux-2.6.10/ directory (the source directory). it looks like the .o files are the original (unbuilt or something) source files for the modules. if you elect to build something as a module, it gets turned into a .ko file and moved to /lib/modules/2.6.10/xxxx. is that right?


if that IS right, is there any way to do it only for a specific module. i'm assuming these are written in c, right? so can i run

gcc pcmcia_core.o /lib/modules/2.6.10/drivers/pcmcia/pcmcia_core.ko

or something like that? is there a make file for each module so i could install them individually with ./configure, make, make install? or is the ONLY way to do it through editing the .config file and running make modules, make modules_install?
 
Old 02-17-2005, 08:03 PM   #12
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
EDIT: sorry for the double post, it was an accident!

Last edited by mcd; 02-17-2005 at 08:14 PM.
 
Old 02-17-2005, 08:06 PM   #13
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
alright, i looked at my config and i have

CONFIG_PCCARD=y
CONFIG_PCMCIA=y
CONFIG CARDBUS=y

CONFIG_YENTA=m

CONFIG _PCMCIA_PROBE=y

CONFIG_HOTPLUG_PCI is not set

CONFIG_NET=y

CONFIG_PCMCIA_HERMES=m

CONFIG_NET_WIRELESS=y



none of the PCMCIA character devices are set.
 
Old 02-18-2005, 09:08 AM   #14
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Quote:
Originally posted by mcd
if you elect to build something as a module, it gets turned into a .ko file and moved to /lib/modules/2.6.10/xxxx. is that right?


if that IS right, is there any way to do it only for a specific module. i'm assuming these are written in c, right? so can i run

gcc pcmcia_core.o /lib/modules/2.6.10/drivers/pcmcia/pcmcia_core.ko

or something like that? is there a make file for each module so i could install them individually with ./configure, make, make install? or is the ONLY way to do it through editing the .config file and running make modules, make modules_install?
There is a makefile in each directory, so I suppose it is possible to build individual _sets_ of
modules -- what is built will depend on your .config file. But I have never bothered to try to
build individual kernel modules, or at least none that are included in the kernel sources, individually.

It is so very easy, and only takes a few minutes on a recent machine to just

make modules
su
make modules_install

That said, if you don't want to build all the modules over and over while you are trying to
tweak a specific module, give it a shot in the specific directory. There might be some
clues about doing things that way in the 'Documentation' directory, I can't remember.
 
Old 02-18-2005, 03:04 PM   #15
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Original Poster
Rep: Reputation: 33
but the problem is that i don't know which option in config produces the ds module. i've now recompiled like 5 times, and i've managed to get all the modules i want built except for ds. and my wireless card still isn't working. cardmgr and cardctl can see the card, but dhcpcd doesn't assign me an IP address, and if i try to manually iwconfig eth0 essid xxxx it says operation not supported. so the only thing i can think of is the ds module.
 
  


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
kernel includes do not match current kernel rafc Linux - Newbie 5 04-23-2010 01:28 AM
Kernel includes Micro420 Linux - Software 2 03-13-2005 02:00 PM
make-kpkg not working, so no kernel includes genixpro Linux - Hardware 3 09-14-2004 07:56 PM
kernel 2.6 - missing includes poison Slackware 3 12-18-2003 06:13 PM
pcmcia_core not found h/w Linux - Newbie 0 09-10-2003 09:24 PM


All times are GMT -5. The time now is 11:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration