Date: Thu, 7 Jan 1999 10:18:06 -0500 (EST) From: jim@reptiles.org (Jim Mercer) To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Cc: hackers@FreeBSD.ORG, paul@it.ca Subject: Re: utility for setting PNP info in /etc/rc.conf? Message-ID: <m0zyHCJ-00080YC@mailbox.reptiles.org> In-Reply-To: <199901071234.NAA08166@labinfo.iet.unipi.it> from Luigi Rizzo at "Jan 7, 99 01:34:10 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > i've got a PNP modem in one of my servers.
> >
> > unfortunately, whenever i put a new kernel in place, i physically have to
> > re-initialize the kernel using "boot -c, etc".
> >
> > is there a method to do this in /etc/rc.local or something?
>
> with 2.2.x you put this in /kernel.config, with 3.0 there must be some
> other way.
>
> luigi
much appreciated, Luigi.
after a couple other emails with Luigi, i configured my system as follows:
rebuilt the kernel with:
options USERCONFIG_BOOT #imply -c and parse info area
modified /kernel.config as:
-----------
USERCONFIG
pnp 1 0 enable
pnp 1 0 os
pnp 1 0 port0 0x3e8
pnp 1 0 irq0 5
quit
-----------
and presto, my PNP card was initialized as if i was standing in front of
the server (which is several kilometers away, and i'd have to get dressed
and go out into the -20C winter weather).
choking.reptiles.org% dmesg
Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 2.2.8-RELEASE #5: Thu Jan 7 10:08:01 EST 1999
root@choking.reptiles.org:/usr/.src/sys/compile/CHOKING
CPU: Pentium/P54C (99.95-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x525 Stepping=5
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory = 16777216 (16384K bytes)
FreeBSD Kernel Configuration Utility - Version 1.1
Type "help" for help or "visual" to go to the visual
configuration interface (requires MGA/VGA display or
serial terminal capable of displaying ANSI graphics).
config> pnp 1 0 enable
config> pnp 1 0 os
config> pnp 1 0 port0 0x3e8
config> pnp 1 0 irq0 5
config> quit
avail memory = 14598144 (14256K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82439TX PCI cache memory controller> rev 1 on pci0:0:0
chip1 <Intel 82371AB PCI-ISA bridge> rev 1 on pci0:1:0
chip2 <Intel 82371AB IDE interface> rev 1 on pci0:1:1
chip3 <Intel 82371AB USB interface> rev 1 int d irq ?? on pci0:1:2
chip4 <Intel 82371AB Power management controller> rev 1 on pci0:1:3
chip5 <DEC 21050 PCI-PCI bridge> rev 1 on pci0:9:0
chip6 <DEC 21050 PCI-PCI bridge> rev 1 on pci0:10:0
chip7 <DEC 21050 PCI-PCI bridge> rev 1 on pci0:11:0
ncr0 <ncr 53c810a fast10 scsi> rev 18 int a irq 11 on pci0:12:0
ncr0 waiting for scsi devices to settle
(ncr0:0:0): "SEAGATE ST1480 7336" type 0 fixed SCSI 2
sd0(ncr0:0:0): Direct-Access
sd0(ncr0:0:0): 5.0 MB/s (200 ns, offset 8)
411MB (842845 512 byte sectors)
(ncr0:6:0): "Philips CM4xx 1.01" type 5 removable SCSI 2
cd0(ncr0:6:0): CD-ROM
cd0(ncr0:6:0): asynchronous.
can't get the size
Probing for devices on PCI bus 1:
de0 <Digital 21040 Ethernet> rev 35 int a irq 9 on pci1:4:0
de0: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de0: address 00:c0:95:f0:00:f4
de0: enabling 10baseT port
de1 <Digital 21040 Ethernet> rev 35 int a irq 11 on pci1:5:0
de1: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de1: address 00:c0:95:f0:00:f5
de1: enabling 10baseT port
de2 <Digital 21040 Ethernet> rev 35 int a irq 10 on pci1:6:0
de2: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de2: address 00:c0:95:f0:00:f6
de2: enabling 10baseT port
de3 <Digital 21040 Ethernet> rev 35 int a irq 12 on pci1:7:0
de3: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de3: address 00:c0:95:f0:00:f7
de3: enabling 10baseT port
Probing for devices on PCI bus 2:
de4 <Digital 21040 Ethernet> rev 35 int a irq 12 on pci2:4:0
de4: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de4: address 00:c0:95:f0:03:54
de4: enabling 10baseT port
de5 <Digital 21040 Ethernet> rev 35 int a irq 9 on pci2:5:0
de5: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de5: address 00:c0:95:f0:03:55
de5: enabling 10baseT port
de6 <Digital 21040 Ethernet> rev 35 int a irq 11 on pci2:6:0
de6: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de6: address 00:c0:95:f0:03:56
de6: enabling 10baseT port
de7 <Digital 21040 Ethernet> rev 35 int a irq 10 on pci2:7:0
de7: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de7: address 00:c0:95:f0:03:57
de7: enabling 10baseT port
Probing for devices on PCI bus 3:
de8 <Digital 21040 Ethernet> rev 35 int a irq 10 on pci3:4:0
de8: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de8: address 00:c0:95:f0:00:c4
de8: enabling 10baseT port
de9 <Digital 21040 Ethernet> rev 35 int a irq 12 on pci3:5:0
de9: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de9: address 00:c0:95:f0:00:c5
de9: enabling 10baseT port
de10 <Digital 21040 Ethernet> rev 35 int a irq 9 on pci3:6:0
de10: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de10: address 00:c0:95:f0:00:c6
de10: enabling 10baseT port
de11 <Digital 21040 Ethernet> rev 35 int a irq 11 on pci3:7:0
de11: ZNYX ZX314 21040 [10Mb/s] pass 2.3
de11: address 00:c0:95:f0:00:c7
de11: enabling 10baseT port
Probing for PnP devices:
CSN 1 Vendor ID: GVC0505 [0x0505c31e] Serial 0xffffffff
PnP: override config for CSN 1 LDN 0 vend_id 0x0505c31e
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
sio2 at 0x3e8-0x3ef irq 5 on isa
sio2: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
npx0 flags 0x1 on motherboard
npx0: INT 16 interface
Intel Pentium F00F detected, installing workaround
IP packet filtering initialized, divert disabled, default to accept, logging limited to 100 packets/entry
DUMMYNET initialized (980901) -- size dn_pkt 48
--
[ Jim Mercer Reptilian Research jim@reptiles.org +1 416 410-5633 ]
[ The telephone, for those of you who have forgotten, was a commonly used ]
[ communications technology in the days before electronic mail. ]
[ They're still easy to find in most large cities. -- Nathaniel Borenstein ]
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0zyHCJ-00080YC>
