Re: [PATCH] serial/sifive: select SERIAL_EARLYCON

From: Andreas Schwab
Date: Tue Sep 17 2019 - 03:43:29 EST


On Sep 16 2019, Palmer Dabbelt <palmer@xxxxxxxxxx> wrote:

> but we don't set it for the HiFive Unleashed. I'd call that a bug,
> something like this
>
> diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> index 93d68cbd64fe..6d0ec76d93fe 100644
> --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
> @@ -13,6 +13,7 @@
> compatible = "sifive,hifive-unleashed-a00", "sifive,fu540-c000";
>
> chosen {
> + stdout-path = &uart0;
> };
>
> cpus {
>
> should fix it. LMK if I've misunderstood something.

If that's how it's supposed to work, ok. Other platforms add it in
u-boot.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."