plan9.ini 23 KB

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