Skip to contentSkip to conversation

missing current-speed property prevents autoconsole on pegasos

PATCH Olaf Hering 2 participants 4 messages Apr 23, 2008 – May 26, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

Pegasos2 has no current-speed property in /pci@80000000/isa@C/serial@i2F8. As a result, console=ttyS0,115200 is still required unless the patch below is used.

What is the correct way to restore console detection on pegasos2?

arch/powerpc/platforms/chrp/setup.c +1 -1
Index: linux-2.6.25-pegasos/arch/powerpc/platforms/chrp/setup.c
===================================================================
@@ -302,7 +305,7 @@ static void chrp_init_early(void)
        if (!property)
                goto out_put;
        if (!strcmp(property, "failsafe") || !strcmp(property, "serial"))
-               add_preferred_console("ttyS", 0, NULL);
+               add_preferred_console("ttyS", 0, "115200");
 out_put:
        of_node_put(node);
 }
#1 lore raw

Why not just have users who wish to use console serial port autodetection add 3 lines to their nvramrc?

Signature · 2 lines
Matt Sealey <[email protected]>
Genesi, Manager, Developer Relations
Quoted 25 lines · Olaf Hering

Pegasos2 has no current-speed property in /pci@80000000/isa@C/serial@i2F8. As a result, console=ttyS0,115200 is still required unless the patch below is used.

What is the correct way to restore console detection on pegasos2?

Index: linux-2.6.25-pegasos/arch/powerpc/platforms/chrp/setup.c
===================================================================

arch/powerpc/platforms/chrp/setup.c +1 -1
@@ -302,7 +305,7 @@ static void chrp_init_early(void)
        if (!property)
                goto out_put;
        if (!strcmp(property, "failsafe") || !strcmp(property, "serial"))
-               add_preferred_console("ttyS", 0, NULL);
+               add_preferred_console("ttyS", 0, "115200");
 out_put:
        of_node_put(node);
 }

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#2 lore raw
Quoted 2 lines · Matt Sealey

Why not just have users who wish to use console serial port autodetection add 3 lines to their nvramrc?

The point of autodetection is that no userinteraction is required.

I guess the serial driver does not probe the configured hardware port speed anymore (if it ever did that).

#3 lore raw
In reply to Olaf Hering

On Wed, Apr 23, Olaf Hering wrote:

Ping.

Quoted 21 lines

Pegasos2 has no current-speed property in /pci@80000000/isa@C/serial@i2F8. As a result, console=ttyS0,115200 is still required unless the patch below is used.

What is the correct way to restore console detection on pegasos2?

Index: linux-2.6.25-pegasos/arch/powerpc/platforms/chrp/setup.c
===================================================================

arch/powerpc/platforms/chrp/setup.c +1 -1
@@ -302,7 +305,7 @@ static void chrp_init_early(void)
        if (!property)
                goto out_put;
        if (!strcmp(property, "failsafe") || !strcmp(property, "serial"))
-               add_preferred_console("ttyS", 0, NULL);
+               add_preferred_console("ttyS", 0, "115200");
 out_put:
        of_node_put(node);
 }