Testing new udev packages in Slackware-current (post-01 Jul 2007)

Introduction

With kernel 2.6.15, udev can listen directly the events given by some devices, through netlink. Sysfs provides a interface to send events, when we wrote to "uevent" file in some device directory, one event will be sent and udev can catch this event and do something.

This is the great idea, now udev can be used to handle all device node creation AND module loading. The hotplug binary is no more and all configuration can be done using only udev.rules. Udev can also rename network interfaces and handle the devices symlinks.

Packages

Slackware current already fits in all pre-reqs to use udev and leave to udev the hotplug handling. But udev is in continuous development; using 2.6.15 kernels we need to use wait_for_sysfs rules to waint until sysfs files are in place, in 2.6.18 this is only needed to some scsi events and we hope this won't be needed by any device sometime soon.

To test these new developments and to do some improvenments and bug fixes in hotplug system,we do these packages, they can be installed in Slackware current with kernel 2.6.18+, only give special care to /etc/rc.d/rc.*.new files and the un-numbered rules in /etc/udev/rules.d. Mistakes there can broke your system:

Installation

Ok, you need to be running at least slackware 11 and using kernel 2.6.18+ (slackware 11 ships kernel 2.6.17.13 and 2.6.18). If you are running an older version of slackware is a good idea upgrade to 11.0. The steps to test these packages are:

  1. Install/Upgrade all packages
  2. Move rc.udev.new to rc.udev and rc.pcmcia.new to rc.pcmcia
  3. Remove the /etc/udev/rules.d/cd-devices.rules and /etc/udev/rules.d/network-devices.rules. These scripts are "upgraded" to 75-*-devices.rules, using the "numbered" schema.
  4. Reboot your machine

Please, DON'T just upgrade the packages. If you do that your system can become unstable. Follow the steps from 2 to 4 to get your system working OK.

Sources

All package sources, slackbuilds and files can be found here:

Final

The system is tested and working fine in five machines with many different PCI, ISA and PCMCIA cards. Probably it won't burn your machine, but i don't give to you any warranties. If burns, is your problem.

If you had any problem, feel free to send a mail to me.

Piter PUNK
piterpk AT terra dot com dot br