mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
4a281a7789
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>
(cherry picked from commit a3469a90c4
)
364 lines
8.4 KiB
Plaintext
364 lines
8.4 KiB
Plaintext
CONFIG_64BIT=y
|
|
CONFIG_ARCH_CLOCKSOURCE_INIT=y
|
|
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
|
|
CONFIG_ARCH_MMAP_RND_BITS=18
|
|
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
|
|
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
|
|
CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
|
|
CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
|
|
# CONFIG_ARCH_RV32I is not set
|
|
CONFIG_ARCH_RV64I=y
|
|
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
|
|
CONFIG_ARCH_SPARSEMEM_ENABLE=y
|
|
CONFIG_ARCH_STACKWALK=y
|
|
CONFIG_ASSOCIATIVE_ARRAY=y
|
|
CONFIG_ATA=y
|
|
CONFIG_ATA_VERBOSE_ERROR=y
|
|
CONFIG_BLK_DEV_SD=y
|
|
CONFIG_BLK_MQ_PCI=y
|
|
CONFIG_BLK_MQ_VIRTIO=y
|
|
CONFIG_CAVIUM_PTP=y
|
|
CONFIG_CC_HAVE_STACKPROTECTOR_TLS=y
|
|
CONFIG_CLK_ANALOGBITS_WRPLL_CLN28HPC=y
|
|
CONFIG_CLK_SIFIVE=y
|
|
CONFIG_CLK_SIFIVE_PRCI=y
|
|
CONFIG_CLONE_BACKWARDS=y
|
|
CONFIG_CLZ_TAB=y
|
|
CONFIG_CMODEL_MEDANY=y
|
|
# CONFIG_CMODEL_MEDLOW is not set
|
|
CONFIG_COMMON_CLK=y
|
|
# CONFIG_COMPAT_32BIT_TIME is not set
|
|
CONFIG_COMPAT_BRK=y
|
|
CONFIG_CONSOLE_TRANSLATIONS=y
|
|
CONFIG_COREDUMP=y
|
|
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
|
|
CONFIG_CPU_ISOLATION=y
|
|
CONFIG_CPU_RMAP=y
|
|
CONFIG_CRC16=y
|
|
# CONFIG_CRC32_SARWATE is not set
|
|
CONFIG_CRC32_SLICEBY8=y
|
|
CONFIG_CRC7=y
|
|
CONFIG_CRC_ITU_T=y
|
|
CONFIG_CRYPTO_CRC32C=y
|
|
CONFIG_CRYPTO_DRBG=y
|
|
CONFIG_CRYPTO_DRBG_HMAC=y
|
|
CONFIG_CRYPTO_DRBG_MENU=y
|
|
CONFIG_CRYPTO_ECHAINIV=y
|
|
CONFIG_CRYPTO_HASH_INFO=y
|
|
CONFIG_CRYPTO_HMAC=y
|
|
CONFIG_CRYPTO_JITTERENTROPY=y
|
|
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=1
|
|
CONFIG_CRYPTO_LIB_SHA256=y
|
|
CONFIG_CRYPTO_RNG=y
|
|
CONFIG_CRYPTO_RNG2=y
|
|
CONFIG_CRYPTO_RNG_DEFAULT=y
|
|
CONFIG_CRYPTO_RSA=y
|
|
CONFIG_CRYPTO_SHA256=y
|
|
CONFIG_CRYPTO_SHA512=y
|
|
CONFIG_DEBUG_BUGVERBOSE=y
|
|
CONFIG_DECOMPRESS_GZIP=y
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_DEVTMPFS_MOUNT=y
|
|
CONFIG_DNOTIFY=y
|
|
CONFIG_DTC=y
|
|
CONFIG_DUMMY_CONSOLE=y
|
|
CONFIG_EDAC=y
|
|
# CONFIG_EDAC_DEBUG is not set
|
|
CONFIG_EDAC_LEGACY_SYSFS=y
|
|
CONFIG_EDAC_SIFIVE=y
|
|
CONFIG_EDAC_SUPPORT=y
|
|
CONFIG_EFI=y
|
|
CONFIG_EFIVAR_FS=m
|
|
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
|
|
# CONFIG_EFI_CAPSULE_LOADER is not set
|
|
# CONFIG_EFI_DISABLE_PCI_DMA is not set
|
|
CONFIG_EFI_EARLYCON=y
|
|
CONFIG_EFI_ESRT=y
|
|
CONFIG_EFI_GENERIC_STUB=y
|
|
CONFIG_EFI_PARAMS_FROM_FDT=y
|
|
CONFIG_EFI_RUNTIME_WRAPPERS=y
|
|
CONFIG_EFI_STUB=y
|
|
# CONFIG_EFI_TEST is not set
|
|
CONFIG_ELF_CORE=y
|
|
CONFIG_ERRATA_SIFIVE=y
|
|
CONFIG_ERRATA_SIFIVE_CIP_1200=y
|
|
CONFIG_ERRATA_SIFIVE_CIP_453=y
|
|
CONFIG_EXT4_FS=y
|
|
CONFIG_FAILOVER=y
|
|
CONFIG_FHANDLE=y
|
|
CONFIG_FIXED_PHY=y
|
|
CONFIG_FIX_EARLYCON_MEM=y
|
|
CONFIG_FONT_8x16=y
|
|
CONFIG_FONT_AUTOSELECT=y
|
|
CONFIG_FONT_SUPPORT=y
|
|
CONFIG_FPU=y
|
|
CONFIG_FRAME_POINTER=y
|
|
CONFIG_FRAME_WARN=2048
|
|
CONFIG_FS_IOMAP=y
|
|
CONFIG_FS_MBCACHE=y
|
|
CONFIG_FWNODE_MDIO=y
|
|
CONFIG_FW_LOADER_PAGED_BUF=y
|
|
CONFIG_GENERIC_ALLOCATOR=y
|
|
CONFIG_GENERIC_ARCH_TOPOLOGY=y
|
|
CONFIG_GENERIC_BUG=y
|
|
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
|
|
CONFIG_GENERIC_CLOCKEVENTS=y
|
|
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
|
|
CONFIG_GENERIC_CSUM=y
|
|
CONFIG_GENERIC_EARLY_IOREMAP=y
|
|
CONFIG_GENERIC_GETTIMEOFDAY=y
|
|
CONFIG_GENERIC_IDLE_POLL_SETUP=y
|
|
CONFIG_GENERIC_IOREMAP=y
|
|
CONFIG_GENERIC_IRQ_INJECTION=y
|
|
CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
|
|
CONFIG_GENERIC_IRQ_SHOW=y
|
|
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
|
|
CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED=y
|
|
CONFIG_GENERIC_MSI_IRQ=y
|
|
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
|
|
CONFIG_GENERIC_PCI_IOMAP=y
|
|
CONFIG_GENERIC_SCHED_CLOCK=y
|
|
CONFIG_GENERIC_SMP_IDLE_THREAD=y
|
|
CONFIG_GENERIC_STRNCPY_FROM_USER=y
|
|
CONFIG_GENERIC_STRNLEN_USER=y
|
|
CONFIG_GENERIC_TIME_VSYSCALL=y
|
|
CONFIG_GLOB=y
|
|
CONFIG_GPIOLIB=y
|
|
CONFIG_GPIOLIB_IRQCHIP=y
|
|
CONFIG_GPIO_CDEV=y
|
|
CONFIG_GPIO_CDEV_V1=y
|
|
CONFIG_GPIO_GENERIC=y
|
|
CONFIG_GPIO_SIFIVE=y
|
|
CONFIG_HANDLE_DOMAIN_IRQ=y
|
|
CONFIG_HAS_DMA=y
|
|
CONFIG_HAS_IOMEM=y
|
|
CONFIG_HAS_IOPORT_MAP=y
|
|
CONFIG_HID=y
|
|
CONFIG_HID_GENERIC=y
|
|
CONFIG_HOTPLUG_PCI=y
|
|
# CONFIG_HOTPLUG_PCI_CPCI is not set
|
|
CONFIG_HOTPLUG_PCI_PCIE=y
|
|
CONFIG_HOTPLUG_PCI_SHPC=y
|
|
CONFIG_HVC_DRIVER=y
|
|
CONFIG_HVC_RISCV_SBI=y
|
|
CONFIG_HW_CONSOLE=y
|
|
CONFIG_I2C=y
|
|
CONFIG_I2C_BOARDINFO=y
|
|
CONFIG_I2C_COMPAT=y
|
|
CONFIG_I2C_HELPER_AUTO=y
|
|
CONFIG_I2C_OCORES=y
|
|
CONFIG_INITRAMFS_SOURCE=""
|
|
CONFIG_INPUT=y
|
|
# CONFIG_IOMMU_DEBUGFS is not set
|
|
CONFIG_IOMMU_SUPPORT=y
|
|
CONFIG_IO_URING=y
|
|
CONFIG_IRQCHIP=y
|
|
CONFIG_IRQ_DOMAIN=y
|
|
CONFIG_IRQ_DOMAIN_HIERARCHY=y
|
|
CONFIG_IRQ_FORCED_THREADING=y
|
|
CONFIG_IRQ_WORK=y
|
|
CONFIG_JBD2=y
|
|
CONFIG_KALLSYMS=y
|
|
CONFIG_KEYS=y
|
|
CONFIG_LEDS_PWM=y
|
|
CONFIG_LEDS_TRIGGER_DISK=y
|
|
CONFIG_LEGACY_PTYS=y
|
|
CONFIG_LEGACY_PTY_COUNT=256
|
|
CONFIG_LIBFDT=y
|
|
CONFIG_LOCALVERSION_AUTO=y
|
|
CONFIG_LOCK_DEBUGGING_SUPPORT=y
|
|
CONFIG_LOCK_SPIN_ON_OWNER=y
|
|
CONFIG_MACB=y
|
|
# CONFIG_MACB_PCI is not set
|
|
CONFIG_MACB_USE_HWSTAMP=y
|
|
CONFIG_MDIO_BUS=y
|
|
CONFIG_MDIO_DEVICE=y
|
|
CONFIG_MDIO_DEVRES=y
|
|
CONFIG_MEMFD_CREATE=y
|
|
CONFIG_MFD_CORE=y
|
|
CONFIG_MFD_SYSCON=y
|
|
CONFIG_MICROSEMI_PHY=y
|
|
CONFIG_MIGRATION=y
|
|
CONFIG_MMC=y
|
|
CONFIG_MMC_BLOCK=y
|
|
CONFIG_MMC_SDHCI=y
|
|
CONFIG_MMC_SDHCI_CADENCE=y
|
|
# CONFIG_MMC_SDHCI_PCI is not set
|
|
CONFIG_MMC_SDHCI_PLTFM=y
|
|
CONFIG_MMC_SPI=y
|
|
CONFIG_MMIOWB=y
|
|
CONFIG_MODULES_USE_ELF_RELA=y
|
|
CONFIG_MODULE_SECTIONS=y
|
|
CONFIG_MPILIB=y
|
|
CONFIG_MQ_IOSCHED_DEADLINE=y
|
|
CONFIG_MQ_IOSCHED_KYBER=y
|
|
CONFIG_MTD_SPI_NOR=y
|
|
CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
|
|
CONFIG_MUTEX_SPIN_ON_OWNER=y
|
|
CONFIG_NEED_DMA_MAP_STATE=y
|
|
CONFIG_NET_FAILOVER=y
|
|
CONFIG_NET_FLOW_LIMIT=y
|
|
CONFIG_NET_PTP_CLASSIFY=y
|
|
CONFIG_NET_SELFTESTS=y
|
|
CONFIG_NLS=y
|
|
CONFIG_NLS_CODEPAGE_437=y
|
|
CONFIG_NLS_ISO8859_1=y
|
|
CONFIG_NR_CPUS=8
|
|
CONFIG_NVMEM=y
|
|
CONFIG_NVMEM_SYSFS=y
|
|
CONFIG_OF=y
|
|
CONFIG_OF_ADDRESS=y
|
|
CONFIG_OF_EARLY_FLATTREE=y
|
|
CONFIG_OF_FLATTREE=y
|
|
CONFIG_OF_GPIO=y
|
|
CONFIG_OF_IRQ=y
|
|
CONFIG_OF_KOBJ=y
|
|
CONFIG_OF_MDIO=y
|
|
CONFIG_OID_REGISTRY=y
|
|
CONFIG_PADATA=y
|
|
CONFIG_PAGE_OFFSET=0xffffffe000000000
|
|
CONFIG_PAGE_REPORTING=y
|
|
CONFIG_PA_BITS=56
|
|
CONFIG_PCI=y
|
|
CONFIG_PCIEAER=y
|
|
CONFIG_PCIEAER_INJECT=m
|
|
CONFIG_PCIEASPM=y
|
|
CONFIG_PCIEASPM_DEFAULT=y
|
|
# CONFIG_PCIEASPM_PERFORMANCE is not set
|
|
# CONFIG_PCIEASPM_POWERSAVE is not set
|
|
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
|
|
CONFIG_PCIEPORTBUS=y
|
|
CONFIG_PCIE_DPC=y
|
|
CONFIG_PCIE_DW=y
|
|
CONFIG_PCIE_DW_HOST=y
|
|
CONFIG_PCIE_ECRC=y
|
|
CONFIG_PCIE_FU740=y
|
|
CONFIG_PCIE_PTM=y
|
|
CONFIG_PCIE_XILINX=y
|
|
CONFIG_PCI_DEBUG=y
|
|
CONFIG_PCI_DOMAINS=y
|
|
CONFIG_PCI_DOMAINS_GENERIC=y
|
|
CONFIG_PCI_ECAM=y
|
|
CONFIG_PCI_HOST_COMMON=y
|
|
CONFIG_PCI_HOST_GENERIC=y
|
|
CONFIG_PCI_MSI=y
|
|
CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
|
CONFIG_PCI_SW_SWITCHTEC=y
|
|
CONFIG_PGTABLE_LEVELS=3
|
|
CONFIG_PHYLIB=y
|
|
CONFIG_PHYLINK=y
|
|
CONFIG_PHYS_ADDR_T_64BIT=y
|
|
# CONFIG_PHYS_RAM_BASE_FIXED is not set
|
|
CONFIG_POWER_RESET=y
|
|
CONFIG_POWER_RESET_GPIO=y
|
|
CONFIG_POWER_RESET_GPIO_RESTART=y
|
|
CONFIG_POWER_RESET_RESTART=y
|
|
CONFIG_POWER_RESET_SYSCON=y
|
|
CONFIG_POWER_RESET_SYSCON_POWEROFF=y
|
|
CONFIG_PPS=y
|
|
CONFIG_PRINTK_TIME=y
|
|
CONFIG_PTP_1588_CLOCK=y
|
|
CONFIG_PTP_1588_CLOCK_OPTIONAL=y
|
|
CONFIG_PWM=y
|
|
CONFIG_PWM_SIFIVE=y
|
|
CONFIG_PWM_SYSFS=y
|
|
CONFIG_RATIONAL=y
|
|
CONFIG_RCU_TRACE=y
|
|
CONFIG_RD_GZIP=y
|
|
CONFIG_REALTEK_PHY=y
|
|
CONFIG_REGMAP=y
|
|
CONFIG_REGMAP_I2C=y
|
|
CONFIG_REGMAP_IRQ=y
|
|
CONFIG_REGMAP_MMIO=y
|
|
# CONFIG_RESET_ATTACK_MITIGATION is not set
|
|
CONFIG_RESET_CONTROLLER=y
|
|
CONFIG_RESET_SIMPLE=y
|
|
CONFIG_RFS_ACCEL=y
|
|
CONFIG_RISCV=y
|
|
CONFIG_RISCV_ERRATA_ALTERNATIVE=y
|
|
CONFIG_RISCV_INTC=y
|
|
CONFIG_RISCV_ISA_C=y
|
|
CONFIG_RISCV_SBI=y
|
|
CONFIG_RISCV_SBI_V01=y
|
|
CONFIG_RISCV_TIMER=y
|
|
CONFIG_RPS=y
|
|
CONFIG_RTC_CLASS=y
|
|
# CONFIG_RTC_DRV_EFI is not set
|
|
CONFIG_RTC_I2C_AND_SPI=y
|
|
CONFIG_RWSEM_SPIN_ON_OWNER=y
|
|
CONFIG_SCHED_DEBUG=y
|
|
CONFIG_SCSI=y
|
|
CONFIG_SCSI_COMMON=y
|
|
CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
|
|
CONFIG_SERIAL_8250_EXAR=y
|
|
CONFIG_SERIAL_8250_NR_UARTS=4
|
|
CONFIG_SERIAL_8250_PCI=y
|
|
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
|
|
CONFIG_SERIAL_EARLYCON_RISCV_SBI=y
|
|
CONFIG_SERIAL_MCTRL_GPIO=y
|
|
CONFIG_SERIAL_OF_PLATFORM=y
|
|
CONFIG_SERIAL_SIFIVE=y
|
|
CONFIG_SERIAL_SIFIVE_CONSOLE=y
|
|
CONFIG_SERIO=y
|
|
CONFIG_SERIO_SERPORT=y
|
|
CONFIG_SG_POOL=y
|
|
CONFIG_SIFIVE_L2=y
|
|
CONFIG_SIFIVE_PLIC=y
|
|
CONFIG_SLUB_DEBUG=y
|
|
CONFIG_SMP=y
|
|
CONFIG_SOCK_RX_QUEUE_MAPPING=y
|
|
# CONFIG_SOC_MICROCHIP_POLARFIRE is not set
|
|
CONFIG_SOC_SIFIVE=y
|
|
# CONFIG_SOC_VIRT is not set
|
|
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
|
|
CONFIG_SPARSE_IRQ=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPI_BITBANG=y
|
|
CONFIG_SPI_MASTER=y
|
|
CONFIG_SPI_MEM=y
|
|
CONFIG_SPI_SIFIVE=y
|
|
CONFIG_SRCU=y
|
|
CONFIG_STACKTRACE=y
|
|
CONFIG_SWIOTLB=y
|
|
CONFIG_SWPHY=y
|
|
CONFIG_SYSCTL_EXCEPTION_TRACE=y
|
|
CONFIG_SYSFB=y
|
|
# CONFIG_SYSFB_SIMPLEFB is not set
|
|
CONFIG_THREAD_INFO_IN_TASK=y
|
|
CONFIG_TICK_CPU_ACCOUNTING=y
|
|
CONFIG_TIMER_OF=y
|
|
CONFIG_TIMER_PROBE=y
|
|
CONFIG_TRACE_CLOCK=y
|
|
CONFIG_TREE_RCU=y
|
|
CONFIG_TREE_SRCU=y
|
|
CONFIG_TUNE_GENERIC=y
|
|
CONFIG_UCS2_STRING=y
|
|
CONFIG_UEVENT_HELPER_PATH=""
|
|
CONFIG_USB=y
|
|
CONFIG_USB_COMMON=y
|
|
CONFIG_USB_EHCI_HCD=y
|
|
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
|
|
CONFIG_USB_EHCI_PCI=y
|
|
CONFIG_USB_HID=y
|
|
CONFIG_USB_NET_DRIVERS=y
|
|
CONFIG_USB_PCI=y
|
|
CONFIG_USB_STORAGE=y
|
|
CONFIG_USB_SUPPORT=y
|
|
# CONFIG_USB_UHCI_HCD is not set
|
|
CONFIG_USB_XHCI_HCD=y
|
|
CONFIG_USB_XHCI_PCI=y
|
|
# CONFIG_USB_XHCI_PLATFORM is not set
|
|
CONFIG_VA_BITS=39
|
|
CONFIG_VFAT_FS=y
|
|
CONFIG_VGA_ARB=y
|
|
CONFIG_VGA_ARB_MAX_GPUS=16
|
|
CONFIG_VMAP_STACK=y
|
|
CONFIG_VM_EVENT_COUNTERS=y
|
|
CONFIG_VT=y
|
|
CONFIG_VT_CONSOLE=y
|
|
# CONFIG_VT_HW_CONSOLE_BINDING is not set
|
|
CONFIG_WATCHDOG_CORE=y
|
|
CONFIG_XPS=y
|
|
CONFIG_ZLIB_INFLATE=y
|
|
CONFIG_ZONE_DMA32=y
|