Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@××××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: udev-guide.xml
Date: Tue, 30 Oct 2007 20:49:24
Message-Id: E1ImxkF-0008Jr-M3@stork.gentoo.org
1 nightmorph 07/10/30 20:31:27
2
3 Modified: udev-guide.xml
4 Log:
5 added udev module order section, as suggested by zzam via email
6
7 Revision Changes Path
8 1.44 xml/htdocs/doc/en/udev-guide.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/udev-guide.xml?rev=1.44&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/udev-guide.xml?rev=1.44&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/udev-guide.xml?r1=1.43&r2=1.44
13
14 Index: udev-guide.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/udev-guide.xml,v
17 retrieving revision 1.43
18 retrieving revision 1.44
19 diff -u -r1.43 -r1.44
20 --- udev-guide.xml 18 Oct 2007 18:31:06 -0000 1.43
21 +++ udev-guide.xml 30 Oct 2007 20:31:27 -0000 1.44
22 @@ -1,6 +1,6 @@
23 <?xml version='1.0' encoding="UTF-8"?>
24 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
25 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/udev-guide.xml,v 1.43 2007/10/18 18:31:06 nightmorph Exp $ -->
26 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/udev-guide.xml,v 1.44 2007/10/30 20:31:27 nightmorph Exp $ -->
27
28 <guide link="/doc/en/udev-guide.xml">
29 <title>Gentoo udev Guide</title>
30 @@ -11,6 +11,9 @@
31 <author title="Contributor">
32 <mail link="greg_g@g.o">Gregorio Guidi</mail>
33 </author>
34 +<author title="Editor">
35 + <mail link="nightmorph"/>
36 +</author>
37
38 <abstract>
39 This document explains what udev is and how you can use udev to fit your needs.
40 @@ -20,8 +23,8 @@
41 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
42 <license/>
43
44 -<version>0.32</version>
45 -<date>2007-08-02</date>
46 +<version>0.33</version>
47 +<date>2007-10-30</date>
48
49 <chapter>
50 <title>What is udev?</title>
51 @@ -397,6 +400,61 @@
52 </body>
53 </section>
54 <section>
55 +<title>udev loads modules in an unpredictable order</title>
56 +<body>
57 +
58 +<p>
59 +Sometimes udev loads modules in an undesired, unpredictable, or seemingly random
60 +order. This is especially common for systems that have multiple devices of the
61 +same type, as well as multimedia devices. This can affect the assigned numbers
62 +of devices; for example, sound cards may sometimes swap numbers.
63 +</p>
64 +
65 +<p>
66 +There are a few solutions to fix device numbers and/or module load order.
67 +Ideally, you can just use module parameters to specify your desired device
68 +number. Some modules, such as ALSA, include the "index" parameter. Modules that
69 +use the index parameter can be adjusted as shown. This example is for a system
70 +with two sound cards. The card with an index of 0 is designated as the first
71 +card. Once the parameters are changed, the module config files must be updated.
72 +</p>
73 +
74 +<pre caption="Specifying module parameters">
75 +# <i>echo "option snd-ice1724 index=0" >> /etc/modules.d/alsa</i>
76 +# <i>echo "option snd-ymfpci index=1" >> /etc/modules.d/alsa</i>
77 +# <i>update-modules</i>
78 +</pre>
79 +
80 +<p>
81 +The above example is the preferred solution, but not all modules support
82 +parameters such as index. For these modules, you'll have to force the correct
83 +module load order. First, you must stop udev from autoloading the modules by
84 +blacklisting them. Be sure to use the exact name of the module being loaded.
85 +For PCI devices, you'll need to use the module names obtained from the output of
86 +<c>pcimodules</c>, available in the <c>pciutils</c> package. The following
87 +example uses DVB modules.
88 +</p>
89 +
90 +<pre caption="Blacklisting modules">
91 +# <i>echo "blacklist b2c2-flexcop-pci" >> /etc/modules.d/dvb</i>
92 +# <i>echo "blacklist budget" >> /etc/modules.d/dvb</i>
93 +# <i>update-modules</i>
94 +</pre>
95 +
96 +<p>
97 +Next, load the modules in the correct order. Add them to
98 +<path>/etc/modules.autoload.d/kernel-2.6</path> <e>in the exact order you want
99 +them loaded</e>.
100 +</p>
101 +
102 +<pre caption="Loading modules in the correct order">
103 +# <i>echo "budget" >> /etc/modules.autoload.d/kernel-2.6</i>
104 +# <i>echo "b2c2-flexcop-pci" >> /etc/modules.autoload.d/kernel-2.6</i>
105 +</pre>
106 +
107 +</body>
108 +</section>
109 +<section>
110 <title>Other issues</title>
111 <body>
112
113
114
115
116 --
117 gentoo-doc-cvs@g.o mailing list