Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7E31C001E0 for ; Sun, 23 Jul 2023 04:42:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 582F4867FB; Sun, 23 Jul 2023 06:41:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id CA977867D6; Sun, 23 Jul 2023 06:41:41 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EF044867D8 for ; Sun, 23 Jul 2023 06:41:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp84t1690087291tc418vks Received: from ubuntu.. ( [111.196.130.174]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 23 Jul 2023 12:41:30 +0800 (CST) X-QQ-SSF: 01200000000000F0H000000A0000000 X-QQ-FEAT: 1U/NVTUyJNQKHkoREoxcH9Ubop0JJE8Tgsc/J9VsnumbxKNnYOa3bI1SLetak DgdbNTxTik22iuS5lkK1lrA5sxr2mDrJAv+TJx+m9frfepkREdaiEyPR9hCFB0XwLUnX57w EQbQDYFwo7Wy7vrrB2yvxovmlfaZ80dCrJ9zXiNeqk/TwTyZTg4Nw1TG+570j0oadoxGVPE RozL4wsuEzJ3h8lLDE0AZNguJgPZF8hGkjOfSX5iLnVsvfFPpSCdr0Eyc6bW4QcOi2GoixM tQjE3ZGkVdYAIUR7EYBFfd8JV1DHNXcvopRvo5kZN8aL2Qmw3AXzRBcNjc8P3Kedgwlwk2T fKYFWP5A+PGRxoKC9LBfJMcRqojSYHEMi8nRe/7 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13002275045965002412 From: Bin Meng To: Simon Glass , u-boot@lists.denx.de Cc: Bin Meng Subject: [PATCH 15/18] riscv: qemu: Enable PRE_CONSOLE_BUFFER Date: Sun, 23 Jul 2023 12:40:38 +0800 Message-Id: <20230723044041.1089804-16-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230723044041.1089804-1-bmeng@tinylab.org> References: <20230723044041.1089804-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz7a-0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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 0x80100000 +config PRE_CON_BUF_ADDR + hex + default 0x81000000 + 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