Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved udev & CONFIG_SYSFS_DEPRECATEDNewbie Kernel rebuild?
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
MTUser2007
n00b
n00b


Joined: 19 Feb 2008
Posts: 34
Location: Shepherd, MT, USA

PostPosted: Thu Sep 10, 2009 2:19 pm    Post subject: Solved udev & CONFIG_SYSFS_DEPRECATEDNewbie Kernel rebui Reply with quote

My recent upgrade to 2.6.30 Gentoo r6 seems to work fine except I see the following error in dmsg:

udev: starting version 141
udev: deprecated sysfs layout; update the kernel or disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly

Googling I found this is a known issue and can be solved by:

"> [ 170.441135] udev: deprecated sysfs layout; update the kernel or disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>
> Is it a bug?

No, disable that option in your kernel, and rebuild it, you should not
be using that configuration anymore."

So I know what I should do, but not how to do it. I am a linux and gentoo newbie. Please can someone explain how to disable that option and rebuild the kernel and reinstall it? I used genkernel to compile the kernel last time.


Last edited by MTUser2007 on Fri Sep 11, 2009 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Thu Sep 10, 2009 2:35 pm    Post subject: Reply with quote

You have to reconfigure/recompile your kernel. Check the handbook for how to do it, go with the manual path.

Once you're in menuconfig you should go to General Setup and disable "Create deprecated sysfs layout for older userspace tools"
Back to top
View user's profile Send private message
MTUser2007
n00b
n00b


Joined: 19 Feb 2008
Posts: 34
Location: Shepherd, MT, USA

PostPosted: Thu Sep 10, 2009 3:53 pm    Post subject: Reply with quote

Thank you for your help. In following the manual, I have a few questions:

1. after deselecting the option in general setup, and saving the manual says to compile via: # make && make modules_install

Do you need to include anything beyond make if all you do is change an option in the general setup?

2. Next is compiling and installing, as a beginner, I would like to use genkernel, which I have done before successfully. The manual says to:

"Next, copy over the kernel configuration used by the Installation CD to the location where genkernel looks for the default kernel configuration:

Code Listing 4.2: Copying over the Installation CD kernel config

# zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6

Now, compile your kernel sources by running genkernel all. Be aware though, as genkernel compiles a kernel that supports almost all hardware, this compilation will take quite a while to finish!"

If already have a pre-existing kernel, don't I already have a "default kernel configuration" that I can use, the old one? So I would skip this step? Or is the problem that my default kernel configuration includes the problem that I am trying to fix, the deprecated sysfs problem that I am trying to fix?

I do read the manual, but it does not seem to answer the questions that come to my mind when trying to understand what I am doing.
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Thu Sep 10, 2009 4:05 pm    Post subject: Reply with quote

There are two ways of compiling your kernel: Manually and using Genkernel.

You should follow either 7c (manual) or 7d (genkernel).

If you're going with genkernel you should run
Code:
# genkernel --menuconfig all

That will allow you to deselect anything you don't want before genkernel starts compiling.
Back to top
View user's profile Send private message
MTUser2007
n00b
n00b


Joined: 19 Feb 2008
Posts: 34
Location: Shepherd, MT, USA

PostPosted: Thu Sep 10, 2009 4:47 pm    Post subject: Reply with quote

Again, thank you for the help. Now it is starting to make sense to me. Using the command you supplied and explained, I can make a new kernel with the option causing problems deselected. I know how to install a kernel compiled with genkernel.
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Thu Sep 10, 2009 5:33 pm    Post subject: Reply with quote

Happy to help out!
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