[U-Boot] U-Boot

Marek Vasut marex at denx.de
Mon Feb 12 14:59:55 UTC 2018


On 02/12/2018 03:52 PM, Mariano Coromac wrote:
> Hello, I was hoping you could help me out with something. I just have 2
> main questions. I am using a SAMA5D27 and I've managed to port
> AT91Bootloader and I'm currently on U-Boot

U-Boot SPL can bring SAMA5D2 up, you don't need the AT91 bootloader.

> 1. I am trying to use FLEXCOM1 (UART) as the main console of U-Boot but
> haven't been able to find any documentation saying where or how U-Boot
> specifies the console port.

$ git grep DEBUG_UART configs/sama5d2*
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART=y
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART_ATMEL=y
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART_BASE=0xf8020000
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART_CLOCK=82000000
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART_BOARD_INIT=y
configs/sama5d27_som1_ek_mmc_defconfig:CONFIG_DEBUG_UART_ANNOUNCE=y

would indicate there's a debug uart which you can use.

I'm adding atmel maintainer to CC and dropping dead contacts.

> 2. When U-Boot tries to boot it gives me these errors:
> 
> bind node sdio-host at a0000000
>    - attempt to match compatible string 'atmel,sama5d2-sdhci'
> No match for node 'sdio-host at a0000000'
> bind node sdio-host at b0000000
>    - attempt to match compatible string 'atmel,sama5d2-sdhci'
> No match for node 'sdio-host at b0000000'
> bind node apb
>    - attempt to match compatible string 'simple-bus'
>    - found match at 'generic_simple_bus'
> bind node pmc at f0014000
>    - attempt to match compatible string 'atmel,sama5d2-pmc'
>    - found match at 'at91-pmc'
> bind node mainck
>    - attempt to match compatible string 'atmel,at91sam9x5-clk-main'
>    - found match at 'at91sam9x5-main-osc-clk'
> bind node pllack at 0
>    - attempt to match compatible string 'atmel,sama5d3-clk-pll'
>    - found match at 'at91-plla-clk'
> bind node utmick
>    - attempt to match compatible string 'atmel,at91sam9x5-clk-utmi'
> No match for node 'utmick'
> bind node masterck
>    - attempt to match compatible string 'atmel,at91sam9x5-clk-master'
>    - found match at 'at91-master-clk'
> bind node h32mxck
>    - attempt to match compatible string 'atmel,sama5d4-clk-h32mx'
> No match for node 'h32mxck'
> bind node periph32ck
>    - attempt to match compatible string 'atmel,at91sam9x5-clk-peripheral'
>    - found match at 'sam9x5-periph-clk'
> Cannot create device named 'uart1_clk at 25' (err=-12)
> Error binding driver 'sam9x5-periph-clk': -12
> bind node periph64ck
>    - attempt to match compatible string 'atmel,at91sam9x5-clk-peripheral'
>    - found match at 'sam9x5-periph-clk'
> Error binding driver 'sam9x5-periph-clk': -12
> bind node gck
>    - attempt to match compatible string 'atmel,sama5d2-clk-generated'
> No match for node 'gck'
> Some drivers failed to bind
> Error binding driver 'at91-pmc': -12
> bind node spi at f8000000
>    - attempt to match compatible string 'atmel,at91rm9200-spi'
> No match for node 'spi at f8000000'
> bind node serial at f8038200
>    - attempt to match compatible string 'atmel,at91sam9260-usart'
>    - found match at 'serial_atmel'
> Error binding driver 'serial_atmel': -12
> bind node gpio at fc038000
>    - attempt to match compatible string 'atmel,sama5d2-gpio'
>    - found match at 'gpio_atmel_pio4'
> Error binding driver 'gpio_atmel_pio4': -12
> Some drivers failed to bind
> Error binding driver 'generic_simple_bus': -12
> Some drivers failed to bind
> Error binding driver 'generic_simple_bus': -12
> Some drivers failed to bind
> initcall sequence 26f20864 failed at call 26f073e4 (err=-12)
> ### ERROR ### Please RESET the board ###
> 
> NOTE: On my lists.c file I changed all the "dm_debug" for "dm_warn"
> because the debug uart is the only one that's responding.
> Any help or guidance would be really appreciated.

Seems like some drivers are disabled.

Which version of U-Boot do you use ?

What platform did you derive your configuration from ?

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list