[U-Boot-Users] 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

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

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

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

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

In message op.twzubus0i2vpqq@localhost you wrote:
SGkgV29sZmdhbmcsCnRoZSBoYXJkd2FyZSBkZWZpbmV0ZWx5IHN1cHBvcnRzIHRoZSBDT00yIChJ IHRlc3RlZCBpdCB3aXRoIFdpbmRvd3MgQ0UgIAo1LjApLCBidXQgaG93IGNhbiBJIGFkZC9jb25m aWd1cmUgdGhlIENPTTIgd2l0aCBVLWJvb3QgPwpJcyA4MDAwMDAwMyBhIG1lbW9yeSBhZHJlc3M/ CkJlc3QgcmVnYXJkcwpKYXZpZXIKCk9uIE1vbiwgMTMgQXVnIDIwMDcgMTE6NDI6MzMgKzAyMDAs IFdvbGZnYW5nIERlbmsgPHdkQGRlbnguZGU+IHdyb3RlOgoKPiBJbiBtZXNzYWdlIDxvcC50d3ps N3dvY2kydnBxcUBsb2NhbGhvc3Q+IHlvdSB3cm90ZToKPj4KPj4gdGhlIGNvbmluZm8gc2hvd3Mg dGhpczoKPj4KPj4gTGlzdCBvZiBhdmFpbGFibGUgZGV2aWNlczoKPj4gc2VyaWFsICAgODAwMDAw MDMgU0lPIHN0ZGluIHN0ZG91dCBzdGRlcnIKPj4gbnVsbGRldiAgODAwMDAwMDMgU0lPCj4+Cj4+ IEkgc3VwcG9zZSB0aGlzIGlzIHdoeSBJIGNhbsOCwrR0IGFkZCB0aGUgc2Vjb25kIHNlcmlhbCwg aG93IGRvIEkgYWRkIHRoZSAgCj4+IENPTTIKPj4gPwo+Cj4gUmlnaHQgLSB3aGVuIHRoZXJlIGlz IG5vIG90aGVyIGRldmljZSBjb25maWd1cmVkLCB5b3UgY2Fubm90IHN3aXRjaCB0bwo+IGFub3Ro ZXIgZGV2aWNlLi4uCj4KPiBJIGRvbid0IGtub3cgaWYgdGhpcyBmZWF0dXJlIGlzIHN1cHBvcnRl ZCBmb3IgeW9ydSBhcmNoaXRlY3R1cmUgYW5kL29yCj4geW91ciBib2FyZC4gQ2hlY2sgdGhlIGNv bmZpZ3VyYXRpb24uLi4KPgo+IEJlc3QgcmVnYXJkcywKPgo+IFdvbGZnYW5nIERlbmsKPgoKCgot LSAKSmF2aWVyIEdyaWphbGJhCkphdmllciBkb3QgR3JpamFsYmEgYXQgZ21haWwgZG90IGNvbQoK 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.

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

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

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

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
participants (4)
-
Detlev Zundel
-
Javier Grijalba
-
stefano babic
-
Wolfgang Denk