[PATCH v2 3/4] RISC-V: board-dt-2nd: add PBL console support for virt

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Apr 15 08:53:17 BST 2021


Hi Sascha,

On 15.04.21 09:15, Sascha Hauer wrote:
>> +static const struct fdt_device_id console_ids[] = {
>> +	{ .compatible = "riscv-virtio", .data = virt_ns16550_init },
>> +	{ /* sentinel */ }
> 
> This is only board specific. If we go that path of parsing fdt for early
> output can't we just do like Linux and establish earlycon?

Yes, we'll get there eventually. What I'd really like to have is to be
able to, at compile time, associate a debug console with a PBL entry point
that would also work prior to relocation. That debug console should be
inherited into barebox proper to be used until a console driver was
initialized.

We are not there yet though and I still didn't figure some stuff out.
So I'd prefer postponing this more generic until a second boards needs it.

Cheers,
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list