[U-Boot] question: multiple serial

Graeme Russ graeme.russ at gmail.com
Sun Feb 27 22:40:11 CET 2011


On Mon, Feb 28, 2011 at 5:27 AM, ran shalit <ranshalit at gmail.com> wrote:
>
>
>
> Stefano Babic wrote:
>>
>> On 02/24/2011 09:53 PM, Ran Shalit wrote:
>>> Hello,
>>>
>>> I try to understand what is the right way in U-Boot to configure multiple
>>> serials.
>>
>> That is correct.
>>
>>> I use in my board more 3 UART's , one of them is the console.
>>> Should I define config_serial_multi ?
>>
>> Yes
>>
>>> when I did try to do so, I got
>>> "#error No default console" though UART2 is defined as console. Could it
>>> be
>>> that da850evm does not support configuration of multiple serials ?
>>
>> The da850evm uses the NS16550 driver, and multiple uarts are supported.
>> It seems to me you have not set CONFIG_CONS_INDEX in your config file.
>>
>> Best regards,
>> Stefano Babic
>>
>> --
>> =====================================================================
>> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
>> =====================================================================
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
>>
>
> Hello Stafno,
>
> Thank you for the reply.
> The strange thing is that although the OMAP L138 have the ability for using
> more then one UART, it seems that in the u-boot, it is not well supported:
> Only if I add in /common/serial.c the following line:
> line 45: || defined (CONFIG_MACH_DAVINCI_DA850EVM), and same include in
> /common/serial.h
> then compiler error is solved. it is as if this file support several cpu's
> but the OMAP is not one of them. Is It correct to add this flags in order to
> support multiple serials in OMAP L138 EVM ? I tried to ask in TI forum, but
> got no reply yet.
>

That particular file, as well as /drivers/serial/serial.c (which look very
ns16550 UART specific) have always annoyed me :)

I had the same trouble getting serial to work properly, trying to figure
out how the whole serial architecture fits together

Regards,

Graeme


More information about the U-Boot mailing list