sifiveu: add new target for SiFive U-based boards
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 16 Dec 2018 10:05:58 +0000 (11:05 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Sun, 28 May 2023 11:19:11 +0000 (13:19 +0200)
commita3469a90c47edd94daae6a23b810b74cd8389ce3
treef816a04ebd6a631b5c4f0f136c267a104a7a52e8
parent91406797f9d06c0008f0a8c2c8455abfb37bf28c
sifiveu: add new target for SiFive U-based boards

RISC-V is a new CPU architecture aimed to be fully free and open. This
target will add support for it, based on 5.15.

Supports running on:
 - HiFive Unleashed - FU540, first generation
 - HiFive Unmatched - FU740, current latest generation, PCIe

SD-card images are generated, where the partitions are required to have
specific type codes. As it is commonplace nowadays, OpenSBI is used as the
first stage, with U-boot following as the proper bootloader.

Specifications:

HiFive Unleashed:
 - CPU: SiFive FU540 quad-core RISC-V (U54, RV64IMAFDC or RV64GC)
 - Memory: 8Gb
 - Ethernet: 1x 10/100/1000
 - Console: via microUSB

HiFive Unmatched:
 - CPU: SiFive FU740 quad-core RISC-V (U74, RV64IMAFDCB or RV64GCB)
 - Memory: 16Gb
 - Ethernet: 1x 10/100/1000
 - USB: 4x USB 3.2
 - PCIe:  - 1x PCIe Gen3 x8
          - 1x M.2 key M (PCIe x4)
          - 1x M.2 Key E (PCIe x1 / USB2.0)
 - Console: via microUSB

Installation:
Standard SD-card installation via dd-ing the generated image to
an SD-card of at least 256Mb.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
17 files changed:
target/linux/sifiveu/Makefile [new file with mode: 0644]
target/linux/sifiveu/base-files/etc/board.d/01_leds [new file with mode: 0644]
target/linux/sifiveu/base-files/etc/board.d/02_network [new file with mode: 0644]
target/linux/sifiveu/base-files/etc/inittab [new file with mode: 0644]
target/linux/sifiveu/base-files/lib/preinit/79_move_config [new file with mode: 0644]
target/linux/sifiveu/base-files/lib/upgrade/platform.sh [new file with mode: 0644]
target/linux/sifiveu/config-5.15 [new file with mode: 0644]
target/linux/sifiveu/generic/target.mk [new file with mode: 0644]
target/linux/sifiveu/image/Config.in [new file with mode: 0644]
target/linux/sifiveu/image/Makefile [new file with mode: 0644]
target/linux/sifiveu/image/gen_sifiveu_sdcard_img.sh [new file with mode: 0755]
target/linux/sifiveu/patches-5.15/0001-riscv-sifive-fu740-cpu-1-2-3-4-set-compatible-to-sif.patch [new file with mode: 0644]
target/linux/sifiveu/patches-5.15/0002-riscv-sifive-unmatched-update-regulators-values.patch [new file with mode: 0644]
target/linux/sifiveu/patches-5.15/0003-riscv-sifive-unmatched-define-PWM-LEDs.patch [new file with mode: 0644]
target/linux/sifiveu/patches-5.15/0004-riscv-sifive-unmatched-add-gpio-poweroff-node.patch [new file with mode: 0644]
target/linux/sifiveu/patches-5.15/0005-riscv-sifive-unleashed-define-opp-table-cpufreq.patch [new file with mode: 0644]
target/linux/sifiveu/patches-5.15/0006-riscv-sbi-srst-support.patch [new file with mode: 0644]