public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] change U-boot file stream  to COM2
@ 2007-08-12 15:21 Javier Grijalba
  2007-08-12 16:17 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Javier Grijalba @ 2007-08-12 15:21 UTC (permalink / raw)
  To: u-boot

Hello,
I have an PXA270 bord with U-boot version 1.1.2 (Dec 22 2005 - 09:10:28)
I want to change the file stream stdin and stdout to the serial COM port  
2, now its on COM1
I tried with

-setenv stdin serial1
-saveenv

also tried with

-setenv stdin=serial1
-saveenv

but no luck. The file stream is always COM1.
Can you gibe me a hint?
Best regards

-- 
Javier Grijalba
Javier dot Grijalba at gmail dot com

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-12 15:21 [U-Boot-Users] change U-boot file stream to COM2 Javier Grijalba
@ 2007-08-12 16:17 ` Wolfgang Denk
  2007-08-13  7:39   ` Javier Grijalba
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2007-08-12 16:17 UTC (permalink / raw)
  To: u-boot

In message <op.twycx8f1i2vpqq@localhost> you wrote:
>
> I have an PXA270 bord with U-boot version 1.1.2 (Dec 22 2005 - 09:10:28)
> I want to change the file stream stdin and stdout to the serial COM port  
> 2, now its on COM1
> I tried with
> 
> -setenv stdin serial1
> -saveenv
> 
> also tried with
> 
> -setenv stdin=serial1
> -saveenv
> 
> but no luck. The file stream is always COM1.
> Can you gibe me a hint?

As a very first step you should try finding out which I/O devices are
configured on your system. What does the "coninfo" command print?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In general, they do what you want, unless you want consistency.
                                    - Larry Wall in the perl man page

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-12 16:17 ` Wolfgang Denk
@ 2007-08-13  7:39   ` Javier Grijalba
  2007-08-13  9:42     ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Javier Grijalba @ 2007-08-13  7:39 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,
the coninfo shows this:

List of available devices:
serial   80000003 SIO stdin stdout stderr
nulldev  80000003 SIO

I suppose this is why I can?t add the second serial, how do I add the COM2  
?
Bets regards
Javier


On Sun, 12 Aug 2007 18:17:37 +0200, Wolfgang Denk <wd@denx.de> wrote:

> In message <op.twycx8f1i2vpqq@localhost> you wrote:
>>
>> I have an PXA270 bord with U-boot version 1.1.2 (Dec 22 2005 - 09:10:28)
>> I want to change the file stream stdin and stdout to the serial COM port
>> 2, now its on COM1
>> I tried with
>>
>> -setenv stdin serial1
>> -saveenv
>>
>> also tried with
>>
>> -setenv stdin=serial1
>> -saveenv
>>
>> but no luck. The file stream is always COM1.
>> Can you gibe me a hint?
>
> As a very first step you should try finding out which I/O devices are
> configured on your system. What does the "coninfo" command print?
>
> Best regards,
>
> Wolfgang Denk
>



-- 
Javier Grijalba
Javier dot Grijalba at gmail dot com

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13  7:39   ` Javier Grijalba
@ 2007-08-13  9:42     ` Wolfgang Denk
  2007-08-13 10:34       ` Javier Grijalba
  2007-08-13 13:07       ` Javier Grijalba
  0 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Denk @ 2007-08-13  9:42 UTC (permalink / raw)
  To: u-boot

In message <op.twzl7woci2vpqq@localhost> you wrote:
>
> the coninfo shows this:
> 
> List of available devices:
> serial   80000003 SIO stdin stdout stderr
> nulldev  80000003 SIO
> 
> I suppose this is why I can??t add the second serial, how do I add the COM2  
> ?

Right - when there is no other device configured, you cannot switch to
another device...

I don't know if this feature is supported for yoru architecture and/or
your board. Check the configuration...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A committee is a group that keeps the minutes and loses hours.
                                                      -- Milton Berle

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13  9:42     ` Wolfgang Denk
@ 2007-08-13 10:34       ` Javier Grijalba
  2007-08-13 11:15         ` Wolfgang Denk
  2007-08-13 13:07       ` Javier Grijalba
  1 sibling, 1 reply; 10+ messages in thread
From: Javier Grijalba @ 2007-08-13 10:34 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,
the hardware definetely supports the COM2 (I tested it with Windows CE  
5.0), but how can I add/configure the COM2 with U-boot ?
Is 80000003 a memory adress?
Best regards
Javier

