Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[term] No echo output on serial port when using lua and panic_kb #234

Open
aenrbes opened this issue Nov 18, 2024 · 1 comment
Open

[term] No echo output on serial port when using lua and panic_kb #234

aenrbes opened this issue Nov 18, 2024 · 1 comment
Labels

Comments

@aenrbes
Copy link
Contributor

aenrbes commented Nov 18, 2024

Hi @vvaltchev

When boot tilck with "-sercon" (whether it's riscv64 or i386), lua and panic_kb can read serial input, but there is no echo on the serial port.
I think the reason for this problem may have something to do with some of the presupposition of the tty subsystem, but this part code is a little complicated for me to understand at the moment.

lua works, it can read comand (print("hello!")) from serial input, but no echo on serial port
image

same problem using cat
image

I've observed so far that serial port is treated differently, at least in the tty_keypress_echo function:

static void tty_keypress_echo(struct tty *t, char c)
{
   struct termios *const c_term = &t->c_term;

   if (t->serial_port_fwd)
      return;

...
}
@aenrbes aenrbes added the bug label Nov 18, 2024
@aenrbes aenrbes changed the title [term] No echo output in lua and panic_kb [term] No echo output on serial port when using lua and panic_kb Nov 18, 2024
@vvaltchev
Copy link
Owner

Thanks for reporting this. I agree that it has nothing to do with RISCV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants