[U-Boot] U-Boot
Mariano Coromac
mcoromac at stsa.info
Mon Feb 12 15:13:29 UTC 2018
Oh ok.
My main problem is that I DO have debug_uart but I don't have U-Boot main
console.
I already have the configuration on my defconf for the debug UART like this:
CONFIG_DM=y
CONFIG_DM_SERIAL=y
CONFIG_DEBUG_UART=y
CONFIG_DEBUG_UART_ATMEL=y
CONFIG_DEBUG_UART_BASE=0xf8038200
CONFIG_DEBUG_UART_CLOCK=58000000
CONFIG_DEBUG_UART_BOARD_INIT=y
CONFIG_DEBUG_UART_ANNOUNCE=y
I cloned from the github repository *https://github.com/linux4sam/u-boot-at91
<https://github.com/linux4sam/u-boot-at91>*
My configuration was derived from the sama5d2_xplained board because I'm
working with a custom one.
On Mon, Feb 12, 2018 at 8:59 AM, Marek Vasut <marex at denx.de> wrote:
> 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
>
--
Mariano Coromac <https://gps.gt/>
I&D of Electronics Engineer
mcoromac at stsa.info
+502 41544712
www.gps.gt <http://facebook.com/startracksa>
More information about the U-Boot
mailing list