📄 1213-1216.html
字号:
^
</TD></TR><TR><TD>
037
</TD><TD>
31
</TD><TD>
1F
</TD><TD>
US
</TD><TD>
137
</TD><TD>
95
</TD><TD>
5F
</TD><TD>
_
</TD></TR><TR><TD>
040
</TD><TD>
32
</TD><TD>
20
</TD><TD>
SPACE
</TD><TD>
140
</TD><TD>
96
</TD><TD>
60
</TD><TD>
`
</TD></TR><TR><TD>
041
</TD><TD>
33
</TD><TD>
21
</TD><TD>
!
</TD><TD>
141
</TD><TD>
97
</TD><TD>
61
</TD><TD>
a
</TD></TR><TR><TD>
042
</TD><TD>
34
</TD><TD>
22
</TD><TD>
"
</TD><TD>
142
</TD><TD>
98
</TD><TD>
62
</TD><TD>
b
</TD></TR><TR><TD>
043
</TD><TD>
35
</TD><TD>
23
</TD><TD>
#
</TD><TD>
143
</TD><TD>
99
</TD><TD>
63
</TD><TD>
c
</TD></TR><TR><TD>
044
</TD><TD>
36
</TD><TD>
24
</TD><TD>
$
</TD><TD>
144
</TD><TD>
100
</TD><TD>
64
</TD><TD>
d
</TD></TR><TR><TD>
045
</TD><TD>
37
</TD><TD>
25
</TD><TD>
%
</TD><TD>
145
</TD><TD>
101
</TD><TD>
65
</TD><TD>
e
</TD></TR><TR><TD>
046
</TD><TD>
38
</TD><TD>
26
</TD><TD>
&
</TD><TD>
146
</TD><TD>
102
</TD><TD>
66
</TD><TD>
f
</TD></TR><TR><TD>
047
</TD><TD>
39
</TD><TD>
27
</TD><TD>
`
</TD><TD>
147
</TD><TD>
103
</TD><TD>
67
</TD><TD>
g
</TD></TR><TR><TD>
050
</TD><TD>
40
</TD><TD>
28
</TD><TD>
(
</TD><TD>
150
</TD><TD>
104
</TD><TD>
68
</TD><TD>
h
</TD></TR><TR><TD>
051
</TD><TD>
41
</TD><TD>
29
</TD><TD>
)
</TD><TD>
151
</TD><TD>
105
</TD><TD>
69
</TD><TD>
i
</TD></TR><TR><TD>
052
</TD><TD>
42
</TD><TD>
2A
</TD><TD>
*
</TD><TD>
152
</TD><TD>
106
</TD><TD>
6A
</TD><TD>
j
</TD></TR><TR><TD>
053
</TD><TD>
43
</TD><TD>
2B
</TD><TD>
+
</TD><TD>
153
</TD><TD>
107
</TD><TD>
6B
</TD><TD>
k
</TD></TR><TR><TD>
054
</TD><TD>
44
</TD><TD>
2C
</TD><TD>
,
</TD><TD>
154
</TD><TD>
108
</TD><TD>
6C
</TD><TD>
l
</TD></TR><TR><TD>
055
</TD><TD>
45
</TD><TD>
2D
</TD><TD>
_
</TD><TD>
155
</TD><TD>
109
</TD><TD>
6D
</TD><TD>
m
</TD></TR><TR><TD>
056
</TD><TD>
46
</TD><TD>
2E
</TD><TD>
.
</TD><TD>
156
</TD><TD>
110
</TD><TD>
6E
</TD><TD>
n
</TD></TR><TR><TD>
057
</TD><TD>
47
</TD><TD>
2F
</TD><TD>
/
</TD><TD>
157
</TD><TD>
111
</TD><TD>
6F
</TD><TD>
o
</TD></TR><TR><TD>
060
</TD><TD>
48
</TD><TD>
30
</TD><TD>
0
</TD><TD>
160
</TD><TD>
112
</TD><TD>
70
</TD><TD>
p
</TD></TR><TR><TD>
061
</TD><TD>
49
</TD><TD>
31
</TD><TD>
1
</TD><TD>
161
</TD><TD>
113
</TD><TD>
71
</TD><TD>
q
</TD></TR><TR><TD>
062
</TD><TD>
50
</TD><TD>
32
</TD><TD>
2
</TD><TD>
162
</TD><TD>
114
</TD><TD>
72
</TD><TD>
r
</TD></TR><TR><TD>
063
</TD><TD>
51
</TD><TD>
33
</TD><TD>
3
</TD><TD>
163
</TD><TD>
115
</TD><TD>
73
</TD><TD>
s
</TD></TR><TR><TD>
064
</TD><TD>
52
</TD><TD>
34
</TD><TD>
4
</TD><TD>
164
</TD><TD>
116
</TD><TD>
74
</TD><TD>
t
</TD></TR><TR><TD>
065
</TD><TD>
53
</TD><TD>
35
</TD><TD>
5
</TD><TD>
165
</TD><TD>
117
</TD><TD>
75
</TD><TD>
u
</TD></TR><TR><TD>
066
</TD><TD>
54
</TD><TD>
36
</TD><TD>
6
</TD><TD>
166
</TD><TD>
118
</TD><TD>
76
</TD><TD>
v
</TD></TR><TR><TD>
067
</TD><TD>
55
</TD><TD>
37
</TD><TD>
7
</TD><TD>
167
</TD><TD>
119
</TD><TD>
77
</TD><TD>
w
</TD></TR><TR><TD>
070
</TD><TD>
56
</TD><TD>
38
</TD><TD>
8
</TD><TD>
170
</TD><TD>
120
</TD><TD>
78
</TD><TD>
x
</TD></TR><TR><TD>
071
</TD><TD>
57
</TD><TD>
39
</TD><TD>
9
</TD><TD>
171
</TD><TD>
121
</TD><TD>
79
</TD><TD>
y
</TD></TR><TR><TD>
072
</TD><TD>
58
</TD><TD>
3A
</TD><TD>
:
</TD><TD>
172
</TD><TD>
122
</TD><TD>
7A
</TD><TD>
z
</TD></TR><TR><TD>
073
</TD><TD>
59
</TD><TD>
3B
</TD><TD>
;
</TD><TD>
173
</TD><TD>
123
</TD><TD>
7B
</TD><TD>
{
</TD></TR><TR><TD>
074
</TD><TD>
60
</TD><TD>
3C
</TD><TD>
<
</TD><TD>
174
</TD><TD>
124
</TD><TD>
7C
</TD><TD>
|
</TD></TR><TR><TD>
075
</TD><TD>
61
</TD><TD>
3D
</TD><TD>
=
</TD><TD>
175
</TD><TD>
125
</TD><TD>
7D
</TD><TD>
}
</TD></TR><TR><TD>
076
</TD><TD>
62
</TD><TD>
3E
</TD><TD>
>
</TD><TD>
176
</TD><TD>
126
</TD><TD>
7E
</TD><TD>
~
</TD></TR><TR><TD>
077
</TD><TD>
63
</TD><TD>
3F
</TD><TD>
?
</TD><TD>
177
</TD><TD>
127
</TD><TD>
7F
</TD><TD>
DEL
</TD></TR></TABLE>
<A NAME="PAGENUM-1216"><P>Page 1216</P></A>
<P><B>
HISTORY
</P></B>
<P>An ascii manual page appeared in version 7 AT&T UNIX.
</P>
<P><B>
SEE ALSO
</P></B>
<!-- CODE SNIP //-->
<PRE>
iso_8859_1(7)
</PRE>
<!-- END CODE SNIP //-->
<P>Linux</P>
<H3><A NAME="ch07_ 4">
bootparam
</A></H3>
<P>bootparam—Introduction to boot-time parameters of the Linux kernel.</P>
<P><B>
DESCRIPTION
</P></B>
<P>The Linux kernel accepts certain command-line options or boot-time parameters at the moment it is started. In general,
this is used to supply the kernel with information about hardware parameters that the kernel would not be able to determine
on its own, or to avoid or override the values that the kernel would otherwise detect.
</P>
<P>When the kernel is booted directly by the BIOS (say, from a floppy to which you copied a kernel using
cp zImage /dev/fd0), you have no opportunity to specify any parameters. To take advantage of this possibility, you have to use software that is
able to pass parameters, such as LILO or loadlin. For a few parameters, one can also modify the kernel image itself, using
rdev; see rdev(8) for further details.
</P>
<P>The LILO program (LInux LOader) written by Werner Almesberger is the most commonly used. It has the ability to
boot various kernels and stores the configuration information in a plain text file. (See
lilo(8) and lilo.conf(5).) LILO can boot DOS, OS/2, Linux, FreeBSD, and so on and is quite flexible.
</P>
<P>The other commonly used Linux loader is loadlin,
which is a DOS program that has the capability to launch a Linux
kernel from the DOS prompt (with boot args) assuming that certain resources are available. This is good for people who want
to launch Linux from DOS.
</P>
<P>It is also very useful if you have certain hardware that relies on the supplied DOS driver to put the hardware into a
known state. A common example is SoundBlaster-compatible sound cards that require the DOS driver to twiddle a few
mystical registers to put the card into a SB-compatible mode. Booting DOS with the supplied driver and then loading Linux from
the DOS prompt with loadlin avoids the reset of the card that happens if one reboots instead.
</P>
<P><B>
THE ARGUMENT LIST
</P></B>
<P>Most of the boot args take the form of
</P>
<!-- CODE SNIP //-->
<PRE>
name[=value_1][,value_2]...[,value_11]
</PRE>
<!-- END CODE SNIP //-->
<P>name is a unique keyword that is used to identify what part of the kernel the associated values (if any) are to be given
to. Multiple boot args are just a space-separated list of the preceding format. Note the limit of 11 is real because the present
code handles only 11 comma-separated parameters per keyword. (However, you can reuse the same keyword with up to
an additional 11 parameters in unusually complicated situations, assuming the setup function supports it.)
</P>
<P>Most of the sorting occurs in linux/init/main.c. First, the kernel checks to see if the argument is any of the
special arguments root=, ro, rw, or debug. The meaning of these special arguments is described later in the document.
</P>
<P>Then, it walks a list of setup functions (contained in the
bootsetups array) to see if the specified argument string (such as
foo) is associated with a setup function
(foo_setup()) for a particular device or part of the kernel. If you passed the kernel the
line foo=3,4,5,6, then the kernel searches the
bootsetups array to see if foo is registered. If it is, it calls the setup
function associated with foo (foo_setup()) and hands it the arguments
3, 4, 5, and 6 as given on the kernel command line.
</P>
<P>Anything of the form foo=bar that is not accepted as a setup function as described is then interpreted as an
environment variable to be set. A (useless?) example is to use
TERM=vt100 as a boot argument.
</P>
<P><CENTER>
<a href="../ch06/1209-1212.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1217-1218.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -