Skip to content

cracked-machine/poky_zynqmp_generic_test

Repository files navigation

See tasks.json for commands.

These examples use templates to load configuration settings from a BSP. They demonstrate two approaches to using the Xilinx device tree generator (DTG) to import hardware settings from a Vivado project (.xsa)

Using zynqmp.dtsi as a base devicetree and selecting zcu104-revc.dtsi with DTG. Unwanted nodes can then subtracted using device tree overlays.

graph TD;

subgraph device-tree.bbappend
    do_configure:append[["<b>do_configure:append</b>\n/delete-node/\n/delete-property/\netc..."]]
end
device-tree.bbappend --subtract--> system-top.dts
subgraph device-tree-xlnx
    zynqmp.dtsi
    zcu104-revc.dtsi
end
zynqmp.dtsi --> system-top.dts
zcu104-revc.dtsi --> system-top.dts
Loading

Using zynqmp.dtsi as a base devicetree and patching DTG with our own custom dtsi. This doesn't include any unwanted nodes from the zcu104 device tree and therefore, requires less subtraction via overlays.

flowchart

subgraph device-tree.bbappend
    direction BT
    do_configure:prepend[["<b>do_configure:prepend</b>"]]
    zynqmp-custom_orig.dtsi("zynqmp-custom.dtsi")
    do_configure:prepend -.-> zynqmp-custom_orig.dtsi
end
subgraph device-tree-xlnx
    zynqmp.dtsi
    zynqmp-custom_copy.dtsi("zynqmp-custom.dtsi")
end
zynqmp.dtsi --> system-top.dts
zynqmp-custom_orig.dtsi --COPY--> zynqmp-custom_copy.dtsi --> system-top.dts
Loading

Note: Because zynqmp-custom.dtsi is included at the top of system-top.dts, any setting made in zynqmp-custom.dtsi can be overwritten by system-top.dts. Changes to system-top.dts settings should be done using echo in the device-tree.bbappend file.

DTG

About

Testing meta-xilnx/poky layers with QEMU

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published