From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 31 May 2021 08:57:31 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lnbrf-0002j4-GU for lore@lore.pengutronix.de; Mon, 31 May 2021 08:57:31 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnbrd-0000OY-9W for lore@pengutronix.de; Mon, 31 May 2021 08:57:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gDQ/0PmsG4/m6ti4zDOP6AmqJkb6YqinvoY5Bxm5Lsk=; b=DBD572NSfdVpLG VPCmS1XwuYfIzpoRqN1xAxfoeoflLYWQvOow3XBuFwDku6WGIcevSRt431+vAspjAL+kkMojgYssJ UD1RQQiyQjsTut3qN/JiEk1AEO9wVVU5zWqJneQbjlLeo7uMHOe/iwgLJhLJCHDqYeeDpLUp0zvKP Iz7H03ks1dz63fDJWo8Q2KOcdekmabkJG5b+LM+fTei2YvJnKyJ6uuspVHJdPMdgPByX4tHhMWByE zjQidOCFWozDFJY3HMLtFkApWy253NL7KUbInJR8b1q4tQoBNrC1m7BBIPbDFcVD1Tq2FXZ611lRn QgbKvcjsaIM+4qMuPo5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnbqS-00B13q-RQ; Mon, 31 May 2021 06:56:17 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnbps-00B0i8-2C for barebox@lists.infradead.org; Mon, 31 May 2021 06:55:41 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnbpa-0007yi-PC; Mon, 31 May 2021 08:55:22 +0200 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lnbpZ-0003gC-R5; Mon, 31 May 2021 08:55:21 +0200 From: Ahmad Fatoum To: barebox@lists.infradead.org Cc: Ahmad Fatoum Date: Mon, 31 May 2021 08:55:13 +0200 Message-Id: <20210531065520.12385-7-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210531065520.12385-1-a.fatoum@pengutronix.de> References: <20210531065520.12385-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210530_235540_143556_325061C4 X-CRM114-Status: GOOD ( 13.12 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:e::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 06/13] Documentation: boards: RISC-V: update TinyEMU support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) Adding the tinyemu files as separate files and including them has the nice benefit that temu users can just use these files directly instead of copy pasting. While at it, update the section as input, as support was added meanwhile. Signed-off-by: Ahmad Fatoum --- Documentation/boards/riscv.rst | 20 +++++++++---------- Documentation/boards/riscv/barebox-virt32.cfg | 7 +++++++ Documentation/boards/riscv/barebox-virt64.cfg | 7 +++++++ 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 Documentation/boards/riscv/barebox-virt32.cfg create mode 100644 Documentation/boards/riscv/barebox-virt64.cfg diff --git a/Documentation/boards/riscv.rst b/Documentation/boards/riscv.rst index 59cdc00a99e6..955a6fbb6bd1 100644 --- a/Documentation/boards/riscv.rst +++ b/Documentation/boards/riscv.rst @@ -41,25 +41,25 @@ TinyEMU ------- TinyEMU can emulate a qemu-virt like machine with a RISC-V 32-, 64- -and 128-bit CPU. It can run barebox with this sample configuration:: +and 128-bit CPU. It can run 32-bit barebox with this sample configuration: - /* temu barebox-virt64.cfg */ - { - version: 1, - machine: "riscv64", - memory_size: 256, - bios: "bbl64.bin", - kernel: "./images/barebox-dt-2nd.img", - } +.. literalinclude:: riscv/barebox-virt32.cfg + +as well as 64-bit barebox with this configuration: + +.. literalinclude:: riscv/barebox-virt64.cfg ``barebox-dt-2nd.img`` can be generated like with Qemu. Graphical -output is also supported, but virtio input support is still missing. +output and input are also supported. To activate add:: display0: { device: "simplefb", width: 800, height: 600 }, + input_device: "virtio", into the config file. +See https://barebox.org/jsbarebox/?graphic=1 for a live example. + Erizo ----- diff --git a/Documentation/boards/riscv/barebox-virt32.cfg b/Documentation/boards/riscv/barebox-virt32.cfg new file mode 100644 index 000000000000..5f0eb34eee9c --- /dev/null +++ b/Documentation/boards/riscv/barebox-virt32.cfg @@ -0,0 +1,7 @@ +{ + version: 1, + machine: "riscv32", + memory_size: 256, + bios: "bbl32.bin", + kernel: "images/barebox-dt-2nd.img", +} diff --git a/Documentation/boards/riscv/barebox-virt64.cfg b/Documentation/boards/riscv/barebox-virt64.cfg new file mode 100644 index 000000000000..45e1cd830802 --- /dev/null +++ b/Documentation/boards/riscv/barebox-virt64.cfg @@ -0,0 +1,7 @@ +{ + version: 1, + machine: "riscv64", + memory_size: 256, + bios: "bbl64.bin", + kernel: "images/barebox-dt-2nd.img", +} -- 2.29.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox