Skip to contentSkip to conversation

New: raspberry pi 3 default build seem broken

Buildroot bugzilla at busybox.net 1 participant 10 messages Aug 25, 2016 – Oct 15, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9196

Bug ID: 9196
Summary: raspberry pi 3 default build seem broken
Product: buildroot
Version: 2016.05
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: mikhail_tchernychev at yahoo.com
CC: buildroot at uclibc.org
Target Milestone: ---

Created attachment 6626
--> https://bugs.busybox.net/attachment.cgi?id=6626&action=edit
config file

Hi,

I was able to compile build root for RPi 3 default configuration and it apparently boots but when I enter login "root" and blank password id does allow me to login. So far whatever I did I was not able to login, even
I specified "root" password in the configuration. My .config file is
attached.

Also I tried to compile systemd for RPi3 but I even did not get login screen (I had to disable post-build script because it was not finding inittab)

I am willing to troubleshoot, but don't know how :(

thank you

Mikhail

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

https://bugs.busybox.net/show_bug.cgi?id=9196

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Peter Korsgaard <[email protected]> ---
I presume you mean does NOT allow you to login? On what interface are you trying to login on? HDMI/keyboard or serial?

Thanks for the post-build report. I have now fixed it to work correctly when systemd/no-init is used:

https://git.buildroot.net/buildroot/commit/?id=720b9095a6a9fb23c7a2d7d3e4dabbe6b5299b12

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #2 from Mikhail <[email protected]> --- Yes sorry I could not log with HDMI/keyboard. However I learn that for RP3 to use serial line blue tooth needs to be disabled; I used debian stock image and at first could not login via serial, showed garbage characters along with some valid ones. After I disabled BT in config.txt stock image worked on serial line.

The same trick with buildroot image did not work.

Regarding systemd I build it just by removing the script. It boots but getty gets time out 1 m 30 sec, no login prompt is shown.

It is similar to issue described here:

http://buildroot-busybox.2317881.n4.nabble.com/systemd-not-working-properly-td82549.html

But on HDMI/keyboard.

I will reproduce it tonight and send a better report.

Thank you!

Mikhail

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #4 from Mikhail <[email protected]> --- Here is better report (I think)

This is what I did (latest version)

git pull

make clean

make xconfig raspberrypi3_defconfig

For some reason, it does not show RPi scripts
So I exit (saving) and do it again:

make xconfig

Now RPi scripts in place.

make

OK. write to SD card.

Use RPi3 with display and keyboard attached.

Boots fine.

Welcome to Buildroot

buildroot login:

type: root

Password:

Just press enter.

Shows again:

Password:

press enter

Login timeout after 60 seconds.

No way it let me log in.

I attached latest . config

I hope it helps

I am going to make changes in config to use systemd and submit another comment.

Best Regards
Mikhail

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #5 from Mikhail <[email protected]> --- If buildroot is compiled for systemd, on HDMI console shown

[TIME] Timed out for device dev-console.device [DEPEND] Dependency failed for Serial Getty on console

There is no login prompt.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #6 from Peter Seiderer <[email protected]> ---
Tested with buildroot git d4db4277ffbd1fae478ba748c626eddc7c220e67 (including [1]).

With bare raspberrypi3_defconfig login via serial and login via hdmi/usb-keyboard
is possible.

With raspberrypi3_defconfig with change to glibc/systemd serial login works out of the box.

For hdmi/usb-keyboard (tty1) login the following link was necessary (as advised in [2]):

ln -sf /usr/lib/systemd/system/getty at .service /etc/systemd/system/getty.target.wants/getty at tty1.service

Additional he file /etc/systemd/system/getty at .service.d/nodisallocate.conf to avoid clearing the console.

[1]
https://git.buildroot.net/buildroot/commit/?id=1e03cc2290f98fc7434254d2abd9afd504de8360

[2] https://wiki.archlinux.org/index.php/Systemd_FAQ

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #7 from Floris Bos <[email protected]> ---

Quoted 2 lines

With raspberrypi3_defconfig with change to glibc/systemd serial login works out of the box.

That could be thanks to systemd's behavior of auto-magically spawning getty's on serial consoles though.

https://www.freedesktop.org/software/systemd/man/systemd-getty-generator.html

Rather than the symlink buildroot created working correctly.

Quoted 4 lines

For hdmi/usb-keyboard (tty1) login the following link was necessary (as advised in [2]):

ln -sf /usr/lib/systemd/system/getty at .service >/etc/systemd/system/getty.target.wants/getty at tty1.service

Alternative fix: https://patchwork.ozlabs.org/patch/668134/

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

--- Comment #8 from Mikhail <[email protected]> --- Hi,

I did not try systemd, but default build for rpi3 now does not have these problems, as well compiled with eudev. I used development buildroot.

Thank you for fixing,

Best Regards
Mikhail

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 9196] raspberry pi 3 default build seem broken

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9196

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Thomas Petazzoni <[email protected]> --- Bug reporter says the problem is fixed. Thanks everyone!

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.