Questions tagged [serial-console]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Polkit and local serial consoles

Are serial consoles considered local by polkit? Could that be configured e.g. via /etc/securetty?
kirjosieppo's user avatar
0 votes
1 answer
85 views

Using telnet command without protocol negotiation

I'm using telnet to connect to a serial port via a TCP/IP server. I need a raw, unfiltered, unbuffered connection, and can get most of the way there, but no matter what I do telnet sends protocol ...
Daniel Griscom's user avatar
0 votes
1 answer
21 views

Service file and Minicom

I have made a service script which runs a script file after reboot and starts after the service [email protected]. The problem is my script file requires some user inputs to be given but the ...
ROSHAN RAJAGOPAL's user avatar
0 votes
1 answer
59 views

Bricked ssh port

Soo I was playing with firewalld on my ubuntu server instance (Oracle Cloud) and I forgot to add rule for ssh Port so I can't connect to it I tried using serial console becouse OCI lets you connect to ...
Im-CatDev's user avatar
0 votes
0 answers
118 views

using socat or stream to read from serial?

I am trying to send a binary file from Raspbian to an ESP32 device on a RPI USB port, and read response data. I can cat file > /dev/ttyS0, but obviously ">" discards output from the ...
William Q's user avatar
0 votes
1 answer
323 views

Virtual COM port using only USB cable

I have seen that it is possible to connect two computers by USB cable and make a virtual ethernet bridge or something like that. My question is, can we do something similar but configure the ...
DEKKER's user avatar
  • 916
0 votes
3 answers
217 views

How to patch kernel to reduce VTIME gap for uart termios API?

I need help to find a kernel patch to get a VTIME from tty termios API lower than 100ms, in order to decrease gap inter char. It blocks read syscall until VTIME timeout. Function n_tty_read() is the ...
K. PANIK's user avatar
2 votes
1 answer
415 views

Debian VM doesn’t boot on QEMU with "console=hvc0" kernel parameter

I’m running virtual linux machine (debian12) on QEMU with -device virtconsole argument. That argument adds /dev/hvcX device nodes to VM. QEMU can connect that device to unix socket on host. If i pass “...
xycainoff's user avatar
0 votes
0 answers
197 views

running VSP as SSH command on HP ilo5 hung

I am trying to do a little automation to VSP on HP ilo5. While I can successfully SSH into the ilo and I can run vsp from hpiLO-> prompt I cannot run it directly from remote host as part of SSH ...
rajeev's user avatar
  • 245
0 votes
0 answers
199 views

Can I add a serial console to an existing libvirt virtual machine?

I have a VM image that someone has provided that uses the VGA console. I'm trying to boot it on a system where I use serial connections to VMs but I can't get any kernel or init messages on the ...
Tom's user avatar
  • 504
2 votes
1 answer
637 views

How use a USB (rather than a RS-232) port as a text terminal connection? I hope I am asking this correctly?

I have a Linux system that has USB ports, no RS-232 port. I would like to be able to plug in a USB cable into the Linux system and the other end of the USB cable into my PC, which happens to be ...
Jibun no Kage's user avatar
1 vote
0 answers
72 views

Redirect pstore to a file

PSTORE description says pstore is an oops/panic logger that writes its logs to a block device and non-block device I configured my kernel (embedded system) to store console output to pstore too. Now ...
leonp's user avatar
  • 111
2 votes
1 answer
366 views

System with serial console, which system is responsible for flow control settings

I have a proprietary Linux system, with a proprietary init system, which uses a serial console. I lately noticed, that the xon/xoff flow control is active on this serial console, which poses the risk ...
Sascha's user avatar
  • 121
3 votes
4 answers
165 views

Protect against vanishing output redirection targets

I have a daemon running on an embedded Linux device with its output redirected to the serial console: my_daemon > /dev/ttyS0 But now if a user exits the shell running on the serial interface then ...
phk's user avatar
  • 5,933
0 votes
1 answer
208 views

Issues starting headless installation of NetBSD in VirtualBox

On a headless Ubuntu 22.04 machine, I'd like to start a headless installation of NetBSD 9.2 in VirtualBox. I have a prepared virtual machine with a set of blank disk images attached, as well as with ...
Kusalananda's user avatar
  • 331k
0 votes
1 answer
188 views

Dumb terminal agetty keyboard layout filter

I recently acquired an old Heathkit dumb terminal, and I would like to get it working with the colemak keyboard layout. Because the terminal sends ascii codes directly over serial, I don't believe ...
runrin's user avatar
  • 31
1 vote
1 answer
322 views

Defining console port in ARM kernel image

I have an ARM Dev board using an RK3566 CPU that I'm building a kernel for. I would like to control the board using the UART connector. This works during U-Boot process, but my issue is that when I ...
Chris Hudlin's user avatar
4 votes
1 answer
720 views

Is there a difference in serial data formatting between Linux and Windows?

I am trying to read in serial data from an RS-485 RFID reader using a RS-485 to USB converter found here and a python script running Pyserial. The issue I'm facing is that when I print out what is ...
Xander Soriano's user avatar
1 vote
1 answer
1k views

No login prompt from Getty over serial console

My Ubuntu 20.04 system has a serial port over which I would like to provide console access. I can confirm that I can communicate over the serial port with sudo picocom -b 115200 /dev/ttyS5 I start ...
rgov's user avatar
  • 213
0 votes
0 answers
60 views

What is unit number in /boot/device.hints FreeBSD configuration

In device.hints FreeBSD manpage we have following description: A device hint line looks like: hint.driver.unit.keyword="value" where driver is the name of a device driver, unit is the ...
alirezaarzehgar's user avatar
3 votes
1 answer
2k views

Serial device (/dev/serial/) not showing up on Android

Trying to connect a serial device (3d printer) through the USB port in order to communicate with it (klipper firmware) on an Android device (LOS 18.1/Android 11, 3.18 kernel). But I can't find it in /...
martinvince's user avatar
0 votes
0 answers
62 views

screen extensions to vt52

The documentation for the vt52 terminal does not include the codes transmitted for CTRL+ something, ALT+ something (clearly: they did not exist). screen launched in vt52 mode sends some keys. For ...
Fabio Dalla Libera's user avatar
0 votes
2 answers
1k views

Is it possible to use turn a linux device as a serial device over direct usb?

I have been reading about the Serial Console. So let us say I have an android phone and want to read its serial output from a computer. I can compile a kernel for the phone no problem. I see things ...
Bret Joseph's user avatar
3 votes
1 answer
482 views

How to get a serial console on a modern Laptop

I would like to observe my Linux system while getting suspended. Reading out the dmesg does not work, because my system stops logging until the device resumes. But that's exactly the problem, my ...
flood's user avatar
  • 288
1 vote
1 answer
1k views

Missing console output after grub

I'm trying to boot CentOs already installed on an appliance. This appliance has only two input connectors: 1 USB port, where I plugged in a USB hub, to which I connected a keyboard 1 Male 9 Pin ...
cimere's user avatar
  • 111
0 votes
0 answers
1k views

How to setup serial console on CentOS8/RedHat8?

I rely on serial console on CentOS 8 to debug. I ever set it up on CentOS 7 by editing file /etc/default/grub as below, GRUB_CMDLINE_LINUX="crashkernel=auto console=tty0 console=ttyS0,...
codexplorer's user avatar
0 votes
1 answer
184 views

How to connect to display (VGA/Console) of one PC from another as a console?

I have an old PC I am trying to configure thru console. Problem is it does not has console or IPMI port. Instead of hooking a keyboard and monitor to the old PC, I want to connect (somehow) to the &...
rajeev's user avatar
  • 245
2 votes
1 answer
2k views

Serial flow control issue with ttyUSB0

This is related to a previous thread I created about a month ago and which was answered. Today I am attempting to setup a serial console login prompt on a laptop running Ubunutu 20 with a Belkin ...
Albert Elmore's user avatar
0 votes
0 answers
161 views

I cannot read from serial port until I login

I have a python script that reads from serial: import serial s = serial.Serial("/dev/ttymxc0", 115200) for i in range(100): with open("test", 'w') as f: f.write(s....
firion's user avatar
  • 149
0 votes
1 answer
281 views

Serial connection possibility between Windows and CentOs7

I want to establish connection via putty (serial connection) using UC232a adapter connected to null modem cable, connected to mini-serial-to-DB9 adapter and then to another PC with CentOS 7. First of ...
wpcpremium80's user avatar
2 votes
0 answers
297 views

How to get duplicate boot output on tty and serial console with systemd

In el6 with console=tty0 console=ttyS0,115200 in the kernel cmdline I would get sysvinit and kernel printk output in both the AWS system log and the instance screenshot. Example showing both printk ...
linux_sa's user avatar
  • 181
3 votes
1 answer
2k views

Some characters get lost when pasting large amounts of text into serial console

When pasting large amounts of text into a serial console like screen or minicom, some characters get lost and are not being transmitted.
finefoot's user avatar
  • 3,010
0 votes
2 answers
1k views

How to set "character tx delay" in GNU screen? (Like in minicom)

Minicom has this useful setting called "character tx delay": Is there a setting like this for GNU screen, too?
finefoot's user avatar
  • 3,010
1 vote
1 answer
419 views

find where USB 3.0 device attached

I would like to read a serial input (as for example here) in linux command line but I am not able to find out the attached device (Arduino) path. I can identify the device: # lsusb Bus 005 Device 001: ...
Kube Kubow's user avatar
1 vote
1 answer
238 views

syslinux output duplicated in QEMU serial console

Any idea why syslinux output is duplicated in QEMU serial console? SeaBIOS (version rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org) iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+3FF8F290+3FEEF290 ...
Jiri B's user avatar
  • 541
0 votes
2 answers
269 views

Stabilizing serial device names across reboots for serial console

I have an embedded Linux system with 2 built-in serial ports, and a PCI board that adds 8 more. The kernel enumerates the devices in a way that the port numbers end up getting interleaved, for ...
rgov's user avatar
  • 213
1 vote
0 answers
453 views

Minicom - How do I store the newline delay setting?

In Minicom, I prefer to change my Newline tx delay (ms) setting via CTRL-A T to incorporate some delay between newlines, usually 100ms. That way there is a delay when I am pasting something into a ...
joeshmo's user avatar
  • 15
1 vote
0 answers
171 views

Does kernel boot support serial redirection at very high speeds?

I have a UART that is displayed in a Linux boot log as: AMDI0020:01: ttyS5 at MMIO 0xfedca000 (irq = 4, base_baud = 3000000) is a 16550A I want to enable Linux kernel boot log to this UART port. To ...
kostr22's user avatar
  • 216
2 votes
1 answer
984 views

Is it possible to set serial speed for an early kernel boot log to a MMIO UART?

I have a UART that is displayed in a Linux boot log as: AMDI0020:01: ttyS5 at MMIO 0xfedca000 (irq = 4, base_baud = 3000000) is a 16550A I want to enable Linux kernel boot log to this UART port. To ...
kostr22's user avatar
  • 216
2 votes
0 answers
323 views

How to redirect GRUB2 output to a MMIO serial UART?

Is it possible to redirect GRUB2 output to a MMIO serial UART? For example I have a UART that is displayed in a Linux boot log as: AMDI0020:01: ttyS5 at MMIO 0xfedca000 (irq = 4, base_baud = 3000000) ...
kostr22's user avatar
  • 216
1 vote
1 answer
280 views

How to know the end of an ANSI control code?

I'm working on code for a serial terminal and I'm implementing the ANSI escape codes for moving around the cursor, clearing the screen, etc, and I am curious how to know which to use since there doesn'...
Gregory's user avatar
  • 53
1 vote
1 answer
851 views

How do I host a shell for a serial terminal?

I am building a dumb terminal with an arduino and I can now see the output of serial connections. How do I get a login/shell? I have tried screen /dev/ttyACM0 and that lets me type on the host ...
Gregory's user avatar
  • 53
0 votes
1 answer
608 views

Serial device ttyS0 is missing after configuring BIOS for console redirect

I am running Alpine Linux on a device on which I was making use of a serial console configured on /dev/ttyS0 to login. I recently enabled console redirection in my BIOS so that I could use the same ...
rgov's user avatar
  • 213
0 votes
0 answers
111 views

Having a shell with console connection without using the physical port in Linux system

A program starts when you are connected to Linux by console port. Otherwise, it refuses to start. I have to connect to my server remotely by SSH connection. I'm looking for a way to do something to ...
A.A's user avatar
  • 137
1 vote
0 answers
119 views

Key mapping on a physical terminal (Teleray 1060) when using getty

I have an old physical terminal (Teleray 1060) that I am attempting to use as a Linux terminal using getty. I have started a login session just fine. However, my terminal lacks an enter key, having ...
carlWheezer's user avatar
0 votes
1 answer
490 views

reset command over serial connection setting clocal to -clocal

I have a connection from my debian computer to a device with debian linux on it. If I type the reset command on the serial commandline the clocal will be set to -clocal. I search the internet why, but ...
svanschu's user avatar
1 vote
1 answer
869 views

How can I encrypt serial console?

I've my headless linux box configured with a serial console. /etc/default/grub: GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200" GRUB_TERMINAL="console serial" ...
codechimp's user avatar
  • 207
0 votes
0 answers
142 views

What termios settings cause endpoint to get garbled serial?

I have two endpoints. One is Windows Subsystem for Linux (Ubuntu) and the other is a small AR9331 router (running OpenWRT and has 16550 chip). They are connected over a USB-to-Serial connection. ...
user_ABCD's user avatar
  • 143
0 votes
0 answers
310 views

/dev/ttyS0 doesn't give back prompt after mount

I created a file system and after the mount command i don't get back the prompt in serial port. I connected to the system also via SSH and i see the mount has been finished. the serial port continue ...
Yonatan Amir's user avatar
3 votes
4 answers
7k views

How to store serial console output to a file locally, without a serial cable

I am running embedded Linux and my command line has console=/dev/ttyO0,.... I have terminal program connected to this UART and can see everything produced by the system. Now, when running in the field,...
leonp's user avatar
  • 111