each of which defines a kernel or device parameter.
Blank lines and Carriage Returns ( \er ) are ignored. # comments are ignored, but are only recognised if .L # appears at the start of a line.
For devices, the generic format of value is
.EX type=TYPE [port=N] [irq=N] [mem=N] [size=N] [dma=N] [ea=N]specifying the controller type, the base I/O port of the interface, its interrupt level, the physical starting address of any mapped memory, the length in bytes of that memory, the DMA channel, and for Ethernets an override of the physical network address. Not all elements are relevant to all devices; the relevant values and their defaults are defined below in the description of each device.
The file is used by the bootstrap programs and the kernel to configure the hardware available, although nowadays the kernel can usually detect the attached hardware by itself. The information it contains is also passed to the boot process, and subsequently other programs, as environment variables (see boot (8)). However, values whose names begin with an asterisk .L * are used by the kernel and are stored in .L #ec rather than .LR #e .
The following sections describe how variables are used.
Many cards are software configurable and do not require all options. Unspecified options default to the factory defaults.
Known TYPE s are .TF vt6102
igbe The Intel 8254X Gigabit Ethernet controllers, as found on the Intel PRO/1000 adapters for copper (not fiber). Completely configurable.
igbepcie The Intel 8256[36], 8257[12], and 82573[ev] Gigabit Ethernet PCI-Express controllers. Completely configurable.
rtl8169 The Realtek 8169 Gigabit Ethernet controller. Completely configurable.
ga620 Netgear GA620 and GA620T Gigabit Ethernet cards, and other cards using the Alteon Acenic chip such as the Alteon Acenic fiber and copper cards, the DEC DEGPA-SA and the SGI Acenic. Completely configurable.
dp83820 National Semiconductor DP83820-based Gigabit Ethernet adapters, notably the D-Link DGE-500T. Completely configurable.
vgbe The VIA Velocity Gigabit Ethernet controller. Known to drive the VIA8237 (ABIT AV8), but at 100Mb/s full-duplex only.
m10g The Myricom 10-Gigabit Ethernet 10G-PCIE-8A controller. Completely configurable.
i82598 The Intel 8259[89] 10-Gigabit Ethernet PCI-Express controllers. Completely configurable.
i82557 Cards using the Intel 8255[789] Fast Ethernet PCI Bus LAN Controller such as the Intel EtherExpress PRO/100B. Completely configurable, no options need be given. If you need to force the media, specify one of the options (no value) 10BASE-T , 10BASE-2 , 10BASE-5 , 100BASE-TX , 10BASE-TFD , 100BASE-TXFD , 100BASE-T4 , 100BASE-FX , or 100BASE-FXFD . Completely configurable.
2114x Cards using the Digital Equipment (now Intel) 2114x PCI Fast Ethernet Adapter Controller, for example the Netgear FA310. Completely configurable, no options need be given. Media can be specified the same was as for the i82557 . Some cards using the PNIC and PNIC2 near-clone chips may also work.
83815 National Semiconductor DP83815-based adapters, notably the Netgear FA311, Netgear FA312, and various SiS built-in controllers such as the SiS900. On the SiS controllers, the Ethernet address is not detected properly; specify it with an ea= attribute. Completely configurable.
rtl8139 The Realtek 8139 Fast Ethernet controller. Completely configurable.
vt6102 The VIA VT6102 Fast Ethernet Controller (Rhine II).
vt6105m The VIA VT6105M Fast Ethernet Controller (Rhine III).
smc91cxx SMC 91cXX chip-based PCMCIA adapters, notably the SMC EtherEZ card.
elnk3 The 3COM Etherlink III series of cards including the 5x9, 59x, and 905 and 905B. Completely configurable, no options need be given. The media may be specified by setting media= to the value 10BaseT , 10Base2 , 100BaseTX , 100BaseFX , aui , and mii . If you need to force full duplex, because for example the Ethernet switch does not negotiate correctly, just name the word (no value) fullduplex or 100BASE-TXFD . Similarly, to force 100Mbit operation, specify force100 . Port 0x110 is used for the little ISA configuration dance.
3c589 The 3COM 3C589 series PCMCIA cards, including the 3C562 and the 589E. There is no support for the modem on the 3C562. Completely configurable, no options need be given. Defaults are .EX port=0x240 irq=10 The media may be specified as media=10BaseT or media=10Base2 .
ec2t The Linksys Combo PCMCIA EthernetCard (EC2T), EtherFast 10/100 PCMCIA cards (PCMPC100) and integrated controllers (PCM100), the Netgear FA410TX 10/100 PCMCIA card and the Accton EtherPair-PCMCIA (EN2216). Completely configurable, no options need be given. Defaults are .EX port=0x300 irq=9 These cards are NE2000 clones. Other NE2000 compatible PCMCIA cards may be tried with the option .EX id=string where string is a unique identifier string contained in the attribute memory of the card (see pcmcia (8)); unlike most options in plan9.ini , this string is case-sensitive. The option dummyrr=[01] can be used to turn off (0) or on (1) a dummy remote read in the driver in such cases, depending on how NE2000 compatible they are.
ne2000 Not software configurable iff ISA; PCI clones or supersets are software configurable; includes the Realtek 8029 clone used by Parallels. 16-bit card. Defaults are .EX port=0x300 irq=2 mem=0x04000 size=0x4000 The option (no value) nodummyrr is needed on some (near) clones to turn off a dummy remote read in the driver.
amd79c970 The AMD PCnet PCI Ethernet Adapter (AM79C970). (This is the Ethernet adapter used by VMware.) Completely configurable, no options need be given.
wd8003 Includes WD8013 and SMC Elite and Elite Ultra cards. There are varying degrees of software configurability. Cards may be in either 8-bit or 16-bit slots. Defaults are .EX port=0x280 irq=3 mem=0xD0000 size=0x2000 BUG: On many machines only the 16 bit card works.
sink A /dev/null for Ethernet packets \(em the interface discards sent packets and never receives any. This is used to provide a test bed for some experimental Ethernet bridging software.
wavelan Lucent Wavelan (Orinoco) IEEE 802.11b and compatible PCMCIA cards. Compatible cards include the Dell TrueMobile 1150 and the Linksys Instant Wireless Network PC Card. Port and IRQ defaults are 0x180 and 3 respectively.
These cards take a number of unique options to aid in identifying the card correctly on the 802.11b network. The network may be "ad hoc" or managed (i.e. use an access point): .EX mode=[adhoc, managed] and defaults to managed . The 802.11b network to attach to ( managed mode) or identify as ( "ad hoc" mode), is specified by .EX essid=string and defaults to a null string. The card station name is given by .EX station=string and defaults to "Plan 9 STA" . The channel to use is given by .EX channel=number where number lies in the range 1 to 16 inclusive; the channel is normally negotiated automatically. If the card is capable of encryption, the following options may be used: .EX crypt=[off, on] and defaults to on . .EX keyN=string sets the encryption key N (where N is in the range 1 to 4 inclusive) to string ; this will also set the transmit key to N (see below). There are two formats for string which depend on the length of the string. If it is exactly 5 or 13 characters long it is assumed to be an alphanumeric key; if it is exactly 10 or 26 characters long the key is assumed to be in hex format (without a leading 0x ). The lengths are checked, as is the format of a hex key. .EX txkey=number sets the transmit key to use to be number in the range 1 to 4 inclusive. If it is desired to exclude or include unencrypted packets .EX clear=[off, on] configures reception and defaults to inclusion. The defaults are intended to match the common case of a managed network with encryption and a typical entry would only require, for example .EX essid=left-armpit key1=afish key2=calledraawaru if the port and IRQ defaults are used. These options may be set after boot by writing to the device's ctl file using a space as the separator between option and value, e.g. .EX echo 'key2 1d8f65c9a52d83c8e4b43f94af' >/net/ether0/0/ctl Card-specific power management may be enabled/disabled by .EX pm=[on, off]wavelanpci PCI Ethernet adapters that use the same Wavelan programming interface. Currently the only tested cards are those based on the Intersil Prism 2.5 chipset. .
Known TYPE s are
aha1542 Adaptec 154x series of controllers (and clones). Almost completely configurable, only the .EX port=0x300 option need be given.
NCR/Symbios/LSI-Logic 53c8xx-based adapters and Mylex MultiMaster (Buslogic BT-*) adapters are automatically detected and need no entries.
By default, the NCR 53c8xx driver searches for up to 32 controllers. This can be changed by setting the variable *maxsd53c8xx .
By default the Mylex driver resets SCSI cards by using both the hard reset and SCSI bus reset flags in the driver interface. If a variable *noscsireset is defined, the SCSI bus reset flag is omitted.
Known types are .TF ess1688
sb16 Sound Blaster 16.
ess1688 A Sound Blaster clone.
The DMA channel may be any of 5, 6, or 7. The defaults are
.EX port=0x220 irq=7 dma=5This is typically done in order to reuse the IRQ for another device.
Plan 9 used to support various serial concentrators, including the TTC 8 serial line card and various models in the Star Gate Avanstar series of intelligent serial boards. These are no longer supported; the much simpler Perle PCI-Fast4, PCI-Fast8, and PCI-Fast16 controllers have taken their places. These latter cards are automatically detected and need no configuration lines.
The line serial=type=com can be used to specify settings for a PCMCIA modem.
ps2 the PS2 mouse/keyboard port. The BIOS setup procedure should be used to configure the machine appropriately.
ps2intellimouse an Intellimouse on the PS2 port.
0 for COM1
1 for COM2
would use COM1 at 19,200 baud with odd parity.
what does this do? something with pci
A plan9.ini file may contain multiple configurations, each within a block beginning with a line .EX [tag] A special block with the tag menu gives a list of blocks from which the user may interactively select the contents of plan9.ini . There may also be multiple blocks with the tag common which will be included in all selections; if any lines appear in plan9.ini before the first block, they are treated as a common block.
Within the menu block the following configuration lines are allowed:
In response to the menu being printed, the user is prompted to select a menu item from the list. If the numeric response is followed by a p , the selected configuration is printed and the menu presented again.
The line .EX menuitem=tag is prefixed to the selected configuration as an aid to user-level initialization scripts.
A representative plan9.ini :
.EX % cat /n/c:/plan9.ini ether0=type=3C509 mouseport=ps2 modemport=1 serial0=type=generic port=0x3E8 irq=5 monitor=445x vgasize=1600x1200x8 %Minimum CONFIG.SYS and AUTOEXEC.BAT files to use COM2 as a console:
.EX % cat /n/c:/config.sys SHELL=COMMAND.COM COM2 /P % cat /n/c:/autoexec.bat @ECHO OFF PROMPT $p$g PATH C:\eDOS;C:\eBIN mode com2:96,n,8,1,p SET TEMP=C:\eTMP %Simple plan9.ini with multiple configurations:
.EX [menu] menuitem=vga, Plan 9 with VGA menuitem=novga, Plan 9 no automatic VGA menudefault=vga [vga] monitor=multisync135 vgasize=1024x768x8 [novga] [common] ether0=type=i82557 audio0=type=sb16 port=0x220 irq=5 dma=1With this, the following menu will be presented on boot:
.EX Plan 9 Startup Menu: ==================== 1. Plan 9 with VGA 2. Plan 9 no automatic VGA Selection[default==1]:Selecting item 1 generates the following plan9.ini to be used by the remainder of the bootstrap process:
.EX menuitem=vga monitor=multisync135 vgasize=1024x768x8 ether0=type=i82557 audio0=type=sb16 port=0x220 irq=5 dma=1and selecting item 2:
.EX menuitem=novga ether0=type=i82557 audio0=type=sb16 port=0x220 irq=5 dma=1This idea is at best an interesting experiment that needs another iteration.