On Mon, Aug 28, 2023 at 04:50:37PM +0200, Otto Moerbeek wrote:
> On Mon, Aug 28, 2023 at 10:33:23AM -0400, Christopher Sean Hilton wrote:
> 
> > On Mon, Aug 28, 2023 at 07:41:19AM +0200, Otto Moerbeek wrote:
> > > On Sun, Aug 27, 2023 at 08:40:44PM -0400, Christopher Sean Hilton wrote:
> > > 
> > 
> > [ ...snip... ]
> > 
> > > > I can solve my problems in one of two ways. If I can boot with serial
> > > > consoles by setting them up in /etc/boot.conf and also have terminals
> > > > on the pc consoles, I'd be happy. I'd also be happy if I could figure
> > > > out how to configure the BIOS to make enable the serial port as just
> > > > a plain serial port. Super Micro seems to have other ideas and I
> > > > understand that this is *my* problem.
> > > > 
> > > > I'll tak any suggestions here.
> > > 
> > > What did you put into /etc/ttys when using a VGA console?
> > > 
> > >   -Otto
> > > 
> > 
> > I've moved it to the serial console config. Admitting in advance that
> > I could be mistaken, I've posted the relevant files below. I annotated
> > the dmesg output with marks to show where the serial port is detected
> > and that the wsdisplay *does not attach* to the detected vga1
> > device. I think that if I could make the wsdisplay device attach then
> > my problem would be solved.
> 
> Having wsdisplay(4) without being the under;ying device being marked
> as console is atypical. Don't know if it is possible at all. 
> 

Here's part of a dmesg for a different OpenBSD machine that I run, also as a
packet filter. It has slightly different hardware but in this case,
wsdisplay attaches and I get 5 pc terminals as well as a serial console. 

=== dmesg output ===

     acpiprt6 at acpi0: bus 2 (P0P8)
     acpiprt7 at acpi0: bus 3 (P0P9)
     acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
     acpicmos0 at acpi0
*>   com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
*>   com0: console
     acpibtn0 at acpi0: PWRB
     acpicpu0 at acpi0: C1(@1 halt!)
     acpicpu1 at acpi0: C1(@1 halt!)
     acpicpu2 at acpi0: C1(@1 halt!)
     acpicpu3 at acpi0: C1(@1 halt!)
     ipmi at mainbus0 not configured
     pci0 at mainbus0 bus 0
*>   pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
*>   inteldrm0 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
*>   drm0 at inteldrm0
*>   intagp0 at inteldrm0
*>   agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
*>   inteldrm0: apic 4 int 16, PINEVIEW, gen 3
*>   "Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not configured
     uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16
     uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21

     ...

     isa0 at pcib0
     isadma0 at isa0
     pckbc0 at isa0 port 0x60/5 irq 1 irq 12
     pckbd0 at pckbc0 (kbd slot)
     wskbd0 at pckbd0 mux 1
*>   vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
*>   wsdisplay at vga0 not configured
     pckbc0 at isa0 port 0x60/5 irq 1 irq 12
     pckbd0 at pckbc0 (kbd slot)
     wskbd0 at pckbd0 mux 1
*>   vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
*>   wsdisplay at vga0 not configured
     pcppi0 at isa0 port 0x61

     ...

*>   inteldrm0: 1024x768, 32bpp
*>   wsdisplay0 at inteldrm0 mux 1
     pckbd_enable: command error
*>   wsdisplay0: screen 0-5 added (std, vt100 emulation)

In this case wsdisplay is attaching to the intel graphics card built
into the chipset. The motherboard here is a much older, much lower
performance Intel Atom D525.

On the target hardware, when /etc/boot.conf is missing or empty,
wsdisplay0 attaches to the vga[01]. As I said in my original post,
SuperMicro is doing something *fancy* with the serial port on this
motherboard to *enhance* the usefulness of the remote sessions on the
serial hardware. Whatever trick that they are pulling is not working
correctly. I've scoured the BIOS to find a configuration that make com1:
0x3f8/irq 4, just be a serial UART. I can't find it. I was hoping that
either there's a way to configure the kernel to attach vga1 to
wsdisplay through `boot -c` or that someone has experience with the
BIOS on these machines and has convinced the motherboard to remove the
*fancy sauce* attached to the serial ports.

Thank you again for your help Otto,


-- Chris



> > 
> > Thanks again
> > 
> > -- Chris
> > 
> > Attached output follows:
> > 
> > 
> > == /etc/boot.conf ==
> > 
> > stty com0 115200
> > set tty com0
> > 
> > 
> > == /etc/ttys ==
> > 
> > #
> > #       $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $
> > #
> > # name  getty                           type    status          comments
> > #
> > console "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyC0   "/usr/libexec/getty std.9600"   vt220   on  secure
> > ttyC1   "/usr/libexec/getty std.9600"   vt220   on  secure
> > ttyC2   "/usr/libexec/getty std.9600"   vt220   on  secure
> > ttyC3   "/usr/libexec/getty std.9600"   vt220   on  secure
> > ttyC4   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyC5   "/usr/libexec/getty std.9600"   vt220   on  secure
> > ttyC6   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyC7   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyC8   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyC9   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyCa   "/usr/libexec/getty std.9600"   vt220   off secure
> > ttyCb   "/usr/libexec/getty std.9600"   vt220   off secure
> > tty00   "/usr/libexec/getty std.115200" unknown on  secure
> 
> might need to play with "local" and/or "softcar" (I always forget
> which does what) when using a vga console to get a login prompt on tty00
> See ttys(5).
> 
>       -Otto
> 
> > tty01   "/usr/libexec/getty std.115200" unknown on  secure
> > tty02   "/usr/libexec/getty std.9600"   unknown off
> > tty03   "/usr/libexec/getty std.9600"   unknown off
> > tty04   "/usr/libexec/getty std.9600"   unknown off
> > tty05   "/usr/libexec/getty std.9600"   unknown off
> > tty06   "/usr/libexec/getty std.9600"   unknown off
> > tty07   "/usr/libexec/getty std.9600"   unknown off
> > ...
> > 
> > 
> > == dmesg.boot ==
> > 
> >      OpenBSD 7.3 (GENERIC.MP) #3: Tue Jul 25 08:20:26 MDT 2023
> >          
> > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> >      real mem = 8541495296 (8145MB)
> >      avail mem = 8263225344 (7880MB)
> >      random: good seed from bootblocks
> >      mpath0 at root
> >      scsibus0 at mpath0: 256 targets
> >      mainbus0 at root
> >      bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7f4d8000 (50 entries)
> >      bios0: vendor American Megatrends Inc. version "2.1" date 01/18/2018
> >      bios0: Supermicro A1SRi-2758F
> >      acpi0 at bios0: ACPI 5.0
> >      acpi0: sleep states S0 S5
> >      acpi0: tables DSDT FACP FPDT FIDT SPMI MCFG WDAT UEFI APIC BDAT HPET 
> > SSDT SPCR HEST BERT ERST EINJ
> >      acpi0: wakeup devices PEX1(S0) PEX2(S0) PEX3(S0) PEX4(S0) EHC1(S0)
> >      acpitimer0 at acpi0: 3579545 Hz, 24 bits
> >      acpimcfg0 at acpi0
> >      acpimcfg0: addr 0xe0000000, bus 0-255
> >      acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> >      cpu0 at mainbus0: apid 0 (boot processor)
> >      cpu0: Intel(R) Atom(TM) CPU C2758 @ 2.40GHz, 2400.37 MHz, 06-4d-08
> >      cpu0: 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,
> >      cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 
> > 64b/line 16-way L2 cache
> >      cpu0: smt 0, core 0, package 0
> >      mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> >      cpu0: apic clock running at 100MHz
> >      cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3, IBE
> >      cpu1 at mainbus0: apid 2 (application processor)
> >      cpu1: Intel(R) Atom(TM) CPU C2758 @ 2.40GHz, 2400.66 MHz, 06-4d-08
> >      cpu1: 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,
> >      cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 
> > 64b/line 16-way L2 cache
> >      cpu1: smt 0, core 1, package 0
> > 
> >      ...
> > 
> >      cpu7 at mainbus0: apid 14 (application processor)
> >      cpu7: Intel(R) Atom(TM) CPU C2758 @ 2.40GHz, 2402.94 MHz, 06-4d-08
> >      cpu7: 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,
> >      cpu7: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 
> > 64b/line 16-way L2 cache
> >      cpu7: smt 0, core 7, package 0
> >      ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> >      acpihpet0 at acpi0: 14318179 Hz
> >      acpiprt0 at acpi0: bus 0 (PCI0)
> >      acpiprt1 at acpi0: bus 1 (PEX1)
> >      acpiprt2 at acpi0: bus 2 (BR04)
> >      acpiprt3 at acpi0: bus 3 (PEX2)
> >      acpiprt4 at acpi0: bus 4 (PEX3)
> >      acpiprt5 at acpi0: bus -1 (PEX4)
> >      acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
> >      "PNP0003" at acpi0 not configured
> >      acpicmos0 at acpi0
> > (1)->com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
> >    +>com0: console
> >      com1 at acpi0 UAR2 addr 0x2f8/0x8 irq 3: ns16550a, 16 byte fifo
> >      "IPI0001" at acpi0 not configured
> >      "PNP0C33" at acpi0 not configured
> >      acpicpu0 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu1 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu2 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu3 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu4 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu5 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu6 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      acpicpu7 at acpi0: C2(350@41 mwait.3@0x51), C1(1000@1 mwait.1), PSS
> >      ipmi at mainbus0 not configured
> >      cpu0: using VERW MDS workaround
> >      cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 2300, 2200, 2100, 
> > 2000, 1900, 1800, 1700, 1600, 1500, 1400, 1300, 1200 MHz
> >      pci0 at mainbus0 bus 0
> >      pchb0 at pci0 dev 0 function 0 "Intel Atom C2000 Host" rev 0x03
> >      ppb0 at pci0 dev 1 function 0 "Intel Atom C2000 PCIE" rev 0x03: msi
> >      pci1 at ppb0 bus 1
> >      ppb1 at pci1 dev 0 function 0 "ASPEED Technology AST1150 PCI" rev 0x03
> >      pci2 at ppb1 bus 2
> > (2)->vga1 at pci2 dev 0 function 0 "ASPEED Technology AST2000" rev 0x30
> >    +>wsdisplay at vga1 not configured
> >      ppb2 at pci0 dev 2 function 0 "Intel Atom C2000 PCIE" rev 0x03: msi
> >      pci3 at ppb2 bus 3
> >      xhci0 at pci3 dev 0 function 0 "Renesas uPD720201 xHCI" rev 0x03: msi, 
> > xHCI 1.0
> >      usb0 at xhci0: USB revision 3.0
> >      uhub0 at usb0 configuration 1 interface 0 "Renesas xHCI root hub" rev 
> > 3.00/1.00 addr 1
> >      ppb3 at pci0 dev 3 function 0 "Intel Atom C2000 PCIE" rev 0x03: msi
> >      pci4 at ppb3 bus 4
> >      ix0 at pci4 dev 0 function 0 "Intel X540T" rev 0x01, msix, 8 queues, 
> > address b4:96:91:9f:04:80
> >      ix1 at pci4 dev 0 function 1 "Intel X540T" rev 0x01, msix, 8 queues, 
> > address b4:96:91:9f:04:82
> >      vendor "Intel", unknown product 0x1f18 (class processor subclass 
> > Co-processor, rev 0x03) at pci0 dev 11 function 0 not configured
> >      pchb1 at pci0 dev 14 function 0 "Intel Atom C2000 RAS" rev 0x03
> >      "Intel Atom C2000 RCEC" rev 0x03 at pci0 dev 15 function 0 not 
> > configured
> >      "Intel Atom C2000 SMBus" rev 0x03 at pci0 dev 19 function 0 not 
> > configured
> >      em0 at pci0 dev 20 function 0 "Intel I354 SGMII" rev 0x03: msi, 
> > address ac:1f:6b:b1:d2:08
> >      em1 at pci0 dev 20 function 1 "Intel I354 SGMII" rev 0x03: msi, 
> > address ac:1f:6b:b1:d2:09
> >      em2 at pci0 dev 20 function 2 "Intel I354 SGMII" rev 0x03: msi, 
> > address ac:1f:6b:b1:d2:0a
> >      em3 at pci0 dev 20 function 3 "Intel I354 SGMII" rev 0x03: msi, 
> > address ac:1f:6b:b1:d2:0b
> >      ehci0 at pci0 dev 22 function 0 "Intel Atom C2000 USB" rev 0x03: apic 
> > 2 int 23
> >      usb1 at ehci0: USB revision 2.0
> >      uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 
> > 2.00/1.00 addr 1
> >      ahci0 at pci0 dev 23 function 0 "Intel Atom C2000 AHCI" rev 0x03: msi, 
> > AHCI 1.3
> >      scsibus1 at ahci0: 32 targets
> >      ahci1 at pci0 dev 24 function 0 "Intel Atom C2000 AHCI" rev 0x03: msi, 
> > AHCI 1.3
> >      ahci1: port 0: 6.0Gb/s
> >      scsibus2 at ahci1: 32 targets
> >      sd0 at scsibus2 targ 0 lun 0: <ATA, PNY CS900 120GB, CS90> 
> > naa.5f8db4c151800400
> >      sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin
> >      pcib0 at pci0 dev 31 function 0 "Intel Atom C2000 PCU" rev 0x03
> >      ichiic0 at pci0 dev 31 function 3 "Intel Atom C2000 PCU SMBus" rev 
> > 0x03: apic 2 int 18
> >      iic0 at ichiic0
> >      sdtemp0 at iic0 addr 0x18: stts2004
> >      iic0: addr 0x2e 00=42 words 00=4242 01=0000 02=0000 03=0000 04=0000 
> > 05=0000 06=0000 07=0000
> >      spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM ECC PC3-12800 with thermal 
> > sensor
> >      isa0 at pcib0
> >      isadma0 at isa0
> >      pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> >      pckbd0 at pckbc0 (kbd slot)
> >      wskbd0 at pckbd0 mux 1
> >      pms0 at pckbc0 (aux slot)
> >      wsmouse0 at pms0 mux 0
> >      pcppi0 at isa0 port 0x61
> >      spkr0 at pcppi0
> >      vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
> >      uhub2 at uhub1 port 1 configuration 1 interface 0 "Intel product 
> > 0x07db" rev 2.00/0.03 addr 2
> >      uhub3 at uhub2 port 1 configuration 1 interface 0 "Terminus Technology 
> > USB 2.0 Hub" rev 2.00/1.11 addr 3
> >      uhub4 at uhub2 port 3 configuration 1 interface 0 "ATEN International 
> > product 0x7000" rev 2.00/0.00 addr 4
> >      uhidev0 at uhub4 port 1 configuration 1 interface 0 "ATEN 
> > International product 0x2419" rev 1.10/1.00 addr 5
> >      uhidev0: iclass 3/1
> >      ukbd0 at uhidev0: 8 variable keys, 6 key codes
> >      wskbd1 at ukbd0 mux 1
> >      uhidev1 at uhub4 port 1 configuration 1 interface 1 "ATEN 
> > International product 0x2419" rev 1.10/1.00 addr 5
> >      uhidev1: iclass 3/1
> >      ums0 at uhidev1: 3 buttons, Z dir
> >      wsmouse1 at ums0 mux 0
> >      vscsi0 at root
> >      scsibus3 at vscsi0: 256 targets
> >      softraid0 at root
> >      scsibus4 at softraid0: 256 targets
> >      root on sd0a (070da3f4af65d174.a) swap on sd0b dump on sd0b

[ ...snip ]

-- 
Chris

      __o          "All I was trying to do was get home from work."
    _`\<,_           -Rosa Parks
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
Christopher Sean Hilton                    [chris/at/vindaloo/dot/com]

Reply via email to