Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Error loading modules?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 5:54 pm    Post subject: [SOLVED] Error loading modules? Reply with quote

This had happened out of the blue a few days ago when I found this in /usr/sbin/klogd:

^@^@^@^@^@Cannot allocate Module array.
^@^@No module symbols loaded - kernel modules not enabled.
^@Error loading kernel symbols - %s

How do I enable modules? I haven't touched them.

My system still works, but I can't introduce new hardware to my computer because of this.

How do I fix it?

EDIT: I also tried modprobe, and nothing happened and no modules.
Code:

  nano 2.6.3                                                                 File: /etc/conf.d/modules                                                                           

# Linux users can define a list of modules for a specific kernel version,
# a released kernel version, a main kernel version or all kernel versions.
# The most specific versioned variable will take precedence.
# FreeBSD users can only use the modules="foo bar" setting.
modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
modules_2_6_23="tun ieee1394"
modules_2_6="tun"
modules_2="ipv6"
modules="ohci1394"
modules="usbcore"
modules="soundcore"

# Linux users can give modules a different name when they load - the new name
# will also be used to pick arguments below.
# This is not supported on FreeBSD.
#modules="dummy:dummy1"

# Linux users can give the modules some arguments if needed, per version
# if necessary.
# Again, the most specific versioned variable will take precedence.
# This is not supported on FreeBSD.
module_ieee1394_args="debug"
module_ieee1394_args_2_6_23_gentoo_r5="debug2"
module_ieee1394_args_2_6_23="debug3"
module_ieee1394_args_2_6="debug4"
module_ieee1394_args_2="debug5"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.


[Moderator edit: added [code] tags to preserve output layout. -Hu]
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep


Last edited by roboto on Wed Mar 22, 2017 6:20 pm; edited 2 times in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6151
Location: almost Mile High in the USA

PostPosted: Mon Mar 20, 2017 6:00 pm    Post subject: Reply with quote

If you disabled module loading support when you built your kernel, you won't be allowed to insmod any modules...?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 6:33 pm    Post subject: Reply with quote

I haven't touch the kernel configuration ever since I installed Gentoo...

All the modules I have are built into the kernel, but they stopped loading properly.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 5296

PostPosted: Mon Mar 20, 2017 6:47 pm    Post subject: Reply with quote

roboto wrote:
All the modules I have are built into the kernel, but they stopped loading properly.

roboto ... in which case you don't have any modules to load. Also your /etc/conf.d/modules seems to be very much out of date, 2.6{{.23,},-gentoo-r5} being now antiques.

best ... khay
Back to top
View user's profile Send private message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 6:57 pm    Post subject: Reply with quote

How do I update it then?

Besides... sysklogd is showing me errors on loading modules.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 7:08 pm    Post subject: Reply with quote

etc-update's output:

Scanning Configuration files...
Exiting: Nothing left to do; exiting.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 7:16 pm    Post subject: Reply with quote

# emerge -avDuN /etc/conf.d/modules

These are the packages that would be merged, in order:

Calculating dependencies ... done!

Total: 0 packages, Size of downloads: 0 KiB
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 5296

PostPosted: Mon Mar 20, 2017 7:22 pm    Post subject: Reply with quote

roboto wrote:
How do I update it then?

roboto ... it's explained in that file:

/etc/conf.d/modules:
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
# The most specific versioned variable will take precedence.

For some reason you have the examples of how to do this uncommented.

roboto wrote:
Besides... sysklogd is showing me errors on loading modules.

You've just said, you don't have any modules, "all the modules [...] are built into the kernel". I suspect what has happened is you've built a kernel but not run 'make modules_install', but that is a complete guess in the absence of information.

Code:
# find /lib/modules/$(uname -r) -type f -name '*.ko' -print

best ... khay
Back to top
View user's profile Send private message
roboto
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2017
Posts: 126
Location: My IP address.

PostPosted: Mon Mar 20, 2017 7:34 pm    Post subject: Reply with quote

I see... I have not typed make modules_install and I will update /etc/conf.d/modules.

Wish me luck on rebuilding the kernel.
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum