All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM64: Don't set the default console to ttyAMA0
@ 2016-02-17 16:43 Jon Hunter
  2016-02-18  7:15 ` Jisheng Zhang
  2016-02-29 10:46 ` Jon Hunter
  0 siblings, 2 replies; 4+ messages in thread
From: Jon Hunter @ 2016-02-17 16:43 UTC (permalink / raw)
  To: linux-arm-kernel

When booting Tegra210 with a minimal rootfs it may not be necessary to
specify any boot parameters via the kernel command line as information
for console is described via the "stdout-path" node the device-tree
blob. However, when there are no boot parameter specified, no output is
seen on the console in the case of Tegra210 and this is because the
default command line in the ARM64 defconfig specifies the console as
ttyAMA0 which takes precedence over the "stdout-path" node from
device-tree.

ttyAMAx is used for AMBA PL011 serial ports, but not all ARM64 platforms
use this serial driver. Therefore, remove the default command line
entry from the ARM64 defconfig to ensure that ttyAMA0 does not get set
as the default console if no kernel command line is specified.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 arch/arm64/configs/defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index d21631760ec7..caecb66188be 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -64,7 +64,6 @@ CONFIG_KSM=y
 CONFIG_TRANSPARENT_HUGEPAGE=y
 CONFIG_CMA=y
 CONFIG_XEN=y
-CONFIG_CMDLINE="console=ttyAMA0"
 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
 CONFIG_COMPAT=y
 CONFIG_CPU_IDLE=y
-- 
2.1.4

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

* [PATCH] ARM64: Don't set the default console to ttyAMA0
  2016-02-17 16:43 [PATCH] ARM64: Don't set the default console to ttyAMA0 Jon Hunter
@ 2016-02-18  7:15 ` Jisheng Zhang
  2016-02-29 10:46 ` Jon Hunter
  1 sibling, 0 replies; 4+ messages in thread
From: Jisheng Zhang @ 2016-02-18  7:15 UTC (permalink / raw)
  To: linux-arm-kernel

Dear Jon,

On Wed, 17 Feb 2016 16:43:42 +0000 Jon Hunter wrote:

> When booting Tegra210 with a minimal rootfs it may not be necessary to
> specify any boot parameters via the kernel command line as information
> for console is described via the "stdout-path" node the device-tree
> blob. However, when there are no boot parameter specified, no output is
> seen on the console in the case of Tegra210 and this is because the
> default command line in the ARM64 defconfig specifies the console as
> ttyAMA0 which takes precedence over the "stdout-path" node from
> device-tree.
> 
> ttyAMAx is used for AMBA PL011 serial ports, but not all ARM64 platforms
> use this serial driver. Therefore, remove the default command line
> entry from the ARM64 defconfig to ensure that ttyAMA0 does not get set
> as the default console if no kernel command line is specified.
> 
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>

We need this patch as well. Thanks

Tested-by: Jisheng Zhang <jszhang@marvell.com>

> ---
>  arch/arm64/configs/defconfig | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index d21631760ec7..caecb66188be 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -64,7 +64,6 @@ CONFIG_KSM=y
>  CONFIG_TRANSPARENT_HUGEPAGE=y
>  CONFIG_CMA=y
>  CONFIG_XEN=y
> -CONFIG_CMDLINE="console=ttyAMA0"
>  # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
>  CONFIG_COMPAT=y
>  CONFIG_CPU_IDLE=y

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

* [PATCH] ARM64: Don't set the default console to ttyAMA0
  2016-02-17 16:43 [PATCH] ARM64: Don't set the default console to ttyAMA0 Jon Hunter
  2016-02-18  7:15 ` Jisheng Zhang
@ 2016-02-29 10:46 ` Jon Hunter
  2016-02-29 13:20   ` Will Deacon
  1 sibling, 1 reply; 4+ messages in thread
From: Jon Hunter @ 2016-02-29 10:46 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Will, Catalin,

Any feedback on this?

Cheers
Jon

On 17/02/16 16:43, Jon Hunter wrote:
> When booting Tegra210 with a minimal rootfs it may not be necessary to
> specify any boot parameters via the kernel command line as information
> for console is described via the "stdout-path" node the device-tree
> blob. However, when there are no boot parameter specified, no output is
> seen on the console in the case of Tegra210 and this is because the
> default command line in the ARM64 defconfig specifies the console as
> ttyAMA0 which takes precedence over the "stdout-path" node from
> device-tree.
> 
> ttyAMAx is used for AMBA PL011 serial ports, but not all ARM64 platforms
> use this serial driver. Therefore, remove the default command line
> entry from the ARM64 defconfig to ensure that ttyAMA0 does not get set
> as the default console if no kernel command line is specified.
> 
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  arch/arm64/configs/defconfig | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index d21631760ec7..caecb66188be 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -64,7 +64,6 @@ CONFIG_KSM=y
>  CONFIG_TRANSPARENT_HUGEPAGE=y
>  CONFIG_CMA=y
>  CONFIG_XEN=y
> -CONFIG_CMDLINE="console=ttyAMA0"
>  # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
>  CONFIG_COMPAT=y
>  CONFIG_CPU_IDLE=y
> 

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

* [PATCH] ARM64: Don't set the default console to ttyAMA0
  2016-02-29 10:46 ` Jon Hunter
@ 2016-02-29 13:20   ` Will Deacon
  0 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2016-02-29 13:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Feb 29, 2016 at 10:46:01AM +0000, Jon Hunter wrote:
> Any feedback on this?

I plan to mop up the defconfig updates at -rc1, since there are a few
of them and merging them in dribs and drabs is a bit of a pain.

Will

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

end of thread, other threads:[~2016-02-29 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17 16:43 [PATCH] ARM64: Don't set the default console to ttyAMA0 Jon Hunter
2016-02-18  7:15 ` Jisheng Zhang
2016-02-29 10:46 ` Jon Hunter
2016-02-29 13:20   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.