[PATCH 1/3] ARM: at91: microchip-ksz9477-evb: support PBL console

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jun 2 03:29:17 PDT 2021


Hello Oleksij,

On 02.06.21 12:25, Ahmad Fatoum wrote:
> First stage PBL does FAT file system accesses, so there is more that
> could go wrong compared with second stage PBL that just does extraction.
> 
> Enable PBL console to get some error messages out if things don't work
> out.

I don't have the HW handy to test this. Would be great if you could
boot this up once to see nothing broke. Thanks!

> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  arch/arm/boards/microchip-ksz9477-evb/lowlevel.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c b/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
> index 93ae4819750c..7c5a69af05de 100644
> --- a/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
> +++ b/arch/arm/boards/microchip-ksz9477-evb/lowlevel.c
> @@ -41,8 +41,9 @@ SAMA5_ENTRY_FUNCTION(start_sama5d3_xplained_ung8071_xload_mmc, r4)
>  
>  	sama5d3_udelay_init(MASTER_CLOCK);
>  	sama5d3_xplained_ddrconf();
> -	if (IS_ENABLED(CONFIG_DEBUG_LL))
> -		dbgu_init();
> +
> +	dbgu_init();
> +	pbl_set_putc(at91_dbgu_putc, IOMEM(AT91_BASE_DBGU1));
>  
>  	sama5d3_atmci_start_image(0, MASTER_CLOCK, 0);
>  }
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list