* [U-Boot] Relocating u-boot console
@ 2009-10-14 13:47 Matthias Weißer
2009-10-14 14:00 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Weißer @ 2009-10-14 13:47 UTC (permalink / raw)
To: u-boot
Hello
Is it possible to relocate the u-boot console depending on the state of
some GPIO pins (e.g. in board_init or board_late_init)? Currently I have
the following serial configuration for my board:
#define CONFIG_SERIAL_MULTI
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK CONFIG_JADE_IOCLK
#define CONFIG_SYS_NS16550_COM1 0xfffe1000
#define CONFIG_SYS_NS16550_COM2 0xfff50000
#define CONFIG_SYS_NS16550_COM3 0xfff51000
#define CONFIG_SYS_NS16550_COM4 0xfff43000
#define CONFIG_CONS_INDEX 4
This results in a console on COM4. Now I would like to have the console
on COM1 under some circumstances for maintanance reasons.
Regards,
Matthias Wei?er
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Relocating u-boot console
2009-10-14 13:47 [U-Boot] Relocating u-boot console Matthias Weißer
@ 2009-10-14 14:00 ` Mike Frysinger
2009-10-14 15:26 ` Matthias Weißer
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2009-10-14 14:00 UTC (permalink / raw)
To: u-boot
On Wednesday 14 October 2009 09:47:27 Matthias Wei?er wrote:
> Is it possible to relocate the u-boot console depending on the state of
> some GPIO pins (e.g. in board_init or board_late_init)? Currently I have
> the following serial configuration for my board:
>
> #define CONFIG_SERIAL_MULTI
> #define CONFIG_SYS_NS16550
> #define CONFIG_SYS_NS16550_SERIAL
> #define CONFIG_SYS_NS16550_REG_SIZE (-4)
> #define CONFIG_SYS_NS16550_CLK CONFIG_JADE_IOCLK
> #define CONFIG_SYS_NS16550_COM1 0xfffe1000
> #define CONFIG_SYS_NS16550_COM2 0xfff50000
> #define CONFIG_SYS_NS16550_COM3 0xfff51000
> #define CONFIG_SYS_NS16550_COM4 0xfff43000
> #define CONFIG_CONS_INDEX 4
>
> This results in a console on COM4. Now I would like to have the console
> on COM1 under some circumstances for maintanance reasons.
if your devices fit into the stdio framework, simply change the
std{err,in,out} env vars in your board code
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091014/d53f5e76/attachment.pgp
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] Relocating u-boot console
2009-10-14 14:00 ` Mike Frysinger
@ 2009-10-14 15:26 ` Matthias Weißer
0 siblings, 0 replies; 3+ messages in thread
From: Matthias Weißer @ 2009-10-14 15:26 UTC (permalink / raw)
To: u-boot
Mike Frysinger schrieb:
> On Wednesday 14 October 2009 09:47:27 Matthias Wei?er wrote:
>> This results in a console on COM4. Now I would like to have the console
>> on COM1 under some circumstances for maintanance reasons.
>
> if your devices fit into the stdio framework, simply change the
> std{err,in,out} env vars in your board code
Ah. OK. That guided me into the right direction. To redirect the console
to another serial port I had to set std{err,in,out} to eserialn.
Thanks,
Matthias
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-14 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 13:47 [U-Boot] Relocating u-boot console Matthias Weißer
2009-10-14 14:00 ` Mike Frysinger
2009-10-14 15:26 ` Matthias Weißer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox