change U-boot file stream to COM2
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
Signature · 2 lines
Javier Grijalba Javier dot Grijalba at gmail dot com
Quoted 14 lines · 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(quoted diff) +0
-2-setenv stdin serial1 -saveenvalso tried with
(quoted diff) +0
-2-setenv stdin=serial1 -saveenv
Quoted 2 lines
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
Signature · 5 lines
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 pageHi 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
Quoted 25 lines · Wolfgang Denk
Quoted 14 lines · 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(quoted diff) +0
-2-setenv stdin serial1 -saveenvalso tried with
(quoted diff) +0
-2-setenv stdin=serial1 -saveenvQuoted 2 lines
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
Signature · 2 lines
Javier Grijalba Javier dot Grijalba at gmail dot com
Quoted 9 lines · In message <op.twzl7woci2vpqq@localhost> you wrote:
the coninfo shows this:
List of available devices:
serial 80000003 SIO stdin stdout stderr
nulldev 80000003 SIOI 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
Signature · 5 lines
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 BerleHi 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
Quoted 22 lines · Wolfgang Denk
Quoted 10 lines · In message <op.twzl7woci2vpqq@localhost> you wrote:
the coninfo shows this:
List of available devices:
serial 80000003 SIO stdin stdout stderr
nulldev 80000003 SIOI 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
Signature · 2 lines
Javier Grijalba Javier dot Grijalba at gmail dot com
Quoted 16 lines · In message <op.twzubus0i2vpqq@localhost> you wrote:
SGkgV29sZmdhbmcsCnRoZSBoYXJkd2FyZSBkZWZpbmV0ZWx5IHN1cHBvcnRzIHRoZSBDT00yIChJ IHRlc3RlZCBpdCB3aXRoIFdpbmRvd3MgQ0UgIAo1LjApLCBidXQgaG93IGNhbiBJIGFkZC9jb25m aWd1cmUgdGhlIENPTTIgd2l0aCBVLWJvb3QgPwpJcyA4MDAwMDAwMyBhIG1lbW9yeSBhZHJlc3M/ CkJlc3QgcmVnYXJkcwpKYXZpZXIKCk9uIE1vbiwgMTMgQXVnIDIwMDcg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2ggbG9nIGZpbGVzIHRvIGZpbmQgcHJvYmxlbXM/ 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.
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
Quoted 22 lines · Wolfgang Denk
Quoted 10 lines · In message <op.twzl7woci2vpqq@localhost> you wrote:
the coninfo shows this:
List of available devices:
serial 80000003 SIO stdin stdout stderr
nulldev 80000003 SIOI 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
Signature · 2 lines
Javier Grijalba Javier dot Grijalba at gmail dot com
Quoted 3 lines · 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...
Quoted 1 line
Is 80000003 a memory adress?
No, its flag bits. Please RTFM and the code.
Best regards,
Wolfgang Denk
Signature · 5 lines
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
Hi Javier,
Quoted 4 lines
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
Signature · 7 lines
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.deQuoted 2 lines · Detlev Zundel
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
Signature · 5 lines
===================================================================== 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 =====================================================================