On Thu, Feb 28, 2019 at 12:39:00PM +0100, Tomaz Solc wrote: > This fixes the following issues in the debug UART config for Raspberry > Pi boards: > > When debug UART support is enabled, only R.Pi 1 or 2/3 boards > can be supported in a single build. However, this limitation was not > enforced in the "boards to be built" menu. E.g. it was possible to > build a R.Pi 3 image with (non-functional) debug UART support for R.Pi > 1. > > In contrast to other architectures, R.Pi debug UART config was placed > under the "System Type" menu, not under the "Debugging -> low-level > debugging port". This made this setting easy to miss when enabling low > level debug mesages. > --- > +config DEBUG_RPI1_UART > + bool "RaspberryPi 1 low-level debug UART" > + depends on ARCH_BCM283X > + help > + Say Y here if you want low-level debugging support on > + RaspberryPi 1 boards. > + > + Selecting this also limits available choices in "boards to > + be built" under "system type". If you want to build images > + that work on both RaspberryPi 1 and 2/3, you need to deselect > + low-level debug. The idea behind debug_ll is that when you enable it the resulting image will only work on the system you chose the UART for. It's the same in the Kernel and we should probably adopt the text for barebox: Note that selecting this option will limit the kernel to a single UART definition, as specified below. Attempting to boot the kernel image on a different platform *will not work*, so this option should not be enabled for kernels that are intended to be portable. So that said, even with a debug UART enabled for Rpi1 we should still allow to build for Rpi2/3 although we know it won't work there. The reason is you might get failures only when multiple SoCs are selected. In that case you only want to enable early debugging support (for the SoC you are currently testing on) without changing other things in the config which might make your errors disappear. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox