Re: [PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER

2023-07-26 Thread Simon Glass
On Tue, 25 Jul 2023 at 01:21, Rick Chen  wrote:
>
> > From: U-Boot  On Behalf Of Bin Meng
> > Sent: Sunday, July 23, 2023 12:41 PM
> > To: Simon Glass ; u-boot@lists.denx.de
> > Cc: Bin Meng 
> > Subject: [PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER
> >
> > By default the video console only outputs messages after it's ready.
> > Messages before that won't show on the video console, but U-Boot has an 
> > option to buffer the console messages before it's ready.
> >
> > Enable this support, and carefully select an address for the buffer.
> >
> > Signed-off-by: Bin Meng 
> > ---
> >
> >  board/emulation/qemu-riscv/Kconfig | 5 +
> >  1 file changed, 5 insertions(+)
>
> Reviewed-by: Rick Chen 

Reviewed-by: Simon Glass 


Re: [PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER

2023-07-25 Thread Rick Chen
> From: U-Boot  On Behalf Of Bin Meng
> Sent: Sunday, July 23, 2023 12:41 PM
> To: Simon Glass ; u-boot@lists.denx.de
> Cc: Bin Meng 
> Subject: [PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER
>
> By default the video console only outputs messages after it's ready.
> Messages before that won't show on the video console, but U-Boot has an 
> option to buffer the console messages before it's ready.
>
> Enable this support, and carefully select an address for the buffer.
>
> Signed-off-by: Bin Meng 
> ---
>
>  board/emulation/qemu-riscv/Kconfig | 5 +
>  1 file changed, 5 insertions(+)

Reviewed-by: Rick Chen 


[PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER

2023-07-22 Thread Bin Meng
By default the video console only outputs messages after it's ready.
Messages before that won't show on the video console, but U-Boot has
an option to buffer the console messages before it's ready.

Enable this support, and carefully select an address for the buffer.

Signed-off-by: Bin Meng 
---

 board/emulation/qemu-riscv/Kconfig | 5 +
 1 file changed, 5 insertions(+)

diff --git a/board/emulation/qemu-riscv/Kconfig 
b/board/emulation/qemu-riscv/Kconfig
index 976c350e50..7220c55350 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -25,6 +25,10 @@ config SPL_OPENSBI_LOAD_ADDR
hex
default 0x8010
 
+config PRE_CON_BUF_ADDR
+   hex
+   default 0x8100
+
 config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select GENERIC_RISCV
@@ -71,5 +75,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
imply VIDEO
imply VIDEO_BOCHS
imply SYS_WHITE_ON_BLACK
+   imply PRE_CONSOLE_BUFFER
 
 endif
-- 
2.34.1