From patchwork Thu Jul 15 00:48:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 1505485 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=CsCTQPOE; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GQG4r3dRzz9sWc for ; Thu, 15 Jul 2021 10:50:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 444F54051B; Thu, 15 Jul 2021 00:50:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ui_9ic_elUEU; Thu, 15 Jul 2021 00:50:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 400C340600; Thu, 15 Jul 2021 00:50:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id EB4861BF424 for ; Thu, 15 Jul 2021 00:50:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DA84D4067A for ; Thu, 15 Jul 2021 00:50:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l-EBxAX2aDWA for ; Thu, 15 Jul 2021 00:50:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from esa3.hgst.iphmx.com (esa3.hgst.iphmx.com [216.71.153.141]) by smtp4.osuosl.org (Postfix) with ESMTPS id B548F4051B for ; Thu, 15 Jul 2021 00:50:13 +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=1626310213; x=1657846213; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=C8FvkAsy0mZZJFayokLyfhPHKup+Q6IfvR/rHpH8eJU=; b=CsCTQPOEo3Zyo4NItQ0ewNmo/OVB0dN4OUGE3FQ7YPpQzeG2Wi+Klq4L iKLxOHbDLGt7Cd6KafRtixs4ms5eNmv2Cu6TNkFKpFCbxSEtN4BBe/325 XBNqR/cYhRACXXAxlE1hTu+O9D7UQjwFQpzkHZ3QBpuvMZAbE54MGqm9x Xn4niDt4PgxkJqt8DEwAIXHBYN9UU9N+yZ0v+lk1pwnldS3k5e3RFYaHH wKHOH+SpVOgL6PfnVvCUHoxkJ1gS4uibt3vq77TbQeNIhUNJtgE7pm2qA YS84TSVzEhdg3w8w7X7+KV6kFWflrXHS+41oQEDGytgNKHC8FJESsr9K1 Q==; IronPort-SDR: Z75uhGmJh2W6QQn+kX5uQUWXDPr2bRhyZvg0ct46dXZR29xSdol6WU9GWHnVWGessZKqm67oIB hi6aGabCAp1jLu4/84sXiFdcURbd+EJD+wFuqVszT/drq9nn4VoaGm2iR310LPfP4ilMgoihq3 5Ypd1HQ+cdOvMf5iv7QZbYIUGfwvZS2TG8xu81q4zFmU0/Jhh4QugigPL/3PLqm1cu3sNf7QIh wYDaZ9UHKORxNEoPGwPgJVviVSLNULzwmttQz7oPB2uApOP1omkd9ikZ5LsjXxSmAK5H6VIFNb qXQ= X-IronPort-AV: E=Sophos;i="5.84,240,1620662400"; d="scan'208";a="179422890" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 15 Jul 2021 08:50:12 +0800 IronPort-SDR: bUkRNXgfRR19Ue8in4pWmErmhx+i99KTdT5kYm+4Y/iERkRi05GO93n7wMuR0CpK2he/T192Fi cgZP7/PBCU1plU8AcPs6X1QvaHQHlp3+86CqAqd+MIMqmls25VtbSc5hlET5sQvVdXtBabfF4i hmHTkowxzmo7Q9AX/fsQkBRisUvgG+x9z/P4x4T1LlDFbJ7OkXBiblZZAAFfZDBW8icBBNexyK DX6kKBdmwrfvrFds4sBYFeiEgXcwO6itq90FgEcInFvJ1ZV93RChBPJsc4OvS03WWM4OpyJdh/ xD+bTVJuaJcNRwG7U5OcEohF Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2021 17:28:15 -0700 IronPort-SDR: mQxiZk7hCvB+APAHwAc7t8GNCJ162L29eVSmdCbj/N54PN6pmMQXQCcBNLNvFn3LW8cWwfr4qn PuN5dHAms/aIj3NMMCVfyOd9bizOCpPx9ukzHa+iXu5SR4Fnb+dWsaL8d+g4Ju85JJD3Zf+jpE FuZQvMK0UZy3UTy85TMIA13M62VY5KMGEN1Yfaov8ccTmHJ4DsrsT4Vqii+7DLnQyPL3LdgkP7 qJpI6grExAEZ7TxFvELoKMJDsjNkCf9sVrF73hnEdIZBpYNw5nsGpjAR36v9vRHkJIFXeHCo6v jMw= WDCIronportException: Internal Received: from unknown (HELO twashi.fujisawa.hgst.com) ([10.225.163.48]) by uls-op-cesaip01.wdc.com with ESMTP; 14 Jul 2021 17:50:12 -0700 From: Damien Le Moal To: buildroot , Thomas Petazzoni , Mark Corbin Date: Thu, 15 Jul 2021 09:48:34 +0900 Message-Id: <20210715004843.337268-1-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 0/9] Add RISC-V NOMMU and Canaan K210 SoC support 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: Alistair Francis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This series adds support for building RISC-V NOMMU kernel bootable images for boards using the Cannan Kendryte K210 SoC. The first patch makes MMU builds optional for RISC-V. The second patch enables RV64 support in elf2flt (patch sent to uclinux-dev). The third patch changes the base name of the toolchain to avoid build errors. The following 5 patches add default build configuration files for various boards: MAIX-bit, MAIX-go, MAIX-dock (Dan Dock) and MAIXDUINO from Sipeed and the Canaan KD233 development board. Finally, patch 9 documents how to build and install images for these boards. Changes from v1: * Rebased on latest master * Simplified patch 3 as suggested by Baruch * Fixed typos in documentation (patch 9) * Added reviewed-by tags Christoph Hellwig (2): package/elf2flt: add RISC-V support package make: build RISC-V nommu builds as linux Damien Le Moal (7): arch/config: Make RISC-V MMU optional board: Add Sipeed MAIX-bit support board: Add Sipeed MAIX-Go support board: Add Sipeed MAIXDUINO support board: Add Sipeed MAIX-Dock support board: Add Canaan KD233 support board: Document Canaan K210 based boards support arch/Config.in | 2 +- board/canaan/k210-common/README.md | 318 +++++ .../k210-common/busybox-tiny-initramfs.config | 1183 +++++++++++++++++ .../k210-common/rootfs_overlay/usr/sbin/init | 26 + board/canaan/kd233/README.md | 4 + board/canaan/kd233/linux-dtb.config | 2 + board/sipeed/maix-bit/README.md | 4 + board/sipeed/maix-bit/linux-dtb.config | 2 + board/sipeed/maix-dock/README.md | 4 + board/sipeed/maix-dock/linux-dtb.config | 2 + board/sipeed/maix-go/README.md | 4 + board/sipeed/maix-go/linux-dtb.config | 2 + board/sipeed/maixduino/README.md | 4 + board/sipeed/maixduino/linux-dtb.config | 2 + configs/canaan_kd233_defconfig | 23 + configs/canaan_kd233_sdcard_defconfig | 23 + configs/sipeed_maix_bit_defconfig | 23 + configs/sipeed_maix_bit_sdcard_defconfig | 23 + configs/sipeed_maix_dock_defconfig | 23 + configs/sipeed_maix_dock_sdcard_defconfig | 23 + configs/sipeed_maix_go_defconfig | 23 + configs/sipeed_maix_go_sdcard_defconfig | 23 + configs/sipeed_maixduino_defconfig | 23 + configs/sipeed_maixduino_sdcard_defconfig | 23 + package/Makefile.in | 5 +- .../0004-elf2flt-add-riscv-support.patch | 293 ++++ package/elf2flt/Config.in.host | 2 +- 27 files changed, 2085 insertions(+), 4 deletions(-) create mode 100644 board/canaan/k210-common/README.md create mode 100644 board/canaan/k210-common/busybox-tiny-initramfs.config create mode 100755 board/canaan/k210-common/rootfs_overlay/usr/sbin/init create mode 100644 board/canaan/kd233/README.md create mode 100644 board/canaan/kd233/linux-dtb.config create mode 100644 board/sipeed/maix-bit/README.md create mode 100644 board/sipeed/maix-bit/linux-dtb.config create mode 100644 board/sipeed/maix-dock/README.md create mode 100644 board/sipeed/maix-dock/linux-dtb.config create mode 100644 board/sipeed/maix-go/README.md create mode 100644 board/sipeed/maix-go/linux-dtb.config create mode 100644 board/sipeed/maixduino/README.md create mode 100644 board/sipeed/maixduino/linux-dtb.config create mode 100644 configs/canaan_kd233_defconfig create mode 100644 configs/canaan_kd233_sdcard_defconfig create mode 100644 configs/sipeed_maix_bit_defconfig create mode 100644 configs/sipeed_maix_bit_sdcard_defconfig create mode 100644 configs/sipeed_maix_dock_defconfig create mode 100644 configs/sipeed_maix_dock_sdcard_defconfig create mode 100644 configs/sipeed_maix_go_defconfig create mode 100644 configs/sipeed_maix_go_sdcard_defconfig create mode 100644 configs/sipeed_maixduino_defconfig create mode 100644 configs/sipeed_maixduino_sdcard_defconfig create mode 100644 package/elf2flt/0004-elf2flt-add-riscv-support.patch