add a bit about mounting usbfs
svn path=/nixu/trunk/; revision=4516
This commit is contained in:
parent
41eb324771
commit
80595bb21f
19
howto
19
howto
@ -83,18 +83,23 @@ NixOS machine (needed for mingetty). Alternatively, do:
|
|||||||
|
|
||||||
Making hotplugging work
|
Making hotplugging work
|
||||||
|
|
||||||
Many devices are controlled by so called "hot plugging". The kernel executes
|
Many devices (USB, Firewire) are controlled by so called "hot plugging". The
|
||||||
a program -- usually /sbin/hotplug, but this is configurable at boottime by
|
kernel executes a program -- usually /sbin/hotplug, but this is configurable
|
||||||
setting the right path in /proc/sys/kernel/hotplug -- when a new device is
|
at boottime by setting the right path in /proc/sys/kernel/hotplug -- when a
|
||||||
added to the machine. This program makes sure the right kernel modules are
|
new device is added to the machine. This program makes sure the right kernel
|
||||||
loaded and optionally, if enabled, sends a message to udev to create the right
|
modules are loaded and optionally, if enabled, sends a message to udev to
|
||||||
device node in /dev (NOTE: this is not enabled in NixOS right now).
|
create the right device node in /dev (NOTE: this is not enabled in NixOS right
|
||||||
|
now).
|
||||||
|
|
||||||
|
- mount usbfs (for USB):
|
||||||
|
# mount -t usbfs usbfs /proc/bus/usb
|
||||||
- install hotplug package
|
- install hotplug package
|
||||||
- make symlinks /etc/hotplug, /etc/hotplug.d, /sbin/hotplug (TODO: make
|
- make symlinks /etc/hotplug, /etc/hotplug.d, /sbin/hotplug (TODO: make
|
||||||
this pure)
|
this pure)
|
||||||
- make sure the kernel and additional modules are prepared well (currently
|
- make sure the kernel and additional modules are prepared well (currently
|
||||||
this is hackish, but workable: see kernelscripts/make-kernel.sh for an
|
this is hackish, but workable: see kernelscripts/make-kernel.sh for an
|
||||||
example)
|
example)
|
||||||
- (optionally:) launch udev
|
- (optionally:) install udev
|
||||||
|
- make a symlink to /etc/udev/udev.conf
|
||||||
|
- launch udev
|
||||||
- plug in a device
|
- plug in a device
|
||||||
|
Loading…
x
Reference in New Issue
Block a user