plan9.ini 22 KB

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