plan9.ini 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  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.
  336. .TP
  337. .B igbe
  338. The Intel 8254X Gigabit Ethernet controllers,
  339. as found on the Intel PRO/1000 adapters for copper (not fiber).
  340. .TP
  341. .B smc91cxx
  342. SMC 91cXX chip-based PCMCIA adapters, notably the SMC EtherEZ card.
  343. .TP
  344. .B sink
  345. A
  346. .B /dev/null
  347. for ethernet packets \(em the interface discards sent
  348. packets and never receives any.
  349. This is used to provide a test bed for
  350. some experimental ethernet bridging software.
  351. .SS \fLusbX=type=uhci port=xxx irq=xxx\fP
  352. This specifies the settings for a USB UHCI controller.
  353. Like the ethernet controllers, USB controllers are autodetected
  354. after scanning for the ones listed in
  355. .IR plan9.ini .
  356. Thus, most systems will not need a
  357. .B usbX
  358. line.
  359. Also like the ethernet controllers, USB autoprobing can be
  360. disabled by specifying the line
  361. .BR *nousbprobe= .
  362. .SS \fLscsiX=value\fP
  363. This defines a SCSI interface which cannot be automatically detected
  364. by the kernel.
  365. .PP
  366. Known types are
  367. .TP
  368. .B aha1542
  369. The Adaptec 154x series of controllers (and clones).
  370. Almost completely configurable, only the
  371. .EX
  372. port=0x300
  373. .EE
  374. option need be given.
  375. .PP
  376. NCR/Symbios/LSI Logic 53c8xx-based adapters
  377. and Mylex MultiMaster (Buslogic BT-*) adapters are
  378. automatically detected and need no entries.
  379. .PP
  380. By default, the NCR 53c8xx driver searches for up to 32 controllers.
  381. This can be changed by setting the variable
  382. .BR *maxsd53c8xx .
  383. .PP
  384. By default the Mylex driver resets SCSI cards by using
  385. both the hard reset and SCSI bus reset flags in the driver interface.
  386. If a variable
  387. .BR *noscsireset
  388. is defined, the SCSI bus reset flag is omitted.
  389. .SS Uarts
  390. Plan 9 automatically configures COM1 and COM2, if found,
  391. as
  392. .B eia0
  393. (port 0x3F8, IRQ4)
  394. and
  395. .B eia1
  396. (port 0x2F8, IRQ3)
  397. respectively.
  398. These devices can be disabled by adding a line:
  399. .EX
  400. eia\fIX\fP=disabled
  401. .EE
  402. This is typically done in order to reuse the IRQ for
  403. another device.
  404. .PP
  405. Plan 9 used to support various serial concentrators,
  406. including the TTC 8 serial line card and various models
  407. in the Star Gate Avanstar series of intelligent serial boards.
  408. These are no longer supported; the much simpler
  409. Perle PCI-Fast4, PCI-Fast8, and PCI-Fast16 controllers
  410. have taken their places.
  411. These latter cards are automatically detected
  412. and need no configuration lines.
  413. .PP
  414. The line
  415. .B serial=type=com
  416. can be used to specify settings for a PCMCIA modem.
  417. .SS \fLmouseport=value\fP
  418. This specifies where the mouse is attached.
  419. .I Value
  420. can be
  421. .TP
  422. .B ps2
  423. the PS2 mouse/keyboard port. The BIOS setup procedure
  424. should be used to configure the machine appropriately.
  425. .TP
  426. .B ps2intellimouse
  427. an Intellimouse on the PS2 port.
  428. .TP
  429. .B 0
  430. for COM1
  431. .TP
  432. .B 1
  433. for COM2
  434. .SS \fLmodemport=value\fP
  435. Picks the UART line to call out on.
  436. This is used when connecting to a file server over
  437. an async line.
  438. .I Value
  439. is the number of the port.
  440. .SS \fLpccard0=disabled\fP
  441. Disable probing for and automatic configuration of PC card controllers.
  442. .SS \fLpcmciaX=type=XXX irq=value\fP
  443. If the default IRQ for the
  444. PCMCIA
  445. is correct, this entry can be omitted. The value of
  446. .B type
  447. is ignored.
  448. .SS \fLpcmcia0=disabled\fP
  449. Disable probing for and automatic configuration of PCMCIA controllers.
  450. .SS \fLconsole=value params\fP
  451. This is used to specify the console device.
  452. The default
  453. value is
  454. .BR cga ;
  455. a number
  456. .B 0
  457. or
  458. .B 1
  459. specifies
  460. .I COM1
  461. or
  462. .I COM2
  463. respectively.
  464. A serial console is initially configured with the
  465. .IR uart (3)
  466. configuration string
  467. .B b9600
  468. .B l8
  469. .B pn
  470. .BR s1 ,
  471. specifying 9600 baud,
  472. 8 bit bytes, no parity, and one stop bit.
  473. If
  474. .I params
  475. is given, it will be used to further
  476. configure the uart.
  477. Notice that there is no
  478. .B =
  479. sign in the
  480. .I params
  481. syntax.
  482. For example,
  483. .EX
  484. console=0 b19200 po
  485. .EE
  486. would use COM1 at 19,200 baud
  487. with odd parity.
  488. .SS \fLbootfile=value\fP
  489. This is used to direct the actions of
  490. .IR 9load (8)
  491. by naming the device and file from which to load the kernel.
  492. .SS \fLrootdir=dir\fP
  493. .SS \fLrootspec=spec\fP
  494. These are used by
  495. .IR 9load (8)
  496. to identify the directory
  497. .I dir
  498. to make the root directory for the kernel, and the
  499. file system specifier
  500. .I spec
  501. (see
  502. .B mount
  503. in
  504. .IR bind (2))
  505. on which it can be found.
  506. These are usually used to test variant file systems for distributions, etc.
  507. .SS \fLbootargs=value\fP
  508. The value of this variable is passed to
  509. .IR boot (8)
  510. by the kernel as the name of the root file system.
  511. It is typically used to specify additional arguments to
  512. pass to
  513. .IR kfs (4)
  514. or
  515. .IR ipconfig (8).
  516. For example, if the system is to run from a local
  517. .IR kfs (4)
  518. partition, the definition might read
  519. .BR bootargs=local!#S/sdC0/fs .
  520. See
  521. .IR boot (8)
  522. for more.
  523. .SS \fLnobootprompt=value\fP
  524. Suppress the
  525. .L "root from"
  526. prompt and use
  527. .I value
  528. as the answer instead.
  529. .SS \fLuser=value\fP
  530. Suppress the
  531. .L "user"
  532. prompt and use
  533. .I value
  534. as the answer instead.
  535. .SS \fLdebugfactotum=\fP
  536. Causes
  537. .IR boot (8)
  538. to start factotum with the
  539. .B -p
  540. flag, so that it can be debugged.
  541. .SS \fLventi=value\fP
  542. When booting from a local fossil server backed by a local
  543. or remote venti server,
  544. this variable specifies how to establish the connection to the
  545. venti server.
  546. See
  547. .IR boot (8)
  548. for more.
  549. .SS \fLcfs=value\fP
  550. This gives the name of the file holding the disk partition
  551. for the cache file system,
  552. .IR cfs (4).
  553. Extending the
  554. .B bootargs
  555. example, one would write
  556. .BR cfs=#S/sdC0/cache .
  557. .SS \fLbootdisk=value\fP
  558. This deprecated variable was used to specify the disk used by
  559. the cache file system and other disk-resident services.
  560. It is superseded by
  561. .B bootargs
  562. and
  563. .BR cfs .
  564. .SS \fLpartition=value\fP
  565. This defines the partition table
  566. .IR 9load (8)
  567. will examine to find disk partitioning information.
  568. By default, a partition table in a Plan 9 partition
  569. is consulted; if no such table is found, an old-Plan 9
  570. partition table on the next-to-last or last sector
  571. of the disk is consulted.
  572. A value of
  573. .B new
  574. consults only the first table,
  575. .B old
  576. only the second.
  577. .SS \fL*norealmode=\fP
  578. The kernel switches the processor to 16-bit real mode
  579. to run BIOS interrupts, for example to find the memory map or to enable VESA.
  580. This variable disables such switches.
  581. .SS \fL*noe820scan=\fP
  582. When available, the kernel uses the BIOS E820 memory map
  583. to size memory. This variable disables the scan.
  584. .SS \fL*maxmem=value\fP
  585. This defines the maximum physical address that the system will scan when sizing memory.
  586. By default the operating system will scan up to 3.75 gigabytes
  587. (0xF0000000, the base of kernel virtual address space), but setting
  588. .B *maxmem
  589. will limit the scan.
  590. .\" If the system has more than 3.75 gigabytes, you must set
  591. .\" .B *maxmem
  592. .\" for the kernel to find it.
  593. .B *maxmem
  594. must be less than 3.75 gigabytes.
  595. This variable is not consulted if using the E820 memory map.
  596. .SS \fL*kernelpercent=value\fP
  597. This defines what percentage of available memory is reserved for the kernel allocation pool.
  598. The remainder is left for user processes. The default
  599. .I value
  600. is
  601. .B 30
  602. on CPU servers,
  603. .B 60
  604. on terminals with less than 16MB of memory,
  605. and
  606. .B 40
  607. on terminals with memories of 16MB or more.
  608. Terminals use more kernel memory because
  609. .IR draw (3)
  610. maintains its graphic images in kernel memory.
  611. This deprecated option is rarely necessary in newer kernels.
  612. .SS \fL*nomce=value\fP
  613. If machine check exceptions are supported by the processor,
  614. then they are enabled by default.
  615. Setting this variable to
  616. .B 1
  617. causes them to be disabled even when available.
  618. .SS \fL*nomp=\fP
  619. A multiprocessor machine will enable all processors by default.
  620. Setting
  621. .B *nomp
  622. restricts the kernel to starting only one processor and using the
  623. traditional interrupt controller.
  624. .SS \fL*ncpu=value\fP
  625. Setting
  626. .B *ncpu
  627. restricts the kernel to starting at most
  628. .I value
  629. processors.
  630. .SS \fL*pcimaxbno=value\fP
  631. This puts a limit on the maximum bus number probed
  632. on a PCI bus (default 255).
  633. For example, a
  634. .I value
  635. of 1 should suffice on a 'standard' motherboard with an AGP slot.
  636. This, and
  637. .B *pcimaxdno
  638. below are rarely used and only on troublesome or suspect hardware.
  639. .SS \fL*pcimaxdno=value\fP
  640. This puts a limit on the maximum device number probed
  641. on a PCI bus (default 31).
  642. .SS \fL*nopcirouting=\fP
  643. Disable pci routing during boot. May solve interrupt routing
  644. problems on certain machines.
  645. .SS \fL*nodumpstack=\fP
  646. Disable printing a stack dump on panic.
  647. Useful if there is only a limited cga screen available,
  648. otherwise the textual information about the panic may scroll off.
  649. .\" .SS \fL*nobios=\fP
  650. .\" what does this do? something with pci
  651. .SS \fLioexclude=value\fP
  652. Specifies a list of ranges of I/O ports to exclude from use by drivers.
  653. Ranges are inclusive on both ends and separated by commas.
  654. For example:
  655. .EX
  656. ioexclude=0x330-0x337,0x430-0x43F
  657. .EE
  658. .SS \fLumbexclude=value\fP
  659. Specifies a list of ranges of UMB to exclude from use by drivers.
  660. Ranges are inclusive on both ends and separated by commas.
  661. For example:
  662. .EX
  663. umbexclude=0xD1800-0xD3FFF
  664. .EE
  665. .SS \fLapm0=\fP
  666. This enables the ``advanced power management'' interface
  667. as described in
  668. .IR apm (3)
  669. and
  670. .IR apm (8).
  671. The main feature of the interface is the ability to watch
  672. battery life (see
  673. .IR stats (8)).
  674. It is not on by default because it causes problems on some laptops.
  675. .SS \fLmonitor=value\fP
  676. .SS \fLvgasize=value\fP
  677. These are used not by the kernel but by
  678. .I termrc
  679. (see
  680. .IR cpurc (8))
  681. when starting
  682. .IR vga (8).
  683. .SS \fL*dpms=value\fP
  684. This is used to specify the screen blanking behavior of the MGA4xx
  685. video driver.
  686. Values are
  687. .BR standby ,
  688. .BR suspend ,
  689. and
  690. .BR off .
  691. The first two specify differing levels of power saving;
  692. the third turns the monitor off completely.
  693. .SS \fLnvram=file\fP
  694. .SS \fLnvrlen=length\fP
  695. .SS \fLnvroff=offset\fP
  696. This is used to specify an nvram device and optionally the length of the ram
  697. and read/write offset to use.
  698. These values are consulted by
  699. .I readnvram
  700. (see
  701. .IR authsrv (2)).
  702. The most common use of the nvram is to hold a
  703. .IR secstore (1)
  704. password for use by
  705. .IR factotum (4).
  706. .SS \fLnvr=value\fP
  707. This is used by the WORM file server kernel to locate a file holding information
  708. to configure the file system.
  709. The file cannot live on a SCSI disk.
  710. The default is
  711. .B fd!0!plan9.nvr
  712. (sic),
  713. unless
  714. .B bootfile
  715. is set, in which case it is
  716. .B plan9.nvr
  717. on the same disk as
  718. .BR bootfile .
  719. The syntax is either
  720. .BI fd! unit ! name
  721. or
  722. .BI hd! unit ! name
  723. where
  724. .I unit
  725. is the numeric unit id.
  726. This variant syntax is a vestige of the file server kernel's origins.
  727. .SS \fLaudioX=value\fP
  728. This defines a sound interface.
  729. .PP
  730. Known types are
  731. .TP
  732. .B sb16
  733. Sound Blaster 16.
  734. .TP
  735. .B ess1688
  736. A Sound Blaster clone.
  737. .PP
  738. The DMA channel may be any of 5, 6, or 7.
  739. The defaults are
  740. .EX
  741. port=0x220 irq=7 dma=5
  742. .EE
  743. .SS \fLfs=a.b.c.d\fP
  744. .SS \fLauth=a.b.c.d\fP
  745. These specify the IP address of the file and authentication server
  746. to use when mounting a network-provided root file system.
  747. They are used only if the addresses cannot be determined via DHCP.
  748. .SH Multiple Configurations
  749. .PP
  750. A
  751. .B plan9.ini
  752. file may contain multiple configurations,
  753. each within a block beginning with a line
  754. .EX
  755. [tag]
  756. .EE
  757. A special block with the tag
  758. .B menu
  759. gives a list of blocks from which the user may
  760. interactively select the contents of
  761. .BR plan9.ini .
  762. There may also be multiple blocks with the tag
  763. .B common
  764. which will be included in all selections;
  765. if any lines appear in
  766. .B plan9.ini
  767. before the first block,
  768. they are treated as a
  769. .B common
  770. block.
  771. .LP
  772. Within the
  773. .B menu
  774. block the following configuration lines are allowed:
  775. .SS \fLmenuitem=tag[, description]
  776. The block identified by
  777. .B tag
  778. will appear in the presented menu.
  779. The menu entry will consist of the
  780. .B tag
  781. unless the optional
  782. .B description
  783. is given.
  784. .SS \fLmenudefault=tag[, timeout]
  785. Identifies a default block to be given in the
  786. menu selection prompt.
  787. If the optional
  788. .B timeout
  789. is given (in seconds),
  790. the default block will be selected if there is no user
  791. input within the timeout period.
  792. .SS \fLmenuconsole=value[, baud]
  793. Selects a serial console upon which to present the menu
  794. as no
  795. .B console
  796. or
  797. .B baud
  798. configuration information will have been processed yet
  799. (the
  800. .B plan9.ini
  801. contents are still to be decided...).
  802. .LP
  803. In response to the menu being printed,
  804. the user is prompted to select a menu item from the list.
  805. If the numeric response is followed by a
  806. .BR p ,
  807. the selected configuration is printed and the menu presented
  808. again.
  809. .LP
  810. The line
  811. .EX
  812. menuitem=tag
  813. .EE
  814. is prefixed to the selected configuration as an aid to
  815. user-level initialization scripts.
  816. .SH EXAMPLES
  817. .PP
  818. A representative
  819. .BR plan9.ini :
  820. .IP
  821. .EX
  822. % cat /n/c:/plan9.ini
  823. ether0=type=3C509
  824. mouseport=ps2
  825. modemport=1
  826. serial0=type=generic port=0x3E8 irq=5
  827. monitor=445x
  828. vgasize=1600x1200x8
  829. %
  830. .EE
  831. .PP
  832. Minimum CONFIG.SYS and AUTOEXEC.BAT files to use
  833. COM2 as a console:
  834. .IP
  835. .EX
  836. % cat /n/c:/config.sys
  837. SHELL=COMMAND.COM COM2 /P
  838. % cat /n/c:/autoexec.bat
  839. @ECHO OFF
  840. PROMPT $p$g
  841. PATH C:\eDOS;C:\eBIN
  842. mode com2:96,n,8,1,p
  843. SET TEMP=C:\eTMP
  844. %
  845. .EE
  846. .PP
  847. Simple
  848. .B plan9.ini
  849. with multiple configurations:
  850. .IP
  851. .EX
  852. [menu]
  853. menuitem=vga, Plan 9 with VGA
  854. menuitem=novga, Plan 9 no automatic VGA
  855. menudefault=vga
  856. [vga]
  857. monitor=multisync135
  858. vgasize=1024x768x8
  859. [novga]
  860. [common]
  861. ether0=type=i82557
  862. audio0=type=sb16 port=0x220 irq=5 dma=1
  863. .EE
  864. .PP
  865. With this, the following menu will be presented on boot:
  866. .IP
  867. .EX
  868. Plan 9 Startup Menu:
  869. ====================
  870. 1. Plan 9 with VGA
  871. 2. Plan 9 no automatic VGA
  872. Selection[default==1]:
  873. .EE
  874. .PP
  875. Selecting item 1 generates the following
  876. .B plan9.ini
  877. to be used by the remainder of the bootstrap process:
  878. .IP
  879. .EX
  880. menuitem=vga
  881. monitor=multisync135
  882. vgasize=1024x768x8
  883. ether0=type=i82557
  884. audio0=type=sb16 port=0x220 irq=5 dma=1
  885. .EE
  886. .PP
  887. and selecting item 2:
  888. .IP
  889. .EX
  890. menuitem=novga
  891. ether0=type=i82557
  892. audio0=type=sb16 port=0x220 irq=5 dma=1
  893. .EE
  894. .SH "SEE ALSO"
  895. .IR 9load (8),
  896. .IR booting (8),
  897. .IR boot (8)
  898. .SH BUGS
  899. Being able to set the console device to other than a
  900. display is marginally useful on file servers; MS-DOS
  901. and the programs which run under it are so tightly bound
  902. to the display that it is necessary to have a display if any
  903. setup or reconfiguration programs need to be run.
  904. Also, the delay before any messages appear at boot time
  905. is disconcerting, as any error messages from the BIOS
  906. are lost.
  907. .PP
  908. This idea is at best an interesting experiment that needs another iteration.