Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Tree User DTSI Includes #62

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3102ec7
esw.bbclass: Cleanup
mhatle May 16, 2024
9a4c804
meta-xilinx-standalone: README.md: Change reference to scarthgap
mhatle May 16, 2024
3b6a7a4
arm-trusted-firmware: Remove unnecessary ATF_VERSION
mhatle Jun 11, 2024
9db80fe
meta-xilinx-standalone: layer.conf: Change PREFERRED_VERSION
mhatle Jun 11, 2024
c5e95cd
meta-xilinx-standalone-experimental: Adjust PREFERRED_VERSION
mhatle Jun 11, 2024
fc08e56
qemuboot-xilinx: Add QB_DEVICE_MODE option
johntoomey May 22, 2024
4a5b2e4
qemu-system-aarch64-multiarch: Add -bootbin flag
johntoomey May 22, 2024
19c07d4
versal-generic: Boot QEMU from OSPI file when available
johntoomey May 22, 2024
f903496
meta-xilinx-multimedia: Create new sublayer
johntoomey May 9, 2024
5367241
gstreamer: Rename to disable for now
mhatle May 23, 2024
b9dbc1c
meta-xilinx-mali400: Create new Mali400 layer
johntoomey May 15, 2024
ced6d9d
vdu-ctrlsw: Rename from libvdu-ctrlsw
mhatle May 22, 2024
579225c
vcu-ctrlsw: Rename libvcu-ctrlsw
mhatle May 22, 2024
bca4c82
meta-xilinx-standalone-sdt: Rename from ...-experimental
mhatle May 23, 2024
9981b33
meta-xilinx-standalone: Move to YP best practices
mhatle May 23, 2024
af205a7
meta-xilinx-standalone: adjust bbappends for YP best practices
mhatle May 23, 2024
b10de84
device-tree: Remove obsolete COMPATIBLE_MACHINE
mhatle May 23, 2024
26d59c4
meta-xilinx-standalone: Remove obsolete entries, move override into s…
mhatle May 23, 2024
5c6f330
meta-xilinx-core: embeddedsw: Fix INHIBIT_DEFAULT_DEPS
mhatle May 23, 2024
818abe9
embeddedsw: Rework fsbl, pmu, plm and psm code
mhatle May 24, 2024
bd53c84
gst-shark: Remove obsolete bbappend
mhatle May 24, 2024
f8c1741
amd_spi_image: Remove duplicate version
mhatle May 28, 2024
5d23d37
meta-xilinx-standalone-sdt: Sync with latest meta-xilinx-standalone c…
mhatle May 28, 2024
a278702
meta-xilinx-standalone-sdt: layer.conf: temporary workaround, XILINX_…
mhatle May 28, 2024
9e5ff90
initramdisk-xilinx: Fix name
mhatle May 31, 2024
81c3f6c
qemu-xilinx-multiarch-helper-native: Fix script when -bootbin is not …
mhatle Jun 3, 2024
f381c78
zynqmp-generic.conf: Fix qemu pmu firmware path
mhatle Jun 3, 2024
72dee49
meta-xilinx-standalone-sdt: esw.bbclas: Avoid exception
mhatle Jun 3, 2024
ab765f5
meta-xilinx-core: conf/machine/include: Remove obsolete files
mhatle Jun 3, 2024
b472558
various: Remove SOC_VARIANT, split versal and versal-net, add machine…
mhatle Jun 4, 2024
b869b7b
open-amp-xlnx: Fix parse error when SDT is enabled
mhatle Jun 4, 2024
2ffc0d5
xilinx-bootbin: Fix WORKDIR warning
mhatle Jun 11, 2024
29e0ac3
Allowing dtsi sources to utilize pre-processor to include dt-bindings…
mberman-infleqtion Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ meta-xilinx-tools layer.
configurations files, boot firmware, kernel configuration fragments, .scc files,
device tree etc.

* **meta-xilinx-multimedia**: layer contains AMD Xilinx specific multimedia packages
including recipes for the fork of GStreamer.

> **See:** AMD Xilinx devices:
https://www.xilinx.com/products/silicon-devices.html

Expand Down
4 changes: 1 addition & 3 deletions meta-xilinx-bsp/conf/machine/zc1254-zynqmp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
#@DESCRIPTION: Machine support for ZC1254 Evaluation Board.
#

SOC_VARIANT = "dr"

require conf/machine/zynqmp-generic.conf
require conf/machine/zynqmp-dr-generic.conf

