Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
\dev\disk\... disappeared after udev update [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2120
Location: Finland

PostPosted: Thu Jan 31, 2013 3:04 pm    Post subject: Reply with quote

Tender wrote:
But what about using USE="kmod" in udev, is it related to genkernel? My kernel has NO modules.


Even if you don't use kmod or kernel modules, humour me and try it with USE="kmod" enabled, it wouldn't be the first time I'm seeing similar issues caused by the lack of it
Back to top
View user's profile Send private message
_AxS_
n00b
n00b


Joined: 22 Feb 2011
Posts: 4
Location: Canada

PostPosted: Thu Jan 31, 2013 3:20 pm    Post subject: Reply with quote

Tender wrote:

But what about using USE="kmod" in udev, is it related to genkernel?
My kernel has NO modules.
Which modules udev v.197 depend from? udev v.171 was ok with the same kernel.
(Sorry for my stupid questions, if any)


The original post mentioned that:

Quote:

also the driver for the UPS disappeared : bcmxcp_usb for USB pw5110


This implies modules are used somewhere...?

USE="kmod" is required for any module loading support in udev-197, period. udev will -only- load modules through a compiling against kmod and linking to libkmod. I expect there hasn't been a whole lot of testing with udev and USE="-kmod", so it's possible that this also relates somehow to other functionality.

Anyways, to better debug this, edit /etc/conf.d/udev and turn on udev debugging. It outputs to dmesg (not /run/udevdebug.log as it says). If there are failures you'll see them there.
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 3:47 pm    Post subject: Reply with quote

Recompiled udev with USE=kmod, recompiled kernel with IKCONFIG, reboot, /dev/disk... not present

Code:
zcat /proc/config.gz | grep CONFIG_SYSFS
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_SYSFS=y
zcat /proc/config.gz | grep CONFIG_IDE
# CONFIG_IDE is not set


Code:
equery u udev
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-fs/udev-197-r4:
 U I
 - - acl           : Adds support for Access Control Lists
 - - doc           : Adds extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - gudev         : enable libudev gobject interface
 - - hwdb          : read vendor/device string database and add it to udev database
 - - introspection : Use dev-libs/gobject-introspection for introspection
 - - keymap        : map custom hardware's multimedia keys
 + + kmod          : enable udev to load kernel modules
 - - openrc        : install the OpenRC init scripts
 - - static-libs   : Build static libraries


About sys-power/nut, I think it use same a kind of "software driver" to exchange data on standard USB connections, nothing to do with kernel drivers. May be.
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2120
Location: Finland

PostPosted: Thu Jan 31, 2013 3:53 pm    Post subject: Reply with quote

Tender wrote:

+ + kmod : enable udev to load kernel modules
- - openrc : install the OpenRC init scripts


Since you have USE="openrc" disabled I assume you are using sys-apps/systemd. Would have been nice if you had mentioned that earlier.

Or how are you starting udev if not using the up-to-date init scripts? You know that disabling USE="openrc" on a OpenRC system breaks the system, right?
Back to top
View user's profile Send private message
_AxS_
n00b
n00b


Joined: 22 Feb 2011
Posts: 4
Location: Canada

PostPosted: Thu Jan 31, 2013 4:20 pm    Post subject: Reply with quote

A better question might be, could you please provide a full run-down of your systems' configuration? what are you using for init and RC , how are you starting udev , do you have something that mounts /dev as a devtmpfs and /run as a tmpfs prior to starting udev (and other daemons), if using openrc what runlevels do you have and what's in them (especialy what is in the 'sysinit' runlevel), etc. etc..

There have been a _lot_ of changes that have recently (ie since November) been pushed to stable, and they are all assumed to have been completed and/or are working for sys-fs/udev-197 to operate properly out-of-the-box.

Since your system does seem to be non-standard via , i assume , USE="-*" in make.conf , we need to go over everything to debug this.
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 5:42 pm    Post subject: Reply with quote

_AxS_ wrote:
A better question might be, could you please provide a full run-down of your systems' configuration? what are you using for init and RC , how are you starting udev , do you have something that mounts /dev as a devtmpfs and /run as a tmpfs prior to starting udev (and other daemons), if using openrc what runlevels do you have and what's in them (especialy what is in the 'sysinit' runlevel), etc. etc..

There have been a _lot_ of changes that have recently (ie since November) been pushed to stable, and they are all assumed to have been completed and/or are working for sys-fs/udev-197 to operate properly out-of-the-box.

Since your system does seem to be non-standard via , i assume , USE="-*" in make.conf , we need to go over everything to debug this.


The goal in setting USE="-*" was to have a system as lean as possible, this may have made ​​it too sensitive, or I made some great mistake during update, I will give you more details soon as I get home. Thanks


Last edited by Tender on Thu Jan 31, 2013 9:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5437

PostPosted: Thu Jan 31, 2013 7:45 pm    Post subject: Reply with quote

USE="-*" falls quite strongly into "know what you're doing" category, as it messes up any +useflags - the above was just one of the possible ways it can fail.
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 8:56 pm    Post subject: Reply with quote

VoidMage wrote:
USE="-*" falls quite strongly into "know what you're doing" category, as it messes up any +useflags - the above was just one of the possible ways it can fail.


OK, received.

now:

    rc-status -a
    Runlevel: boot
    hwclock [ started ]
    modules [ started ]
    mdraid [ started ]
    fsck [ started ]
    root [ started ]
    mtab [ started ]
    swap [ started ]
    localmount [ started ]
    sysctl [ started ]
    bootmisc [ started ]
    termencoding [ started ]
    keymaps [ started ]
    tmpfiles.setup [ started ]
    swapfiles [ started ]
    hostname [ started ]
    net.lo [ started ]
    procfs [ started ]
    urandom [ started ]
    Runlevel: default
    hdparm [ started ]
    syslog-ng [ started ]
    gpm [ started ]
    ebtables [ started ]
    ip6tables [ started ]
    iptables [ started ]
    net.eth0 [ started ]
    net.ppp0 [ started ]
    net.ppp1 [ started ]
    dnsmasq [ started ]
    ntp-client [ started ]
    nfs [ started ]
    ntpd [ started ]
    sshd [ started ]
    distccd [ started ]
    acpid [ started ]
    aiccu [ started ]
    netmount [ started ]
    openvpn.server-tcp [ started ]
    openvpn.server-udp [ started ]
    radvd [ started ]
    samba [ started ]
    smartd [ started ]
    testipchange [ started ]
    vixie-cron [ started ]
    local [ started ]
    Runlevel: shutdown
    savecache [ stopped ]
    killprocs [ stopped ]
    mount-ro [ stopped ]
    Runlevel: sysinit
    devfs [ started ]
    dmesg [ started ]
    sysfs [ started ]
    Dynamic Runlevel: hotplugged
    Dynamic Runlevel: needed
    rpc.statd [ started ]
    Dynamic Runlevel: manual



If you need specific info, please post the command to execute
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2120
Location: Finland

PostPosted: Thu Jan 31, 2013 8:59 pm    Post subject: Reply with quote

Tender wrote:
OK, received.


As already pointed out, you are missing the udev init scripts, udev and udev-mount, caused by missing USE="openrc" flag in sys-fs/udev. Using -* just to end up looking for help later is stupid, no offense.
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 9:22 pm    Post subject: Reply with quote

Do you think emerging the following packages and adding the right init script (udev/udev-mount, but where?) is enought?

Code:

emerge --update --newuse --deep --with-bdeps=y @world -p

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

Calculating dependencies... done!
[ebuild   R    ] sys-fs/udev-197-r4  USE="openrc* -kmod*"
[ebuild  N     ] sys-fs/udev-init-scripts-22
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5437

PostPosted: Thu Jan 31, 2013 10:00 pm    Post subject: Reply with quote

Tender wrote:
Do you think emerging the following packages and adding the right init script (udev/udev-mount, but where?) is enought?

Code:

emerge --update --newuse --deep --with-bdeps=y @world -p

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

Calculating dependencies... done!
[ebuild   R    ] sys-fs/udev-197-r4  USE="openrc* -kmod*"
[ebuild  N     ] sys-fs/udev-init-scripts-22


Well, if you removed 'USE="-*"' and that was the only package that needed remerge, then:
a) you're lucky
b) given that udev-init-scripts come after udev, you'll likely need etc-update and a reboot to get things in order (kmod is still recommended, though if you're sure you aren't using any modules, you might do without)
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 10:08 pm    Post subject: Reply with quote

No, I get this only adding openrc use flag. I'm not lucky, if I remove -* there are tens of packages to install/reinstall.
But what about udev use flag : do I need it along with openrc?


Last edited by Tender on Thu Jan 31, 2013 11:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Thu Jan 31, 2013 11:49 pm    Post subject: Reply with quote

SOLVED

Solution tested before on a twin system with different kernel, unbootable after udev update, where I missed only CONFIG_DEVTMPFS...

Just added udev + openrc use flag (no kmod, -* is still there...) on my router, recompiled, rebooted, YESSSSSSSSSS

/dev/disk/... is here again, NUT is speaking with UPS

I THANK EVERYONE HERE for the HELP 8)

Best regards
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 217
Location: Detroit, MI, USA

PostPosted: Fri Feb 01, 2013 2:43 am    Post subject: Reply with quote

Tender wrote:
I'm not lucky, if I remove -* there are tens of packages to install/reinstall.

Egads!
Back to top
View user's profile Send private message
Tender
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2005
Posts: 99

PostPosted: Fri Feb 01, 2013 9:31 am    Post subject: Reply with quote

floppymaster wrote:
Tender wrote:
I'm not lucky, if I remove -* there are tens of packages to install/reinstall.

Egads!


K.I.S.S.!
http://en.wikipedia.org/wiki/KISS_principle
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
Goto page Previous  1, 2
Page 2 of 2

 
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