Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 0/9] Add RV64 NOMMU and Canaan K210 SoC support
@ 2021-08-30  4:40 Damien Le Moal
  2021-08-30  4:40 ` [Buildroot] [PATCH v4 1/9] package/elf2flt: add RISC-V 64-bits support Damien Le Moal
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Damien Le Moal @ 2021-08-30  4:40 UTC (permalink / raw)
  To: buildroot, Thomas Petazzoni; +Cc: Alistair Francis, Yann E . MORIN

This series adds support for building 64-bits RISC-V NOMMU kernel
bootable images for boards using the dual-core RISC-V 64-bits Cannan
Kendryte K210 SoC.

The first patch adds support for RV64 to the elf2flt package.
Patch 2 changes the base name of the toolchain cross-compilation
executables to avoid build errors. With these preparatory patches in
place, patch 3 makes MMU build optional for RISC-V 64-bits.

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.

Note about patch 1: Many comments have been made on the elf2flt pull
request. The elf2flt support needs to be reworked but may take some
time. Until this is rewrite is completed, if acceptable, please take
this patch as a temporary support.

Changes from v3:
* Rebased on latest tree

Changes from v2:
* Reorder patches: former patch 1 is now patch 3.
* Clearly state in the first 3 patch commit messages that the NOMMU
  support introduced is for RISC-V 64-bits only and does not affect
  RV32.
* Modify patch 3 to allow NOMMU builds only for RV64 as opposed to both
  RV32 and RV64 before.
* Add reference to upstream elf2flt pull request in patch 1.
* Simplify the configurations for all boards, keeping default settings
  when a special value is not needed (e.g. gcc version).
* Dropped busybox-tiny-initramfs.config configuration and replaced it
  with a busybox fragment configuration file updating the default
  busybox-minimal.config configuration (used now for all boards).
* Changed common k210 rootfs overlay to replace the default /init script
  with a symbolic link pointing to the overlay provided /sbin/init
  script.

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 64-bits support
  package/Makefile.in: Fix NOMMU RISC-V 64-bits toolchain base name

Damien Le Moal (7):
  arch/config: Make RISC-V 64-bits 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                                |   1 -
 arch/Config.in.riscv                          |   2 +
 board/canaan/k210-common/README.md            | 318 ++++++++++++++++++
 board/canaan/k210-common/busybox-tiny.config  | 243 +++++++++++++
 board/canaan/k210-common/rootfs_overlay/init  |   1 +
 .../k210-common/rootfs_overlay/sbin/init      |  27 ++
 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                |  15 +
 configs/canaan_kd233_sdcard_defconfig         |  14 +
 configs/sipeed_maix_bit_defconfig             |  15 +
 configs/sipeed_maix_bit_sdcard_defconfig      |  14 +
 configs/sipeed_maix_dock_defconfig            |  15 +
 configs/sipeed_maix_dock_sdcard_defconfig     |  14 +
 configs/sipeed_maix_go_defconfig              |  15 +
 configs/sipeed_maix_go_sdcard_defconfig       |  14 +
 configs/sipeed_maixduino_defconfig            |  15 +
 configs/sipeed_maixduino_sdcard_defconfig     |  14 +
 package/Makefile.in                           |   5 +-
 ...04-elf2flt-add-riscv-64-bits-support.patch | 299 ++++++++++++++++
 package/elf2flt/Config.in.host                |   2 +-
 29 files changed, 1069 insertions(+), 4 deletions(-)
 create mode 100644 board/canaan/k210-common/README.md
 create mode 100644 board/canaan/k210-common/busybox-tiny.config
 create mode 120000 board/canaan/k210-common/rootfs_overlay/init
 create mode 100755 board/canaan/k210-common/rootfs_overlay/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-64-bits-support.patch

-- 
2.31.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-08-30 21:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-30  4:40 [Buildroot] [PATCH v4 0/9] Add RV64 NOMMU and Canaan K210 SoC support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 1/9] package/elf2flt: add RISC-V 64-bits support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 2/9] package/Makefile.in: Fix NOMMU RISC-V 64-bits toolchain base name Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 3/9] arch/config: Make RISC-V 64-bits MMU optional Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 4/9] board: Add Sipeed MAIX-bit support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 5/9] board: Add Sipeed MAIX-Go support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 6/9] board: Add Sipeed MAIXDUINO support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 7/9] board: Add Sipeed MAIX-Dock support Damien Le Moal
2021-08-30  4:40 ` [Buildroot] [PATCH v4 8/9] board: Add Canaan KD233 support Damien Le Moal
2021-08-30  4:41 ` [Buildroot] [PATCH v4 9/9] board: Document Canaan K210 based boards support Damien Le Moal
2021-08-30 21:32 ` [Buildroot] [PATCH v4 0/9] Add RV64 NOMMU and Canaan K210 SoC support Thomas Petazzoni
2021-08-30 21:42   ` Damien Le Moal
2021-08-30 21:55     ` Thomas Petazzoni
2021-08-30 21:59       ` Damien Le Moal
2021-08-30 21:52   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox