On Mon, Dec 09, 2024 at 10:44:39PM -0600, Samuel Holland wrote: > Here are a few patches which are just enough to run the SBI unit tests > in a bare metal environment, under U-Boot on boards with a UART needing > 32-bit MMIO (which is a rather common configuration in my experience). > Though I wonder if we should prefer the SBI debug console extension for > puts() output when available. Hi Samuel, Thanks for this! I think using SBI debug console is probably the best choice. That's what I decided to do for booting on the bananapi. We can keep the uart improvements though for a best effort fallback when DBCN isn't available. Thanks, drew > > Samuel Holland (3): > riscv: Add Image header to flat binaries > riscv: Rate limit UART output to avoid FIFO overflows > riscv: Support UARTs with different I/O widths > > lib/riscv/io.c | 47 +++++++++++++++++++++++++++++++++++++++++++++-- > riscv/cstart.S | 16 +++++++++++++++- > 2 files changed, 60 insertions(+), 3 deletions(-) > > -- > 2.39.3 (Apple Git-146) >