[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian kernel & modules



Hi,

After 2 years of happily running Debian (with Windowz I needed to reinstall every 6 months) on my Asus laptop, unforunally, I had to reinstall my system. After reinstalling the system (sid) I found the newest kernel running:

# uname -a
Linux h1siglushkov 2.6.15-1-486 #1 Fri Feb 10 15:40:35 UTC 2006 i686 GNU/Linux

ant A LOT of modules loded:

# lsmod
Module                  Size  Used by
usbhid                 32352  0
radeon                 97056  1
drm                    64532  2 radeon
ipv6                  222208  17
lp                     10820  0
button                  6672  0
ac                      4868  0
battery                 9732  0
sr_mod                 16548  0
sbp2                   21252  0
scsi_mod              125928  2 sr_mod,sbp2
eth1394                18568  0
pcmcia                 36028  0
ipw2200                96428  0
ieee80211              29256  1 ipw2200
ieee80211_crypt         5632  1 ieee80211
firmware_class          9984  2 pcmcia,ipw2200
ohci1394               30388  0
ieee1394               88376  3 sbp2,eth1394,ohci1394
yenta_socket           25356  2
rsrc_nonstatic         12288  1 yenta_socket
pcmcia_core            38032  3 pcmcia,yenta_socket,rsrc_nonstatic
joydev                  9024  0
evdev                   8960  1
mousedev               10784  1
rtc                    11700  0
psmouse                32516  0
parport_pc             32324  1
parport                31944  2 lp,parport_pc
snd_intel8x0           29852  1
snd_intel8x0m          16140  0
snd_ac97_codec         82336  2 snd_intel8x0,snd_intel8x0m
snd_ac97_bus            2304  1 snd_ac97_codec
snd_pcm_oss            45856  0
snd_mixer_oss          16768  1 snd_pcm_oss
serio_raw               6660  0
snd_pcm 77576 4 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss
snd_timer              21636  1 snd_pcm
snd 48612 9 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,
snd_pcm,snd_timer
pcspkr                  1924  0
i2c_i801                8204  0
soundcore               9184  1 snd
intel_agp              21020  1
agpgart                31560  2 drm,intel_agp
shpchp                 40000  0
pci_hotplug            25012  1 shpchp
snd_page_alloc         10120  3 snd_intel8x0,snd_intel8x0m,snd_pcm
i2c_core               19600  1 i2c_i801
ext3                  117768  2
jbd                    48404  1 ext3
ide_cd                 36612  0
cdrom                  33568  2 sr_mod,ide_cd
ide_disk               16128  5
ide_generic             1408  0 [permanent]
piix                    9220  0 [permanent]
generic                 4484  0 [permanent]
ide_core              112544  5 ide_cd,ide_disk,ide_generic,piix,generic
tg3                    89604  0
ehci_hcd               29192  0
uhci_hcd               28432  0
usbcore               113540  4 usbhid,ehci_hcd,uhci_hcd
thermal                13576  0
processor              23104  1 thermal
fan                     4868  0



There are several questions about that:
1. Do I need them all?
2. How is the system deciding which modules should be installed/loaded on bootup? In the previous times I was compiuling the kernel by myself, I knew exactly which modules I need and compiling them as modules (or in the kernel). So at that time I had 10 modules as maximum loaded. But now I see that there are no modules for some hardware, but it is working (for example I do not see the "synaptics" module, but tapping on my pad is working. Which modules from the above is mor the touchpad?) and from other hand there are modules for some hardware, but it is not working (for example ipw2200 is the module for my wireless card, but iwconfig says that my cards do not have wireless extensions. How do I find out which interface to which hardware is coresponding? I see eth1 (which was my wireless card at previous times, but I am not sure that this is the case now)).

I needed thou some additional modules to be compiled (the cpu scaling was not working), so I decided to recompile the kernel the debian way.
I have on my system installed:

# dpkg -l | grep 486
ii linux-headers-2.6.15-1-486 2.6.15-6 Header files for Linux kernel 2.6.15 on 486- ii linux-image-2.6-486 2.6.15-6 Linux kernel 2.6 image on 486-class machines ii linux-image-2.6.15-1-486 2.6.15-6 Linux kernel 2.6.15 image on 486-class machi

I red /usr/share/doc/kernel-package/README and http://www.debian.org/doc/FAQ/ch-kernel.en.html, but there I do not find where the sources for the kernel are put. I found something in /usr/src/ :

I tried:
% cd /usr/src/linux-headers-2.6.15-1-486
% make menuconfig
 HOSTCC  scripts/basic/fixdep
gcc: scripts/basic/fixdep.c: No such file or directory
gcc: no input files
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

% cd ../linux-headers-2.6.15-1/
% make menuconfig
Makefile:313: /usr/src/linux-headers-2.6.15-1/scripts/Kbuild.include: No such file or directory /bin/sh: /usr/src/linux-headers-2.6.15-1/scripts/gcc-version.sh: No such file or directory make: *** No rule to make target `/usr/src/linux-headers-2.6.15-1/scripts/Kbuild.include'. Stop.

So how do I find where and what files are installed/changed using dpkg/apt-get/aptitude for some package (in this case - the kernel package)?

      Cheers,
      Ivan

P.S.: Pointing me to the proper man/web page would be great..



Reply to: