add first working meta-layer
This commit is contained in:
9
conf/machine/include/sun50i-h616.inc
Normal file
9
conf/machine/include/sun50i-h616.inc
Normal file
@ -0,0 +1,9 @@
|
||||
require conf/machine/include/sunxi64.inc
|
||||
|
||||
DEFAULTTUNE ?= "cortexa53-crypto"
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa53.inc
|
||||
|
||||
MACHINEOVERRIDES =. "sun50i:"
|
||||
|
||||
SOC_FAMILY = "sun50i-h616"
|
||||
|
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
@ -0,0 +1,15 @@
|
||||
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
|
||||
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
|
||||
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali"
|
||||
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali"
|
||||
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali"
|
||||
|
||||
PACKAGECONFIG:remove:pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}"
|
||||
|
||||
XSERVER += "sunxi-mali \
|
||||
sunxi-mali-dev"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\
|
||||
kernel-module-mali \
|
||||
kernel-module-mali-drm \
|
||||
"
|
27
conf/machine/include/sunxi64.inc
Normal file
27
conf/machine/include/sunxi64.inc
Normal file
@ -0,0 +1,27 @@
|
||||
SOC_FAMILY ??= ""
|
||||
include conf/machine/include/soc-family.inc
|
||||
|
||||
MACHINEOVERRIDES =. "sunxi:sunxi64:"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
||||
|
||||
KERNEL_IMAGETYPE ?= "Image"
|
||||
|
||||
# IMAGE_CLASSES += "sdcard_image-sunxi"
|
||||
IMAGE_FSTYPES += "ext4 tar.gz wic.bz2 wic.bmap"
|
||||
# sunxi-sdimg
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
|
||||
|
||||
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
|
||||
|
||||
UBOOT_ENTRYPOINT ?= "0x40008000"
|
||||
UBOOT_LOADADDRESS ?= "0x400080OB00"
|
||||
|
||||
#UBOOT_BINARY ?= "u-boot.itb"
|
||||
SPL_BINARY ?= "spl/sunxi-spl.bin"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 ttyS0"
|
||||
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
|
45
conf/machine/orange-pi-zero2w.conf
Normal file
45
conf/machine/orange-pi-zero2w.conf
Normal file
@ -0,0 +1,45 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: orange-pi-zero-2
|
||||
#@DESCRIPTION: Machine configuration for the orange-pi-zero-2, based on Allwinner H616 CPU
|
||||
|
||||
require conf/machine/include/sun50i-h616.inc
|
||||
|
||||
KERNEL_DEVICETREE = "allwinner/sun50i-h616-orangepi-zero2w.dtb \
|
||||
allwinner/overlay/sun50i-h616-disable-leds.dtbo \
|
||||
allwinner/overlay/sun50i-h616-disable-uart0.dtbo \
|
||||
allwinner/overlay/sun50i-h616-gpu.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ir.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-i2c4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-pwm12.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-pwm34.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-uart2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-ph-uart5.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c0.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-i2c2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm1.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-pwm4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart2.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart3.dtbo \
|
||||
allwinner/overlay/sun50i-h616-pi-uart4.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi0-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs0-cs1-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs0-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-spi1-cs1-spidev.dtbo \
|
||||
allwinner/overlay/sun50i-h616-usb0-host.dtbo \
|
||||
allwinner/overlay/sun50i-h616-zero2w-disable-led.dtbo \
|
||||
"
|
||||
UBOOT_MACHINE = "orangepi_zero2w_defconfig"
|
||||
|
||||
SPL_BINARY = "u-boot-sunxi-with-spl.bin"
|
||||
|
||||
# as for now neither graphics nor audio is supported
|
||||
MACHINE_FEATURES:remove = "alsa x11"
|
||||
MACHINE_FEATURES:append = "bluetooth wifi"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = "uwe5622-firmware"
|
Reference in New Issue
Block a user