Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hotplug issues?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
decoleur
n00b
n00b


Joined: 11 Nov 2004
Posts: 2
Location: Charlottesville, VA - USA

PostPosted: Thu Nov 11, 2004 3:17 am    Post subject: Hotplug issues? Reply with quote

I am running gentoo-dev-sources and tried to emerge sys-apps/hotplug-20040923 and then ran dispatch-conf and accepted all updated files... only to loose networking (among others).

lsmod reveals:
Quote:
KM-99391 ~ # lsmod
Module Size Used by
usbcore 96996 1
vfat 11264 1
fat 37920 1 vfat


but if i back down to an older version of sys-apps/hotplug-20040401 i get a load of stuff from lsmod:
Quote:
KM-99391 ~ # lsmod
Module Size Used by
i915 73444 3
ohci_hcd 17668 0
orinoco_pci 4992 0
orinoco 36748 1 orinoco_pci
hermes 7552 2 orinoco_pci,orinoco
tg3 77444 0
snd_intel8x0m 14792 0
snd_intel8x0 29004 0
snd_ac97_codec 66512 2 snd_intel8x0m,snd_intel8x0
snd_pcm 79112 2 snd_intel8x0m,snd_intel8x0
snd_timer 19716 1 snd_pcm
snd_page_alloc 7560 3 snd_intel8x0m,snd_intel8x0,snd_pcm
gameport 3584 1 snd_intel8x0
snd_mpu401_uart 5888 1 snd_intel8x0
snd_rawmidi 18852 1 snd_mpu401_uart
snd_seq_device 6408 1 snd_rawmidi
snd 44388 8 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pc m,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
ehci_hcd 25348 0
uhci_hcd 27664 0
intel_agp 19104 1
agpgart 27048 4 intel_agp
usbcore 96996 5 ohci_hcd,ehci_hcd,uhci_hcd
vfat 11264 1
fat 37920 1 vfat


is this common?

Thanks in advance,

Timur
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 11, 2004 6:42 am    Post subject: Reply with quote

hotplug no longer loads modules on bootup. if you want that, use coldplug.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
alchemyx
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2003
Posts: 111
Location: Swinoujscie, Poland

PostPosted: Thu Nov 11, 2004 11:50 am    Post subject: Reply with quote

Could you then, please, explain what hotplug init script does in that case? I am confused, because for long time it was hotplug :)
_________________
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
Back to top
View user's profile Send private message
anz
Apprentice
Apprentice


Joined: 05 Feb 2003
Posts: 279
Location: Vienna

PostPosted: Thu Nov 11, 2004 12:42 pm    Post subject: Reply with quote

Hello,

dsd wrote:
hotplug no longer loads modules on bootup. if you want that, use coldplug.


I also was very surprised, that after updating hotplug no networking was running. Well, a putting the modules in the /etc/modules.autoload.d/kernel-2.x and everything run as normal.
I think, in future I will read the infos about in the "Online package database" before emerging ...
_________________
Greetings from Vienna
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 11, 2004 4:10 pm    Post subject: Reply with quote

hotplug init script does nothing. it is not needed (and never was) for hotplugging.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
alchemyx
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2003
Posts: 111
Location: Swinoujscie, Poland

PostPosted: Thu Nov 11, 2004 4:21 pm    Post subject: Reply with quote

Funny thing is that after those changes (coldplug appearead), my network card stopped working properly - I had to add an alias 'alias eth0 via-rhine', so it works again. Sad.
_________________
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Nov 11, 2004 6:25 pm    Post subject: Reply with quote

anz wrote:
Hello,

dsd wrote:
hotplug no longer loads modules on bootup. if you want that, use coldplug.


I also was very surprised, that after updating hotplug no networking was running. Well, a putting the modules in the /etc/modules.autoload.d/kernel-2.x and everything run as normal.
I think, in future I will read the infos about in the "Online package database" before emerging ...


Sorry if its a dumb question, but I am extremely confused by this..

what modules did you put in /etc/modules.autoload.d/kernel-2.x ?

Luckily I have a reserve copy of Gentoo on another disk or I would be totally up shit creek now..

regards
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Thu Nov 11, 2004 7:44 pm    Post subject: Reply with quote

Man, I am seriously pi**ed. :evil: I had the same thing, did an "update world" and had almost no peripheral support after booting and no idea why.

We *desperately* need some good* logging facility for portage. The way it is is simply bound to break one box after another. The only thing that keeps it from smashing directly into the wall is this incredibly good forum.

PLEASE, please, please, put some serious logging of important ebuild messages into portage!
_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Nov 11, 2004 8:03 pm    Post subject: Reply with quote

Right..

Happily I can restore the pre-emerge status within 10 minutes, but I hate to throw away the compile time if there's a simple fix..

mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
soulwarrior
Guru
Guru


Joined: 21 Oct 2002
Posts: 331

PostPosted: Thu Nov 11, 2004 8:09 pm    Post subject: Reply with quote

wgi wrote:
PLEASE, please, please, put some serious logging of important ebuild messages into portage!


The functionality is already available, just activate it :wink:

In /etc/make.conf uncomment:
Quote:

# PORT_LOGDIR is the location where portage will store all the logs it
# creates from each individual merge. They are stored as YYMMDD-$PF.log
# in the directory specified. This is disabled until you enable it by
# providing a directory. Permissions will be modified as needed IF the
# directory exists, otherwise logging will be disabled.
PORT_LOGDIR=/var/log/portage


Then to filter out the important messages, use a programm like portlog-info:

Quote:
postlog-info |less
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 11, 2004 8:15 pm    Post subject: READ THIS FOR CLARIFICATION! Reply with quote

let me do a quick clarification for anyone who's a little lost:


Previously, hotplug scanned your hardware and loaded the relevant modules on bootup. Some people relied on this to autoload the relevant drivers such as network.
Autoloading modules like this is *not* hotplugging - 'true' hotplugging is where you plug a device in after the system has booted up. When this happens, hotplug aims to ensure that it is ready for use.
As such, the "autoloading modules on bootup" part of hotplug has been removed. the /etc/init.d/hotplug script now does pretty much nothing (it is not needed for 'true' hotplugging)

The autoloading-modules-at-bootup code has been split off into the more appropriately named coldplug package. To restore the old hotplug-autoloading-modules-at-boot functionality, all you need to do is:

Code:
emerge coldplug
rc-update add coldplug boot


Alternatively, you can simply list the modules you wish to load in /etc/modules.autoload.d/kernel-2.6
(or, /etc/modules.autoload.d/kernel-2.4 if you run a 2.4 kernel)


I hope that clears things up a bit
_________________
http://dev.gentoo.org/~dsd


Last edited by dsd on Fri Nov 12, 2004 12:04 am; edited 1 time in total
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 11, 2004 8:19 pm    Post subject: Reply with quote

as to some way of getting this message over better, well, does anyone have any suggestions?

we describe the new behaviour in the ebuild, in the changelog, in the hotplug init script (which you must have seen with etc-update) and by spamming messages at the end of the emerge. i'm going to submit an article for the GWN but thats not going to get out to everybody.

