|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
serial console access
I've got a PC Engines APU2 and a regular desktop with a serial port, and a null modem cable between them. I'm trying to get connectivity in both directions via cu(1), but it only ever works one time. After the first connection attempt (from either side), subsequent connection attempts elicit:
Code:
# cu -s 115200 cu: open("/dev/cua00"): Device busy Code:
stty com0 115200 set tty com0 Code:
tty00 "/usr/libexec/getty std.115200" vt220 on secure |
|
|||
Try with default settings:
9600 baud 8 bits no parity 1 stop bit |
|
|||
No change, I'm afraid. Or do you mean I should change the settings in /etc/ttys?
|
|
|||
Pretty sure you can't listen and call on the same tty. ttyU00 and cuaU00 are the same port, just different in activation signal. See tty(4)
Once getty is listening for incoming connections (or maybe once it answers, which might be why it works once), you can't use cu to dial out on the same port. |
|
|||
You could check /var/spool/lock for a lock file. A lock file there could cause the issue that you see.
I always add myself to the group dialer. IIRC that solved the lock file issue. Some time ago cu(1) was rewritten: Quote:
From https://man.openbsd.org/OpenBSD-5.3/cu.1 Code:
FILES /var/log/aculog line access log /var/spool/lock/LCK..* lock file to avoid conflicts with uucp
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 30th January 2020 at 07:59 AM. Reason: formatting |
|
|||
From cu(1)
Quote:
On the APU2: Code:
$ ps aux | grep cu root 41193 0.0 0.1 368 1396 00 S+ 12:15PM 0:00.03 login -p -- d64 (desktop.domain root 18478 0.0 0.1 272 1200 00 S<+p 12:23PM 0:00.01 passwd -v login=yes -s login -- d64 (desktop.domain default (login_passwd) Code:
$ ps aux | grep cu root 82990 0.0 0.0 360 1424 cu S+ 12:15PM 0:00.00 login -p -- D root 94152 0.0 0.0 268 1240 cu S<+p 12:23PM 0:00.00 passwd -v login=yes -s login -- D/amd64 (apu.domain) (tt default (login_passwd) Last edited by beavers; 15th May 2020 at 04:37 PM. Reason: commands |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple serial consoles via null modem cable or serial console server | J65nko | General Hardware | 0 | 16th January 2010 12:01 AM |
disable console access | milo974 | OpenBSD Security | 9 | 29th December 2009 01:36 PM |
Controlling a RS-232 Serial Console from a Shell Script | ishikawanakano | Programming | 0 | 9th January 2009 10:00 PM |
Setting up the serial console | PeterSteele | FreeBSD General | 6 | 3rd November 2008 04:42 PM |
getty dies on serial console? | michaelk | FreeBSD General | 9 | 18th May 2008 08:44 AM |