Bug 12361 - Init system (systemd) kills login on Raspberry Pi Zero
Summary: Init system (systemd) kills login on Raspberry Pi Zero
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2019.08.2
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: Peter Seiderer
URL:
Keywords:
: 12786 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-26 22:53 UTC by scaramouche
Modified: 2020-05-22 22:13 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description scaramouche 2019-11-26 22:53:25 UTC
Starting with a raspberrypi0_defconfig, then selecting 
Toolchain/C library = glibc
System configuration / Init system = systemd
the device boots normally, but the welcome message and the login are shown twice.
Trying to login with 'root', a password is then request, even if not set in the configuration.
After entering 'root' and a blank password twice, the device block and it is no more possible to continue.

Here's a piece of the bootlog:

[   13.773714] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   13.835338] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   14.074354] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   14.143280] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   14.211667] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   14.283874] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   14.347166] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   14.422866] bcm2835-codec bcm2835-codec: Loaded V4L2 isp


Welcome to Buildroot
Welcome to Buildroot
buildroot login: buildroot login: root
buildroot login: root
Password:
Password:


Thanks
Comment 1 Peter Seiderer 2019-11-27 23:05:22 UTC
Sorry, long standing inconvenience with the rpi/systemd combination, see e.g. [1], [2] for description/solution...

[1] http://lists.busybox.net/pipermail/buildroot/2016-September/172792.html
[2] https://www.raspberrypi.org/forums/viewtopic.php?t=157836
Comment 2 Thomas Petazzoni 2020-05-19 21:39:26 UTC
*** Bug 12786 has been marked as a duplicate of this bug. ***
Comment 3 Adam Duskett 2020-05-20 00:04:30 UTC
(In reply to scaramouche from comment #0)
Luckily in the intermittent, you can fix this bug by changing "console" to "ttyS0" under System configuration ---> Run a getty (login prompt) after boot ---> TTY port
Comment 4 Yann E. MORIN 2020-05-22 22:13:13 UTC
Hello,

This is suposedly fixed now with this commit that was just applied to master:

https://git.buildroot.org/buildroot/commit/?id=26c32d933eb4d841b7fbe9c1e0b61cef89665b15

Thanks for the report, and sorry for the long delay in solving this issue.

Regards,
Yann E. MORIN.