Installation from serial console
#8
Months later I finally found out were the problems come from, and it was a mix of hardware and software.

The first thing is that my beloved SanDisk Extreme Pro A2 has failed on me, I finally did a check with the f3 software that confirmed the hardware failure. I replaced with an other one, did the usual :
Code:
dd if=whatever.img of=/dev/mmcblk0

I plug the serial adapter to my computer, and... random character appears on my terminal.

So the second thing was to learn how Debian handle serial tty. It appears that the USB adapter are ruled by the file /lib/systemd/system/serial-getty@.service that configure and open tty port.

I supposed that the terminal set by this file was not the good for the rockpro. And indeed, I replaced the line :

Code:
ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,57600,38400,9600 %I $TERM

By

Code:
ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,57600,38400,9600 %I linux

And save the file to /etc/systemd/system/serial-getty@.service .

I did the mandatory systemd daemon-reload and then systemctl enable --now serial-getty@ttyUSB0.service

I plugged back the USB adapter and it works !
I finally installed u-boot from a serial console to my rockpro.
Thanks for the suggestions
  Reply


Messages In This Thread
Installation from serial console - by oieza67 - 10-29-2023, 03:16 AM
RE: Installation from serial console - by shulamy - 10-29-2023, 05:46 AM
RE: Installation from serial console - by oieza67 - 10-29-2023, 09:48 AM
RE: Installation from serial console - by wdt - 10-30-2023, 09:48 AM
RE: Installation from serial console - by oieza67 - 10-31-2023, 06:53 AM
RE: Installation from serial console - by wdt - 10-31-2023, 09:08 AM
RE: Installation from serial console - by oieza67 - 01-06-2024, 11:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Article] Star64 JH7110 + NuttX RTOS: RISC-V PLIC Interrupts and Serial I/O lupyuen 0 977 08-01-2023, 06:48 PM
Last Post: lupyuen
  Serial Connection via SOcket CAT dustfinger 0 2,094 05-21-2020, 09:16 AM
Last Post: dustfinger

Forum Jump:


Users browsing this thread: 2 Guest(s)