Bug 12811 - bootstrap stuck and no login prompt
Summary: bootstrap stuck and no login prompt
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.02.1
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-23 10:29 UTC by cjdc
Modified: 2020-04-24 19:02 UTC (History)
1 user (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 cjdc 2020-04-23 10:29:59 UTC
Hi guys,

Setup: RPi 3 B+


with 2020.02.1, I've simply `make raspberrypi3_defconfig`, `make menuconfig` - here I've just done some basic stuff like: use glibc, use systemd init, increase the fs image size, and installed docker-cli, docker-engine and open-ssh. Then `make`


Config: https://pastebin.com/q2qx4wNq


when booting my RPi 3B+, the last message on the splash screen is "IPv6: ADDRCONF(NETDEV_UP): docker0: link is not read", and I cannot move from there. 

there's no login prompt
and if I try to SSH remotely, it asks for password...even though I've left it default (should be none)


Any ideas?
Thanks in advance
Comment 1 Peter Seiderer 2020-04-23 19:51:14 UTC
- you switched the init system to systemd, needs a change of the kernel commandline (otherwise your get two gettys running on the serial console and none on the HDMI console):

  diff -u cmdline.txt_orig cmdline.txt
  --- cmdline.txt_orig
  +++ cmdline.txt
  @@ -1 +1 @@
  -root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200
  +root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 console=tty1

- the default /etc/ssh/sshd_config contains the following lines:

  #PermitRootLogin prohibit-password
  #PermitEmptyPasswords no

your have to change it too

  PermitRootLogin yes
  PermitEmptyPasswords yes

to enable ssh root access without a password (make sure your rpi is only reachable via a private network)...
Comment 2 cjdc 2020-04-24 06:55:01 UTC
Thanks. I naively assumed such changed would be done automatically.

It worked for the cmdline.txt.

For the openssh however, I assume that is a change that can only be done with post-scripts?
Comment 3 Peter Seiderer 2020-04-24 19:02:06 UTC
> Thanks. I naively assumed such changed would be done automatically.

No..., buildroot is not about automatically customizing every possible selection of features..., just a starting point for your own project (see below and [1] for customize support)...

> It worked for the cmdline.txt.

Good news...

> For the openssh however, I assume that is a change that can only be done with post-scripts?

Yes, one of the many possibilities to customize your project, see [1] for alternatives...

Closing the bug (as it is not a bug, but a feature ;-)), feel free to turn to the mailing list for further questions/support...

[1] https://buildroot.org/downloads/manual/manual.html#rootfs-custom