PINE64
Serial console using usb2serial adapter? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166)
+--- Forum: Linux on Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=168)
+--- Thread: Serial console using usb2serial adapter? (/showthread.php?tid=15029)



Serial console using usb2serial adapter? - dieselnutjob - 10-04-2021

I have manjaro booting and I can interact with it using the woodpecker.

I would like to configure manjaro (or another distro if easier) to get me a console on /dev/ttyUSB0 (FTDI FT232R) and for it to be there by default on cold boot.

I found this article https://wiki.archlinux.org/title/working_with_the_serial_console but I think it relates to a normal PC that boots with grub.  I don't know how I would do this on a Quartz64.

thanks


RE: Serial console using usb2serial adapter? - dieselnutjob - 10-31-2021

I got it working
Code:
sudo systemctl enable getty@ttyUSB0.service
By default connecting at 9600 8N1 works.
Even if the USB2serial isn't present at boot, it seems to work when you do plug it in.

It also means that you can have a "normal" OS on eMMC, which doesn't have the serial console thing, and put Manjaro with the above config on a MicroSD card as a "rescue" OS.
If the normal one isn't doing what you want, turn off the box, put the microSD card in, connect a USBtoSerial->nullmodem->serialtoUSB->laptop and boot up the microSD and you have a linux console.


RE: Serial console using usb2serial adapter? - dieselnutjob - 02-06-2022

With the SLARM64 builds this can be achieved by adding a line like this to /etc/inittab:-
Code:
s2:12345:respawn:/sbin/agetty -L ttyUSB0 115200 vt100

if you want to login directly as root then add ttyUSB0 to /etc/securetty