u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel
@ 2013-11-27  9:33 Linus Walleij
  2013-11-27 10:03 ` Marek Vasut
  2014-01-13  8:45 ` Albert ARIBAUD
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Walleij @ 2013-11-27  9:33 UTC (permalink / raw)
  To: u-boot

The Versatiles come up with the primary UART set to ttyAMA0 at
38400 baud, and unless we pass this to the kernel it will assume
it is set to 9600 baud which will be quite awkward for the
terminal, let's try to be helpful and inform the kernel what
setting is used.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 include/configs/versatile.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/configs/versatile.h b/include/configs/versatile.h
index 10738ac24be0..29c32fee5178 100644
--- a/include/configs/versatile.h
+++ b/include/configs/versatile.h
@@ -101,7 +101,8 @@
 
 #define CONFIG_BOOTDELAY	2
 #define CONFIG_BOOTARGS		"root=/dev/nfs mem=128M ip=dhcp "\
-				"netdev=25,0,0xf1010000,0xf1010010,eth0"
+				"netdev=25,0,0xf1010000,0xf1010010,eth0 "\
+				"console=ttyAMA0,38400n1"
 
 /*
  * Static configuration when assigning fixed address
-- 
1.8.3.1

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

* [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel
  2013-11-27  9:33 [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel Linus Walleij
@ 2013-11-27 10:03 ` Marek Vasut
  2013-11-27 12:43   ` Linus Walleij
  2014-01-13  8:45 ` Albert ARIBAUD
  1 sibling, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2013-11-27 10:03 UTC (permalink / raw)
  To: u-boot

Dear Linus Walleij,

> The Versatiles come up with the primary UART set to ttyAMA0 at
> 38400 baud, and unless we pass this to the kernel it will assume
> it is set to 9600 baud which will be quite awkward for the
> terminal, let's try to be helpful and inform the kernel what
> setting is used.
> 
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  include/configs/versatile.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/versatile.h b/include/configs/versatile.h
> index 10738ac24be0..29c32fee5178 100644
> --- a/include/configs/versatile.h
> +++ b/include/configs/versatile.h
> @@ -101,7 +101,8 @@
> 
>  #define CONFIG_BOOTDELAY	2
>  #define CONFIG_BOOTARGS		"root=/dev/nfs mem=128M ip=dhcp "\
> -				"netdev=25,0,0xf1010000,0xf1010010,eth0"
> +				"netdev=25,0,0xf1010000,0xf1010010,eth0 "\
> +				"console=ttyAMA0,38400n1"

We're currently trying to migrate away from having the environment built into 
the bootloader altogether. On the other hand, I understand this is a bona-fide 
fix. I would let this one slide.

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel
  2013-11-27 10:03 ` Marek Vasut
@ 2013-11-27 12:43   ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2013-11-27 12:43 UTC (permalink / raw)
  To: u-boot

On Wed, Nov 27, 2013 at 11:03 AM, Marek Vasut <marex@denx.de> wrote:

> [Me]
>>  #define CONFIG_BOOTDELAY     2
>>  #define CONFIG_BOOTARGS              "root=/dev/nfs mem=128M ip=dhcp "\
>> -                             "netdev=25,0,0xf1010000,0xf1010010,eth0"
>> +                             "netdev=25,0,0xf1010000,0xf1010010,eth0 "\
>> +                             "console=ttyAMA0,38400n1"
>
> We're currently trying to migrate away from having the environment built into
> the bootloader altogether. On the other hand, I understand this is a bona-fide
> fix. I would let this one slide.

I think the only reason why this has not been fixed before is that
people have only tested the Versatile with QEMU, and that "emulation"
will likely (my best guess) just display characters on the virtual
terminal even if the baudrate it completely bananas, so noone really
noticed the situation before.

This has the upside of making the default versatile out-of-the-box U-Boot
work also on real hardware ...

Yours,
Linus Walleij

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

* [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel
  2013-11-27  9:33 [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel Linus Walleij
  2013-11-27 10:03 ` Marek Vasut
@ 2014-01-13  8:45 ` Albert ARIBAUD
  1 sibling, 0 replies; 4+ messages in thread
From: Albert ARIBAUD @ 2014-01-13  8:45 UTC (permalink / raw)
  To: u-boot

Hi Linus,

On Wed, 27 Nov 2013 10:33:49 +0100, Linus Walleij
<linus.walleij@linaro.org> wrote:

> The Versatiles come up with the primary UART set to ttyAMA0 at
> 38400 baud, and unless we pass this to the kernel it will assume
> it is set to 9600 baud which will be quite awkward for the
> terminal, let's try to be helpful and inform the kernel what
> setting is used.
> 
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  include/configs/versatile.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/versatile.h b/include/configs/versatile.h
> index 10738ac24be0..29c32fee5178 100644
> --- a/include/configs/versatile.h
> +++ b/include/configs/versatile.h
> @@ -101,7 +101,8 @@
>  
>  #define CONFIG_BOOTDELAY	2
>  #define CONFIG_BOOTARGS		"root=/dev/nfs mem=128M ip=dhcp "\
> -				"netdev=25,0,0xf1010000,0xf1010010,eth0"
> +				"netdev=25,0,0xf1010000,0xf1010010,eth0 "\
> +				"console=ttyAMA0,38400n1"
>  
>  /*
>   * Static configuration when assigning fixed address

Applied to u-boot-arm/next, thanks!

Amicalement,
-- 
Albert.

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

end of thread, other threads:[~2014-01-13  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27  9:33 [U-Boot] [PATCH 2/2] ARM: versatile: pass console setting to the kernel Linus Walleij
2013-11-27 10:03 ` Marek Vasut
2013-11-27 12:43   ` Linus Walleij
2014-01-13  8:45 ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).