61 lines
2.2 KiB
HTML
61 lines
2.2 KiB
HTML
# cn913x is from Marvell octeon tx2 family, but it's based on a cortex-A72
|
|
# so we can't use the armv8-2a/tune-octeontx2.inc (armv8a vs arm8-2a)
|
|
# instead we can use the older octeontx family previously known as thunderx
|
|
require conf/machine/include/arm/armv8a/tune-thunderx.inc
|
|
|
|
# SOC_FAMILY is added to MACHINE_OVERRIDES in the soc-family.inc file
|
|
SOC_FAMILY = "cn913x"
|
|
require conf/machine/include/soc-family.inc
|
|
|
|
# Bootloader configuration
|
|
# *****************************************************************************
|
|
|
|
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
|
PREFERRED_VERSION_u-boot ?= "2019.10-solidrun"
|
|
|
|
# All cn913x use the same defconfig for u-boot, but another devicetree by
|
|
# settings UBOOT_BUILDENV_DEVICE_TREE in the machine configuration file
|
|
UBOOT_MACHINE = "sr_cn913x_cex7_defconfig"
|
|
UBOOT_BUILDENV_DEVICE_TREE ??= "${MACHINE}"
|
|
|
|
UBOOT_ENTRYPOINT = "0x7000000"
|
|
UBOOT_LOADADDRESS = "0x7000000"
|
|
|
|
# Kernel configuration
|
|
# ******************************************************************************
|
|
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-netmodule"
|
|
PREFERRED_VERSION_linux-netmodule ?= "git-5.15-solidrun"
|
|
PREFERRED_VERSION_trusted_firmware_a ?= "2.3-solidrun"
|
|
|
|
KERNEL_IMAGETYPE = "Image"
|
|
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
|
|
|
KERNEL_DEFCONFIG ?= "cn9130-netmodule_defconfig"
|
|
|
|
# By default we compile all supported cn913x devicetree. The devicetree to use
|
|
# is then set for each machine with the KERNEL_DEVICETREE_TO_USE variable
|
|
KERNEL_DEVICETREE ?= "\
|
|
marvell/cn9131-bldn-mbv.dtb \
|
|
marvell/cn9130-cex7.dtb \
|
|
"
|
|
|
|
# getty configuration
|
|
# ******************************************************************************
|
|
|
|
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyAMA0"
|
|
SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
|
|
|
|
# Image generation
|
|
# ******************************************************************************
|
|
|
|
# Ensure that both flash-image.bin and boot.scr are generated as they are needed
|
|
# for a wic image
|
|
EXTRA_IMAGEDEPENDS += "trusted-firmware-a"
|
|
IMAGE_BOOT_FILES += "boot.scr"
|
|
WKS_FILE = "cn913x-sdcard.wks"
|
|
IMAGE_FSTYPES += "wic.xz wic.bmap"
|
|
|
|
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS:append = " kernel-modules kernel-devicetree"
|
|
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
|