On Mon, 13 Aug 2007 11:42:33 +0200, Wolfgang Denk <wd@denx.de> wrote:

> In message <op.twzl7woci2vpqq@localhost> you wrote:
>>
>> the coninfo shows this:
>>
>> List of available devices:
>> serial   80000003 SIO stdin stdout stderr
>> nulldev  80000003 SIO
>>
>> I suppose this is why I can??t add the second serial, how do I add the  
>> COM2
>> ?
>
> Right - when there is no other device configured, you cannot switch to
> another device...
>
> I don't know if this feature is supported for yoru architecture and/or
> your board. Check the configuration...
>
> Best regards,
>
> Wolfgang Denk
>



-- 
Javier Grijalba
Javier dot Grijalba at gmail dot com

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13 10:34       ` Javier Grijalba
@ 2007-08-13 11:15         ` Wolfgang Denk
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2007-08-13 11:15 UTC (permalink / raw)
  To: u-boot

In message <op.twzubus0i2vpqq@localhost> you wrote:
> SGkgV29sZmdhbmcsCnRoZSBoYXJkd2FyZSBkZWZpbmV0ZWx5IHN1cHBvcnRzIHRoZSBD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llciBkb3QgR3JpamFsYmEgYXQgZ21haWwgZG90IGNvbQoK
> LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
> LS0tLS0tLS0tLS0tLS0tLQpUaGlzIFNGLm5ldCBlbWFpbCBpcyBzcG9uc29yZWQgYnk6IFNwbHVu
> ayBJbmMuClN0aWxsIGdyZXBwaW5nIHRocm91Z2ggbG9nIGZpbGVzIHRvIGZpbmQgcHJvYmxlbXM/
> ICBTdG9wLgpOb3cgU2VhcmNoIGxvZyBldmVudHMgYW5kIGNvbmZpZ3VyYXRpb24gZmlsZXMgdXNp
> bmcgQUpBWCBhbmQgYSBicm93c2VyLgpEb3dubG9hZCB5b3VyIEZSRUUgY29weSBvZiBTcGx1bmsg
> bm93ID4+ICBodHRwOi8vZ2V0LnNwbHVuay5jb20vCl9fX19fX19fX19fX19fX19fX19fX19fX19f
> X19fX19fX19fX19fX19fX19fX19fClUtQm9vdC1Vc2VycyBtYWlsaW5nIGxpc3QKVS1Cb290LVVz
> ZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9s
> aXN0cy9saXN0aW5mby91LWJvb3QtdXNlcnMK

Please do not send base 64 encoded messages.

Please do not send HTML messages.

Please send plain text only.

Message unreadable, ignored. Sorry.

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13  9:42     ` Wolfgang Denk
  2007-08-13 10:34       ` Javier Grijalba
@ 2007-08-13 13:07       ` Javier Grijalba
  2007-08-13 14:40         ` Wolfgang Denk
  2007-08-30 15:49         ` Detlev Zundel
  1 sibling, 2 replies; 10+ messages in thread
From: Javier Grijalba @ 2007-08-13 13:07 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,
the hardware definetely supports the COM2 (I tested it with Windows CE  
5.0), but how can I add/configure the COM2 with U-boot ?
Is 80000003 a memory adress?
Best regards
Javier

On Mon, 13 Aug 2007 11:42:33 +0200, Wolfgang Denk <wd@denx.de> wrote:

> In message <op.twzl7woci2vpqq@localhost> you wrote:
>>
>> the coninfo shows this:
>>
>> List of available devices:
>> serial   80000003 SIO stdin stdout stderr
>> nulldev  80000003 SIO
>>
>> I suppose this is why I can??t add the second serial, how do I add the  
>> COM2
>> ?
>
> Right - when there is no other device configured, you cannot switch to
> another device...
>
> I don't know if this feature is supported for yoru architecture and/or
> your board. Check the configuration...
>
> Best regards,
>
> Wolfgang Denk
>



-- 
Javier Grijalba
Javier dot Grijalba at gmail dot com

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13 13:07       ` Javier Grijalba
@ 2007-08-13 14:40         ` Wolfgang Denk
  2007-08-30 15:49         ` Detlev Zundel
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2007-08-13 14:40 UTC (permalink / raw)
  To: u-boot

In message <op.twz1epu5i2vpqq@localhost> you wrote:
>
> the hardware definetely supports the COM2 (I tested it with Windows CE  
> 5.0), but how can I add/configure the COM2 with U-boot ?

As mentioned before: I don't know if this feature  is  supported  for
your architecture and/or your board. Check the configuration...

> Is 80000003 a memory adress?

No, its flag bits. Please RTFM and the code.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is not best to swap horses while crossing the river.
- Abraham Lincoln

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-13 13:07       ` Javier Grijalba
  2007-08-13 14:40         ` Wolfgang Denk
@ 2007-08-30 15:49         ` Detlev Zundel
  2007-08-30 17:17           ` stefano babic
  1 sibling, 1 reply; 10+ messages in thread
From: Detlev Zundel @ 2007-08-30 15:49 UTC (permalink / raw)
  To: u-boot

Hi Javier,

> Hi Wolfgang,
> the hardware definetely supports the COM2 (I tested it with Windows CE  
> 5.0), but how can I add/configure the COM2 with U-boot ?
> Is 80000003 a memory adress?

On the PXA270 you have three different UARTs, FFUART, BTUART and
STDUART.  I don't know what your configuration looks like, but I am
pretty sure that what you dub as "COM1" is the FFUART and the other
UARTs are not even supported let alone dynamically switchable in
U-Boot.

Fortunately we are just working on something like this, Stefano (on
CC), should be able to tell you when this will be finished.

Cheers
  Detlev

-- 
Die Mengenlehre in der Schule ist daran gescheitert, dass man sie mit ihrem
Vokabular verwechselt hat.
                                     -- Norbert Treitz
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

* [U-Boot-Users] change U-boot file stream to COM2
  2007-08-30 15:49         ` Detlev Zundel
@ 2007-08-30 17:17           ` stefano babic
  0 siblings, 0 replies; 10+ messages in thread
From: stefano babic @ 2007-08-30 17:17 UTC (permalink / raw)
  To: u-boot

Detlev Zundel wrote:
> Fortunately we are just working on something like this, Stefano (on
> CC), should be able to tell you when this will be finished.

Test is finished. I will send the patch. Multiple serials are supported 
in the same way as they are on the PPC boards.

Javier, at the moment u-boot supports only one serial interface and 
consequently you cannot enable the other ones. You can use any of 
FFUART,BTUART or STUART, but u-boot cannot have more than one serial at 
the same time. The serial driver for PXA27xx does not support it.

After applying the patch I will send, you have to set 
CONFIG_SERIAL_MULTI in your config file and all serials you want to use:

#define CONFIG_SERIAL_MULTI
#define CONFIG_FFUART          1       /* we use FFUART on Conxs */
#define CONFIG_BTUART          1       /* we use BTUART on Conxs */
#define CONFIG_STUART          1       /* we use STUART on Conxs */

You have to provide also a function in your board.c file to return the 
default serial device, such as:

struct serial_device *default_serial_console (void)
{
         return &serial_ffuart_device;
}

or whatever you prefer.

On my target (PXA270) I get:
U-Boot 1.2.0-gc7d2ba2d-dirty (Aug 23 2007 - 15:47:09)

DRAM:  64 MB
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
$ coninfo
List of available devices:
serial   80000003 SIO stdin stdout stderr
nulldev  80000003 SIO
serial_stuart 00000003 .IO
serial_btuart 00000003 .IO
serial_ffuart 00000003 .IO

Then you will be able to switch among the serials setting the stdout, 
stdin and stderr variables. For example, to switch to the BTUART:

	setenv stdout serial_btuart
	setenv stdin serial_btuart


Regards,
stefano

-- 
=====================================================================
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] 10+ messages in thread

end of thread, other threads:[~2007-08-30 17:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-12 15:21 [U-Boot-Users] change U-boot file stream to COM2 Javier Grijalba
2007-08-12 16:17 ` Wolfgang Denk
2007-08-13  7:39   ` Javier Grijalba
2007-08-13  9:42     ` Wolfgang Denk
2007-08-13 10:34       ` Javier Grijalba
2007-08-13 11:15         ` Wolfgang Denk
2007-08-13 13:07       ` Javier Grijalba
2007-08-13 14:40         ` Wolfgang Denk
2007-08-30 15:49         ` Detlev Zundel
2007-08-30 17:17           ` stefano babic

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