mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-16 03:51:26 +00:00
At this point DTSes differ between d1/wip branch of the kernel and corresponding branch of u-boot. Mangopi-MQ-Pro dts is missed in u-boot part which leads to missing devices nodes (bluetooth in particular). Sync dts and pin patch to mangopi only to not affect Nezha. Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
83 lines
2.5 KiB
Text
83 lines
2.5 KiB
Text
#@TYPE: Machine
|
|
#@NAME: mangopi-mq-pro
|
|
#@SOC: Allwinner D1
|
|
#@DESCRIPTION: Machine configuration for MangoPi MQ Pro
|
|
|
|
require conf/machine/include/riscv/tune-riscv.inc
|
|
|
|
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial wifi bluetooth"
|
|
|
|
KERNEL_CLASSES = "kernel-fitimage"
|
|
KERNEL_IMAGETYPE = "fitImage"
|
|
UBOOT_ENV ?= "boot"
|
|
UBOOT_ENV_SUFFIX = "scr.uimg"
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-allwinnerd1-dev"
|
|
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-allwinnerd1"
|
|
|
|
PREFERRED_VERSION_openocd-native = "riscv"
|
|
PREFERRED_VERSION_openocd = "riscv"
|
|
|
|
EXTRA_IMAGEDEPENDS += "opensbi"
|
|
RISCV_SBI_PLAT = "generic"
|
|
|
|
## This sets u-boot as the default OpenSBI payload
|
|
### Nezha board uses TOC1 images loaded by SPL and containing U-Boot, DTB, and
|
|
### OpenSBI so 'RISCV_SBI_PAYLOAD' isn't used.
|
|
### 'RISCV_SBI_FDT' isn't used because the DTB is loaded from RAM at
|
|
### ${fdtcontroladdr}
|
|
#RISCV_SBI_PAYLOAD ?= "u-boot.bin"
|
|
#RISCV_SBI_FDT ?= "sun20i-d1-nezha.dtb"
|
|
|
|
SERIAL_CONSOLES = "115200;ttyS0"
|
|
|
|
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules kernel-module-rtl8723ds"
|
|
# FIXME the license situation of the firmware is unclear at the moment of
|
|
# writing this. Once rtl8723ds_fw is properly licensed (ideally put into
|
|
# linux-firmware this should be added to MACHINE_EXTRA_RRECOMMENDS:
|
|
# linux-firmware-rtl8723ds \
|
|
# For more details see:
|
|
# https://bugs.launchpad.net/ubuntu/+source/rtl8723bt-firmware/+bug/1995462
|
|
|
|
IMAGE_FSTYPES += "wic.gz wic.bmap ext4"
|
|
|
|
### 'KERNEL_DEVICETREE' isn't used because the DTB is loaded from RAM
|
|
### at address ${fdtcontroladdr}
|
|
#KERNEL_DEVICETREE ?= "allwinner/sun20i-d1-nezha.dtb"
|
|
|
|
## Do not update fstab file when using wic images
|
|
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
|
|
|
|
EXTRA_IMAGEDEPENDS += "u-boot-allwinnerd1"
|
|
UBOOT_MACHINE = "mangopi_mq_pro_defconfig"
|
|
|
|
|
|
UBOOT_ENTRYPOINT = "0x40200000"
|
|
UBOOT_DTB_LOADADDRESS = "0x4FA00000"
|
|
UBOOT_DTB = "1"
|
|
UBOOT_DTB_BINARY ?= "sun20i-d1-mangopi-mq-pro.dtb"
|
|
|
|
## wic default support
|
|
WKS_FILE_DEPENDS ?= " \
|
|
u-boot-allwinnerd1\
|
|
opensbi \
|
|
e2fsprogs-native \
|
|
bmap-tools-native \
|
|
"
|
|
|
|
IMAGE_BOOT_FILES ?= " \
|
|
${KERNEL_IMAGETYPE} \
|
|
boot.scr.uimg \
|
|
uEnv.txt \
|
|
"
|
|
|
|
WKS_FILE ?= "nezha.wks"
|
|
|
|
KERNEL_MODULE_AUTOLOAD:append = " hci_uart 8723ds "
|
|
|
|
# FIXME
|
|
# TODO Should be changed to
|
|
# https://github.com/smaeul/u-boot/commit/528ae9bc6c55edd3ffe642734b4132a8246ea777#diff-7a77df959a917850f0b29cd98afe6c3ca6de627a0c52dd9983cd42fede7a0e34
|
|
# once it's is merged into kernel too
|
|
# mangopi_mq_pro_defconfig
|
|
KBUILD_DEFCONFIG = "nezha_defconfig"
|
|
UBOOT_MACHINE = "mangopi_mq_pro_defconfig"
|