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

Possible issues with connecting tty / ttyS0, qemu, virtual console #277

Open
kincsescsaba opened this issue Feb 25, 2024 · 0 comments
Open

Comments

@kincsescsaba
Copy link

kincsescsaba commented Feb 25, 2024

Hi,

After successfully passing test_qemu.sh, I experience that even though I can see what I enter in the console, nothing is processed or passed to sh.

I did research and the results were confusing, I also write some minor tests to debug and get a clue about where processing fails.
Seems like a qemu error with connecting tty, handling stdin from the host.

I modified qemu-bios-console.sh as such, and this did not resolve the issue:
echo 'console=ttyS0' | $cmd

/etc/inittab has ::respawn:/bin/cttyhack /bin/sh

qemu is being run in -nographic mode.

UPDATE:
Tried this way:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -serial pty
and this works, though all messages after /init are lost, just as seen (mentioned in another ticket) at the cloud provider.

The remaining question is: is it possible and/or necessary to direct all input and output in the same terminal, where I started the whole process?

Tried also this, but this is far from perfect:
qemu-system-$ARCH -m 256M -cdrom minimal_linux_live.iso -boot d -nodefaults -display none -serial $(tty)
works, but there is no nice way to exit qemu and it ruins the terminal, some kind of cleanup is needed that I do not know how to implement

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

No branches or pull requests

1 participant