Skip to main content
7 votes
Accepted

How to enable the second console to a FreeBSD guest running in bhyve?

The solution is to modify /etc/ttys on the guest. On amd64, it has the following defaults: # # $FreeBSD: head/sbin/init/ttys.amd64 338454 2018-09-04 15:48:13Z brd $ # @(#)ttys 5.1 (Berkeley) 4/17/...
Mateusz Piotrowski's user avatar
7 votes
Accepted

What are the implications of setting the baud rate of a terminal from userspace?

It looks like you might be a bit confused about how this all works. First, /dev/ttyACM0 does not represent the USB link, or even the USB endpoint for whatever serial adapter you have connected, it ...
Austin Hemmelgarn's user avatar
6 votes

Retrieve file over serial without kermit and lrzsz

Summarizing above posts i found something like this: Sending. Start receiving on target: cat | base64 -d > filetotarget.bin Exit minicom with Ctrl-A + Q and then run on host machine: cat ...
Serg Stetsuk's user avatar
6 votes
Accepted

Retrieve file over serial without kermit and lrzsz

Finally found out that I was issuing the wrong command on receiver's side. Receive command shall be : cat < /dev/ttyUSB0 > file_b64 Summary To receive from remote : Host side ...
Arkaik's user avatar
  • 1,198
3 votes

How to mirror serial output ttyS0 to the HDMI /dev/dri/card0?

Specify console=tty0 in the kernel command line to have it go to the framebuffer console (the compiled-in default is likely set to console=ttyS0). This won't use DRI directly; rather it will use the ...
grawity's user avatar
  • 15.5k
3 votes
Accepted

Bash script - Watch serial-port for specific string, then send back commands

echo -n "1" >&5 did the trick for me. Seems like uboot doesn´t want to get a newline, otherwise it behaves weird. Thanks a lot for your help! Here is the "complete" script, maybe it is ...
some1's user avatar
  • 61
3 votes

Failing to Enable UARTs on Beaglebone Black

The following works for Debian 9.9 with Kernel 4.14 (also worked with Debian 8.3, did not work with Debian 9.3). Upon booting into it you'll see the /dev/ttyO1,O2,O4 files, but they won't work until ...
patrick_langan's user avatar
2 votes
Accepted

How can I determine if a latency is due to a driver or the scheduler?

strace is not likely to give you the necessary level of detail; you will probably need SystemTap, sysdig, or similar kernel-level debugging to better show when what is happening. For example with ...
thrig's user avatar
  • 35.8k
2 votes
Accepted

How to use UART pins on Orange Pi zero?

My config on Orange Pi Zero for UART on mainline kernel: overlay_prefix=sun8i-h3 overlays=usbhost2 usbhost3 uart1 uart2 Both UARTs work fine. $ uname -a Linux orangepizero 4.13.16-sunxi #20 SMP Fri ...
Dmitry's user avatar
  • 136
2 votes

Failing to Enable UARTs on Beaglebone Black

I can vouch for Debian 10 using this method: I was able to enable all 4.5 UARTs automatically on boot-up. Unlike Debian 9 and older versions, the uEnv.txt is present in /boot/. Back up this file. ...
Pe Dro's user avatar
  • 1,519
1 vote

Writing additional kernel layer on UART driver

What you describe exists: PPP is supported by the linux kernel out of the box, as is the HDLC framing you'd use over serial lines. For info how to make that work with pppd negotiating the connection ...
Marcus Müller's user avatar
1 vote

How to integrate radio modules to Linux networking stack

The PPP protocol was developed to provide a data link layer over a serial connection. In Linux, the PPP protocol is implemented by the ppp package, which is almost certainly available as a package for ...
larsks's user avatar
  • 38.5k
1 vote

Manually installing drivers on Linux Mint

From the readme file: Installation ------------ * Compile and install the common usb serial driver module # make # insmod ./xr_usb_serial_common.ko Which means: Open a command prompt; ...
tsc_chazz's user avatar
  • 233
1 vote
Accepted

The linux boot message in dmesg doesn't output to uart

Find the answer in Xilinx forum. It is indeed a problem with the console. https://forums.xilinx.com/t5/Embedded-Linux/quot-Warning-unable-to-open-an-initial-console-quot-Under/m-p/1117002 It seems ...
Jazz Chou's user avatar
1 vote

How are the TTY and serial_core related?

I now, after a long time reading, analysing and reading code again, came to understand the code which is very difficult to understand given the lack of comments. The goal of all this is to create a ...
Mölp's user avatar
  • 31
1 vote

Raspberry Pi UART not working

Rx should be connected to Tx, not Rx: RPi: Rx Tx | | \ / x / \ | | Laptop: Rx Tx
user196499's user avatar
1 vote

Is there a limit to the number of FTDI connections on Debian 9?

yes This is a limitation of the Intel xHCI chipset used on the motherboard. Specifically, most of these chips limit the number of "devices" to 32. But a single physical thing like a camera may ...
Alex Shroyer's user avatar
1 vote

Read Write Serial Device not Working in Shell Script

Ok, I don't know why, but after I changed to use bash shell, the script works. The default shell is dash.
zhangwei's user avatar
1 vote

Debian not recognizing my ttyS0 / console redirection not working

Soon I realized that my ttyS0 is somehow not working correctly. Starting to debug my physical serial interfaces I just couldn't find a way to get this to work. In my case, on a fitlet2 with Atom ...
gobenji's user avatar
  • 251
1 vote

Hardware controlled RTS on tty

The problem was that the device tree did not correctly configure the RTS and CTS pins for use with the relevant UART. The device tree should contain something like: &uart1 { pinctrl-names = &...
user907323's user avatar
1 vote

Failing to Enable UARTs on Beaglebone Black

After trying everything listed in the "Long and Detailed Question", I still had no luck initializing my UART ports. My problem ended up being that my BeagleBone Black (BBB) came preflashed with Debian ...
TSmith's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible