Bug 11111

Summary: raspberry pi 3 b+: missing BSP for 64-bit kernel
Product: buildroot Reporter: nospam+busybox
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: buildroot
Priority: P5    
Version: 2018.05   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description nospam+busybox 2018-06-24 19:45:53 UTC
I have been trying to get my RPi3 B+ running with Buildroot, using configs/raspberrypi3_64_defconfig from the 2018.05 as a starting basis. I had to make the following changes to get my Pi to boot to a usable HDMI console + USB keyboard:

1. Updated BR2_LINUX_KERNEL_INTREE_DTS_NAME to also build "broadcom/bcm2710-rpi-3-b-plus'. This is needed because the built-in USB Ethernet device is handled by the lan78xx driver.[1]

2. At least for me, the generated output/target/etc/inittab was incorrect. The file ran getty on both 'console' and 'tty1', but both 'console' and 'tty1' referred to my HDMI/USB console. As a result, keystrokes were duplicated and output messages were duplicated. I fixed this by setting BR2_TARGET_GENERIC_GETTY_PORT to "tty1", but I suspect my hack is not sufficient.

3. Changed board/raspberrypi/post-image.sh to set 'arm_64bit' instead of 'arm_control'.[2]

I would like for someone else with a RPi3+ to try out these changes before I formally submit patches. Thanks.

References:

[1] https://patchwork.ozlabs.org/cover/898035/
[2] https://www.raspberrypi.org/documentation/configuration/config-txt/misc.md
Comment 1 Peter Seiderer 2018-06-25 21:15:55 UTC
(In reply to nospam+busybox from comment #0)

Did try the raspberrypi3_64_defconfig (on buildroot-git master) on rpi3b (no plus), did work out of the box with functional login on HDMI and serial console.

The three changes which are post 2018.5 are:

- configs/raspberrypi*: bump kernel version (from 4.14.29 to 4.15.39), see [1]
- configs/raspberrypi3_64_defconfig: add support for rpi3b+, see [2]
- package/rpi-firmware: bump version, see [3]

[1] https://git.buildroot.net/buildroot/commit/configs/raspberrypi3_64_defconfig?id=b677b490f7055963ac1f5a15856a6eab904ccbc7

[2] https://git.buildroot.net/buildroot/commit/configs/raspberrypi3_64_defconfig?id=fbb45f6d7f937e503900a04ff920320c411d8f34

[3] https://git.buildroot.net/buildroot/commit/package/rpi-firmware?id=975fff568f9b5ea99d02b1c24d434ee4cb490864

So no need for 1. and 2.

Suggestion 3. works (as expected), patch welcome ;-)

Regards,
Peter