# Add board compatibility override
MACHINEOVERRIDES .= ":zc1254"
Expand Down
21 changes: 13 additions & 8 deletions meta-xilinx-core/classes-recipe/qemuboot-xilinx.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ QB_DEFAULT_KERNEL:zynq ?= "${@'zImage' if \
QB_DEFAULT_KERNEL:microblaze ?= "${@'simpleImage.mb' if \
d.getVar('INITRAMFS_IMAGE_BUNDLE') != '1' else 'simpleImage.mb-initramfs-${MACHINE}.bin'}"

# https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/Boot-Modes
# https://docs.amd.com/r/en-US/ug1304-versal-acap-ssdg/Boot-Device-Modes
QB_DEVICE_MODE ?= "-boot mode=5"

inherit qemuboot

def qemu_target_binary(data):
Expand All @@ -46,11 +50,12 @@ def qemu_add_extra_args(data):
deploy_dir = data.getVar('DEPLOY_DIR_IMAGE') or ""
machine_name = data.getVar('MACHINE') or ""
soc_family = data.getVar('SOC_FAMILY') or ""
boot_mode = data.getVar('QB_DEVICE_MODE') or ""
qb_extra_args = ''
# Add kernel image and boot.scr to qemu boot command when initramfs_image supplied
kernel_name = ''
bootscr_image = '%s/boot.scr' % deploy_dir
if soc_family in ('zynqmp', 'versal'):
if soc_family in ('zynqmp', 'versal', 'versal-net'):
kernel_name = 'Image'
bootscr_loadaddr = '0x20000000'
if initramfs_image:
Expand All @@ -61,11 +66,11 @@ def qemu_add_extra_args(data):
if kernel_name:
qb_extra_args = ' -device loader,file=%s,addr=%s,force-raw=on' % (kernel_image, kernel_loadaddr)
qb_extra_args += ' -device loader,file=%s,addr=%s,force-raw=on' % (bootscr_image, bootscr_loadaddr)
if soc_family == 'versal':
qb_extra_args += ' -boot mode=5'
if soc_family in ('versal', 'versal-net'):
qb_extra_args += ' %s' % boot_mode
else:
if soc_family in ('zynqmp', 'versal'):
qb_extra_args = ' -boot mode=5'
if soc_family in ('zynqmp', 'versal', 'versal-net'):
qb_extra_args = ' %s' % boot_mode
return qb_extra_args

def qemu_rootfs_params(data, param):
Expand All @@ -75,7 +80,6 @@ def qemu_rootfs_params(data, param):
tune_features = (data.getVar('TUNE_FEATURES') or []).split()
if 'microblaze' in tune_features:
soc_family = 'microblaze'
soc_variant = data.getVar('SOC_VARIANT') or ""

if param == 'rootfs':
return 'none' if bundle_image == "1" else ''
Expand All @@ -85,7 +89,8 @@ def qemu_rootfs_params(data, param):
"microblaze": "cpio.gz",
"zynq": "cpio.gz",
"zynqmp": "cpio.gz.u-boot",
"versal": "cpio.gz.u-boot.qemu-sd-fatimg"
"versal": "cpio.gz.u-boot.qemu-sd-fatimg",
"versal-net": "cpio.gz.u-boot.qemu-sd-fatimg"
}
if not initramfs_image:
image_fs = data.getVar('IMAGE_FSTYPES')
Expand All @@ -99,7 +104,7 @@ def qemu_rootfs_params(data, param):
sd_index = "1"
if soc_family == 'zynq':
sd_index = "0"
if soc_family == 'versal' and soc_variant == 'net':
if soc_family == 'versal-net':
sd_index = "0"

# Device is using a disk
Expand Down
142 changes: 0 additions & 142 deletions meta-xilinx-core/classes/amd_spi_image.bbclass

This file was deleted.

2 changes: 1 addition & 1 deletion meta-xilinx-core/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \

XILINX_RELEASE_VERSION ??= "v2024.1"

BUILDCFG_VARS:append = " SOC_VARIANT XILINX_RELEASE_VERSION"
BUILDCFG_VARS:append = " XILINX_RELEASE_VERSION"

DEFAULT_XILINX_QEMU = "qemu-xilinx"
DEFAULT_XILINX_QEMU:arm = "qemu"
Expand Down
2 changes: 0 additions & 2 deletions meta-xilinx-core/conf/machine/README
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ easiy make a local change, if allowed by the machine .conf:

UBOOT_MACHINE - The defconfig for u-boot. (Note, this may be an error TBD).

SOC_VARIANT - See include/soc-*.inc (Note, most machines this is fixed).


The following variables must be set AFTER the 'require' line, using '='
or '+='/'=+' as required. Using ':append', ':prepend', or ':remove' will
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,6 @@ UBOOT_SUFFIX ?= "bin"
UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
UBOOT_ELF ?= "u-boot.elf"

# libmali is selected by DISTRO_FEATURE of libmali & MACHINE_FEATURES of mali400
# lima is selected by DISTRO_FEATURE != libmali & MACHINE_FEATURES of mali400
# default mesa because otherwise
def xlnx_is_libmali_enabled(d):
if bb.utils.contains('MACHINE_FEATURES', 'mali400', '1', '', d) == '1':
if bb.utils.contains('DISTRO_FEATURES', 'libmali', '1', '', d) == '1':
return True
return False

# libmali requires certain preferred providers to be selected
PREFERRED_PROVIDER_virtual/egl ?= "${@'libmali-xlnx' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/libgl ?= "${@'mesa-gl' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/libgles1 ?= "${@'libmali-xlnx' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/libgles2 ?= "${@'libmali-xlnx' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/libgles3 ?= "${@'NOT_SUPPORTED' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/libgbm ?= "${@'libmali-xlnx' if xlnx_is_libmali_enabled(d) else 'mesa'}"
PREFERRED_PROVIDER_virtual/mesa ?= "${@'mesa-gl' if xlnx_is_libmali_enabled(d) else 'mesa'}"

XSERVER ?= " \
xserver-xorg \
xf86-input-evdev \
Expand Down
26 changes: 26 additions & 0 deletions meta-xilinx-core/conf/machine/include/soc-versal-net.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
DEFAULTTUNE ?= "cortexa72-cortexa53"
SOC_FAMILY ?= "versal-net"

require conf/machine/include/soc-family.inc
require soc-tune-include.inc

# Linux Configuration
KERNEL_IMAGETYPE ?= "Image"

WIC_DEPENDS ?= "virtual/kernel virtual/bootloader virtual/boot-bin virtual/arm-trusted-firmware"

UBOOT_ELF ?= "u-boot.elf"

# Default, if multiconfig is off, call plm/psm-firmware directly, otherwise call the versal-fw multiconfig version
# The Linux compatible plm/psm-firmware though requires meta-xilinx-tools
PLM_DEPENDS ??= ""
PLM_MCDEPENDS ??= ""
PLM_DEPLOY_DIR ??= "${DEPLOY_DIR_IMAGE}"
PLM_IMAGE_NAME ??= "plm-${MACHINE}"
PLM_DEPLOY_DIR[vardepsexclude] += "TOPDIR"

PSM_DEPENDS ??= ""
PSM_MCDEPENDS ??= ""
PSM_FIRMWARE_DEPLOY_DIR ??= "${DEPLOY_DIR_IMAGE}"
PSM_FIRMWARE_IMAGE_NAME ??= "psm-firmware-${MACHINE}"
PSM_DEPLOY_DIR[vardepsexclude] += "TOPDIR"
20 changes: 9 additions & 11 deletions meta-xilinx-core/conf/machine/include/soc-versal.inc
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
DEFAULTTUNE ?= "cortexa72-cortexa53"
SOC_FAMILY ?= "versal"

# Available SOC_VARIANT's for versal:
# "prime" - Versal deafult Prime Devices
# "premium" - Versal Premium Devices
# "hbm" - Versal HMB Devices
# "ai-core" - Versal AI-core Devices
# "ai-edge" - Versal AI-Edge Devices
# "net" - Versal Net Devices

SOC_VARIANT ?= "prime"

require xilinx-soc-family.inc
# Available MACHINE_FETURES for versal processors:
# prime - (none)
# premium - aie
# hbm - (none)
# ai-core - aie, vdu
# ai-edge - aie, vdu
# net - none

require conf/machine/include/soc-family.inc
require soc-tune-include.inc

# Linux Configuration
Expand Down
8 changes: 1 addition & 7 deletions meta-xilinx-core/conf/machine/include/soc-zynq.inc
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
DEFAULTTUNE ?= "cortexa9thf-neon"
SOC_FAMILY ?= "zynq"

# Available SOC_VARIANT's for zynq:
# 7zs - Zynq-7000 Single A9 Core
# 7z - Zynq-7000 Dual A9 Core

SOC_VARIANT ?= "7z"

require xilinx-soc-family.inc
require conf/machine/include/soc-family.inc
require soc-tune-include.inc

# Linux Configuration
Expand Down
Loading