On 21 September 2014 19:16, Luc Verhaegen <[email protected]> wrote:
> On Sun, Sep 21, 2014 at 04:16:21PM +0200, Paul Kocialkowski wrote:
>> > UART0 with the default pinmux can never lead to a working UART on A13,
>> > as these pins are not available on the A13 package. When the A13 based
>> > device has its accessible UART on UART1, then the UART0 setting does not
>> > hurt, it just does not give you a working early UART, but that does not
>> > prohibit the system from booting. When U-Boot has been set to use
>> > FEL/SDCON, then the UART0 pinmux will have been set to sd pins, and then
>> > this setting becomes valid again.
>>
>> Actually, this makes my Ampe A76 (A13) device hang (nothing at all on
>> UART, LCD doesn't light up, etc). I suppose that setting the debug UART
>> to UART0 does hurt in my case.
>>
>> Are there known examples where CONFIG_SW_DEBUG_UART=1 causes a similar
>> issue? If so, I don't see any easy solution. It is obviously way too
>> early to read script.bin's uart_debug_port.
>
> Crap.
>
> Let me see if i can work some heuristics into this: we assume that
> u-boot set up a debug uart correctly, and then use that one.
>
> Luc Verhaegen.
>

What does the device actually use for debug port?

The fex file in sunxi-boards says:

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PG03<4><1><default><default>
uart_debug_rx = port:PG04<4><1><default><default>

[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB19<2><1><default><default>
uart_rx = port:PB20<2><1><default><default>

[uart_para1]
uart_used = 1
uart_port = 1
uart_type = 2
uart_tx = port:PG03<4><1><default><default>
uart_rx = port:PG04<4><1><default><default>

which is inconsistent.

uboot could presumably include the debug uart specification it set up
in the kernel commandline of the default environment but this will not
work with customized environment or boot.scr

Are the unused uart1 lines muxed to PE by default? These are
supposedly connected to camera on Ampe. Maybe setting up all the uarts
in u-boot just in case would work? We do not have a fex file that uses
PE for uart so far.

Actually this setting is bogus in the inet_86vs file as well. The uart
should be probably PB19/PB20 or empty in the fex.

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to