public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] question: multiple serial
@ 2011-02-24 20:53 Ran Shalit
  2011-02-25  6:38 ` Albert ARIBAUD
  2011-02-25  7:40 ` Stefano Babic
  0 siblings, 2 replies; 7+ messages in thread
From: Ran Shalit @ 2011-02-24 20:53 UTC (permalink / raw)
  To: u-boot

Hello,

I try to understand what is the right way in U-Boot to configure multiple
serials. I use in my board more 3 UART's , one of them is the console.
Should I define config_serial_multi ? 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 ?

Thank you very much,

Ran

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-24 20:53 [U-Boot] question: multiple serial Ran Shalit
@ 2011-02-25  6:38 ` Albert ARIBAUD
  2011-02-25  7:40 ` Stefano Babic
  1 sibling, 0 replies; 7+ messages in thread
From: Albert ARIBAUD @ 2011-02-25  6:38 UTC (permalink / raw)
  To: u-boot

Hi Ran,

Le 24/02/2011 21:53, Ran Shalit a ?crit :
> Hello,
>
> I try to understand what is the right way in U-Boot to configure multiple
> serials. I use in my board more 3 UART's , one of them is the console.
> Should I define config_serial_multi ? 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 simplest way I see is to inspect the code and trace back from the 
error message to see what exactly triggers this error and why.

One possible way would be to take the command line that results in this 
error and remplace compiler options to just output preprocessed source 
code instead of object code; you'll be able to see if the .h that 
contains the default console is included, and what parts of it are 
compiled exactly.

> Thank you very much,
>
> Ran

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-24 20:53 [U-Boot] question: multiple serial Ran Shalit
  2011-02-25  6:38 ` Albert ARIBAUD
@ 2011-02-25  7:40 ` Stefano Babic
  2011-02-27 18:27   ` ran shalit
  1 sibling, 1 reply; 7+ messages in thread
From: Stefano Babic @ 2011-02-25  7:40 UTC (permalink / raw)
  To: u-boot

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
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-25  7:40 ` Stefano Babic
@ 2011-02-27 18:27   ` ran shalit
  2011-02-27 21:34     ` Stefano Babic
  2011-02-27 21:40     ` Graeme Russ
  0 siblings, 2 replies; 7+ messages in thread
From: ran shalit @ 2011-02-27 18:27 UTC (permalink / raw)
  To: u-boot




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.

Thank you very much,

Ran
-- 
View this message in context: http://old.nabble.com/-U-Boot--question%3A-multiple-serial-tp31007796p31026374.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-27 18:27   ` ran shalit
@ 2011-02-27 21:34     ` Stefano Babic
  2011-02-28  6:11       ` ran shalit
  2011-02-27 21:40     ` Graeme Russ
  1 sibling, 1 reply; 7+ messages in thread
From: Stefano Babic @ 2011-02-27 21:34 UTC (permalink / raw)
  To: u-boot

On 02/27/2011 07:27 PM, ran shalit wrote:

> 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.

I see. Definitely, there is a check on processor tape before checking
the serial driver. As flag you should add CONFIG_SOC_DA8XX instead of
CONFIG_MACH_DAVINCI_DA850EVM, as the last one depends on board, and the
availability of the NS16550 depends on processor.

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
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-27 18:27   ` ran shalit
  2011-02-27 21:34     ` Stefano Babic
@ 2011-02-27 21:40     ` Graeme Russ
  1 sibling, 0 replies; 7+ messages in thread
From: Graeme Russ @ 2011-02-27 21:40 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 28, 2011 at 5:27 AM, ran shalit <ranshalit@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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] question: multiple serial
  2011-02-27 21:34     ` Stefano Babic
@ 2011-02-28  6:11       ` ran shalit
  0 siblings, 0 replies; 7+ messages in thread
From: ran shalit @ 2011-02-28  6:11 UTC (permalink / raw)
  To: u-boot


Hi,

In the same subject of multiple serials, there is something else which I am
not sure about: All the serial use the same driver (NS16550), but in the
board h. file (da850evm.h) there is the following definition:
#define CONFIG_SYS_NS16550_CLK		clk_get(DAVINCI_UART2_CLKID)
UART2 is the console, but does it mean that the ns16550 CLK, which is used
for the other uart's too should be defined as clk_get(DAVINCI_UART2_CLKID) ?  
-- 
View this message in context: http://old.nabble.com/-U-Boot--question%3A-multiple-serial-tp31007796p31029235.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-28  6:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 20:53 [U-Boot] question: multiple serial Ran Shalit
2011-02-25  6:38 ` Albert ARIBAUD
2011-02-25  7:40 ` Stefano Babic
2011-02-27 18:27   ` ran shalit
2011-02-27 21:34     ` Stefano Babic
2011-02-28  6:11       ` ran shalit
2011-02-27 21:40     ` Graeme Russ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox