I have a file server that does not have a serial port, only vga. Since
it's normally headless, I'm trying to use a USB serial adapter to
1. login
2. display boot messages
The adapter shows up as:
uftdi0 at uhub3 port 1 configuration 1 interface 0 "FTDI USB Serial Converter"
rev 2.00/6.00 addr 2
ucom0 at uftdi0 portno 1: usb3.0.00001.0
I've been able to test that it's functional by connecting to it from my
desktop, which has a serial port, using:
cu -l /dev/cuaU0
And all is well.
Starting with goal 1 (login):
Trying to add the appropriate entry to /etc/ttys is where I am running
into trouble. First I tried:
ttyU0 "/usr/libexec/getty std.9600" vt220 on secure
When hitting Enter on my desktop end, I get new lines, but no prompt.
I changed the entry to:
cuaU0 "/usr/libexec/getty std.9600" vt220 on secure
Now I get a login prompt, but also receive the following error after
logging in:
ksh: No controlling tty (open /dev/tty: Device busy)
ksh: warning: won't have full job control
And it's not really a usable session since I don't have a tty.
What am I doing wrong?
dmesg output (with adapter plugged in at boot):
OpenBSD 7.8 (GENERIC.MP) #54: Sun Oct 12 12:58:11 MDT 2025
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17028415488 (16239MB)
avail mem = 16485498880 (15721MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfb330 (35 entries)
bios0: vendor HP version "O41" date 07/29/2011
bios0: HP ProLiant MicroServer
acpi0 at bios0: ACPI 3.0
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC MCFG SPMI OEMB HPET EINJ BERT ERST HEST SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4)
PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) P0PC(S4) PE20(S4) PE21(S4)
PE22(S4) PE23(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Turion(tm) II Neo N40L Dual-Core Processor, 1497.65 MHz, 10-06-03,
patch 010000c8
cpu0: cpuid 1
edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT>
ecx=802009<SSE3,MWAIT,CX16,POPCNT>
cpu0: cpuid 80000001
edx=efd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW>
ecx=837ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID>
cpu0: cpuid 80000007 edx=1f9<HWPSTATE,ITSC>
cpu0: 64KB 64b/line 2-way D-cache, 64KB 64b/line 2-way I-cache
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: AMD erratum 721 detected and fixed
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Turion(tm) II Neo N40L Dual-Core Processor, 1497.66 MHz, 10-06-03,
patch 010000c8
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpi0: unable to load \\_SB_._INI.EXH2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (PCE2)
acpiprt3 at acpi0: bus 3 (PCE4)
acpiprt4 at acpi0: bus 4 (PCE6)
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
ipmi at mainbus0 not configured
cpu0: 1497 MHz: speeds: 1500 1300 1000 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD RS880 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 vendor "Hewlett-Packard", unknown product 0x9602
rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 "ATI Mobility Radeon HD 4200" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 2 int 18
ppb1 at pci0 dev 2 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
mpii0 at pci2 dev 0 function 0 "Symbios Logic SAS2008" rev 0x03: msi
mpii0: 6Gbps SAS HBA, firmware 20.0.7.0, MPI 2.0
scsibus1 at mpii0: 256 targets
ppb2 at pci0 dev 4 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
bge0 at pci3 dev 0 function 0 "Broadcom BCM5720" rev 0x00, BCM5720 A0
(0x5720000), APE firmware NCSI 1.4.26.0: msi, address b0:26:28:14:e2:de
brgphy0 at bge0 phy 1: BCM5720C, rev. 0
bge1 at pci3 dev 0 function 1 "Broadcom BCM5720" rev 0x00, BCM5720 A0
(0x5720000), APE firmware NCSI 1.4.26.0: msi, address b0:26:28:14:e2:df
brgphy1 at bge1 phy 2: BCM5720C, rev. 0
ppb3 at pci0 dev 6 function 0 "AMD RS780 PCIE" rev 0x00
pci4 at ppb3 bus 4
bge2 at pci4 dev 0 function 0 "Broadcom BCM5723" rev 0x10, BCM5784 A1
(0x5784100): msi, address e4:11:5b:13:70:d1
brgphy2 at bge2 phy 1: BCM5784, rev. 4
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int 19, AHCI
1.2
scsibus2 at ahci0: 32 targets
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00
addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00
addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 1: <SAMSUNG MZ7PD128HAFV-000H7>
wd0: 1-sector PIO, LBA48, 122104MB, 250069680 sectors
wd0(pciide0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb4 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci5 at ppb4 bus 5
ohci2 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00
addr 1
pchb1 at pci0 dev 24 function 0 "AMD 10h HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD 10h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD 10h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD 10h Link Cfg" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00
addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00
addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00
addr 1
vmm0 at mainbus0: SVM/RVI
sd0 at scsibus1 targ 5 lun 0: <ATA, HGST HDN724040AL, A5E0> naa.5000cca24cf195af
sd0: 3815447MB, 512 bytes/sector, 7814037168 sectors
sd1 at scsibus1 targ 6 lun 0: <ATA, HGST HMS5C4040AL, A3W0> naa.5000cca22ec3063a
sd1: 3815447MB, 512 bytes/sector, 7814037168 sectors
sd2 at scsibus1 targ 7 lun 0: <ATA, ST3000VX010-2H91, CV11> naa.5000c500afa0eaac
sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
uftdi0 at uhub3 port 1 configuration 1 interface 0 "FTDI USB Serial Converter"
rev 2.00/6.00 addr 2
ucom0 at uftdi0 portno 1: usb3.0.00001.0
uhidev0 at uhub3 port 2 configuration 1 interface 0 "SEM USB Keyboard" rev
1.10/1.10 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub3 port 2 configuration 1 interface 1 "SEM USB Keyboard" rev
1.10/1.10 addr 3
uhidev1: iclass 3/0, 2 report ids
ucc0 at uhidev1 reportid 1: 573 usages, 20 keys, array
wskbd1 at ucc0 mux 1
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uaudio0 at uhub4 port 1 configuration 1 interface 1 "C-Media Electronics Inc.
USB Audio Device" rev 1.10/1.00 addr 2
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 8 ctls
audio0 at uaudio0
uhidev2 at uhub4 port 1 configuration 1 interface 3 "C-Media Electronics Inc.
USB Audio Device" rev 1.10/1.00 addr 2
uhidev2: iclass 3/0
ucc1 at uhidev2: 10 usages, 3 keys, enum
wskbd2 at ucc1 mux 1
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd3 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 006>
sd3: 3815447MB, 512 bytes/sector, 7814036543 sectors
root on wd0a (b2051105b74db025.a) swap on wd0b dump on wd0b
radeondrm0: RS880
radeon_audio_component_init: stub
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
--
Stuart A. McKim, P.E.
Idaho Falls, ID