Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 00/11] Fix RV64 NOMMU and add Canaan K210 SoC support
@ 2022-05-30  3:38 Damien Le Moal via buildroot
  2022-05-30  3:38 ` [Buildroot] [PATCH v2 01/11] package: elf2flt: fix config menu entry description Damien Le Moal via buildroot
                   ` (11 more replies)
  0 siblings, 12 replies; 23+ messages in thread
From: Damien Le Moal via buildroot @ 2022-05-30  3:38 UTC (permalink / raw)
  To: buildroot, Thomas Petazzoni
  Cc: Niklas Cassel, Alistair Francis, Yann E . MORIN

This patch series is a rework of the old v5 series "Add RV64 NOMMU and
Canaan K210 SoC support" already posted some (long) time ago.

This series adds support for building 64-bits RISC-V NOMMU kernels (both
bootable kernels and u-boot sdcard boot envronements) for NOMMU RISC-V
64-bits boards. The board supported include QEMU and many boards using
the dual-core RISC-V 64-bits Cannan Kendryte K210 SoC.

The first patch is a simple fix of elf2flt configuration menu entry.
The second patch fixes the existing elf2flt RISC-V 64-bits support.

The third patch adds a Linux kernel patch that must be used for all
NOMMU RISC-V builds. This patch will be present in the upcoming 5.19
kernel.

Patch 4 adds a buildroot configuration file for QEMU NOMMU RISC-V
64-bits builds.

Patch 5 adds the python-kflash utility as a host package to allow users
to program their K210-based boards with bootable images. This patch also
modifies the python-serial package to add its host package definition to
make the python-miniterm utility available to users to open serial
consoles with their K210-based boards.

Patch 6 adds the configurations files common to all K210-based boards.

Finally, the last 5 patches add support for the following K210-based
boards:
* Sipeed MAIX Bit
* Sipeed MAIXDUINO
* Sipeed MAIX Dock (dan)
* Sipeed MAIX Go
* Canaan KD233 development board

For each board, a readme.txt file is added to document how to build and
install images for these  
boards.

CHanges from v1:
* Modified patch 5 to add the python-kflash utility as a host package as
  the new 1.1.5 version of this utility fixes the previously identified
  problems with python dependencies.
* Fixed patch 4 (qemu riscv nommu) to have buildroot configuration file
  reference kernel 5.18.
* Fixed patch 11 (kd233 board) to have buildroot configuration file
  reference kernel 5.18.
* Modified patch 7 to 11 to add the python-kflash host package to the
  buildroot configuration files. The instructions in the readme.txt
  file for each board are also updated accordingly.

Damien Le Moal (10):
  package: elf2flt: fix config menu entry description
  package: elf2flt: Update RISC-V 64-bits support
  board: Add common Linux kernel support for RISCV NOMMU builds
  package: python-kflash: Kendryte K210 UART ISP Utility
  board: Add common support for Canaan K210 SoC-based boards
  board: Add Sipeed MAIX-Bit board support
  board: Add Sipeed MAIXDUINO board support
  board: Add Sipeed MAIX-Dock board support
  board: Add Sipeed MAIX-Go board support
  board: Add Canaan KD233 board support

Niklas Cassel (1):
  configs/qemu_riscv64_nommu_virt_defconfig: new defconfig

 DEVELOPERS                                    |  14 +
 board/canaan/k210-soc/busybox-tiny.config     | 231 +++++++++++++
 board/canaan/k210-soc/genimage.cfg            |  30 ++
 board/canaan/k210-soc/linux-sdcard.config     |   4 +
 board/canaan/k210-soc/post-build.sh           |  28 ++
 board/canaan/k210-soc/rootfs_overlay/init     |   1 +
 .../canaan/k210-soc/rootfs_overlay/sbin/init  |  41 +++
 board/canaan/k210-soc/uboot.config            |   1 +
 board/canaan/kd233/linux-cpio.config          |   2 +
 board/canaan/kd233/readme.txt                 | 149 ++++++++
 board/qemu/riscv64-virt/readme.txt            |   2 +
 ...ot-stop-relocating-GOT-entries-prema.patch | 110 ++++++
 board/riscv/nommu/readme.txt                  |   3 +
 board/sipeed/maix-bit/linux-cpio.config       |   2 +
 board/sipeed/maix-bit/readme.txt              | 316 +++++++++++++++++
 board/sipeed/maix-dock/linux-cpio.config      |   2 +
 board/sipeed/maix-dock/readme.txt             | 321 ++++++++++++++++++
 board/sipeed/maix-go/linux-cpio.config        |   2 +
 board/sipeed/maix-go/readme.txt               | 320 +++++++++++++++++
 board/sipeed/maixduino/linux-cpio.config      |   2 +
 board/sipeed/maixduino/readme.txt             | 292 ++++++++++++++++
 configs/canaan_kd233_defconfig                |  38 +++
 configs/qemu_riscv64_nommu_virt_defconfig     |  35 ++
 configs/sipeed_maix_bit_defconfig             |  38 +++
 configs/sipeed_maix_bit_sdcard_defconfig      |  56 +++
 configs/sipeed_maix_dock_defconfig            |  38 +++
 configs/sipeed_maix_dock_sdcard_defconfig     |  56 +++
 configs/sipeed_maix_go_defconfig              |  38 +++
 configs/sipeed_maix_go_sdcard_defconfig       |  56 +++
 configs/sipeed_maixduino_defconfig            |  38 +++
 configs/sipeed_maixduino_sdcard_defconfig     |  56 +++
 package/Config.in.host                        |   3 +
 ...tate-32-byte-alignment-for-.data-sec.patch |  81 +++++
 ...f2flt-fix-.eh_frame-section-handling.patch |  73 ++++
 ...4-elf2flt-add-riscv-64-bits-support.patch} |  80 ++---
 package/elf2flt/Config.in.host                |   2 +-
 package/python-kflash/Config.in.host          |   9 +
 package/python-kflash/python-kflash.hash      |   5 +
 package/python-kflash/python-kflash.mk        |  15 +
 package/python-pyelftools/Config.in.host      |   7 +
 package/python-serial/Config.in.host          |   6 +
 package/python-serial/python-serial.mk        |   1 +
 42 files changed, 2550 insertions(+), 54 deletions(-)
 create mode 100644 board/canaan/k210-soc/busybox-tiny.config
 create mode 100644 board/canaan/k210-soc/genimage.cfg
 create mode 100644 board/canaan/k210-soc/linux-sdcard.config
 create mode 100755 board/canaan/k210-soc/post-build.sh
 create mode 120000 board/canaan/k210-soc/rootfs_overlay/init
 create mode 100755 board/canaan/k210-soc/rootfs_overlay/sbin/init
 create mode 100644 board/canaan/k210-soc/uboot.config
 create mode 100644 board/canaan/kd233/linux-cpio.config
 create mode 100644 board/canaan/kd233/readme.txt
 create mode 100644 board/riscv/nommu/kernel_patches/0001-binfmt_flat-do-not-stop-relocating-GOT-entries-prema.patch
 create mode 100644 board/riscv/nommu/readme.txt
 create mode 100644 board/sipeed/maix-bit/linux-cpio.config
 create mode 100644 board/sipeed/maix-bit/readme.txt
 create mode 100644 board/sipeed/maix-dock/linux-cpio.config
 create mode 100644 board/sipeed/maix-dock/readme.txt
 create mode 100644 board/sipeed/maix-go/linux-cpio.config
 create mode 100644 board/sipeed/maix-go/readme.txt
 create mode 100644 board/sipeed/maixduino/linux-cpio.config
 create mode 100644 board/sipeed/maixduino/readme.txt
 create mode 100644 configs/canaan_kd233_defconfig
 create mode 100644 configs/qemu_riscv64_nommu_virt_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/0002-elf2flt.ld-reinstate-32-byte-alignment-for-.data-sec.patch
 create mode 100644 package/elf2flt/0003-elf2flt-fix-.eh_frame-section-handling.patch
 rename package/elf2flt/{0002-elf2flt-add-riscv-64-bits-support.patch => 0004-elf2flt-add-riscv-64-bits-support.patch} (52%)
 create mode 100644 package/python-kflash/Config.in.host
 create mode 100644 package/python-kflash/python-kflash.hash
 create mode 100644 package/python-kflash/python-kflash.mk
 create mode 100644 package/python-pyelftools/Config.in.host
 create mode 100644 package/python-serial/Config.in.host

-- 
2.36.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-06 20:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-30  3:38 [Buildroot] [PATCH v2 00/11] Fix RV64 NOMMU and add Canaan K210 SoC support Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 01/11] package: elf2flt: fix config menu entry description Damien Le Moal via buildroot
2022-05-30 10:03   ` Alistair Francis
2022-05-30 18:59   ` Thomas Petazzoni via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 02/11] package: elf2flt: Update RISC-V 64-bits support Damien Le Moal via buildroot
2022-05-30 19:06   ` Thomas Petazzoni via buildroot
2022-07-25 14:44   ` Thomas Petazzoni via buildroot
2022-07-26  3:41     ` Damien Le Moal via buildroot
2022-07-26  9:30       ` Romain Naour
2022-08-06 20:47     ` Thomas Petazzoni via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 03/11] board: Add common Linux kernel support for RISCV NOMMU builds Damien Le Moal via buildroot
2022-05-30 19:17   ` Thomas Petazzoni via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 04/11] configs/qemu_riscv64_nommu_virt_defconfig: new defconfig Damien Le Moal via buildroot
2022-05-30 19:18   ` Thomas Petazzoni via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 05/11] package: python-kflash: Kendryte K210 UART ISP Utility Damien Le Moal via buildroot
2022-05-30 19:31   ` Thomas Petazzoni via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 06/11] board: Add common support for Canaan K210 SoC-based boards Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 07/11] board: Add Sipeed MAIX-Bit board support Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 08/11] board: Add Sipeed MAIXDUINO " Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 09/11] board: Add Sipeed MAIX-Dock " Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 10/11] board: Add Sipeed MAIX-Go " Damien Le Moal via buildroot
2022-05-30  3:38 ` [Buildroot] [PATCH v2 11/11] board: Add Canaan KD233 " Damien Le Moal via buildroot
2022-05-30 10:19 ` [Buildroot] [PATCH v2 00/11] Fix RV64 NOMMU and add Canaan K210 SoC support Waldemar Brodkorb

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