Tiny Core Base > Micro Core

Serail Console

(1/2) > >>

Ali Demir:
Hi,

I'm trying to contact Serial0. When I try the following settings, the entries appear but I cannot get the outputs:


--- Code: (bash) ---linux /boot/vmlinuz loglevel=3 user=tc console=tty0 console=ttyS0,115200 noembed nomodeset tce=sda1 opt=sda1 home=sda1 restore=sda1
--- End code ---


--- Code: (bash) ---echo "console=ttyS0,115200" >> /mnt/sda1/boot/cmdline.txt
sudo sh -c 'echo "enable_uart=1" >> /mnt/sda1/boot/config.txt
--- End code ---

This is what it looks like when I send data:
"pwd\n"


--- Code: (bash) ---pwd
--- End code ---

The output I expected:
"pwd\n"


--- Code: (bash) ---/home/tc
tc@box:~$
--- End code ---

I may not have been able to fully explain. I want to contact serial0 without UI.

Juanito:
What version of tinycore are you using and on which architecture?

Ali Demir:
Tiny Core Version: 13.1
Linux box 5.15.10-tinycore #622 SMP Tue Dec 21 16:51:09 UTC 2021 i686 GNU/Linux


I added an attachment for the example, the serial console stops responding when the boot process is finished. I can enter data into the Serial console, but these won't run.

curaga:
I think this has been covered on the forum before, you need to edit inittab to launch a login shell on the serial console. Search for inittab.

Ali Demir:
I found edits about inittab, but what I did is not permanent. I make the changes and try reboot then the edits are lost.

I also tried something with grub but I can't edit it.


--- Code: (shell) ---sudo cp /etc/inittab /mnt/sda1/etc/inittab
sudo sh -c 'echo "ttyS0::respawn:/sbin/getty -L 115200 /dev/ttyS0 vt100" >> /mnt/sda1/etc/inittab
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version