P. 1
CLFS x86

CLFS x86

|Views: 15|Likes:
Publicado poraqua01

More info:

Published by: aqua01 on Sep 21, 2010
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/01/2011

pdf

text

original

The Udev package contains programs for dynamic creation of device nodes.

10.51.1. Installation of Udev

Compile the package:

make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
extras/scsi_id extras/usb_id extras/volume_id" udevdir=/dev

The meaning of the make parameter:

EXTRAS="extras/ata_id

extras/cdrom_id

extras/collect

extras/edd_id

extras/firmware

extras/floppy

extras/path_id

extras/rule_generator

extras/scsi_id extras/usb_id extras/volume_id"

This builds the helper applications that are used with udev. The helper programs assist in correct handling of
devices.

If you want to run the testsuite, you need to change a hardcoded reference to the test program:

sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl

To test the results, issue: make test.

Install the package:

make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
extras/scsi_id extras/usb_id extras/volume_id" DESTDIR=/ udevdir=/dev install

The meaning of the make parameter:

DESTDIR=/

This prevents the Udev build process from killing any udevd processes that may be running on the system.

Install documentation:

install -v -m644 -D docs/writing_udev_rules/index.html \
/usr/share/doc/udev-124/index.html

Create a directory for storing firmware that can be loaded by udev:

install -dv /lib/firmware

10.51.2. Contents of Udev

Installed programs:

udevadm, udevd, udevinfo (symlink to udevadm), udevsettle (symlink to udevadm)

Installed library:

libvolume_id

Installed directory:

/etc/udev, /lib/udev

Short Descriptions

udevadm

This program combines udevinfo, udevtrigger, udevsettle, udevcontrol,
udevmonitor, and udevtest into one command.

Cross-Compiled Linux From Scratch - Version 1.1.0-x86

195

udevadm control

Configures a number of options for the running udevd daemon, such as the log
level. (Symlink to udevadm)

udevd

A daemon that reorders hotplug events before submitting them to udev, thus
avoiding various race conditions

udevinfo

Allows users to query the udev database for information on any device currently
present on the system; it also provides a way to query any device in the sysfs
tree to help create udev rules. (Symlink to udevadm)

udevadm monitor

Prints the event received from the kernel and the event which udev sends out after
rule processing

udevsettle

Watches the Udev event queue and exits if all current uevents have been handled.
(Symlink to udevadm)

udevadm test

Simulates a udev run for the given device, and prints out the name of the node the
real udev would have created or the name of the renamed network interface

udevadm trigger

Walks the sysfs tree for devices that need to be added to the system.

ata_id

Provides Udev with a unique string and additional information (uuid, label) for an
ATA drive

cdrom_id

Print the capabilities of a CDROM or DVDROM drive.

create_floppy_devices

Creates all possible floppy devices based on the CMOS type

dasd_id

Read the label from an s390 block device.

edd_id

Identify x86 disk drives from Enhanced Disk Drive calls.

firmware.sh

Script to load firmware for a device

path_id

Provide the shortest possible unique hardware path to a device

scsi_id

Retrieve or generate a unique SCSI identifier.

usb_id

Identify a USB block device.

vol_id

Probe filesystem type and read label and uuid.

libvolume_id

This library provides programs such as vol_id with a filesystems type, abel, and
uuid from a device node or a image.

/etc/udev

Contains udev configuration files, device permissions, and rules for device naming

/lib/udev

Contains udev helper programs and static devices which get copied to /dev when
booted.

Cross-Compiled Linux From Scratch - Version 1.1.0-x86

196

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->