Closed 5o5uk3 closed 1 year ago
That is an excellent catch. I was not aware of this. Your change is reasonable for me. You mention that this is required for all boards. Why is that, exactly? The snippet above only mentions RPi4-64.
I did only mention RPi4-64 because I did not test on other boards, so I cannot assert the problem exist for other boards. Nonetheless, based on this file: https://source.denx.de/u-boot/u-boot/-/blob/v2023.01/arch/arm/mach-bcm283x/Kconfig?ref_type=tags#L65 I am pretty sure that the following boards also have the enable_uart
requirement:
enable_uart
requirement is also dependent of UBOOT_MACHINE
value.Indeed. Based on that, it looks like pretty much all of them have some requirements on the UART configuration (including the earlier versions). Happy to consider an PR if you are looking into it.
I made a PR on master branch. If it is accepted, it would be great to if you can cherry-pick it to langdale and mickledore branches.
@5o5uk3 feel free to create MRs against those branches once gets into master.
Description
When enabling
RPI_USE_U_BOOT
inconf/local.conf
, the raspberry pi 4 does not boot (langdale
branch).Steps to reproduce the issue:
RPI_USE_U_BOOT = "1"
inconf/local.conf
fileCurrent results:
Expected results:
Howto fix:
enable_uart=1
inconfig.txt
file. The reason is explained inarch/arm/mach-bcm283x/Kconfig
from u-boot source code:Note that this requirement is also valid for other raspberry pi flavors. IMHO,
recipes-bsp/bootfiles/rpi-config_git.bb
should add a conditional statement like:Indeed, it would be a bad idea to set
ENABLE_UART = "1"
whenRPI_USE_U_BOOT
is enabled as it would also add the serial console parameter on the kernel command line which we may not want.