LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel 2.6.15.2 + Udev + Slackware 10.2 (http://www.linuxquestions.org/questions/slackware-14/kernel-2-6-15-2-udev-slackware-10-2-a-412006/)

Slackovado 02-05-2006 06:26 PM

Kernel 2.6.15.2 + Udev + Slackware 10.2
 
Anybody got this working yet?

I tried and got nowhere at all.
First I couldn't even copy my own files in my own home directory, getting error message that operation not permited.
So then I disabled hotplug and compiled and installed the latest udev.
No way Jose! What a fiasco!
There is more questions arising from the README and FAQ then it answers.

Fscked the system so bad I had to boot from Slackware CD and restore the original Slackware's udev because my root file system got mounted read-only and I couldn't do anything.

On the other hand I have Kernel 2.6.15.1 working on my laptop with Slack 10.2 very nicely but still using hotplug and the default Slackware udev.

What's changed in the latest kernel so much it will not work any more with Slackware.
Any solutions?
Anybody?

Thanks

shilo 02-06-2006 01:09 AM

Have you tried this?

http://piterpunk.info02.com.br/extra/

It didn't work perfectly for me, but I have a tweaked so much stuff on my own system that I can't rule out operator error as the cause. Even so, no real show stoppers.

Yalla-One 02-06-2006 03:49 AM

shilo,

Would you mind posting what you changed from piter punk's blueprint in order to get it working?

I tried following out of the box, and ended up booting my main disk as read-only, causing neither udev nor anything else to work.

-Y1

Slackovado 02-06-2006 04:25 PM

Quote:

Originally Posted by shilo
Have you tried this?

http://piterpunk.info02.com.br/extra/

It didn't work perfectly for me, but I have a tweaked so much stuff on my own system that I can't rule out operator error as the cause. Even so, no real show stoppers.

Ok,I'll give it a try. Are those packages for Slack 10.2 though. It doesn't say anywhere which version of Slack it's for.

I'll post later today how it went.

urka58 02-06-2006 05:19 PM

Slackovado: yes it works on 10.2

Yalla-One: I had the same problem (more or less randomly,I believe mostly due to some additional time required to remove temporary files, since hot reeboot ran flawless). I fixed it by leaving /etc/rcd/rc.udev an extra 3 secs to do his job before starting count events this way: in /etc/rc.d/rc.S added a line as foollows

# Mount sysfs next, if the kernel supports it:
if [ -d /sys ]; then
if cat /proc/filesystems | grep -w sysfs 1> /dev/null 2> /dev/null ; then
if ! cat /proc/mounts | grep -w sysfs 1> /dev/null 2> /dev/null ; then
/sbin/mount -v sysfs /sys -n -t sysfs
fi
if ! grep -w nohotplug /proc/cmdline 1> /dev/null 2> /dev/null ; then
if [ -x /etc/rc.d/rc.udev ]; then
/etc/rc.d/rc.udev start
sleep 3----------------------------------this
/lib/udev/udev.count_events.sh
fi
fi
fi
fi

hope this helps
Ciao

shilo 02-07-2006 08:16 PM

Quote:

Originally Posted by Yalla-One
shilo,

Would you mind posting what you changed from piter punk's blueprint in order to get it working?

I tried following out of the box, and ended up booting my main disk as read-only, causing neither udev nor anything else to work.

-Y1

Hmm, I got warning messages about the filesystem being mounted read-only, but later in the boot process everything is remounted.

It seemed to work, I just got error messages that I haven't been abe to sort out yet. Note that I did all this on a clean install. I haven't had much time to play with it though, so it could very well be broken and I just haven't realized it.

As for what I changed from Piter Punk's blueprint, nothing. It is importatnt that you understand the directions well, though. There are a number of config files that need to get fixed up before things will start working.

Yalla-One 02-08-2006 02:03 AM

Just got a mail from Piter Punk - turns out he's made a couple of changes to the scripts as bug-fixes, among them introduced a delay (as urka58 suggested) to udev to prevent the read-only boot.

Have not had a chance to test it yet as I'm using my Slackware laptop for work, but will try later today.

So - for all that want to try 2.6.15.x and newer udevs: make sure you get piter punk's updated packages!

-Y1

shilo 02-08-2006 08:46 PM

I decided to check out my test sytem a little better. It upgraded to the latest Piter Punk packages. I still get the error messages about mounting read-only. Udev appears to be running, but I just noticed that it doesn't seem to be working correctly. :scratch: My /dev is static. It contains all the devices installed by Slackware for 2.4 kernels. I've tried re-starting udev every way possible, but this doesn't seem to change.

Now I am interested in knowing how to get this thing working right.

Yalla-One 02-09-2006 02:16 AM

Hi shilo,

Just tried the same thing myself, both with Piter Punk's latest packages, and inserting the 3 second delay as suggested earlier in this thead, but to no success at my end either.

12 out of 12 times the file system was mounted read-only, and udevd counted down how many instances was running until it ended with 2.

Hard to trouble-shoot, as the system wouldn't even let me log in, and thus couldn't print dmesg or check the logs either...

Have emailed PiterPunk with as detailed report as possible, and hope him or Patrick or someone more experienced than me might fix it.. Seems like there's still a lot going on in udev development, so maybe an even more recent version of udevd might help too...

-Y1

firebird 02-09-2006 09:48 AM

I'm not quite sure I understand the udev problem here, can I ask a few stupid questions? My udev knowledge still stops at udev rules :)

I found a thread said 2.6.15 only works with udev 071 and above, is it true? I have already installed 2.6.15.2 on two boxes (all running slackware-current, which uses udev 064, I believe), many important drivers are compiled into the kernel. It looks like everything is OK. Sound, CD recording etc. all works. Did I miss something? What should I look for to confirm udev works or not? By "working", do your guys mean new feature working or basic feature working?

Thank you very much for your help!

bmccrac02 02-09-2006 01:52 PM

linux-2.6.15.n and Slackware 10.2
 
Here is what Pat Volkerding of Slackware told me:

>>BTW, 2.6.15.x requires plenty of other changes that I'm working on now,
>>such as updates to udev, module init tools, and the addition of
>>sysfsutils. Until you see those things appear in -current, you're
>>going
>>to have to stick to 2.6.14.x or lower, and once the changes are merged
>>all the 2.6.x kernels older than 2.6.15 will be broken. So it might
>>not
>>be the best time to be trying to use a 2.6 kernel... :-)

I am, however, using 2.6.14.7 without problems so far.

urka58 02-09-2006 05:02 PM

Quote:

Originally Posted by firebird
I'm not quite sure I understand the udev problem here, can I ask a few stupid questions? My udev knowledge still stops at udev rules :)

I found a thread said 2.6.15 only works with udev 071 and above, is it true? I have already installed 2.6.15.2 on two boxes (all running slackware-current, which uses udev 064, I believe), many important drivers are compiled into the kernel. It looks like everything is OK. Sound, CD recording etc. all works. Did I miss something? What should I look for to confirm udev works or not? By "working", do your guys mean new feature working or basic feature working?

Thank you very much for your help!

No Firebird
you can use kernel 2.6.15+ without problems, (or better, more problems than you would have with kernel 2.6.14 or lower) with udev that comes with Slack 10.2 (0.64).
The problems come if you want to use udev 0.71 (not sure, may be 0.76) with kernels 2.6.14 or lower, since newest releases of udev require some feature available only with 2.6.15+ kernels.
What differs in these new releases of udev, is the possibility not to use hotplug anymore since udev take care of collecting/intercepting "events" and creating device nodes in userspace.
As udev is in continous development, I counted 3 new releases in a week, it is a little difficult to be maintened and work properly on many systems.
I see only two reasons to switch to newer udev,for now, your system is working very bad, but I understand from your post it doesn't, or you want to "explore" new possibilities and features( ie my case).
The main advantage using new udev is your system will boot faster, but the disadvantage is it requires a lot of changes in startup scripts and some extra utilities.
Slackovado has already posted the link where you can find the required packages.
Ciao

shilo 02-09-2006 06:59 PM

Quote:

Originally Posted by bmccrac02
Here is what Pat Volkerding of Slackware told me:

>>BTW, 2.6.15.x requires plenty of other changes that I'm working on now,
>>such as updates to udev, module init tools, and the addition of
>>sysfsutils.

These are the things that PV is working on now, but if you checked out the link earlier, they are the EXACT things that this thread is talking about. Piter Punk has already released "updates to udev, module init tools, and the addition of sysfsutils."

There seem to be some problems with them, though. I wonder now, who HAS got UDEV working (with dynamic /dev entries) using the Piter Punk solution?

firebird 02-10-2006 12:23 AM

urka58 and bmccrac02, thanks very much for clearing things up.

I guess I'd better waiting for PV for udev upgrade.

shilo 02-14-2006 01:22 AM

OK, the Piter Punk packages are working for me now. I recompiled my kernel using the Slackware 2.6.15.3 config and that seemed to so the trick.

No hotplug = fast boot. :)


All times are GMT -5. The time now is 11:14 PM.