From patchwork Wed Mar 20 00:38:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1058783 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="brkqKsuR"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="PhPJXESt"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44PB9Z3cqkz9sNJ for ; Wed, 20 Mar 2019 11:48:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 147F2854EF; Wed, 20 Mar 2019 00:48:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YRiPdBiHkY_u; Wed, 20 Mar 2019 00:48:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 13B0E8532B; Wed, 20 Mar 2019 00:48:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2C9291BF969 for ; Wed, 20 Mar 2019 00:48:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2987B853C3 for ; Wed, 20 Mar 2019 00:48:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yLXuxqg--hcE for ; Wed, 20 Mar 2019 00:48:07 +0000 (UTC) X-Greylist: delayed 00:10:00 by SQLgrey-1.7.6 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by fraxinus.osuosl.org (Postfix) with ESMTPS id AF1E285116 for ; Wed, 20 Mar 2019 00:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1553042895; x=1584578895; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=hZiUThUa9JDNPXgHWH2zB/lIp6cMORXkZaXUqiFmT/I=; b=brkqKsuRXn9ish1gJp7G1Ca9eDGErPiLhCo4hLgM8r6qhtFa9VVaZY8D FBWXLU57UadfBOoA2t5dP7b50fVaeuGgonf8rcXWDtd1S68LAKyZHRDrR tU+KjtGkLGrl7RIfqymVl1sj3KKtovoJqxC+YA+ZWs6ujlmIM6TKhG0c5 icARNVoy5/1GKPxxqK/tKDu0HOiSvnL3pY7vnuKbOHBRBpfQUt8DtLAXf HUvdsgIdRIyyJ6Q+Xrnh6xhFAs/FKo1/HugLMacjS5MuYzGHpLY6YLUgk 5hBl/lmdUJbXth/KqtJkJLRDyq8BfYUYqZCTX+FJYXTOCaMr+CC5FkciD Q==; X-IronPort-AV: E=Sophos;i="5.60,246,1549900800"; d="scan'208";a="202470561" Received: from mail-co1nam05lp2052.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.52]) by ob1.hgst.iphmx.com with ESMTP; 20 Mar 2019 08:39:28 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gPW+OKm4Tlx+3O1teWF8qyjquSOrPPAYusxPoHrwXxw=; b=PhPJXEStB0ZUTl8mn3a2MRi++lFJ/ATBlxjfsS1QDHr+vM0bn2g5CopFCkWfgZU39LAOhxLPTEd7JhMhyrYshnxAw5HDbK8sf/RsSUyxIr7xH/s6gcr08cBDftUCrqDXEwbF/Fs3v3X2UkB3uRW+eh4i22Xdr6AQPbxzAUbC3aM= Received: from BYAPR04MB4901.namprd04.prod.outlook.com (52.135.232.206) by BYAPR04MB6198.namprd04.prod.outlook.com (20.178.232.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Wed, 20 Mar 2019 00:38:04 +0000 Received: from BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7]) by BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7%6]) with mapi id 15.20.1709.015; Wed, 20 Mar 2019 00:38:04 +0000 From: Alistair Francis To: "mark.corbin@embecosm.com" , "buildroot@buildroot.org" Thread-Topic: [PATCH v5 1/4] board/qemu/riscv32-virt: Update linux config Thread-Index: AQHU3rUuqMiLLqyJU0CetwaaDEvvyw== Date: Wed, 20 Mar 2019 00:38:04 +0000 Message-ID: <20190320003706.1126-1-alistair.francis@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-clientproxiedby: BYAPR05CA0108.namprd05.prod.outlook.com (2603:10b6:a03:e0::49) To BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6dd1fad-8ce0-49e1-d98b-08d6accc508b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB6198; x-ms-traffictypediagnostic: BYAPR04MB6198: x-ms-exchange-purlcount: 1 wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(376002)(366004)(39860400002)(346002)(189003)(199004)(6506007)(8936002)(2906002)(54906003)(50226002)(81166006)(5660300002)(3846002)(6116002)(15650500001)(6486002)(6512007)(316002)(6306002)(478600001)(6436002)(8676002)(105586002)(106356001)(7736002)(81156014)(2501003)(72206003)(102836004)(486006)(36756003)(25786009)(305945005)(386003)(68736007)(4326008)(99286004)(66066001)(110136005)(53936002)(97736004)(71190400001)(186003)(2616005)(86362001)(26005)(476003)(14454004)(71200400001)(14444005)(52116002)(256004)(1076003)(44832011); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB6198; H:BYAPR04MB4901.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: kmAafPJyq0jB6BJ2jKuGtQO4xI/rM6zoj0qG4zNZ8Nua3NPqvdgnARRWefqhmwiUFj80dxpHxC22zSY4tk0QCFVpqBxDn5SnDHyfCImTndoXsj26ODxK08vmRRqcrxvBnK1CxYIJGyr30NEb013pN8KupAdxJXmgzvRL15U20YiZHGOBf7VBaxc0vcVt11glv21+DhWfEcCl3KSDz9YPS+l/ZbqhFE3q0pzhrCBFi3rXMg+Wm+UDSvzfrLJ1npw8sYJTzvO18gQGjC/J3ZXwYn7w7cI+vx334S0XnS8SB4uGFV56q1JCSD9BDNLpvZkGDWlXt12mfVbHBWxytLEBOiMliEBL8TstEr1AzXtMENXy7+dH3JE5nYSQ9vpHYPH7oav+XvHTfAy8LS6p+rsnGaX+HI6w2PVAb6UJ+VCYgGM= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6dd1fad-8ce0-49e1-d98b-08d6accc508b X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 00:38:04.6854 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB6198 Subject: [Buildroot] [PATCH v5 1/4] board/qemu/riscv32-virt: Update linux config 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: Atish Patra , Alistair Francis , "alistair23@gmail.com" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Update the Linux defconfig. This defconfig is the in tree defconfig with 32-bit support enabled. Signed-off-by: Alistair Francis --- board/qemu/riscv32-virt/linux.config | 35 +++++++++++----------------- configs/qemu_riscv32_virt_defconfig | 4 ++-- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/board/qemu/riscv32-virt/linux.config b/board/qemu/riscv32-virt/linux.config index c25583f768..fa8a9fd650 100644 --- a/board/qemu/riscv32-virt/linux.config +++ b/board/qemu/riscv32-virt/linux.config @@ -1,23 +1,14 @@ +CONFIG_32BIT=y +CONFIG_PAGE_OFFSET=0xC0000000 +CONFIG_PGTABLE_LEVELS=2 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 +# CONFIG_ARCH_RV64I is not set +CONFIG_MAXPHYSMEM_2GB=y +CONFIG_LBDAF=y +# CONFIG_SCSI_NSP32 is not set +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_LIB_ASHLDI3=y +CONFIG_GENERIC_LIB_ASHRDI3=y +CONFIG_GENERIC_LIB_LSHRDI3=y +CONFIG_GENERIC_LIB_UCMPDI2=y +CONFIG_GENERIC_LIB_UMODDI3=y diff --git a/configs/qemu_riscv32_virt_defconfig b/configs/qemu_riscv32_virt_defconfig index 6f9a61b11c..15b4c5624c 100644 --- a/configs/qemu_riscv32_virt_defconfig +++ b/configs/qemu_riscv32_virt_defconfig @@ -18,8 +18,8 @@ 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="8fe28cb58bcb235034b64cbbb7550a8a43fd88be" -BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/riscv32-virt/linux.config" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/riscv32-virt/linux.config" # Bootloader BR2_TARGET_RISCV_PK=y From patchwork Wed Mar 20 00:38:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1058785 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="cEO9Z7sX"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="Oun1M8UE"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44PB9l3BHqz9sNJ for ; Wed, 20 Mar 2019 11:48:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 675CB8557E; Wed, 20 Mar 2019 00:48:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fbg0kN6m4e8J; Wed, 20 Mar 2019 00:48:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B4F9185593; Wed, 20 Mar 2019 00:48:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 8D2F61BF969 for ; Wed, 20 Mar 2019 00:48:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 89374853C3 for ; Wed, 20 Mar 2019 00:48:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1HzBIMjzCh54 for ; Wed, 20 Mar 2019 00:48:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 021A185308 for ; Wed, 20 Mar 2019 00:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1553042896; x=1584578896; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=rjYPgUAPyP7OKeKyxPHCAUDp2JUmdu6EptD/4M5WqxY=; b=cEO9Z7sX/CW6BXgtrpxIgdE0SkQqQtn3l77cxVWQZLwq3DC19plnjlSr VrHJJ08DvALJPATls5MnKWXBrl/0tmLC0pvpN6eglXyrnu4SAtK9RQ7A9 X2v2lvQE7ObPr4g1hB6FIB1lICY23E+LsDGiVSdYxTpC612t1pv7KlkPr PrHRHziWspH6Gv3c561gL2oHVhLxVmiPaNLIGBlBmo6orhdK4TtVB71i7 KShR8Kx1SMNDwxyKfYfUCFjrjTpgHKckkjLS28a59ZIQfNoep9/6aCsiA JZQh0AjixZkJsYazW8V6YO82ckiCz6znGC/Co8HxWAobVCKLh9LchxZML w==; X-IronPort-AV: E=Sophos;i="5.60,246,1549900800"; d="scan'208";a="202470562" Received: from mail-co1nam05lp2052.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.52]) by ob1.hgst.iphmx.com with ESMTP; 20 Mar 2019 08:39:28 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sa26vBZLH1SxM1LgSp7382NNppr4sVshrEr64LoWOig=; b=Oun1M8UE/vVxdr+LnO2a0ZbvMZWHBXSo7f5MmDH6Lvz6UjnDgX9ET4lsH9M0HHhiLGSuWPyEOhdSRb5i5tKmLpnABKGkkZoJoxcLvgSxLlf/lWp1w81GISbq8CseyfcC15JexOMJQcU2rizZnRUr43AWxq4gj8gJY5YxNG2R6Rs= Received: from BYAPR04MB4901.namprd04.prod.outlook.com (52.135.232.206) by BYAPR04MB6198.namprd04.prod.outlook.com (20.178.232.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Wed, 20 Mar 2019 00:38:05 +0000 Received: from BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7]) by BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7%6]) with mapi id 15.20.1709.015; Wed, 20 Mar 2019 00:38:05 +0000 From: Alistair Francis To: "mark.corbin@embecosm.com" , "buildroot@buildroot.org" Thread-Topic: [PATCH v5 2/4] boot/opensbi: new package Thread-Index: AQHU3rUuu5gOig2mpkiQwDs5qEUbNA== Date: Wed, 20 Mar 2019 00:38:05 +0000 Message-ID: <20190320003706.1126-2-alistair.francis@wdc.com> References: <20190320003706.1126-1-alistair.francis@wdc.com> In-Reply-To: <20190320003706.1126-1-alistair.francis@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-clientproxiedby: BYAPR05CA0108.namprd05.prod.outlook.com (2603:10b6:a03:e0::49) To BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d96ddec5-e658-4f84-dc00-08d6accc50c7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB6198; x-ms-traffictypediagnostic: BYAPR04MB6198: x-ms-exchange-purlcount: 1 wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(376002)(366004)(39860400002)(346002)(189003)(199004)(6506007)(8936002)(2906002)(54906003)(50226002)(81166006)(5660300002)(3846002)(6116002)(6486002)(6512007)(316002)(6306002)(478600001)(6436002)(8676002)(105586002)(106356001)(45080400002)(966005)(7736002)(81156014)(2501003)(72206003)(102836004)(11346002)(486006)(36756003)(25786009)(305945005)(386003)(68736007)(4326008)(99286004)(66066001)(110136005)(76176011)(53936002)(97736004)(71190400001)(186003)(446003)(2616005)(86362001)(26005)(476003)(14454004)(71200400001)(52116002)(256004)(1076003)(44832011); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB6198; H:BYAPR04MB4901.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RUWUxRdbb0p4v0mjqwa62NKxa3G5QFWyII42G0tchyAk4ZTuk+GQH5Efx1n4h6qLaNPAqsETYOwU1121S5L0NFTfW2a1B3j4qIXGxL4iV3pshLCvngMojTSyEuycZpg6Iuim4v2UBrbgmVKkdkgt/nIFDNwUf7AL7zwPVFSmUdw10/GJ3rDIjW3t8cMpHHB3oaFvQ1aEJHztzLJ8DK8DrDTeJ1LRDB2kGypATf/No+IVIq0FFS5nI9x4vIta6BbGWLNtrsg95NF5s52CUX1ND5f1OSLTBEN/tUZIjVxvsG8UWa1Ef/hKnWatbuzM9B84mnR5s6lCY+6FgjtlaQJYy273dAvRtalW+jQMr32JZWzXoEfupwhmkBV+iFkJEaeDa1ahD9aR68spUGfqlVseBwV+cu1IOTZImwYaS5p7GWw= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: d96ddec5-e658-4f84-dc00-08d6accc50c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 00:38:05.1387 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB6198 Subject: [Buildroot] [PATCH v5 2/4] boot/opensbi: new package 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: Atish Patra , Alistair Francis , "alistair23@gmail.com" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" OpenSBI is a much improved alternative to BBL (riscv-pk). Add OpenSBI support to buildroot. Signed-off-by: Alistair Francis --- DEVELOPERS | 1 + boot/Config.in | 1 + boot/opensbi/Config.in | 25 +++++++++++++++++++++++++ boot/opensbi/opensbi.mk | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 boot/opensbi/Config.in create mode 100644 boot/opensbi/opensbi.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3e0ac08e11..91eda42949 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -122,6 +122,7 @@ F: package/kvazaar/ F: package/v4l2loopback/ N: Alistair Francis +F: boot/opensbi/ F: package/xen/ N: Alvaro G. M diff --git a/boot/Config.in b/boot/Config.in index 74481e7545..97bd3de6e9 100644 --- a/boot/Config.in +++ b/boot/Config.in @@ -14,6 +14,7 @@ source "boot/lpc32xxcdl/Config.in" source "boot/mv-ddr-marvell/Config.in" source "boot/mxs-bootlets/Config.in" source "boot/optee-os/Config.in" +source "boot/opensbi/Config.in" source "boot/riscv-pk/Config.in" source "boot/s500-bootloader/Config.in" source "boot/shim/Config.in" diff --git a/boot/opensbi/Config.in b/boot/opensbi/Config.in new file mode 100644 index 0000000000..5f3cc13312 --- /dev/null +++ b/boot/opensbi/Config.in @@ -0,0 +1,25 @@ +config BR2_TARGET_OPENSBI + bool "opensbi" + depends on BR2_riscv + help + OpenSBI aims to provide an open-source and extensible + implementation of the RISC-V SBI specification for a platform + specific firmware (M-mode) and a general purpose OS, + hypervisor or bootloader (S-mode or HS-mode). OpenSBI + implementation can be easily extended by RISC-V platform or + System-on-Chip vendors to fit a particular hadware + configuration. + + https://github.com/riscv/opensbi.git + +if BR2_TARGET_OPENSBI +config BR2_TARGET_OPENSBI_PLAT + string "OpenSBI Platform" + default "" + help + Specifies the OpenSBI platform to build. If no platform is + specified only the OpenSBI platform independent static + library libsbi.a is built. If a platform is specified then + the platform specific static library libplatsbi.a and firmware + examples are built. +endif diff --git a/boot/opensbi/opensbi.mk b/boot/opensbi/opensbi.mk new file mode 100644 index 0000000000..341e2dcb19 --- /dev/null +++ b/boot/opensbi/opensbi.mk @@ -0,0 +1,37 @@ +################################################################################ +# +# opensbi +# +################################################################################ + +OPENSBI_VERSION = v0.3 +OPENSBI_SITE = $(call github,riscv,opensbi,$(OPENSBI_VERSION)) +OPENSBI_LICENSE = BSD-2-Clause +OPENSBI_LICENSE_FILES = COPYING.BSD +OPENSBI_INSTALL_IMAGES = YES + +OPENSBI_MAKE_ENV = \ + CROSS_COMPILE=$(TARGET_CROSS) + +OPENSBI_PLAT = $(call qstrip,$(BR2_TARGET_OPENSBI_PLAT)) +ifneq ($(OPENSBI_PLAT),) +OPENSBI_MAKE_ENV += PLATFORM=$(OPENSBI_PLAT) +endif + +define OPENSBI_BUILD_CMDS + $(TARGET_MAKE_ENV) $(OPENSBI_MAKE_ENV) $(MAKE) -C $(@D) +endef + +ifneq ($(OPENSBI_PLAT),) +OPENSBI_PLAT_INSTALL = \ + $(INSTALL) -m 0644 -D $(@D)/build/platform/$(OPENSBI_PLAT)/firmware/fw_jump.bin $(BINARIES_DIR)/fw_jump.bin; \ + $(INSTALL) -m 0644 -D $(@D)/build/platform/$(OPENSBI_PLAT)/firmware/fw_jump.elf $(BINARIES_DIR)/fw_jump.elf +endif + +# Install libsbi.a in the host lib dir so it can be linked in the future. +define OPENSBI_INSTALL_IMAGES_CMDS + $(OPENSBI_PLAT_INSTALL) + $(INSTALL) -m 0644 -D $(@D)/build/lib/libsbi.a $(HOST_DIR)/usr/lib +endef + +$(eval $(generic-package)) From patchwork Wed Mar 20 00:38:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1058784 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="HEWqgah/"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="BqAY2zu3"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44PB9f1K89z9sNJ for ; Wed, 20 Mar 2019 11:48:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 949E585308; Wed, 20 Mar 2019 00:48:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JJLntC-Q1Q6Z; Wed, 20 Mar 2019 00:48:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 52E0285462; Wed, 20 Mar 2019 00:48:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id E66AC1BF969 for ; Wed, 20 Mar 2019 00:48:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E3B2885116 for ; Wed, 20 Mar 2019 00:48:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kRLcm0Z5lEFS for ; Wed, 20 Mar 2019 00:48:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by fraxinus.osuosl.org (Postfix) with ESMTPS id B99028535F for ; Wed, 20 Mar 2019 00:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1553042897; x=1584578897; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=95gbhlXAL2zfzmlYXJ6PH6bvQCEDlt2jN28kNtRUQpk=; b=HEWqgah/AZ0vEKovdLULevRCL+LrLOvzSVUzhRFtrxRIlO9QJubMQLbf /IBukliHAIxgUL5m2Zd1jGsx9A3hzMAE5i1vhxTAxFtsoexEFvq+1aA8i hUOJtckHiUXwu8BN1zvG8yRxDG7nYnrz1kDhA2mc8DNjDGMqUSY47Fygw FNRLja+i8T0uVK9gF7aPwaxkxqQAz4r8TBHRiI+EOgPdUu87PnWQ9z/o+ 2s26JLDbTQCshyvZZP33TTgNMHYHjxyOttljQNM8osQ/xJFFuJZWDPEry grtjcz4SSNe6z+f2m7xFmp9ZPCHpylAqzuzNwAXmisOWFSY5sOK7Nd5HO A==; X-IronPort-AV: E=Sophos;i="5.60,246,1549900800"; d="scan'208";a="202470564" Received: from mail-co1nam05lp2058.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.58]) by ob1.hgst.iphmx.com with ESMTP; 20 Mar 2019 08:39:31 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bJsmOS1mzzEd65zvsHlYg+lyPxNmHupQ2VWwwZscp1U=; b=BqAY2zu3VrdYOctMjfYAA7BSfzWlC5H026v39YWLIn7WP2gZaw2I/OfleFmyaqaq3OkcaB1TB4ofBzK+uqOlZyX26WbDb2RUGDNmUL9Vx+tIdFAa4cIFVa+ynceCQLbz8ByEjSGokCJrZSgCdqfF/5RHP8Hfd5cmK5PEFPnGmFs= Received: from BYAPR04MB4901.namprd04.prod.outlook.com (52.135.232.206) by BYAPR04MB6198.namprd04.prod.outlook.com (20.178.232.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Wed, 20 Mar 2019 00:38:06 +0000 Received: from BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7]) by BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::1c45:32d7:98ed:4cd7%6]) with mapi id 15.20.1709.015; Wed, 20 Mar 2019 00:38:06 +0000 From: Alistair Francis To: "mark.corbin@embecosm.com" , "buildroot@buildroot.org" Thread-Topic: [PATCH v5 4/4] boot/riscv-pk: Deprecate riscv-pk and BBL Thread-Index: AQHU3rUvDaXJc2yeKEKxDygi1Sri2g== Date: Wed, 20 Mar 2019 00:38:05 +0000 Message-ID: <20190320003706.1126-4-alistair.francis@wdc.com> References: <20190320003706.1126-1-alistair.francis@wdc.com> In-Reply-To: <20190320003706.1126-1-alistair.francis@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-clientproxiedby: BYAPR05CA0108.namprd05.prod.outlook.com (2603:10b6:a03:e0::49) To BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 73c3ae88-d5a9-4a07-6647-08d6accc514c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB6198; x-ms-traffictypediagnostic: BYAPR04MB6198: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(376002)(366004)(39860400002)(346002)(189003)(199004)(6506007)(8936002)(2906002)(54906003)(50226002)(81166006)(5660300002)(3846002)(6116002)(6486002)(6512007)(316002)(478600001)(6436002)(8676002)(105586002)(106356001)(7736002)(81156014)(2501003)(72206003)(102836004)(11346002)(486006)(36756003)(4744005)(25786009)(305945005)(386003)(68736007)(4326008)(99286004)(66066001)(110136005)(76176011)(53936002)(97736004)(71190400001)(186003)(446003)(2616005)(86362001)(26005)(476003)(14454004)(71200400001)(14444005)(52116002)(256004)(1076003)(44832011); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB6198; H:BYAPR04MB4901.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: iQFbA0AbETIbKwugg1DYDeInuO+TSb1HWvjXuajpa0hmdp+2mwt3hGwHaTQ2cBFwlhFTo6g1eIdWEh6vuyICVLumAltMf0CNXmuVI87MpWefTHBT49CF5EH4o3wGITFsouYUhXbtXZvmn/qO+lV4+VhxYTiUEEPOdIwm9U7i3IXFOtA+QyNR0UAPxjuvwTSXLIr0zTP60C1JnYKTWIOc7JL2EDi+geZysZTvNIynmIOqQyjuzovrym/kbgdBLuzs58jgtojbVyhHXp8+dTePWyXsLbh+IhL7fhNMDGI0NoOmNf84bm5kc2AWJ07IHxrBSGd7sqy8gVKlUPMrJWmHcWZWgkDkXyvHAckZ3ihT+RAYfIaFXE7HsOyMF8r0emgl96K2/450LF511Sh6k6oOXpE7naLk6rt3Un9T77mElt8= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73c3ae88-d5a9-4a07-6647-08d6accc514c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 00:38:05.9903 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB6198 Subject: [Buildroot] [PATCH v5 4/4] boot/riscv-pk: Deprecate riscv-pk and BBL 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: Atish Patra , Alistair Francis , "alistair23@gmail.com" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Alistair Francis --- boot/riscv-pk/Config.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot/riscv-pk/Config.in b/boot/riscv-pk/Config.in index b4fe36590f..cf9c5cd8ee 100644 --- a/boot/riscv-pk/Config.in +++ b/boot/riscv-pk/Config.in @@ -3,10 +3,13 @@ comment "riscv-pk needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL config BR2_TARGET_RISCV_PK - bool "riscv-pk" + bool "riscv-pk (deprecated)" depends on BR2_riscv depends on BR2_LINUX_KERNEL help + The RISC-V Proxy Kernel (pk) and Boot Loader (BBL) have + been deprecated. Please use OpenSBI instead. + The RISC-V Proxy Kernel (pk) package contains the Berkeley Boot Loader (BBL) which has been designed to boot a Linux kernel on a RISC-V processor.