plan9.ini 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. .TH PLAN9.INI 8
  2. .SH NAME
  3. plan9.ini \- configuration file for PCs
  4. .SH SYNOPSIS
  5. .I none
  6. .SH DESCRIPTION
  7. When booting Plan 9 on a PC, the DOS program
  8. .IR 9load (8)
  9. first reads a DOS file
  10. containing configuration information from the boot disk.
  11. This file,
  12. .BR plan9.ini ,
  13. looks like a shell script containing lines of the form
  14. .IP
  15. .EX
  16. name=\f2value\fP
  17. .EE
  18. .LP
  19. each of which defines a kernel or device parameter.
  20. .PP
  21. Blank lines and
  22. Carriage Returns
  23. .IB ( \er )
  24. are ignored.
  25. .B #
  26. comments are ignored, but are only recognised if
  27. .L #
  28. appears at the start of a line.
  29. .PP
  30. For devices, the generic format of
  31. .I value
  32. is
  33. .IP
  34. .EX
  35. type=TYPE [port=N] [irq=N] [mem=N] [size=N] [dma=N] [ea=N]
  36. .EE
  37. .LP
  38. specifying the controller type,
  39. the base I/O port of the interface, its interrupt
  40. level, the physical starting address of any mapped memory,
  41. the length in bytes of that memory, the DMA channel,
  42. and for Ethernets an override of the physical network address.
  43. Not all elements are relevant to all devices; the relevant values
  44. and their defaults are defined below in the description of each device.
  45. .PP
  46. The file is used by
  47. .B 9load
  48. and the kernel to configure the hardware available.
  49. The information it contains is also passed to the boot
  50. process, and subsequently other programs,
  51. as environment variables
  52. (see
  53. .IR boot (8)).
  54. However, values whose names begin with an asterisk
  55. .B *
  56. are used by the kernel and are not converted into environment variables.
  57. .PP
  58. The following sections describe how variables are used.
  59. .SS DEVICES
  60. .SS \fLetherX=value\fP
  61. This defines an Ethernet interface.
  62. .IR X ,
  63. a unique monotonically increasing number beginning at 0,
  64. identifies an Ethernet card to be probed at system boot.
  65. Probing stops when a card is found or there is no line for
  66. .BR etherX+1 .
  67. After probing as directed by the
  68. .BI ether X
  69. lines, any remaining Ethernet cards that can be automatically
  70. detected are added.
  71. Almost all cards can be automatically detected.
  72. For debugging purposes, automatic probing can
  73. be disabled by specifying the line
  74. .BR *noetherprobe= .
  75. This automatic probing is only done by the kernel, not by
  76. .IR 9load (8).
  77. Thus, if you want to load a kernel over the Ethernet, you need
  78. to specify an
  79. .B ether0
  80. line so that
  81. .I 9load
  82. can find the Ethernet card, even if the kernel would
  83. have automatically detected it.
  84. .PP
  85. Some cards are software configurable and do not require all options.
  86. Unspecified options default to the factory defaults.
  87. .PP
  88. Known types are
  89. .\" .TF ga620
  90. .TF vt6102
  91. .PD
  92. .TP
  93. .B igbe
  94. The Intel 8254X Gigabit Ethernet controllers,
  95. as found on the Intel PRO/1000 adapters for copper (not fiber).
  96. Completely configurable.
  97. .TP
  98. .B i82563
  99. The Intel 82563 Gigabit Ethernet controller.
  100. Completely configurable.
  101. .TP
  102. .B rtl8169
  103. The Realtek 8169 Gigabit Ethernet controller.
  104. Completely configurable.
  105. .TP
  106. .B ga620
  107. Netgear GA620 and GA620T Gigabit Ethernet cards,
  108. and other cards using the Alteon Acenic chip such as the
  109. Alteon Acenic fiber and copper cards,
  110. the DEC DEGPA-SA and the SGI Acenic.
  111. Completely configurable.
  112. .TP
  113. .B dp83820
  114. National Semiconductor DP83820-based Gigabit Ethernet adapters, notably
  115. the D-Link DGE-500T.
  116. Completely configurable.
  117. .TP
  118. .B vt6102
  119. The VIA VT6102 Fast Ethernet Controller (Rhine II).
  120. .TP
  121. .B vgbe
  122. The VIA Velocity Gigabit Ethernet controller.
  123. Known to drive the VIA8237 (ABIT AV8), but at 100Mb/s full-duplex only.
  124. .TP
  125. .B m10g
  126. The Myricom 10-Gigabit Ethernet controllers.
  127. .TP
  128. .B i82557
  129. Cards using the Intel 8255[789] Fast Ethernet PCI Bus LAN Controller such as the
  130. Intel EtherExpress PRO/100B.
  131. Completely configurable, no options need be given.
  132. If you need to force the media, specify
  133. one of the options (no value)
  134. .BR 10BASE-T ,
  135. .BR 10BASE-2 ,
  136. .BR 10BASE-5 ,
  137. .BR 100BASE-TX ,
  138. .BR 10BASE-TFD ,
  139. .BR 100BASE-TXFD ,
  140. .BR 100BASE-T4 ,
  141. .BR 100BASE-FX ,
  142. or
  143. .BR 100BASE-FXFD .
  144. Completely configurable.
  145. .TP
  146. .B 2114x
  147. Cards using the Digital Equipment (now Intel) 2114x PCI Fast Ethernet Adapter Controller,
  148. for example the Netgear FA310.
  149. Completely configurable, no options need be given.
  150. Media can be specified the same was as for the
  151. .BR i82557 .
  152. Some cards using the
  153. .B PNIC
  154. and
  155. .B PNIC2
  156. near-clone chips may also work.
  157. .TP
  158. .B 83815
  159. National Semiconductor DP83815-based adapters, notably
  160. the Netgear FA311, Netgear FA312, and various SiS built-in
  161. controllers such as the SiS900.
  162. On the SiS controllers, the Ethernet address is not detected properly;
  163. specify it with an
  164. .B ea=
  165. attribute.
  166. Completely configurable.
  167. .TP
  168. .B rtl8139
  169. The Realtek 8139 Fast Ethernet controller.
  170. Completely configurable.
  171. .TP
  172. .B smc91cxx
  173. SMC 91cXX chip-based PCMCIA adapters, notably the SMC EtherEZ card.
  174. .TP
  175. .B elnk3
  176. The 3COM Etherlink III series of cards including the 5x9, 59x, and 905 and 905B.
  177. Completely configurable, no options need be given.
  178. The media may be specified by setting
  179. .B media=
  180. to the value
  181. .BR 10BaseT ,
  182. .BR 10Base2 ,
  183. .BR 100BaseTX ,
  184. .BR 100BaseFX ,
  185. .BR aui ,
  186. and
  187. .BR mii .
  188. If you need to force full duplex, because for example the Ethernet switch does not negotiate correctly,
  189. just name the word (no value)
  190. .B fullduplex
  191. or
  192. .BR 100BASE-TXFD .
  193. Similarly, to force 100Mbit operation, specify
  194. .BR force100 .
  195. Port 0x110 is used for the little ISA configuration dance.
  196. .TP
  197. .B 3c589
  198. The 3COM 3C589 series PCMCIA cards, including the
  199. 3C562 and the 589E.
  200. There is no support for the modem on the 3C562.
  201. Completely configurable, no options need be given.
  202. Defaults are
  203. .EX
  204. port=0x240 irq=10
  205. .EE
  206. The media may be specified as
  207. .B media=10BaseT
  208. or
  209. .BR media=10Base2 .
  210. .TP
  211. .B ec2t
  212. The Linksys Combo PCMCIA EthernetCard (EC2T),
  213. EtherFast 10/100 PCMCIA cards (PCMPC100) and integrated controllers (PCM100),
  214. the Netgear FA410TX 10/100 PCMCIA card
  215. and the Accton EtherPair-PCMCIA (EN2216).
  216. Completely configurable, no options need be given.
  217. Defaults are
  218. .EX
  219. port=0x300 irq=9
  220. .EE
  221. These cards are NE2000 clones.
  222. Other NE2000 compatible PCMCIA cards may be tried
  223. with the option
  224. .EX
  225. id=string
  226. .EE
  227. where
  228. .B string
  229. is a unique identifier string contained in the attribute
  230. memory of the card (see
  231. .IR pcmcia (8));
  232. unlike most options in
  233. .BR plan9.ini ,
  234. this string is case-sensitive.
  235. The option
  236. .B dummyrr=[01]
  237. can be used to turn off (0) or on (1) a dummy remote read in the driver
  238. in such cases,
  239. depending on how NE2000 compatible they are.
  240. .TP
  241. .B ne2000
  242. Not software configurable. 16-bit card.
  243. Defaults are
  244. .EX
  245. port=0x300 irq=2 mem=0x04000 size=0x4000
  246. .EE
  247. The option (no value)
  248. .B nodummyrr
  249. is needed on some (near) clones to turn off a dummy remote read in the driver.
  250. .TP
  251. .B amd79c970
  252. The AMD PCnet PCI Ethernet Adapter (AM79C970).
  253. (This is the Ethernet adapter used by VMware.)
  254. Completely configurable, no options need be given.
  255. .TP
  256. .B wd8003
  257. Includes WD8013 and SMC Elite and Elite Ultra cards. There are varying degrees
  258. of software configurability. Cards may be in either 8-bit or 16-bit slots.
  259. Defaults are
  260. .EX
  261. port=0x280 irq=3 mem=0xD0000 size=0x2000
  262. .EE
  263. BUG: On many machines only the 16 bit card works.
  264. .TP
  265. .B sink
  266. A
  267. .B /dev/null
  268. for Ethernet packets \(em the interface discards sent
  269. packets and never receives any.
  270. This is used to provide a test bed for
  271. some experimental Ethernet bridging software.
  272. .TP
  273. .B wavelan
  274. Lucent Wavelan (Orinoco) IEEE 802.11b
  275. and compatible PCMCIA cards.
  276. Compatible cards include the Dell TrueMobile 1150
  277. and the Linksys Instant Wireless Network PC Card.
  278. Port and IRQ defaults are 0x180 and 3 respectively.
  279. .IP
  280. These cards take a number of unique options to aid in
  281. identifying the card correctly on the 802.11b network.
  282. The network may be
  283. .I "ad hoc"
  284. or
  285. .I managed
  286. (i.e. use an access point):
  287. .EX
  288. mode=[adhoc, managed]
  289. .EE
  290. and defaults to
  291. .IR managed .
  292. The 802.11b network to attach to
  293. .RI ( managed
  294. mode)
  295. or identify as
  296. .RI ( "ad hoc"
  297. mode),
  298. is specified by
  299. .EX
  300. essid=string
  301. .EE
  302. and defaults to a null string.
  303. The card station name is given by
  304. .EX
  305. station=string
  306. .EE
  307. and defaults to
  308. .IR "Plan 9 STA" .
  309. The channel to use is given by
  310. .EX
  311. channel=number
  312. .EE
  313. where
  314. .I number
  315. lies in the range 1 to 16 inclusive;
  316. the channel is normally negotiated automatically.
  317. .IP
  318. If the card is capable of encryption,
  319. the following options may be used:
  320. .EX
  321. crypt=[off, on]
  322. .EE
  323. and defaults to
  324. .IR on .
  325. .EX
  326. key\fIN\fP=string
  327. .EE
  328. sets the encryption key
  329. .I N
  330. (where
  331. .I N
  332. is in the range 1 to 4 inclusive) to
  333. .IR string ;
  334. this will also set the transmit key to
  335. .I N
  336. (see below).
  337. There are two formats for
  338. .I string
  339. which depend on the length of the string.
  340. If it is exactly 5 or 13 characters long it is assumed
  341. to be an alphanumeric key; if it is exactly 10 or 26 characters
  342. long the key is assumed to be in hex format (without a leading
  343. .IR 0x ).
  344. The lengths are checked,
  345. as is the format of a hex key.
  346. .EX
  347. txkey=number
  348. .EE
  349. sets the transmit key to use to be
  350. .I number
  351. in the range 1 to 4 inclusive.
  352. If it is desired to exclude or include unencrypted packets
  353. .EX
  354. clear=[off, on]
  355. .EE
  356. configures reception and defaults to inclusion.
  357. .IP
  358. The defaults are intended to match the common case of
  359. a managed network with encryption and a typical entry would
  360. only require, for example
  361. .EX
  362. essid=left-armpit key1=afish key2=calledraawaru
  363. .EE
  364. if the port and IRQ defaults are used.
  365. These options may be set after boot by writing to the device's
  366. .I ctl
  367. file using a space as the separator between option and value, e.g.
  368. .EX
  369. echo 'key2 1d8f65c9a52d83c8e4b43f94af' >/net/ether0/0/ctl
  370. .EE
  371. .IP
  372. Card-specific power management may be enabled/disabled by
  373. .EX
  374. pm=[on, off]
  375. .EE
  376. .TP
  377. .B wavelanpci
  378. PCI Ethernet adapters that use the same Wavelan
  379. programming interface.
  380. Currently the only tested cards are those based on the
  381. Intersil Prism 2.5 chipset.
  382. .
  383. .SS \fLusbX=type=uhci port=xxx irq=xxx\fP
  384. This specifies the settings for a USB UHCI controller.
  385. Like the Ethernet controllers, USB controllers are autodetected
  386. after scanning for the ones listed in
  387. .IR plan9.ini .
  388. Thus, most systems will not need a
  389. .B usbX
  390. line.
  391. Also like the Ethernet controllers, USB autoprobing can be
  392. disabled by specifying the line
  393. .BR *nousbprobe= .
  394. .SS \fLscsiX=value\fP
  395. This defines a SCSI interface which cannot be automatically detected
  396. by the kernel.
  397. .PP
  398. Known types are
  399. .TP
  400. .B aha1542
  401. Adaptec 154x series of controllers (and clones).
  402. Almost completely configurable, only the
  403. .EX
  404. port=0x300
  405. .EE
  406. option need be given.
  407. .PP
  408. NCR/Symbios/LSI-Logic 53c8xx-based adapters
  409. and Mylex MultiMaster (Buslogic BT-*) adapters are
  410. automatically detected and need no entries.
  411. .PP
  412. By default, the NCR 53c8xx driver searches for up to 32 controllers.
  413. This can be changed by setting the variable
  414. .BR *maxsd53c8xx .
  415. .PP
  416. By default the Mylex driver resets SCSI cards by using
  417. both the hard reset and SCSI bus reset flags in the driver interface.
  418. If a variable
  419. .BR *noscsireset
  420. is defined, the SCSI bus reset flag is omitted.
  421. .SS \fLaudioX=value\fP
  422. This defines a sound interface.
  423. .PP
  424. Known types are
  425. .TP
  426. .B sb16
  427. Sound Blaster 16.
  428. .TP
  429. .B ess1688
  430. A Sound Blaster clone.
  431. .PP
  432. The DMA channel may be any of 5, 6, or 7.
  433. The defaults are
  434. .IP
  435. .EX
  436. port=0x220 irq=7 dma=5
  437. .EE
  438. .SS Uarts
  439. Plan 9 automatically configures COM1 and COM2, if found,
  440. as
  441. .B eia0
  442. (port 0x3F8, IRQ4)
  443. and
  444. .B eia1
  445. (port 0x2F8, IRQ3)
  446. respectively.
  447. These devices can be disabled by adding a line:
  448. .IP
  449. .EX
  450. eia\fIX\fP=disabled
  451. .EE
  452. .LP
  453. This is typically done in order to reuse the IRQ for
  454. another device.
  455. .PP
  456. Plan 9 used to support various serial concentrators,
  457. including the TTC 8 serial line card and various models
  458. in the Star Gate Avanstar series of intelligent serial boards.
  459. These are no longer supported; the much simpler
  460. Perle PCI-Fast4, PCI-Fast8, and PCI-Fast16 controllers
  461. have taken their places.
  462. These latter cards are automatically detected
  463. and need no configuration lines.
  464. .PP
  465. The line
  466. .B serial=type=com
  467. can be used to specify settings for a PCMCIA modem.
  468. .SS \fLmouseport=value\fP
  469. This specifies where the mouse is attached.
  470. .I Value
  471. can be
  472. .TP
  473. .B ps2
  474. the PS2 mouse/keyboard port. The BIOS setup procedure
  475. should be used to configure the machine appropriately.
  476. .TP
  477. .B ps2intellimouse
  478. an Intellimouse on the PS2 port.
  479. .TP
  480. .B 0
  481. for COM1
  482. .TP
  483. .B 1
  484. for COM2
  485. .SS \fLmodemport=value\fP
  486. Picks the UART line to call out on.
  487. This is used when connecting to a file server over
  488. an async line.
  489. .I Value
  490. is the number of the port.
  491. .SS \fLconsole=value params\fP
  492. This is used to specify the console device.
  493. The default
  494. value is
  495. .BR cga ;
  496. a number
  497. .B 0
  498. or
  499. .B 1
  500. specifies
  501. .I COM1
  502. or
  503. .I COM2
  504. respectively.
  505. A serial console is initially configured with the
  506. .IR uart (3)
  507. configuration string
  508. .B b9600
  509. .B l8
  510. .B pn
  511. .BR s1 ,
  512. specifying 9600 baud,
  513. 8 bit bytes, no parity, and one stop bit.
  514. If
  515. .I params
  516. is given, it will be used to further
  517. configure the uart.
  518. Notice that there is no
  519. .B =
  520. sign in the
  521. .I params
  522. syntax.
  523. For example,
  524. .IP
  525. .EX
  526. console=0 b19200 po
  527. .EE
  528. .LP
  529. would use COM1 at 19,200 baud
  530. with odd parity.
  531. .SS "PC CARD"
  532. .SS \fLpccard0=disabled\fP
  533. Disable probing for and automatic configuration of PC card controllers.
  534. .SS \fLpcmciaX=type=XXX irq=value\fP
  535. If the default IRQ for the
  536. PCMCIA
  537. is correct, this entry can be omitted. The value of
  538. .B type
  539. is ignored.
  540. .SS \fLpcmcia0=disabled\fP
  541. Disable probing for and automatic configuration of PCMCIA controllers.
  542. .SS BOOTING
  543. .SS \fLbootfile=value\fP
  544. This is used to direct the actions of
  545. .IR 9load (8)
  546. by naming the device and file from which to load the kernel.
  547. .SS \fLrootdir=dir\fP
  548. .SS \fLrootspec=spec\fP
  549. These are used by
  550. .IR 9load (8)
  551. to identify the directory
  552. .I dir
  553. to make the root directory for the kernel, and the
  554. file system specifier
  555. .I spec
  556. (see
  557. .B mount
  558. in
  559. .IR bind (2))
  560. on which it can be found.
  561. These are usually used to test variant file systems for distributions, etc.
  562. .SS \fLbootargs=value\fP
  563. The value of this variable is passed to
  564. .IR boot (8)
  565. by the kernel as the name of the root file system.
  566. It is typically used to specify additional arguments to
  567. pass to
  568. .IR kfs (4)
  569. or
  570. .IR ipconfig (8).
  571. For example, if the system is to run from a local
  572. .IR kfs (4)
  573. partition, the definition might read
  574. .BR bootargs=local!#S/sdC0/fs .
  575. See
  576. .IR boot (8)
  577. for more.
  578. .SS \fLnobootprompt=value\fP
  579. Suppress the
  580. .L "root from"
  581. prompt and use
  582. .I value
  583. as the answer instead.
  584. .SS \fLuser=value\fP
  585. Suppress the
  586. .L "user"
  587. prompt and use
  588. .I value
  589. as the answer instead.
  590. .SS \fLdebugfactotum=\fP
  591. Causes
  592. .IR boot (8)
  593. to start factotum with the
  594. .B -p
  595. flag, so that it can be debugged.
  596. .SS \fLventi=value\fP
  597. When booting from a local fossil server backed by a local
  598. or remote venti server,
  599. this variable specifies how to establish the connection to the
  600. venti server.
  601. See
  602. .IR boot (8)
  603. for more.
  604. .SS \fLcfs=value\fP
  605. This gives the name of the file holding the disk partition
  606. for the cache file system,
  607. .IR cfs (4).
  608. Extending the
  609. .B bootargs
  610. example, one would write
  611. .BR cfs=#S/sdC0/cache .
  612. .SS \fLbootdisk=value\fP
  613. This deprecated variable was used to specify the disk used by
  614. the cache file system and other disk-resident services.
  615. It is superseded by
  616. .B bootargs
  617. and
  618. .BR cfs .
  619. .SS \fLpartition=value\fP
  620. This defines the partition table
  621. .IR 9load (8)
  622. will examine to find disk partitioning information.
  623. By default, a partition table in a Plan 9 partition
  624. is consulted; if no such table is found, an old-Plan 9
  625. partition table on the next-to-last or last sector
  626. of the disk is consulted.
  627. A value of
  628. .B new
  629. consults only the first table,
  630. .B old
  631. only the second.
  632. .SS \fLfs=a.b.c.d\fP
  633. .SS \fLauth=a.b.c.d\fP
  634. These specify the IP address of the file and authentication server
  635. to use when mounting a network-provided root file system.
  636. They are used only if the addresses cannot be determined via DHCP.
  637. .SS PROCESSOR
  638. .SS \fL*norealmode=\fP
  639. The PC kernel switches the processor to 16-bit real mode
  640. to run BIOS interrupts, for example to find the memory map or to enable VESA.
  641. This variable disables such switches.
  642. .SS \fL*noe820scan=\fP
  643. When available, the PC kernel uses the BIOS E820 memory map
  644. to size memory. This variable disables the scan.
  645. .SS \fL*maxmem=value\fP
  646. This defines the maximum physical address that the system will scan when sizing memory.
  647. By default the PC operating system will scan up to 3.75 gigabytes
  648. (0xF0000000, the base of kernel virtual address space), but setting
  649. .B *maxmem
  650. will limit the scan.
  651. .B *maxmem
  652. must be less than 3.75 gigabytes.
  653. This variable is not consulted if using the E820 memory map.
  654. .SS \fL*kernelpercent=value\fP
  655. This defines what percentage of available memory is reserved for the kernel allocation pool.
  656. The remainder is left for user processes. The default
  657. .I value
  658. is
  659. .B 30
  660. on CPU servers,
  661. .B 60
  662. on terminals with less than 16MB of memory,
  663. and
  664. .B 40
  665. on terminals with memories of 16MB or more.
  666. Terminals use more kernel memory because
  667. .IR draw (3)
  668. maintains its graphic images in kernel memory.
  669. This deprecated option is rarely necessary in newer kernels.
  670. .SS \fL*nomce=value\fP
  671. If machine check exceptions are supported by the processor,
  672. then they are enabled by default.
  673. Setting this variable to
  674. .B 1
  675. causes them to be disabled even when available.
  676. .SS \fL*nomp=\fP
  677. A multiprocessor machine will enable all processors by default.
  678. Setting
  679. .B *nomp
  680. restricts the kernel to starting only one processor and using the
  681. traditional interrupt controller.
  682. .SS \fL*ncpu=value\fP
  683. Setting
  684. .B *ncpu
  685. restricts the kernel to starting at most
  686. .I value
  687. processors.
  688. .SS \fL*pcimaxbno=value\fP
  689. This puts a limit on the maximum bus number probed
  690. on a PCI bus (default 255).
  691. For example, a
  692. .I value
  693. of 1 should suffice on a 'standard' motherboard with an AGP slot.
  694. This, and
  695. .B *pcimaxdno
  696. below are rarely used and only on troublesome or suspect hardware.
  697. .SS \fL*pcimaxdno=value\fP
  698. This puts a limit on the maximum device number probed
  699. on a PCI bus (default 31).
  700. .SS \fL*nopcirouting=\fP
  701. Disable pci routing during boot. May solve interrupt routing
  702. problems on certain machines.
  703. .SS \fL*nodumpstack=\fP
  704. Disable printing a stack dump on panic.
  705. Useful if there is only a limited cga screen available,
  706. otherwise the textual information about the panic may scroll off.
  707. .\" .SS \fL*nobios=\fP
  708. .\" what does this do? something with pci
  709. .SS \fLioexclude=value\fP
  710. Specifies a list of ranges of I/O ports to exclude from use by drivers.
  711. Ranges are inclusive on both ends and separated by commas.
  712. For example:
  713. .EX
  714. ioexclude=0x330-0x337,0x430-0x43F
  715. .EE
  716. .SS \fLumbexclude=value\fP
  717. Specifies a list of ranges of UMB to exclude from use by drivers.
  718. Ranges are inclusive on both ends and separated by commas.
  719. For example:
  720. .EX
  721. umbexclude=0xD1800-0xD3FFF
  722. .EE
  723. .SS \fLapm0=\fP
  724. This enables the ``advanced power management'' interface
  725. as described in
  726. .IR apm (3)
  727. and
  728. .IR apm (8).
  729. The main feature of the interface is the ability to watch
  730. battery life (see
  731. .IR stats (8)).
  732. It is not on by default because it causes problems on some laptops.
  733. .SS VIDEO
  734. .SS \fLmonitor=value\fP
  735. .SS \fLvgasize=value\fP
  736. These are used not by the kernel but by
  737. .I termrc
  738. (see
  739. .IR cpurc (8))
  740. when starting
  741. .IR vga (8).
  742. .SS \fL*dpms=value\fP
  743. This is used to specify the screen blanking behavior of the MGA4xx
  744. video driver.
  745. Values are
  746. .BR standby ,
  747. .BR suspend ,
  748. and
  749. .BR off .
  750. The first two specify differing levels of power saving;
  751. the third turns the monitor off completely.
  752. .SS NVRAM
  753. .SS \fLnvram=file\fP
  754. .SS \fLnvrlen=length\fP
  755. .SS \fLnvroff=offset\fP
  756. This is used to specify an nvram device and optionally the length of the ram
  757. and read/write offset to use.
  758. These values are consulted by
  759. .I readnvram
  760. (see
  761. .IR authsrv (2)).
  762. The most common use of the nvram is to hold a
  763. .IR secstore (1)
  764. password for use by
  765. .IR factotum (4).
  766. .SS \fLnvr=value\fP
  767. This is used by the WORM file server kernel to locate a file holding information
  768. to configure the file system.
  769. The file cannot live on a SCSI disk.
  770. The default is
  771. .B fd!0!plan9.nvr
  772. (sic),
  773. unless
  774. .B bootfile
  775. is set, in which case it is
  776. .B plan9.nvr
  777. on the same disk as
  778. .BR bootfile .
  779. The syntax is either
  780. .BI fd! unit ! name
  781. or
  782. .BI hd! unit ! name
  783. where
  784. .I unit
  785. is the numeric unit id.
  786. This variant syntax is a vestige of the file server kernel's origins.
  787. .SH Multiple Configurations
  788. .PP
  789. A
  790. .B plan9.ini
  791. file may contain multiple configurations,
  792. each within a block beginning with a line
  793. .EX
  794. [tag]
  795. .EE
  796. A special block with the tag
  797. .B menu
  798. gives a list of blocks from which the user may
  799. interactively select the contents of
  800. .BR plan9.ini .
  801. There may also be multiple blocks with the tag
  802. .B common
  803. which will be included in all selections;
  804. if any lines appear in
  805. .B plan9.ini
  806. before the first block,
  807. they are treated as a
  808. .B common
  809. block.
  810. .LP
  811. Within the
  812. .B menu
  813. block the following configuration lines are allowed:
  814. .SS \fLmenuitem=tag[, description]
  815. The block identified by
  816. .B tag
  817. will appear in the presented menu.
  818. The menu entry will consist of the
  819. .B tag
  820. unless the optional
  821. .B description
  822. is given.
  823. .SS \fLmenudefault=tag[, timeout]
  824. Identifies a default block to be given in the
  825. menu selection prompt.
  826. If the optional
  827. .B timeout
  828. is given (in seconds),
  829. the default block will be selected if there is no user
  830. input within the timeout period.
  831. .SS \fLmenuconsole=value[, baud]
  832. Selects a serial console upon which to present the menu
  833. as no
  834. .B console
  835. or
  836. .B baud
  837. configuration information will have been processed yet
  838. (the
  839. .B plan9.ini
  840. contents are still to be decided...).
  841. .LP
  842. In response to the menu being printed,
  843. the user is prompted to select a menu item from the list.
  844. If the numeric response is followed by a
  845. .BR p ,
  846. the selected configuration is printed and the menu presented
  847. again.
  848. .LP
  849. The line
  850. .EX
  851. menuitem=tag
  852. .EE
  853. is prefixed to the selected configuration as an aid to
  854. user-level initialization scripts.
  855. .SH EXAMPLES
  856. .PP
  857. A representative
  858. .BR plan9.ini :
  859. .IP
  860. .EX
  861. % cat /n/c:/plan9.ini
  862. ether0=type=3C509
  863. mouseport=ps2
  864. modemport=1
  865. serial0=type=generic port=0x3E8 irq=5
  866. monitor=445x
  867. vgasize=1600x1200x8
  868. %
  869. .EE
  870. .PP
  871. Minimum CONFIG.SYS and AUTOEXEC.BAT files to use
  872. COM2 as a console:
  873. .IP
  874. .EX
  875. % cat /n/c:/config.sys
  876. SHELL=COMMAND.COM COM2 /P
  877. % cat /n/c:/autoexec.bat
  878. @ECHO OFF
  879. PROMPT $p$g
  880. PATH C:\eDOS;C:\eBIN
  881. mode com2:96,n,8,1,p
  882. SET TEMP=C:\eTMP
  883. %
  884. .EE
  885. .PP
  886. Simple
  887. .B plan9.ini
  888. with multiple configurations:
  889. .IP
  890. .EX
  891. [menu]
  892. menuitem=vga, Plan 9 with VGA
  893. menuitem=novga, Plan 9 no automatic VGA
  894. menudefault=vga
  895. [vga]
  896. monitor=multisync135
  897. vgasize=1024x768x8
  898. [novga]
  899. [common]
  900. ether0=type=i82557
  901. audio0=type=sb16 port=0x220 irq=5 dma=1
  902. .EE
  903. .PP
  904. With this, the following menu will be presented on boot:
  905. .IP
  906. .EX
  907. Plan 9 Startup Menu:
  908. ====================
  909. 1. Plan 9 with VGA
  910. 2. Plan 9 no automatic VGA
  911. Selection[default==1]:
  912. .EE
  913. .PP
  914. Selecting item 1 generates the following
  915. .B plan9.ini
  916. to be used by the remainder of the bootstrap process:
  917. .IP
  918. .EX
  919. menuitem=vga
  920. monitor=multisync135
  921. vgasize=1024x768x8
  922. ether0=type=i82557
  923. audio0=type=sb16 port=0x220 irq=5 dma=1
  924. .EE
  925. .PP
  926. and selecting item 2:
  927. .IP
  928. .EX
  929. menuitem=novga
  930. ether0=type=i82557
  931. audio0=type=sb16 port=0x220 irq=5 dma=1
  932. .EE
  933. .SH "SEE ALSO"
  934. .IR 9load (8),
  935. .IR booting (8),
  936. .IR boot (8)
  937. .SH BUGS
  938. Being able to set the console device to other than a
  939. display is marginally useful on file servers; MS-DOS
  940. and the programs which run under it are so tightly bound
  941. to the display that it is necessary to have a display if any
  942. setup or reconfiguration programs need to be run.
  943. Also, the delay before any messages appear at boot time
  944. is disconcerting, as any error messages from the BIOS
  945. are lost.
  946. .PP
  947. This idea is at best an interesting experiment that needs another iteration.