yes, a good portage message log enabled by default would be perfect, but we dont have that just yet :(
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Thu Nov 11, 2004 8:28 pm    Post subject: Reply with quote

dsd wrote:
as to some way of getting this message over better, well, does anyone have any suggestions?

we describe the new behaviour in the ebuild, in the changelog, in the hotplug init script (which you must have seen with etc-update) and by spamming messages at the end of the emerge. i'm going to submit an article for the GWN but thats not going to get out to everybody.

yes, a good portage message log enabled by default would be perfect, but we dont have that just yet :(


As you said, a good logging mechanism would be the best thing (thankt for the info on portlog-info, soulwarrior) and the only thing that has a good chance to work.

I suggest collecting all ewarns, writing them to a file and displaying them via user's paging program after emerge is done. That is, by default. So even if you booted immediately or the box crashed you could still read all the important info without having to genlop and inspect every of those ebuilds for potential caveats.

Gentoo works great, generally (I can only say it again: the best thing that happened to Linux, ever), but things like this are really, really bad. I just imagined I had this problem on my production boxes. Hell. Since they are production boxes, they do not get updated all the time like my personal boxes do, so there are a lot of packages and no way anybody would sit through the emerge process...

Then they all come up halfway dead. You know you just made my day. Heaven forbid. I was lucky I ran into the problem on my personal boxes before I b0rked the other ones.

Autoloading modules is okay for me, but I'd actually have to figure out what modules are possibly loaded by various init scripts and what modules I'd have to load myself. So coldplug is just convenient for me even if I don't change the hardware often (as I like to on my personal boxes :D ).

Anyway, sorry for ranting. I can understand why the changes were made, but breaking fundemantal functionality and leaving the user in the dark is a really serious issue.
_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Nov 11, 2004 8:47 pm    Post subject: Reply with quote

soulwarrior wrote:
wgi wrote:
PLEASE, please, please, put some serious logging of important ebuild messages into portage!


The functionality is already available, just activate it :wink:

Then to filter out the important messages, use a programm like portlog-info:

Quote:
postlog-info |less


Thanks for the tip - it works very nicely! :-)

mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Nov 11, 2004 8:51 pm    Post subject: Re: READ THIS FOR CLARIFICATION! Reply with quote

dsd wrote:
let me do a quick clarification for anyone who's a little lost:

...The autoloading-modules-at-bootup code has been split off into the more appropriately named coldplug package. To restore the old hotplug-autoloading-modules-at-boot functionality, all you need to do is:

Code:
emerge coldplug
rc-update add coldplug default


Alternatively, you can simply list the modules you wish to load in /etc/modules.autoload.d/kernel-2.6
(or, /etc/modules.autoload.d/kernel-2.4 if you run a 2.4 kernel)
[/b]

I hope that clears things up a bit


It certainly did for me, now I'm back on the air!

many thanks... :-)
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
alchemyx
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2003
Posts: 111
Location: Swinoujscie, Poland

PostPosted: Thu Nov 11, 2004 10:32 pm    Post subject: Reply with quote

Everything would be fine, but one of developers is terribly wrong and doesn't want to force coldplug before network initialisation...
_________________
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
Back to top
View user's profile Send private message
altstadt
n00b
n00b


Joined: 04 Nov 2003
Posts: 16

PostPosted: Thu Nov 11, 2004 11:02 pm    Post subject: Re: READ THIS FOR CLARIFICATION! Reply with quote

dsd wrote:
let me do a quick clarification for anyone who's a little lost:


Previously, hotplug scanned your hardware and loaded the relevant modules on bootup. Some people relied on this to autoload the relevant drivers such as network.


And some of us just had hotplug thrust upon us when we first installed our systems, so we didn't even think of questioning it.

dsd wrote:
The autoloading-modules-at-bootup code has been split off into the more appropriately named coldplug package. To restore the old hotplug-autoloading-modules-at-boot functionality, all you need to do is:

Code:
emerge coldplug
rc-update add coldplug default


I just tried this on a sacrificial workstation and it didn't work. eth0 was not loaded and every service that depended on it was borked.

dsd wrote:
Alternatively, you can simply list the modules you wish to load in /etc/modules.autoload.d/kernel-2.6
(or, /etc/modules.autoload.d/kernel-2.4 if you run a 2.4 kernel)


I guess I will have to figure out what is actually being loaded by the old hotplug and move to this method long term.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Nov 11, 2004 11:32 pm    Post subject: Re: READ THIS FOR CLARIFICATION! Reply with quote

altstadt wrote:
And some of us just had hotplug thrust upon us when we first installed our systems, so we didn't even think of questioning it.

well, if you were using the autoload-on-bootup thing, you would have added it to a runlevel yourself...

re. coldplug
Quote:
I just tried this on a sacrificial workstation and it didn't work. eth0 was not loaded and every service that depended on it was borked.


please file a bug for this
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Thu Nov 11, 2004 11:43 pm    Post subject: Reply with quote

instead of doing
Code:
rc-update add coldplug default

how about
Code:
rc-update add coldplug boot


On my system that runs coldplug before it gets to the networking stuff. I didn't need hotplugging for my system but may it'll help one of you guys out.
Back to top
View user's profile Send private message
alchemyx
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2003
Posts: 111
Location: Swinoujscie, Poland

PostPosted: Thu Nov 11, 2004 11:48 pm    Post subject: Reply with quote

You are probably right but shouldn't be issue solved by adding "before net" to those damn coldplug scripts?
_________________
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
Back to top
View user's profile Send private message
altstadt
n00b
n00b


Joined: 04 Nov 2003
Posts: 16

PostPosted: Fri Nov 12, 2004 1:07 am    Post subject: Re: READ THIS FOR CLARIFICATION! Reply with quote

dsd wrote:
altstadt wrote:
And some of us just had hotplug thrust upon us when we first installed our systems, so we didn't even think of questioning it.

well, if you were using the autoload-on-bootup thing, you would have added it to a runlevel yourself...


Oh, undoubtedly, but there is a difference between reading instructions that say "to install your system, do this, that, 'n the other" and actively seeking out a package to solve a problem. I wasn't even aware that hotplug existed, let alone existed on my systems until a maintenance emerge system this morning broke the first machine I rebooted.

At some point I must have mindlessly followed some directions to rc-update hotplug. Since I don't remember a time when my eth0 didn't work, and there is no mention of any enet stuff in my modules.autoload.d, I must have run this rc-update in the first hours of a fresh install.

dsd wrote:
re. coldplug
Quote:
I just tried this on a sacrificial workstation and it didn't work. eth0 was not loaded and every service that depended on it was borked.


please file a bug for this


Done. See bug 70891.

Now a question. To migrate over to use the modules.autoload.d files as originally intended, is there some way I can find out what modules the old hotplug is loading at boot?
Back to top
View user's profile Send private message
mc_barron
Apprentice
Apprentice


Joined: 28 Aug 2003
Posts: 230
Location: Chicago, IL

PostPosted: Fri Nov 12, 2004 3:11 am    Post subject: Reply with quote

Here's the problem:
- I emerge the "new" hotplug that now does nothing
- My network is completely borked (don't know why - I thought all the drivers were compiled into the kernel, so it shouldn't matter right? Strange...)
- I now have no network to emerge coldplug, or to copy the coldplug filesfrom another computer.

I know, I know - I can revert back to the old hotplug. But I don't want to do that. A simple update to the world should not break my system this badly! Besides, I'll learn nothing if I just go back to the old way.

I want to know the answer to altstadt's qustion too:
To migrate over to use the modules.autoload.d files as originally intended, is there some way I can find out what modules the old hotplug is loading at boot?
Back to top
View user's profile Send private message
GenKreton
l33t
l33t


Joined: 20 Sep 2003
Posts: 828
Location: Cambridge, MA

PostPosted: Fri Nov 12, 2004 4:54 am    Post subject: Reply with quote

mc_barron wrote:

I want to know the answer to altstadt's qustion too:
To migrate over to use the modules.autoload.d files as originally intended, is there some way I can find out what modules the old hotplug is loading at boot?


Code:
ls -R /lib/modules/`uname -r`


That will list all the modules you have.
Back to top
View user's profile Send private message
mc_barron
Apprentice
Apprentice


Joined: 28 Aug 2003
Posts: 230
Location: Chicago, IL

PostPosted: Fri Nov 12, 2004 5:05 am    Post subject: Reply with quote

Yes, you are correct in that it lists ALL of the modules I have compiled for my currently running kernel. The question was what modules were actually loaded by hotplug?
Back to top
View user's profile Send private message
GenKreton
l33t
l33t


Joined: 20 Sep 2003
Posts: 828
Location: Cambridge, MA

PostPosted: Fri Nov 12, 2004 6:30 am    Post subject: Reply with quote

mc_barron wrote:
Yes, you are correct in that it lists ALL of the modules I have compiled for my currently running kernel. The question was what modules were actually loaded by hotplug?


All the modules in that list that are specifically for a hardware device on your computer and their dependencies. For example the crypt modules would not have been loaded unless some piece of hardware needed it, like a wifi driver needing one for wpa.
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 1, 2, 3, 4  Next
Page 1 of 4

 
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