missing current-speed property prevents autoconsole on pegasos

Matt Sealey matt at genesi-usa.com
Fri Apr 25 01:42:35 EST 2008


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

-- 
Matt Sealey <matt at genesi-usa.com>
Genesi, Manager, Developer Relations

Olaf Hering wrote:
> Pegasos2 has no current-speed property in
> /pci at 80000000/isa at C/serial at 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
> ===================================================================
> --- linux-2.6.25-pegasos.orig/arch/powerpc/platforms/chrp/setup.c
> +++ 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);
>  }
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev



More information about the Linuxppc-dev mailing list