Damon McMahon wrote:
> Greetings,
> 
> I've installed OBSD 3.9 on an old (circa 2000) IBM Aptiva  
> successfully, but I'm having trouble configuring a serial console for  
> it.
...
> # cat /etc/boot.conf
> stty com0 9600
> set tty com0
> 
> After connecting a known working null modem cable to COM2 [yes, COM2  
> not COM1] on the Aptiva we make progress attempting to connect a  
> serial console from another OBSD 3.9 machine and then booting the  
> Aptiva, but not much:
> 
> # tip tty00
> connected
> 
> boot> 10
> 
>          boting hd0a:10: open hd0a:10: No such file or directory
> 
>                                                                   
> failed(2). will try /obsd
> 
>           boot>
> 
>                 boot> >
> 
>                         boot> > >
...[snip really ugly stuff that looks painfully familiar]...

Been there, seen that, kicked self in butt once I realized the port I
was trying to use as a serial terminal was also configured as a serial
console for the terminal machine (D'oh!).  Basically, the two machines
start bouncing back and forth off each other, and nothing works as
desired.

HOWEVER...
...

> and I get the same results. dmesg of the Aptiva follows, can anyone  
> advise?

Here's why even when you don't think the dmesg matters, it can matter.

> # dmesg
...
> uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 3

check out this device's IRQ: 3...
...
> eso0 at pci0 dev 11 function 0 "ESS SOLO-1 AudioDrive" rev 0x01:  
> ES1946, irq 5

and the sound card is on IRQ 5...

> eso0: mapping Audio 1 DMA using VC I/O space at 0x8cc0
> audio0 at eso0
> opl0 at eso0: model OPL3
> midi0 at opl0: <ESO Yamaha OPL3>
> "Conexant 56k Winmodem" rev 0x08 at pci0 dev 13 function 0 not  
> configured
> sis0 at pci0 dev 14 function 0 "NS DP83815 10/100" rev 0x00,  
> DP83815C: irq 5, address 00:a0:cc:74:48:46

and again, irq 5.

> nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
> rl0 at pci0 dev 16 function 0 "Accton MPX 5030/5038" rev 0x10: irq 9,  
> address 00:10:b5:08:5c:32
> rlphy0 at rl0 phy 0: RTL internal PHY
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> midi1 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom1: irq 3 already in use
> pccom2: irq 5 already in use

And that tells us more.

Note that it's pccom1 and pccom2, but no pccom0...  pccom devices are
ISA devices, so they can't share IRQs with PCI devices (though, of
course, PCI devices can share IRQs with each other).  So that's why
com0 didn't work, and the IRQ conflict won't make com1 and com2 work
very well...

Take a close look at your machine config (most likely, the BIOS setup
program), you will probably find non-standard configs for the two
serial ports.  You might need to "tag" IRQ 3 as "Reserved for ISA" or
similar.

Nick.

Reply via email to