Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Missing Modules After Compiling Kernel Post 303036347 by Azrael on Monday 24th of June 2019 01:10:08 AM
Old 06-24-2019
Missing Modules After Compiling Kernel

I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files:

linux-headers-5.1.9_5.1.9-1_amd64.deb
linux-image-5.1.9_5.1.9-1_amd64.deb
linux-libc-dev_5.1.9-1_amd64.deb

When I first booted into this kernel I only had one module installed:

Code:
$ lsmod
Module                  Size  Used by
x86_pkg_temp_thermal    20480  0

I did a 'apt install --reinstall ./linux-headers-5.1.9_5.1.9-1_amd64.deb' and a few more appeared:

Code:
$ lsmod
Module                  Size  Used by
vboxpci                28672  0
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               425984  3 vboxpci,vboxnetadp,vboxnetflt
x86_pkg_temp_thermal    20480  0

A kernel I didn't build from source looks like this:
Code:
root@pyro:/usr/src# lsmod
Module                  Size  Used by
ctr                    16384  4
ccm                    20480  6
fuse                  135168  3
devlink                77824  0
nf_tables             151552  0
nfnetlink              16384  1 nf_tables
pci_stub               16384  1
vboxpci                28672  0
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               495616  3 vboxpci,vboxnetadp,vboxnetflt
cpufreq_conservative    16384  0
cpufreq_powersave      20480  0
cpufreq_userspace      20480  0
uvcvideo              114688  0
intel_rapl             28672  0
videobuf2_vmalloc      20480  1 uvcvideo
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
snd_hda_codec_hdmi     65536  1
coretemp               20480  0
videobuf2_common       57344  2 videobuf2_v4l2,uvcvideo
snd_hda_codec_idt      65536  1
videodev              229376  3 videobuf2_v4l2,uvcvideo,videobuf2_common
media                  57344  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
snd_hda_codec_generic    90112  1 snd_hda_codec_idt
arc4                   16384  2
rt2800pci              16384  0
rt2800mmio             16384  1 rt2800pci
ledtrig_audio          16384  1 snd_hda_codec_generic
rt2800lib             122880  2 rt2800mmio,rt2800pci
snd_hda_intel          45056  6
rt2x00pci              16384  1 rt2800pci
kvm_intel             278528  0
rt2x00mmio             16384  2 rt2800mmio,rt2800pci
kvm                   737280  1 kvm_intel
snd_hda_codec         155648  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_idt
snd_hda_core           98304  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_idt
rt2x00lib              61440  5 rt2x00mmio,rt2x00pci,rt2800mmio,rt2800pci,rt2800lib
mac80211              831488  3 rt2x00pci,rt2x00lib,rt2800lib
irqbypass              16384  1 kvm
snd_hwdep              16384  1 snd_hda_codec
cfg80211              782336  2 rt2x00lib,mac80211
snd_pcm               118784  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
eeprom_93cx6           16384  1 rt2800pci
snd_timer              40960  1 snd_pcm
crc_ccitt              16384  1 rt2800lib
snd                    98304  19 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_idt
soundcore              16384  1 snd
mei_me                 45056  0
rtsx_pci_ms            24576  0
hp_accel               28672  0
mei                   118784  1 mei_me
hp_wmi                 16384  0
lis3lv02d              28672  1 hp_accel
crct10dif_pclmul       16384  1
memstick               20480  1 rtsx_pci_ms
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
joydev                 28672  0
evdev                  28672  12
input_polldev          20480  1 lis3lv02d
serio_raw              20480  0
sparse_keymap          16384  1 hp_wmi
pcspkr                 16384  0
rfkill                 28672  4 hp_wmi,cfg80211
iTCO_wdt               16384  0
sg                     36864  0
iTCO_vendor_support    16384  1 iTCO_wdt
intel_cstate           16384  0
hp_wireless            16384  0
wmi_bmof               16384  0
intel_uncore          135168  0
pcc_cpufreq            20480  0
intel_rapl_perf        16384  0
ac                     16384  0
battery                20480  0
binfmt_misc            24576  1
loop                   36864  0
sunrpc                425984  1
dm_crypt               40960  0
dm_mod                147456  1 dm_crypt
ip_tables              32768  0
x_tables               49152  1 ip_tables
autofs4                53248  2
ext4                  745472  1
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
fscrypto               36864  1 ext4
ecb                    16384  0
btrfs                1396736  0
zstd_decompress        81920  1 btrfs
zstd_compress         172032  1 btrfs
raid10                 65536  0
raid456               176128  0
async_raid6_recov      24576  1 raid456
async_memcpy           20480  2 raid456,async_raid6_recov
async_pq               20480  2 raid456,async_raid6_recov
async_xor              20480  3 async_pq,raid456,async_raid6_recov
async_tx               20480  5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor                    24576  2 async_xor,btrfs
raid6_pq              122880  4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c              16384  2 btrfs,raid456
crc32c_generic         16384  0
raid1                  49152  0
raid0                  24576  0
multipath              20480  0
linear                 20480  0
md_mod                172032  6 raid1,raid10,raid0,linear,raid456,multipath
sd_mod                 57344  2
crc32c_intel           24576  2
i915                 1798144  48
rtsx_pci_sdmmc         32768  0
mmc_core              176128  1 rtsx_pci_sdmmc
aesni_intel           372736  4
ahci                   40960  1
i2c_algo_bit           16384  1 i915
libahci                40960  1 ahci
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
drm_kms_helper        204800  1 i915
xhci_pci               20480  0
ehci_pci               20480  0
libata                274432  2 libahci,ahci
xhci_hcd              262144  1 xhci_pci
ehci_hcd               98304  1 ehci_pci
i2c_i801               32768  0
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
psmouse               172032  0
glue_helper            16384  1 aesni_intel
drm                   491520  11 drm_kms_helper,i915
scsi_mod              241664  3 sd_mod,libata,sg
r8169                  90112  0
usbcore               290816  5 xhci_hcd,ehci_pci,uvcvideo,ehci_hcd,xhci_pci
realtek                20480  1
libphy                 86016  2 r8169,realtek
lpc_ich                28672  0
rtsx_pci               77824  2 rtsx_pci_sdmmc,rtsx_pci_ms
usb_common             16384  1 usbcore
thermal                20480  0
wmi                    32768  2 hp_wmi,wmi_bmof
video                  49152  1 i915
button                 16384  0

So I'm missing a lot. Not sure if I built my kernel wrong, or if I need more steps to rebuild the rest of the modules correctly. Probably a little of both.

Any advice much appreciated.
 

10 More Discussions You Might Find Interesting

1. SuSE

How do I load kernel modules so BestCrypt will work

I'm using SuSE 9.2 Pro and trying to use a program call BestCrypt. I get it installed and type bctool and it says "Kernel modules not loaded". If you need to know anymore about it you can find it at http://www.jetico.com/linux/bcrypt-help/index.htm linux:/home/chris/Desktop/Xtheater-0.9.2 #... (6 Replies)
Discussion started by: CTroxtell21
6 Replies

2. HP-UX

Information about kernel modules

Hi all, what do kernel modules libaudit, klog and strlog do? Specifically I want to determine if it was possible for us to determine if kernel level auditing is enabled at all? regards (0 Replies)
Discussion started by: slash_blog
0 Replies

3. Solaris

cc not found error in compiling perl modules

:rolleyes:make cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION="2.121\" -DXS_VERSION=\"2.121\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE Dumper.c make: cc: Command not found make: *** Error 127 cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8... (0 Replies)
Discussion started by: priyophan
0 Replies

4. UNIX for Advanced & Expert Users

Kernel Modules Not geting built

I installed in VM the Mandriva Linux with 2.6.27 kernel. But presently when I fire make the modules .ko does not get built. I get the following output on firing command in the kernel module folder. $ make Building first_driver.c ... make: Entering directory... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

5. Programming

Debugging Linux Kernel Modules

I am aware of debugging linux applications using gdb and ddd. Now I have written a simple kernel module having init_module, exit _module and some functions for tasklets and workqueues. I want to debug these kernel modules like I used to debug applications setting breakpoints etc. How can I debug... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

6. Emergency UNIX and Linux Support

Linux: passing parameters to kernel modules

Hi, I need to set qlogic qla2xxx parameters in /etc/modprobe.conf (Oracle Linux Server release 5.7, almost equal to RedHat 5.7) two questions: how can I pass this parameters to the module while it is loaded (fibre channel luns are in use), if possible at all and how can I check the... (3 Replies)
Discussion started by: funksen
3 Replies

7. Web Development

<Apache>error when compiling CPP modules

Hi, I am working on Linux Platform. I am just trying to port a CPP module to apache as a module. When I try to build the Apache , it throws an error as follows libtool: unrecognized option `-DLINUX=2' Later I did some search and changed the config_vars.mk file under the "build" directory of... (0 Replies)
Discussion started by: ashabb
0 Replies

8. UNIX for Dummies Questions & Answers

Linux kernel modules makefiles doubts

This query is regarding the makefiles of linux kernel modules. I saw at some sites on net it is suggesting to include the following path: KERNEL_SOURCE := /usr/src/linux... while at some places it is askibg to include /lib/modules path: KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

9. Hardware

Linux Kernel Modules

Hey everyone. I have a question, doing an lsmod gives me a list of all the loaded modules for my system. But how did they know to load? my /etc/modules files is empty, so how did these modules know to load themselves on boot time? If I were to take this hard drive to another computer with a... (6 Replies)
Discussion started by: Lost in Cyberia
6 Replies

10. Linux

Disable loading kernel modules

Hi, I am running CentOS 6.5 and I want to remove auto loading 8021q and garp modules, but there are no configure files in /etc/modprobe.d define bot modules. I even added both module names to /etc/modprobe.d/blacklist.conf, both of them are still loaded after the reboot. How can I disable... (2 Replies)
Discussion started by: hce
2 Replies
All times are GMT -4. The time now is 11:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy