HardwareActivation

Differences between revisions 7 and 8
Revision 7 as of 2005-10-28 15:20:10
Size: 835
Editor: 198_220_103_66-WIFI_HOTSPOTS
Comment: kill old metadata block
Revision 8 as of 2005-11-01 17:18:41
Size: 1752
Editor: 209
Comment: braindump from bof
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * '''Contributors''': JaneWeideman, ScottJamesRemnant  * '''Contributors''': JaneWeideman, ScottJamesRemnant, JeffBailey
Line 10: Line 10:
Line 11: Line 12:

Solve the problem that coldplugging needs to complete before carrying on. This completing must be based on kernel events.

Specifically, this spec does NOT cover activating various services based on kernel events. This is too invasive for the Dapper release.
Line 16: Line 21:

Line 18: Line 25:
New Initramfs:

o Create base device nodes
o Start udevd
o Load modules from /etc/mkinitramfs/modules (and other force_load calls)

** Note: without udevstart, something needs to correct permissions, or we need to provide the rules.

o Walk the sysfs tree for harddrive devices and tickle uevents for those
o Walk the ide, scsi, and i2o busses
o Attempt hibernate recovery
o Walk the pci sysfs tree for usb controllers

Line 19: Line 40:

Update to UDEV 071.
Add scoreboard to udevd.
Track scoreboard status during coldplug by looking for existance of /dev/.udev_scoreboard.
We create the file initially, and udev will unlink it.

Summary

Our current boot process has parts that rely on certain pieces of hardware being available, such as networking, bluetooth, sound and printers. We should instead provide a means to activate these when the hardware is detected rather than assuming it exists, and move the startup scripts into activation scripts instead.

Rationale

Solve the problem that coldplugging needs to complete before carrying on. This completing must be based on kernel events.

Specifically, this spec does NOT cover activating various services based on kernel events. This is too invasive for the Dapper release.

Use cases

Scope

Design

New Initramfs:

o Create base device nodes o Start udevd o Load modules from /etc/mkinitramfs/modules (and other force_load calls)

** Note: without udevstart, something needs to correct permissions, or we need to provide the rules.

o Walk the sysfs tree for harddrive devices and tickle uevents for those o Walk the ide, scsi, and i2o busses o Attempt hibernate recovery o Walk the pci sysfs tree for usb controllers

Implementation

Update to UDEV 071. Add scoreboard to udevd. Track scoreboard status during coldplug by looking for existance of /dev/.udev_scoreboard. We create the file initially, and udev will unlink it.

Code

Data preservation and migration

Outstanding issues

BoF agenda and discussion

HardwareActivation (last edited 2008-08-06 16:36:55 by localhost)