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

Login prompt broken on tty1 #14

Open
IvoKara opened this issue Sep 7, 2024 · 4 comments
Open

Login prompt broken on tty1 #14

IvoKara opened this issue Sep 7, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@IvoKara
Copy link
Contributor

IvoKara commented Sep 7, 2024

Firstly I wanted to thank you, this project is amazing!

I have tried several ways to do this but the end result is the same.

I have successfully configured my custom distro.img image ready to be flashed on SD card.

After a successful flash, everything looks promising until I plug the SD card on my Raspberry Pi 4.

It boots without any problems until it reaches this point and it just freezes and do not proceed further:

[  OK  ] Finished systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.

I have tried several ways to flash the image:

  • With different way of flashing
    • by exporting and flashing with balenaEtcher
    • by exporting and flashing with Pi-Imager
    • by flashing directly with docker rum --rm -it ptrsr/pi-ci flash command on a linux machine
    • by flashing with dd
  • SD is not corrupted have booted the stock Raspberry Pi OS bookworm lite without problem

And the strangest thing of all is that I can ssh to my pi from another machine from the local network and everything seems ok ...?

Any clarifications would be helpful.

Tkanks!

@ptrsr
Copy link
Owner

ptrsr commented Sep 7, 2024

Hi @IvoKara , thanks for your kind words and interest in the project!

It could be that after the login prompt is reached (on the TTY), additional services reach a "OK" state and overwrite the prompt. Could you try typing something to see if the prompt shows up again?

Thanks,
R.

@IvoKara
Copy link
Contributor Author

IvoKara commented Sep 10, 2024

Yep, what I actually did and worked is to copy the override.conf from the [email protected] configuration file and put it inside [email protected] directory in /etc/systemd/system

cd /etc/systemd/system/
cp  [email protected]/override.conf [email protected]/override.conf

As I believe that you set up /dev/ttyAMA0 in order to be able to log in into the VM from the emulator.

In fact everything was working, nothing was freezed or stuck, because when my Raspberry Pi booted I pressed Ctrl + Alt + F3 which opened /dev/tty3 and then I was able to log in.

Maybe /dev/tty1 was not properly configured or have some problems so that it stops to the provided log message and do not proceed with anything.

@ptrsr
Copy link
Owner

ptrsr commented Sep 11, 2024

Aaah you're right. When upgrading to bookworm, I noticed that the login prompt was changed from ttyAMA0 to tty1. For the emulator (QEMU) this is fine, but for the real Pi this may not work anymore with the override.

I'll have a look in the next couple weeks, thanks for pointing this out!

@ptrsr ptrsr added the bug Something isn't working label Sep 21, 2024
@ptrsr
Copy link
Owner

ptrsr commented Sep 21, 2024

Story

Fix the login prompt (getty) on tty1.

Test

GIVEN the default distro image included in PI-CI
WHEN the default image is flashed on an SD card and started using a physical RPi
THEN the user should be able to log in using the default TTY (tty1).

Current behavior

  • TODO (needs further testing)

@ptrsr ptrsr changed the title Stuck on boot step systemd-update-utmp-runlevel.service on Pi 4 Login prompt broken on tty1 Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants