From patchwork Sun Oct 21 13:06:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 987307 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.b="DDUAhoqX"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42dKgk5rNgz9sDb for ; Mon, 22 Oct 2018 00:07:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C2C1824D9D; Sun, 21 Oct 2018 13:07:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a5rte8azQ4bO; Sun, 21 Oct 2018 13:07:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 04E7A228EA; Sun, 21 Oct 2018 13:07:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 47DEA1BF4E3 for ; Sun, 21 Oct 2018 13:07:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4546D228EA for ; Sun, 21 Oct 2018 13:07:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9t4PzA6IP1ne for ; Sun, 21 Oct 2018 13:07:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by silver.osuosl.org (Postfix) with ESMTPS id 9C96622109 for ; Sun, 21 Oct 2018 13:07:24 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id f8-v6so2486668wro.9 for ; Sun, 21 Oct 2018 06:07:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8ouV61EqRKKxYE9XEfrelUloPQ+e12cvrocdEuP3Cg4=; b=DDUAhoqX1nIxZGoXsX6aMiMJDYz7v43ctde4BbTnXpNnZt+RFq/de7YOU3LWZs76Sa 4GBhmYWNjwhuvJIgVU8AwVmq2APoW7ZQoetaZNrUyoQO7ka6/u1ro5pylrPT+zG2/eMJ chb8hpbXnbmt//oPBezais9k3rFcSkUy5sj4fvd0phvXydNjBUSXeGSC390FOurh4Chs xKXWOYuX0IlRec0XJWtmx8fouiEhvOMt4aW3EomFLmKNseO0P7fxhAIfaOGBXO3m41bR uXtmZvQ3+JeGPwKtokjPubaxj5lQt1lGnDTEXOmoT7uSES3U5hzkpZF8h/BtA5feC65t viEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8ouV61EqRKKxYE9XEfrelUloPQ+e12cvrocdEuP3Cg4=; b=MOjmKrpOYbTG7yzaETqMdeBAdF/ejPPESOWOXTcbaI/4SOuL4nzE4uh8F15y6tI6X9 I41FrCnYoOBXkbFR2Id96aEfbfHjVnU5Zuy4Ee72yhodYktp4PjAou8XNvIXZXwGmoaC ikSC1CS4RaGLeaPjMXltJxdu39VZKCDaOLrcGYN+eFJPwjnO8huRw7W1JWanGRvMjC/H CkAoufYUs3n89FECkhJgf2hrAUByl0i4+d4aaG1A8jnd4sb+Ez9MqJwry6+Ifa4AcS0f ffbDQXglJA32u6pBTYOe+IXpE5zZvrHcWXXu+kPAEfHsuShqtWyDNuZlJ+NF9p8vejBv Tztg== X-Gm-Message-State: ABuFfohrbyW9kk235+U5DPV2i456Dqy9ohy7nO3gutEzJsIjOjUScimJ w2BLbWAxRjYUEmxR01R95NlGUbfvjow= X-Google-Smtp-Source: ACcGV623Giu7J1g4iMz8Ebp57Exd8ReQN244oQf6gQ0DBJbagi2iyJ5zGUQmTJdkPWNPCTm6IoAhUA== X-Received: by 2002:a5d:6511:: with SMTP id x17-v6mr43323140wru.150.1540127242557; Sun, 21 Oct 2018 06:07:22 -0700 (PDT) Received: from tait.lan.virginwifi.ie ([31.185.52.13]) by smtp.gmail.com with ESMTPSA id 2-v6sm27134041wro.96.2018.10.21.06.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 06:07:21 -0700 (PDT) From: Mark Corbin To: buildroot@buildroot.org Date: Sun, 21 Oct 2018 14:06:21 +0100 Message-Id: <20181021130621.17834-2-mark.corbin@embecosm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181021130621.17834-1-mark.corbin@embecosm.com> References: <20181021130621.17834-1-mark.corbin@embecosm.com> Subject: [Buildroot] [PATCH v2 2/2] configs/qemu: add qemu_riscv32_virt_defconfig X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Corbin MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add RISC-V 32-bit defconfig for QEMU virt machine. Tested with QEMU 2.12.1 Signed-off-by: Mark Corbin --- board/qemu/riscv32-virt/linux.config | 23 +++++++++++++++++++++++ configs/qemu_riscv32_virt_defconfig | 24 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 board/qemu/riscv32-virt/linux.config create mode 100644 configs/qemu_riscv32_virt_defconfig diff --git a/board/qemu/riscv32-virt/linux.config b/board/qemu/riscv32-virt/linux.config new file mode 100644 index 0000000000..c25583f768 --- /dev/null +++ b/board/qemu/riscv32-virt/linux.config @@ -0,0 +1,23 @@ +CONFIG_ARCH_RV32I=y +CONFIG_SMP=y +CONFIG_NR_CPUS=8 +CONFIG_PCI=y +CONFIG_SYSVIPC=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +# CONFIG_WIRELESS is not set +CONFIG_VIRTIO_BLK=y +CONFIG_NETDEVICES=y +CONFIG_VIRTIO_NET=y +# CONFIG_ETHERNET is not set +# CONFIG_WLAN is not set +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_VIRT_DRIVERS=y +CONFIG_VIRTIO_MMIO=y +CONFIG_EXT2_FS=y +CONFIG_EXT4_FS=y +CONFIG_TMPFS=y diff --git a/configs/qemu_riscv32_virt_defconfig b/configs/qemu_riscv32_virt_defconfig new file mode 100644 index 0000000000..aec85e4639 --- /dev/null +++ b/configs/qemu_riscv32_virt_defconfig @@ -0,0 +1,24 @@ +# Architecture +BR2_riscv=y + +# System +BR2_SYSTEM_DHCP="eth0" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# Linux headers same as kernel, a 4.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/riscv/riscv-linux.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="fe92d7905c6ea0ebeabeb725b8040754ede7c220" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/riscv32-virt/linux.config" + +# Bootloader +BR2_TARGET_RISCV_PK=y