📄 pmoncfg.8
字号:
.Bd -literal -offset indentWARNING kernel mismatch. -u ignored.WARNING the running kernel version:.Ed.Pp.Nmdoes not believe the running kernel is the same as the.Ar infilespecified.Since the log of changes (from.Cm boot -c )in the running kernel is kernel-specific, the.Fl uoption is ignored..PpThe commands are as follows:.Pp.Bl -tag -width "disable attr val | devno | dev" indent.It Ic add Ar devAdd a device through copying another..It Ic base Ar 8 | 10 | 16Change the base of numbers displayed and entered,e.g., I/O addresses in a VAXen are octal..It Ic change Ar devno | devModify one or more devices..It Ic disable Ar attr val | devno | devDisable one or more devices..It Ic enable Ar attr val | devno | devEnable one or more devices..It Ic exitExit without saving changes..It Ic find Ar devno | devFind one or more devices..It Ic helpGive a short summary of all commands and their arguments..It Ic listShow all known devices, a screen at a time..It Ic lines Op Ar countSet the number of rows per page..It Ic quitExit and save changes..It Ic show Op Ar attr Op Ar valShow all devices for which attribute.Ar attrhas the value.Ar val ..It Ic timezone Op Ar minuteswest Op Ar dstChange the.Va tztimezone structure.Without arguments, displays its current value..El.Sh EXAMPLES (First synopsis)A custom kernel is built in the following way..PpTo compile your own kernel from a non-writeable media (such as a CDROM)mounted on.Pa /usr/src ,do the following:.Sm off.Bd -literal -offset indent.Li #\ Xo.Ic cd\ /.Ar somedir.Xc.Li #\ Xo.Ic cp\ /usr/src/sys/arch/.Ar somearch.Ic /conf/.Ar SOMEFILE.Ic \ ..Xc.Li #\ Xo.Ic vi\ \&.Ar SOMEFILE.No \ \ \ (to\ make\ any\ changes).Xc.Li #\ Xo.Ic config\ -s\ /usr/src/sys\ -b\ .\ \&.Ar SOMEFILE.Xc.Li #\ Xo.Ic make.Xc.Ed.Sm on.PpTo compile a kernel inside a writable source tree, do the following:.Sm off.Bd -literal -offset indent.Li #\ Xo.Ic cd\ /usr/src/sys/arch/.Ar somearch.Ic /conf.Xc.Li #\ Xo.Ic vi\ \&.Ar SOMEFILE.No \ \ \ (to\ make\ any\ changes).Xc.Li #\ Xo.Ic config\ \&.Ar SOMEFILE.Xc.Li #\ Xo.Ic cd\ ../compile/.Ar SOMEFILE.Xc.Li #\ Xo.Ic make.Xc.Ed.Sm on.Ppwhere.Ar somediris a writable directory,.Ar somearchis the architecture (e.g.,.Ic i386 ) ,and.Ar SOMEFILEshould be a name indicative of a particular configuration (oftenthat of the hostname)..Nm configwill warn you if a.Ar "make clean"is required;you can also do a.Ic make dependso that you will have dependencies there the next time you do a compile..PpAfter either of these two methods, you can place the new kernel (called.Pa bsd )in.Pa /(i.e.,.Pa /bsd )and the system will boot it next time.Most people save their backup kernels as.Pa /bsd.1 ,.Pa /bsd.2 ,etc..Sh EXAMPLES (Second synopsis)The Ethernet card is not detected at boot because the kernel configurationdoes not match the physical hardware configuration,e.g., wrong IRQ in OpenBSD/i386.The Ethernet card is supposed to use the.Xr ne 4driver..Pp.Bd -literal.No ukc> Ic find ne24 ne0 at isa0 port 0x240 size 0 iomem 0xd8000 iosiz 0 irq 9 drq -1 drq2 -1 flags 0x025 ne1 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x026 ne* at isapnp0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 flags 0x027 ne* at pci* dev -1 function -1 flags 0x028 ne* at pcmcia* function -1 irq -1 flags 0x0ukc>.Ed.Ppne1 seems to match the configuration except it uses IRQ 5 instead of IRQ 10.So the irq on ne1 should be changed via the.Ic changecommand.The device can be specified by either name or number..Pp.Bd -literal.No ukc> Ic change ne125 ne1 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1.No change (y/n) ? Ic y.No port [0x300] ?.No size [0] ?.No iomem [-1] ?.No iosiz [0] ?.No irq [10] ? Ic 5.No drq [-1] ?.No drq2 [-1] ?.No flags [0] ?25 ne1 changed25 ne1 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 5 drq -1 drq2 -1 flags 0x0ukc>.Ed.PpAnother case is a mistakenly detected non-existing device instead of anotherdevice at the probed location.One known case is the MitsumiCD-ROM in OpenBSD/i386.The simplest thing to solve that problem is to disable mcd0..Pp.Bd -literal.No ukc> Ic find mcd0 29 mcd0 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x0.No ukc> Ic disable mcd0 29 mcd0 disabled.No ukc> Ic find 29 29 mcd0 at isa0 disable port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x0.Ed.PpIt's also possible to disable all devices with a common attribute. e.g.,.Pp.Bd -literal.No ukc> Ic disable port 0x300 25 ne1 disabled 29 mcd0 alredy disabled 72 we1 disabled 75 el0 disabled 77 ie1 disabled.Ed.PpThe.Cm showcommand is useful for finding which devices have a certain attribute.It can also be used to find those devices with a particular value foran attribute..Bd -literal.No ukc> Ic show slot 2 ahc* at eisa0 slot -1 10 uha* at eisa0 slot -1 12 ep0 at eisa0 slot -1 17 ep* at eisa0 slot -1102 ahb* at eisa0 slot -1103 fea* at eisa0 slot -1.No ukc> Ic show port 0x300 25 ne1 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x0 72 we1 at isa0 port 0x300 size 0 iomem 0xcc000 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x0 75 el0 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 9 drq -1 drq2 -1 flags 0x0 77 ie1 at isa0 port 0x300 size 0 iomem -1 iosiz 0 irq 10 drq -1 drq2 -1 flags 0x0ukc>.Ed.PpIt is possible to add new devices, but only devices that were linked into thekernel.If a new device is added, following devices will be renumbered..Pp.Bd -literal.No ukc> Ic find ep 11 ep0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2 -1 flags 0x0 12 ep0 at eisa0 slot -1 flags 0x0 13 ep0 at pci* dev -1 function -1 flags 0x0 14 ep* at isapnp0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 flags 0x0 15 ep* at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2 -1 flags 0x0 16 ep* at eisa0 slot -1 flags 0x0 17 ep* at pci* dev -1 function -1 flags 0x0 18 ep* at pcmcia* dev -1 irq -1 flags 0x0.No ukc> Ic add ep1.No "Clone Device (DevNo, 'q' or '?') ?" Ic 13.No "Insert before Device (DevNo, 'q' or '?')" Ic 14 14 ep1 at pci* dev -1 function -1.No ukc> Ic change 14 14 ep1 at pci* dev -1 function -1.No change (y/n) ? Ic y.No dev [-1] ? Ic 14.No function [-1] ?.No flags [0] ? 18 14 ep1 changed 14 ep1 at pci* dev 14 function -1 flags 0x12ukc>.Ed.PpWhen done, exit the program with the.Ic quitor.Ic exitcommands..Ic exitwill ignore any changes while.Ic quitwrites the changes to.Ar outfile(if.Fl oor.Fl fwas given, else ignore changes)..Pp.Bd -literal.No ukc> Ic quit.Ed.Sh SEE ALSO.Xr options 4 ,.Xr boot_config 8.PpThe SYNOPSIS portion of each device in section 4 of the manual..Pp.Rs.%T "Building 4.4 BSD Systems with Config".Re.Sh HISTORYThe.Nmprogram appeared in 4.1BSD.It was completely revised in 4.4BSD.The.Fl eoption appeared in.Ox 2.6 .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -