Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Discovery and Evaluation AMD Versal Device Portfolio
This page is a getting started guide providing walkthrough style examples using the AMD Embedded Development Framework (EDF). It covers initial board setup and running a pre-built disk image. For other personas and tasks, see the relevant page linked from Getting Started - Walkthrough Examples.
This section walks the user through the Discovery and Evaluation persona within AMD EDF, which covers initial board setup and exploration using a pre-built image. See other persona pages for on target development, deployment options, and custom flows.
Discovery and Evaluation - Booting the board for the first time and exploration
System Controller Enabled Evaluation Boards - System Controller Firmware Update
Evaluation boards that have a System Controller (SC) may require the SC firmware and BEAM application to be updated to the latest version to support functionality required by the AMD Embedded Development Framework, and the following tutorials.
System Controller might be used to program the OSPI / QSPI flash used by the target device (primary boot device)
The System Controller Firmware on VEK385 Rev B Evaluation Boards might require updating to the latest version to enable programming of the target OSPI (AMD Versal™ AI Edge Series Gen 2 Primary Boot Device)
Download and install the latest System Controller Firmware from the System Controller Wiki or VEK385 lounge (if not available on the System Controller Wiki).
The basic board setup is as follows (the VEK385 is used as example below):
Connect the external power supply to the "Power Input" connector
Connect the USB-Type C connector labeled "FTDI USB" to the host PC
Connect the RJ-45 Ethernet for DUT SoC to the local network
Connect the RJ-45 Ethernet for the System Controller (this might be labeled "SC Ethernet") to the local network
Picture (VEK385)
Powering the Board
Connect the board external power supply to an outlet, plug in the external supply to the board, and turn the board on with the power switch (the VEK385 is shown below as an example):
UART Connections: FTDI-USB
Evaluation boards have multiple UART connections. When the FTDI-USB cable is plugged in, it will create multiple device nodes on the host PC.
For example, VEK385 Rev B has 4 serial / UART interfaces mapped as follows:
Device 0 (JTAG)
Device 1 (Versal™ PS-UART1)
Device 2 (Versal™ PS-UART0)
Device 3 (System Controller UART)
For evaluation board specific interface details, see:
Versal PS-UART1 is used by the primary user software, U-Boot and Linux® it can be directly accessed by the host PC via the FTDI UART.
Versal PS-UART0 is used by default for auxiliary software (PLM, ASU, RPU) and in Rev B of the VEK385, PS-UART0 will be directly accessible via the FTDI-USB interface.
How to boot a board using the pre-built images: Multi-stage boot (QSPI / OSPI -> UFS/SD) - Setup
This section is for evaluation boards that support the EDF Default boot Architecture - multi-stage boot with deferred PL Load (VEK385 Rev B)
Writing the EDF boot firmware to the primary boot device / media using System Controller (SC)
AMD Production Evaluation Boards might not have the latest boot firmware pre-programmed
The following Evaluation boards require boot firmware to be programmed (they are not pre-populated) or updated to the latest available
Early Access (EA), Engineering Sample (ES) Evaluation Boards
If your evaluation board does not have a system controller the OSPI/QSPI can also be programed by using the AMD Vivado™ Design Suite
For more details, see the evaluation board user guide.
Connect the FTDI-USB cable to the host PC. This will provide serial console interfaces to the PC as well as JTAG access to the Versal device.
Connect the System Controller (SC) Ethernet interface to a network accessible by the host PC.
On power up, the System Controller (SC) should boot and automatically start the BEAM tool, which can be accessed via a web-interface at the IP address it notes.
You should see the welcome screen as shown in the image. This will install the necessary drivers and support files required to connect and manage the evaluation board.
If the board support files are already installed, the welcome screen will not be displayed. Instead, you will see the board details screen directly. In this case, you can skip the 'Install Board Support' step, as it is not required
Click on "Install Board Support:
On the right side of the screen, click the Install Board Support button.
This will install the necessary drivers and support files required to connect and manage the evaluation board.
Wait for Installation:
The tool will begin installing the board support files. Wait for the process to complete.
Once the installation is successful, the tool will be ready to detect and connect to the board.
Board Details Screen:
The BEAM Tool should automatically detect the connected board.
Once the board is connected, the tool will display the board details (e.g., board name, serial number, etc.).
You can now proceed with further operations
To load the OSPI, select Versal Device Control.
Then use the Choose File option under the Upload OSPI: menu and select Load OSPI aligned with the image uploaded.
See the screen capture below for reference (picture is taken from a VEK385).
VEK385 SW 1 showing OSPI boot mode settings
ospi-boot-test (Taken from VEK385 boot)
[0.011]****************************************
[0.043]Xilinx Versal Aiepg2 Platform Loader and Manager
[0.080]Release 2025.1 Mar 26 2025 - 02:13:26
[0.116]Platform Version: v1.0 PMC: v1.0, PS: v1.0
[0.154]BOOTMODE: 0x8, MULTIBOOT: 0x0
[0.181]****************************************
[0.366]Non Secure Boot
[0.390]Device key init is skipped as no valid CDI is found
[4.618]PLM Initialization Time
[4.641]***********Boot PDI Load: Started***********
[4.715]Loading PDI from OSPI
[4.737]Monolithic/Master Device
[6.147]FlashID=0x2C 0x5B 0x1C
[8.032]OSPI mode switched to DDR
[10.318]5.640 ms: PDI initialization time
[10.350]+++Loading Image#: 0x1, Name: lpd, Id: 0x04210002
[10.393]---Loading Partition#: 0x1, Id: 0xC
[10.494]LPD T50 power sequence version 0.34
[10.541]lpd_scanclear
[10.588]LPD scan clear pass
[10.615]lpd_bisr
[10.642]lpd_mbist
[11.341]LPD MBIST pass
[86.838]Done LPD power up
[89.109] 78.682 ms for Partition#: 0x1, Size: 13984 Bytes
[94.184]+++Loading Image#: 0x2, Name: fpd, Id: 0x0420C003
[99.239]---Loading Partition#: 0x2, Id: 0x8
[103.222]FPD T50 power sequence version 0.44
[107.068]fpd_scanclear
[109.140]FPD scan clear pass
[111.694]fpd_bisr
[113.333]fpd_mbist
[117.414]FPD MBIST pass
[117.942]Done FPD power up
[119.593]MMI T50 house cleaning sequence version 0.68
[124.324]mmi_scanclear
[126.418]MMI scan clear pass
[129.175]mmi_gpu_lbist
[131.233]MMI GPU LBIST starts
[135.410]MMI GPU LBIST pass
[136.167]mmi_bisr
[137.811]mmi_gtyp_bisr
[139.868]mmi_mbist_clk_setup
[142.471]mmi_mbist
[149.989]MMI MBIST pass
[150.024]mmi_gtyp_mbist
[151.678]MMI GTYP MBIST pass
[164.715]Done MMI power up
[164.752] 61.648 ms for Partition#: 0x2, Size: 105968 Bytes
[169.531]+++Loading Image#: 0x3, Name: pl_cfi, Id: 0x18700000
[174.929]---Loading Partition#: 0x3, Id: 0x5
[179.010]npd_preconfig
[180.945]NPD T50 power sequence version 0.22
[184.914]npd_scanclear
[187.376]check_npd_scanclear
[189.534]NPD scan clear pass
[192.110]npd_pre_memclear
[194.425]unlock_ddrmc_ub
[196.655]unlock_nxu
[198.473]npd_bisr
[200.093]bisr_ddrmc_ub
[202.161]npd_memclear
[204.132]ila_clk_enable_ddrmc
[206.788]memclear_trigger_ddrmc
[209.619]memclear_trigger_nmu
[212.299]check_memclear_ddrmc
[214.948]check_memclear_nmu
[217.531]ila_clk_disable_ddrmc
[220.182]NPD mem clear pass
[222.668]nxu_odisable_assert
[225.289]efuse_secure_transfer
[228.017]unlock_ddrmc_mc
[230.351]lock_ddrmc_mc
[232.285]ub_initstate_deassert
[235.032]lock_ddrmc_ub
[237.094]lock_nxu
[238.776]Done NPD power up.
[1868.490]Polling 0xF6570008 Mask: 0x10 ExpectedValue: 0x10
[2244.050] 2065.169 ms for Partition#: 0x3, Size: 2245472 Bytes
[2246.807]+++Loading Image#: 0x4, Name: asufw, Id: 0x1C000002
[2252.210]---Loading Partition#: 0x4, Id: 0xF
[2258.419] 2.169 ms for Partition#: 0x4, Size: 448 Bytes
[2261.234]---Loading Partition#: 0x5, Id: 0xB
[2265.766] 0.494 ms for Partition#: 0x5, Size: 74000 Bytes
[2270.443]+++Loading Image#: 0x5, Name: aie2_subsys, Id: 0x0421C028
[2276.357]---Loading Partition#: 0x6, Id: 0x7
[2280.469]aie2_preconfig
[2282.639]AIE2ps T50 house cleaning sequence version 0.40
[2287.703]aie_efuse_secure_transfer
[2290.913]aie_check_efuse_secure_transfer
[2294.590]aie_scanclear
[2297.211]AIE scan clear pass
[2299.460]aie_pre_mbist
[2301.565]Value at 0x2003C07FF20: 1
[2304.714]Value at 0x2003E07FF20: 1
[2307.893]Value at 0x2004007FF20: 1
[2311.073]Value at 0x2004207FF20: 1
[2314.301]aie_bisr
[2315.983]aie_mbist
[2317.817]AIE MBIST pass
[2320.394]Done AIE power up
[2322.506] 42.109 ms for Partition#: 0x6, Size: 12848 Bytes
[2330.131]WARN XPmClock_RequestInt: Invalid parent clockIdx 0
[2338.917]+++Loading Image#: 0x6, Name: apu_ss, Id: 0x1C000000
[2341.578]---Loading Partition#: 0x7, Id: 0x0
[2345.820] 0.203 ms for Partition#: 0x7, Size: 58608 Bytes
[2350.774]---Loading Partition#: 0x8, Id: 0x0
[2355.005] 0.192 ms for Partition#: 0x8, Size: 53296 Bytes
[2359.969]---Loading Partition#: 0x9, Id: 0x0
[2364.105] 0.097 ms for Partition#: 0x9, Size: 26176 Bytes
[2369.161]---Loading Partition#: 0xA, Id: 0x0
[2376.467] 3.269 ms for Partition#: 0xA, Size: 1219424 Bytes
[2379.013]***********Boot PDI Load: Done***********
[2383.509]56.855 ms: ROM Time
[2386.171]Total PLM Boot Time
runtime console
NOTICE: TF-A running on Silicon v0.0, RTL v8.6, PS v8.6, PMC v8.6
INFO: CPU Revision = 0x3
INFO: cpu_clock = 100000000Hz, uart_clock = 100000000Hz
NOTICE: BL31: Executing from 0xbbf00000
NOTICE: BL31: Secure code at 0x1800000
NOTICE: BL31: Non secure code at 0x40000000
NOTICE: BL31: v2.12.0(debug):v1.1-15203-gf418a6916-dirty
NOTICE: BL31: Built : 11:18:22, Mar 19 2025
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: Maximum SPI INTID supported: 543
INFO: SCMI: Server initialized
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a78_ae: CPU workaround for CVE 2022_23960 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x40000000
INFO: SPSR = 0x3c9
U-Boot 2025.01-g5a324e1e94ae-dirty (Mar 26 2025 - 10:13:21 +0000)
CPU: Versal Gen 2
Silicon: v1.0
Chip: v1.0
Detected name: versal2-vek385-revA01
Model: AMD Versal VEK385 revA
DRAM: 2 GiB (effective 8 GiB)
EL Level: EL2
Core: 44 devices, 24 uclasses, devicetree: board
MMC:
Loading Environment from nowhere... OK
In: serial@f1930000
Out: serial@f1930000
Err: serial@f1930000
Bootmode: OSPI_MODE
Xilinx I2C FRU format at nvmem0:
Manufacturer Name: XILINX
Product Name: VEK385
Serial No: 519101A01113
Part Number: 5191-01
File ID: 0x0
Revision Number: A01
Net:
ZYNQ GEM: f1a60000, mdio bus f1a60000, phyaddr 1, interface rgmii-id
eth0: ethernet@f1a60000
ZYNQ GEM: ed920000, mdio bus ed920000, phyaddr 0, interface 10gbase-r
Warning: ethernet@ed920000 (eth1) using random MAC address - f6:64:28:24:5c:9c
, eth1: ethernet@ed920000
Device at ufs@f10b0000 up at:ufs-versal2-pltfm ufs@f10b0000: [RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
scanning bus for devices...
Hit any key to stop autoboot: 0
starting USB...
Bus usb@f1c00000: Register 1000440 NbrPorts 1
Starting the controller
USB XHCI 1.10
scanning bus usb@f1c00000 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Device 0: Vendor: Generic Rev: 1.98 Prod: Ultra HS-COMBO
Type: Removable Hard Disk
Capacity: 60874.0 MB = 59.4 GB (124669952 x 512)
Download the common EDF Linux® disk image, and write it to the secondary boot media. VEK385 Rev B uses UFS as the default storage media.
SD Boot Mode – SD cannot be used as the primary boot mode on the VEK385 or other newer boards. SD is only supported as a secondary boot device (for example, in multi‑stage boot flows such as OSPI → SD)
See Downloads and Release Notes for download links for the EDF Linux® common disk image for supported Evaluation Boards
Writing the EDF Linux® Disk Images (wic) to the Secondary Boot Media: UFS device
The disk image may be -
A common disk image - Evaluation boards supporting the EDF default boot architecture - multi-stage boot with deferred PL load
See Downloads and Release Notes for download links for the EDF Linux® common disk image for supported Evaluation Boards
Write the common EDF Linux® disk image to the secondary boot media.
VEK385 Rev B Board - The secondary boot media is an UFS device
Minimum UFS device size 16 GB: AMD EDF disk images require a minimum of a 16 GB UFS device to work correctly.
The .wic.ufs.xz file be written to an UFS device using web-interface Image recovery tool:
Initial Setup for UFS device:
Before initializing the UFS device for normal operation, it must be configured by reading the Device Descriptor and Configuration Descriptor. These descriptors provide essential information about the device’s capabilities, such as supported features, logical unit configuration, boot LUN settings, and performance attributes. Using this data, the host can enable or adjust parameters like logical units, block sizes, and optional features (e.g., WriteBooster or RPMB) to ensure the device operates according to system requirements. For UFS device configuration, first update the OSPI image using the BEAM tool . Next, launch the Linux-based image recovery shell and follow the steps outlined in the referenced wiki page to complete the UFS configuration process. Finally, reboot the board.
Flash WIC Image to UFS Storage device Using Image Recovery Tool and Boot VEK385 Board in OSPI + UFS Mode
After updating the OSPI image using the BEAM tool, follow the steps below to launch and update the WIC image using the Image Recovery tool. Image Recovery Tool Instructions Launch Linux-based image recovery shell The Image Recovery tools is a web-based tool that can be used to update either firmware or an new Linux image. To launch Image Recovery, first power off the board. Then, press and hold the FWUEN (SW14) push button while powering on the evaluation board (e.g., vek385_revB). After 3 to 5 seconds, release the push button. This will launch Linux-based image recovery shell, Check the serial terminal for the image recovery boot log. Launch Image Recovery Web Interface using IP address The web interface operates using an IP address (e.g., 10.10.70.2:8080), which is displayed on the UART console output (Image_recovery_boot.log) of the target when image recovery boot mode is triggered. In the serial terminal, look for a message similar to: ##################################################################################################
# #
#Launching to Image Recovery shell, Use 10.140.187.142:8080 to launch the Image Recovery web app.#
# #
################################################################################################## On the host machine, launch a browser (e.g., Firefox) and navigate to: http://10.140.187.142:8080, This opens the image recovery web interface page. The Image Recovery web interface provides four tabs: System Information Ethernet Recovery USB Recovery Configuration Settings (UFS configuration) The System Board Information section provides essential hardware details (such as VEK385 board name, revision, serial number, part number, and UUID), along with the boot image status of Bank A and Bank B. Using the Image Recovery web interface to Update Boot Firmware and WIC Image: Boot firmware or WIC image updates can be performed in two ways: via Ethernet or using a USB drive containing the respective images connected to the board. The Image Recovery web interface provides two options: Ethernet Recovery USB Recovery The web interface provides an option to update the UFS configuration Configuration settings A. Ethernet Recovery To update the Boot Firmware and Linux image using Ethernet Recovery, click the Ethernet Recovery tab and follow the steps outlined below. Update Boot Firmware: Click on Boot image and Select Boot.bin. Click on Upload A pop-up will confirm the successful update and display the message shown below (takes 1–2 minutes). Update Linux image: Click on WIC and select a WIC image (e.g., wic.xz, wic.ufs.xz). Optionally, you can select a bmap file. Choose the Storage device (e.g., UFS,USB) Click on Upload A pop-up will confirm the successful update and display the message shown below (takes 3–10 minutes depending on file size and format). B. USB Recovery To update the Boot Firmware and Linux image using USB Recovery, click the USB Recovery tab and follow the steps outlined below. Pre-requisites: Prepare the USB Flash Drive for USB Recovery (BOOT & WIC Images). Insert USB drive into your Windows/Linux PC. Format the USB as FAT32 (Right-click USB → Format → Select FAT32 → Start). Copy the BOOT and WIC images into the root of the USB drive: BOOT-versal-...bin edf-linux-disk-image-...wic.ufs.xz Do not rename the files and do not place them inside folders. Insert the USB into the evaluation board (e.g., vek385_revB). These steps ensure that USB Recovery web interface can scan the USB stick and display image files properly. Update Boot Firmware: Click on Boot Image and select the partition where the images are copied. Choose boot.bin Click on Upload A pop-up will confirm the successful update and display the message shown below (takes 1–2 minutes). Update Linux image: Select the WIC image (e.g., .wic.ufs.xz) and choose the partition where the image is stored. Select the WIC image. Click on Upload A pop-up will confirm the successful update and display the message shown below(takes 3–10 minutes depending on file size and format). After successfully updating the images, Set the boot mode switch (SW1 on VEK385, VEK280, VCK190) to OSPI boot, and confirm the boot is successful. C: Configuration settings To update the UFS configuration, go to Configuration Settings. Click on Query Device. This will dump the current UFS configuration. Under Logical Unit Configuration, configure the following two Logical Units (LUs): Logical Unit Parameters
LU Enable
Size
Memory Type
Boot LUN
Write Protect
Allocation Units (dNumAllocUnits)
LU0
LU Enable: Yes
Size: 20 GB
Memory Type: Normal (0x0)
Boot LUN: Boot A (0x1)
Write Protect: None (0x0)
Allocation Units: 0x1400
LU1
LU Enable: Yes
Size: 2–4 GB
Memory Type: Normal (0x0)
Boot LUN: Boot B (0x0)
Write Protect: None (0x0)
Allocation Units: 0x0100 Click on Write Configuration. This will store the configuration binary file in
/tmp/log/image-recovery/. Recheck the configuration and reboot the device. After reboot, the updated UFS configuration will be applied. Boot VEK385 board in OSPI + UFS by Setting OSPI boot mode SW 1 Boot Mode switch settings See board specific information / board user guide for more details and AMD EDF Board specific specifications and information/flows for information on other supported evaluation boards: , Turn off the evaluation board (e.g., vek385_revB) and then power it on again. The U-Boot Boot Menu will appear with the following options: *** U-Boot Boot Menu ***
usb 0
usb 1
scsi 0
scsi 1
Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
Booting: scsi 0 The UFS device is typically connected via the SCSI interface, which is why it appears as scsi 0 or scsi 1 in the boot menu. If multiple SCSI devices are connected, ensure you select the correct device containing the bootable image. Select the UFS Boot Option Select scsi 0 (or the appropriate SCSI device for UFS boot). Press ENTER to select the option. Boot from UFS After selecting scsi 0, U-Boot will attempt to boot from the UFS device. It boots from OSPI initially, followed by the UFS device for the rootfs and kernel image. Once Linux boots, Username for amd-edf 2025.2 is amd-edf and set password option will be prompted where user need to set a password. Booting VEK385 using OSPI + UFS boot mode:
Writing the EDF Linux® Disk Images (wic) to the Secondary Boot Media: SD Card
The disk image may be -
A common disk image - Evaluation boards supporting the EDF default boot architecture - multi-stage boot with deferred PL load
A board specific disk image - Evaluation boards supporting single-stage boot from SD card
See or for download links for the EDF Linux® common disk image for supported Evaluation Boards Write the common EDF Linux® disk image to the secondary boot media. VEK386 Rev A, VEK280, VCK190 etc. Board - The secondary boot media is SD card This is done using the Linux image, which is distributed as a WIC file and using an off-the-shelf tool, written to the physical SD card from a users PC. Minimum SD card size 16 GB: AMD EDF disk images require a minimum of a 16 GB SD card to work correctly. balenaEtcher: Recent versions have been found to be unreliable when flashing, failing during the verify stage of writing. If you experience this issue, please use an alternative tool. The .wic.xz file be written to an SD card using either an application such as Raspberry Pi Imager or balenaEtcher or a command line utility, such as dd or bmaptool: bmaptool instructions On a Linux host computer, we can flash the WIC image to an SD card using bmaptool as follows: The SD device name can vary! The following example needs to align with the sd* device name enumerated for the target SD card by your host system. $ bmaptool copy edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.xz /dev/sdk
bmaptool: info: discovered bmap file 'edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.bmap'
bmaptool: info: block map format version 2.0
bmaptool: info: 2359297 blocks of size 4096 (9.0 GiB), mapped 227540 blocks (888.8 MiB or 9.6%)
bmaptool: info: copying image 'edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.xz' to block device '/dev/sdk' using bmap file 'edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/sdk'
bmaptool: info: copying time: 4m 51.7s, copying speed 3.0 MiB/sec WARNING: Booting multiple image with the same root file system partition UUID may result in boot issues. In EDF, the Linux kernel locates the correct root filesystem by passing the root=PARTUUID=XXXX parameter in the kernel command line. In EDF 2025.05 the PARTUUID parameter is hard-coded meaning that it is not possible to have multiple image connected to a board - for example, an SD card and USB key with the same image. This may result in undetermined behaviour or boot errors as uboot and the linux kernel may enumerate the devices differently and the kernel will mount the first partition it finds with the matching PARTUUID. In EDF 2025.11 the PARTUUID is randomly generated for each image (build) so it is possible to have different images on different media and have the system boot correctly. It is still not possible to have the same image on multiple media.
How to Boot a Board Using the Pre-built Images: Single-Stage Boot UFS/SD Mode - Setup
Writing the EDF Linux® Disk Image (wic) to the Boot Media: SD Card
This section is for evaluation boards that support single step boot from SD card as the default boot mode for pre-built images (VEK280, VCK190).
Download the pre-built board specific EDF Linux disk image for SD boot for your Evaluation board, and write the image file to an to SD card
Use the wic cp command to copy the BOOT.BIN file into partition 1 of the .wic.ufs image. Ensure that the correct sector size is specified for the target media (4096 in this example).
$ wic cp --sector-size=4096 <boot-binary>.bin <image-name>.rootfs.wic.ufs:1
# Example #
$ wic cp boot.bin --sector-size=4096 edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs:1
$ wic ls --sector-size=4096 edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs:1
Volume in drive : is esp
Volume Serial Number is 9BC7-2DC2
Directory for ::/
EFI <DIR> 2011-04-05 23:00
IMAGE 32920064 2011-04-05 23:00 Image
loader <DIR> 2011-04-05 23:00
xen cfg 347 2011-04-05 23:00
xen efi 1048592 2011-04-05 23:00
boot bin 5320016 2026-03-10 12:10
6 files 39 289 019 bytes
1 032 073 216 bytes free
Confirm that the command completes without errors before proceeding.
Generate the*.wic.ufs.xzimage since the Image Recovery tool supports this format
Compress the generated *.wic.ufs image to *.wic.ufs.xz using the xz command as shown below.
At this point, you should have modified .wic.ufs.xz image.
Flash wic.ufs.xz Image to UFS Storage media Using Image Recovery Tool and Boot VEK385 Board in UFS Mode
This section provides a complete procedure for wic.ufs.xz image updates through the image recovery web-interface using Ethernet and USB recovery methods.
The Image Recovery tools is a web-based tool that can be used to update either firmware or a new Linux image.
To launch Image Recovery, first power off the board.
Then, press and hold the FWUEN (SW14) push button while powering on the evaluation board (e.g., vek385_revB). After 3 to 5 seconds, release the push button.
This will launch Linux-based image recovery shell, Check the serial terminal for the image recovery boot log.
Launch Image Recovery Web Interface using IP address
The web interface operates using an IP address (e.g., 10.10.70.2:8080), which is displayed on the UART console output (Image_recovery_boot.log) of the target when image recovery boot mode is triggered.
In the serial terminal, look for a message similar to:
##############################################################################################
# #
#Launching to Image Recovery shell, Use 10.10.70.1:8080 to launch the Image Recovery web app.#
# #
##############################################################################################
On the host machine, launch a browser (e.g., Firefox) and navigate to: http://10.10.70.1:8080, This opens the image recovery web interface page.
The Image Recovery web interface provides three tabs:
System Information
Ethernet Recovery
USB Recovery
The System Board Information section providing basic information about the hardware (e.g., VEK385 board Name, Revision, Serial, Part, UUID).
Using the Image Recovery web interface to Update WIC Image:
WIC image updates can be performed in two ways: via Ethernet or using a USB drive containing the respective images connected to the board.
The Image Recovery web interface provides two update options:
Ethernet Recovery
USB Recovery
A. Ethernet Recovery
To update the Linux image using Ethernet Recovery, click the Ethernet Recovery tab and follow the steps outlined below.
Update Linux image:
Browse and select the WIC (eg., .wic.ufs.xz) image.
Select the appropriate Target Storage Device (eg., /dev/sda)
Click on Upload
A pop-up will confirm the successful update and display the message shown below
B. USB Recovery
To update the Boot Firmware and Linux image using USB Recovery, click the USB Recovery tab and follow the steps outlined below.
Pre-requisites: Prepare the USB Flash Drive for USB Recovery (WIC Image).
Insert USB drive into your Windows/Linux PC.
Format the USB as FAT32 (Right-click USB → Format → Select FAT32 → Start).
Copy the WIC images into the root of the USB drive:
edf-linux-disk-image-...wic.ufs.xz
Do not rename the files and do not place them inside folders.
Insert the USB into the evaluation board (e.g., vek385_revB).
These steps ensure that USB Recovery web interface can scan the USB stick and display image files properly.
Update Linux image:
select the WIC (eg., .wic.ufs.xz) image.
Select the appropriate Target Storage Device (eg., /dev/sda)
Click on Upload
After successfully updating the images, Configure the board to select UFS as the primary boot source. The exact method is platform dependent and may involve hardware switches, jumpers, or firmware configuration menus on (VEK385, VEK280, VCK190), On the VEK385 board, all SW1 boot mode switches should be in the OFF position and confirm the boot is successful.
Boot VEK385 board in UFS by Configure UFS boot mode
Turn off the evaluation board (e.g., vek385_revB) and then power it on again.
The U-Boot Boot Menu will appear with the following options:
U-Boot 2026.01 (Mar 05 2026 - 08:37:01 +0000)
CPU: Versal Gen 2
Silicon: v1.0
Chip: v1.0
Model: AMD Versal VEK385 revB
DRAM: 2 GiB (total 20 GiB)
I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
EL Level: EL2
Xilinx I2C FRU format at nvmem1:
Manufacturer Name: XILINX
Product Name: VEK385
Serial No: XFL1X02J2RJC
Part Number: 5191-01
File ID: 0x0
Revision Number: B2
Core: 61 devices, 29 uclasses, devicetree: board
MMC:
Loading Environment from nowhere... OK
In: serial@f1930000
Out: serial@f1930000
Err: serial@f1930000
Starting the controller
USB XHCI 1.10
Starting the controller
USB XHCI 1.20
Bus usb@f1c00000: 4 USB Device(s) found
Bus usb@edec0000: 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
ufs-versal2-pltfm ufs@f10b0000: [RX, TX]: gear=[4, 4], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
scanning bus for devices...
Device 0: (0:0) Vendor: MICRON Prod.: MT064GBCAV1U31AA Rev: 0304
Type: Hard Disk
Capacity: 20480.0 MB = 20.0 GB (5242880 x 4096)
Device 1: (0:1) Vendor: MICRON Prod.: MT064GBCAV1U31AA Rev: 0304
Type: Hard Disk
Capacity: 1024.0 MB = 1.0 GB (262144 x 4096)
Device 2: (0:2) Vendor: MICRON Prod.: MT064GBCAV1U31AA Rev: 0304
Type: Hard Disk
Capacity: 4096.0 MB = 4.0 GB (1048576 x 4096)
Bootmode: UFS_MODE
Net:
ZYNQ GEM: f1a60000, mdio bus f1a60000, phyaddr 1, interface rgmii-id
eth0: ethernet@f1a60000
ZYNQ GEM: ed920000, mdio bus ed920000, phyaddr 0, interface 10gbase-r
, eth1: ethernet@ed920000
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB
FWU requires PMC magic number 0x1d
fwu_plat_get_bootidx: failed and setup boot index to 0
FWU requires PMC magic number 0x1d
fwu_plat_get_bootidx: failed and setup boot index to 0
No EFI variables loaded
Missing TPMv2 device for EFI_TCG_PROTOCOL
Missing RNG device for EFI_RNG_PROTOCOL
Saving Environment to nowhere... not possible
Saving Environment to nowhere... not possible
Hit any key to stop autoboot: 0
*** U-Boot Boot Menu ***
usb 0
scsi 0
scsi 1
scsi 2
0. Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
Booting: Label: scsi 0 Device path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,7000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,8000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6e00000000000000)/Scsi(0,0)
EDF Linux
EDF Xen
─────────────────────
Boot in 1 s.
The UFS device is typically connected via the SCSI interface, which is why it appears as scsi 0 or scsi 1 in the boot menu.
If multiple SCSI devices are connected, ensure you select the correct device containing the bootable image.
Select the UFS Boot Option
Select scsi 0 (or the appropriate SCSI device for UFS boot).
Press ENTER to select the option.
Boot from UFS
After selecting scsi 0, U-Boot will attempt to boot from the UFS device.
It boots from UFS initially, followed by the rootfs and kernel image.
Once Linux boots, Username for amd-edf 2025.2 is amd-edf and set password option will be prompted where user need to set a password.
Booting VEK385 using UFS as Primary boot mode:
This section describes how to boot the board from UFS as the primary boot media using the bmap Tool
Prerequisites Before starting, ensure the following conditions are met: Installed tools on the host: xz, wic, bmaptool, and standard core utilities. An existing compressed UFS disk image in .wic.ufs.xz format, for example: edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs.xz. The BOOT.BIN (or boot.bin) file that must be injected into partition 1 of the .wic.ufs image. Target board must have proper UFS configuration as mentioned in Host side steps Perform the following steps on the host system to prepare the UFS boot image. Decompress Decompress the existing .wic.ufs.xz file to obtain the raw .wic.ufs image. Replace file names and paths as appropriate for your environment. xz -df <image-name>.rootfs.wic.ufs.xz
# Example
xz -df edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs.xz After this step, you should have an uncompressed file similar to: edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs Inject BOOT.BIN Use the wic cp command to copy the BOOT.BIN file into partition 1 of the .wic.ufs image. Ensure that the correct sector size is specified for the target media (4096 in this example). wic cp --sector-size 4096 <boot-binary>.bin <image-name>.rootfs.wic.ufs:1
# Example
wic cp --sector-size 4096 boot.bin \
edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs:1 Confirm that the command completes without errors before proceeding. Generate .bmap file Generate a block map (.bmap) file for the updated .wic.ufs image using bmaptool create. This file is used to accelerate and validate the flashing operation. bmaptool create -o <output-bmap>.bmap <image-name>.rootfs.wic.ufs
# Example
bmaptool create -o edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs.bmap \
edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs At this point, you should have both the modified .wic.ufs image and the matching .bmap file on the host. Target/Board Flash steps With the image prepared, use the board-connected UFS device to flash the modified .wic.ufs image using bmaptool copy. Ensure the correct block device path is used, as this step will overwrite the target media. Flash modified Image Identify the UFS device node associated with the target board (for example, /dev/sda). Then flash the image using bmaptool copy with the corresponding .bmap file. sudo bmaptool copy --bmap <path-to-image>.rootfs.wic.ufs.bmap \
<path-to-image>.rootfs.wic.ufs \
<ufs-block-device>
# Example
sudo bmaptool copy --bmap /nfsroot/edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs.bmap \
/nfsroot/edf-linux-disk-image-amd-cortexa78-mali-common.rootfs.wic.ufs \
/dev/sda Verification After the UFS device is programmed, configure the platform to boot from UFS and verify that the primary boot image is used as expected. Change bootmode Configure the board to select UFS as the primary boot source. The exact method is platform dependent and may involve hardware switches, jumpers, or firmware configuration. Ensure that any previous boot source (for example, SD card or eMMC) is de-prioritized or removed during testing. Confirm primary boot from UFS Observe the early boot output via the available debug interface. Confirm the following: The platform successfully reads BOOT.BIN from the UFS device. Execution proceeds through the expected boot stages without falling back to an alternate boot device. The operating system starts from the UFS-backed root filesystem image. Troubleshooting If the board fails to boot from UFS or does not load the primary boot image, consider the following checks: Verify that the correct UFS device was targeted during the bmaptool copy operation and that no other storage devices share the same device node. Re-run bmaptool create and bmaptool copy to ensure that the .bmap file matches the .wic.ufs image actually flashed to the UFS device. Check boot mode configuration (switches, jumpers, firmware settings) to confirm that UFS is selected as the primary boot source. Confirm that BOOT.BIN (or boot.bin) is valid for the target platform and that it was injected into partition 1 of the .wic.ufs image with the correct sector size. Confirm target board have proper UFS configuration as mentioned in
Booting the Board to Linux - Power On
Ensure that the boot mode switch is configured for the correct boot mode:
Use a terminal emulator such as PuTTY or picocom to the appropriate node.
Note - the board will need ot be
john@enho:~$ picocom -b 115200 /dev/ttyUSB1
picocom v3.1
port is : /dev/ttyUSB1
flowcontrol : none
<snip>
Type [C-a] [C-h] to see available commands
Terminal ready
VEK385 Fan noise
When booting the VEK385, the system fan will likely spin loudly for a few seconds but should spin down shortly. If the high fan speed persists review the Versal design used to ensure it has enabled the SysMon external I2C interface with address 0x18.
Power the board and watch for UART Output.
If you setup UART in the last step - you may need to power the board off, then power on to see UART output
[0.012]****************************************
[0.042]Xilinx Versal Platform Loader and Manager
[0.073]Release 2025.1 Jul 14 2025 - 09:36:16
[0.106]Platform Version: v2.0 PMC: v2.0, PS: v2.0
[0.142]BOOTMODE: 0xE, MULTIBOOT: 0xF0000000
[0.172]****************************************
[0.374]Non Secure Boot
[3.481]PLM Initialization Time
[3.503]Boot PDI Load: Started
[3.554]Loading PDI from SD1_LS
[3.576]Monolithic/Master Device
[474.195]470.657 ms: PDI initialization time
[474.227]+++Loading Image#: 0x1, Name: lpd, Id: 0x04210002
[474.267]---Loading Partition#: 0x1, Id: 0xC
[529.325] 55.026 ms for Partition#: 0x1, Size: 9888 Bytes
[534.336]---Loading Partition#: 0x2, Id: 0x0
[562.420] 24.131 ms for Partition#: 0x2, Size: 70944 Bytes
PSM Firmware version: 2025.1 [Build: Jul 14 2025 09:36:16 ]
[570.085]+++Loading Image#: 0x2, Name: pl_cfi, Id: 0x18700000
[575.474]---Loading Partition#: 0x3, Id: 0x5
[1020.270] 440.843 ms for Partition#: 0x3, Size: 1206928 Bytes
[1022.934]+++Loading Image#: 0x3, Name: aie2_subsys, Id: 0x0421C028
[1028.859]---Loading Partition#: 0x4, Id: 0x7
[1039.827] 6.927 ms for Partition#: 0x4, Size: 1904 Bytes
[1042.061]+++Loading Image#: 0x4, Name: fpd, Id: 0x0420C003
[1047.302]---Loading Partition#: 0x5, Id: 0x8
[1053.783] 2.439 ms for Partition#: 0x5, Size: 4560 Bytes
[1056.690]+++Loading Image#: 0x5, Name: apu_ss, Id: 0x1C000000
[1061.918]---Loading Partition#: 0x6, Id: 0x0
[1085.892] 19.932 ms for Partition#: 0x6, Size: 56432 Bytes
[1088.295]---Loading Partition#: 0x7, Id: 0x0
[1104.825] 12.489 ms for Partition#: 0x7, Size: 49152 Bytes
[1107.228]---Loading Partition#: 0x8, Id: 0x0
[1116.263] 4.995 ms for Partition#: 0x8, Size: 18512 Bytes
[1118.581]---Loading Partition#: 0x9, Id: 0x0
[1422.007] 299.386 ms for Partition#: 0x9, Size: 1236672 Bytes
[1424.710]Boot PDI Load: Done
[1429.227]338.606 ms: ROM Time
[1431.978]Total PLM Boot Time
INFO: BL31: Early console setup
INFO: Successfully initialized runtime console
NOTICE: TF-A running on SILICON 0
INFO: BL31: GET_HANDOFF_PARAMS call success=0
INFO: BL31: PLM to TF-A handover success 0
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v2.12.0(debug):v1.1-15211-gdd3512287-dirty
NOTICE: BL31: Built : 07:04:54, Apr 24 2025
INFO: GICv3 with legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: Maximum SPI INTID supported: 191
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a72: CPU workaround for erratum 859971 was applied
INFO: BL31: cortex_a72: CPU workaround for erratum 1319367 was applied
INFO: BL31: cortex_a72: CPU workaround for CVE 2017_5715 was applied
INFO: BL31: cortex_a72: CPU workaround for CVE 2018_3639 was applied
INFO: BL31: cortex_a72: CPU workaround for CVE 2022_23960 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x8000000
INFO: SPSR = 0x3c9 U-Boot 2025.01-g80cff973d741 (Jul 08 2025 - 12:14:25 +0000) CPU: Versal
Silicon: v2
Chip: v2
Model: Xilinx Versal vek280 Eval board revB
DRAM: 2 GiB (effective 12 GiB)
EL Level: EL2
Multiboot: 0
Core: 36 devices, 24 uclasses, devicetree: board
MMC: mmc@f1050000: 0
Loading Environment from FAT... Unable to use mmc 0:2...
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Bootmode: LVL_SHFT_SD_MODE1
Net: ADIN1300 PHY detected at addr 1 ZYNQ GEM: ff0c0000, mdio bus ff0c0000, phyaddr 1, interface rgmii-id Warning: ethernet@ff0c0000 (eth0) using random MAC address - 0a:ea:2a:66:2f:77
eth0: ethernet@ff0c0000
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB
Error: Magic number of pmc global register is not 0x1d
fwu_plat_get_bootidx: failed and setup boot index to 0
Error: Magic number of pmc global register is not 0x1d
fwu_plat_get_bootidx: failed and setup boot index to 0
Cannot persist EFI variables without system partition
Missing TPMv2 device for EFI_TCG_PROTOCOL
Missing RNG device for EFI_RNG_PROTOCOL
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:2...
Found U-Boot script /boot.scr
977 bytes read in 9 ms (105.5 KiB/s) Executing script at 20000000 Checking for kernel:Image
Loading Image at 0x200000
26935808 bytes read in 1782 ms (14.4 MiB/s)
Working FDT set to 7be91f60
No RNG device
Booting /Image
EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.12.10-xilinx-ga3c19209094a (oe-user@oe-host) (aarch64-amd-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP Mon Jul 14 07:09:42 UTC 2025
…. …. AMD Embedded Development Framework Linux distribution 25.05.1+release-e7b75e2463fe143f7f404edcc1a65db48b65735e amd-edf ttyAMA0 amd-edf login:
On First boot output, Linux requires a password to be set for the default user account.
AMD Embedded Development Framework Linux distribution 25.05+release-c6500fc0db8ea079fdde3c78ead3c650850c1497 amd-edf ttyAMA1
amd-edf login: amd-edf
You are required to change your password immediately (administrator enforced).
New password:
Retype new password:
WARNING: AMD Embedded Development Framework is a reference Yocto Project
distribution that should be used for testing and development purposes only.
It is recommended that you create your own distribution for production use.
amd-edf:~$
R52-1 Hello_World Execution on VEK385
The Platform Loader and Manager (PLM) loads the baremetal hello_world application on the R52-1 core and boots the processor automatically. The application is packaged as part of the boot image (BOOT.BIN), so the user does not need to run any special commands.
Important Note
Debug prints from the R52-1 baremetal application may not always appear on the console due to shared resource.
Even if UART output is not visible, the R52-1 core is running and executing the application as expected.
Observing Processor State via XSDB example for VEK385
Note: a number of the command-line examples below need to be run with sudo priviledges. The first such time sudo is invoked, the system will ask for a password. The password that needs to be supplied is the password for the current user. Most likely the current user is “amd-edf” and the password is the one that was created at first boot when the system required a password to be set. This sudo password will be good for a period of time, meaning it does not need to be provided on each sudo invocation, but only after a period of time has elapsed after the last time the password was provided for sudo.
The pl-bram-fw PL firmware application is available as part of default EDF images and contains the following PL IP (mapped to board peripherals) designed using the Segmented Configuration design flow:
AXI BRAM
AXI GPIO
GPIO0: x4 User LEDs
GPIO1: x2 User push buttons
GPIO2: x4 User DIP switches
The PL firmware files are located in the /lib/firmware/xilinx/ folder on the rootfs. The VEK385 firmware name is vek385-pl-bram-fw
Load the BRAM-GPIO firmware using dfx-mgr which will load the firmware *_pld.pdi and .dtbo files.
dfx-mgr-client-load (output from VEK385 example):
amd-edf:~$ sudo dfx-mgr-client -load vek385-pl-bram-gpio-fw
vek385-pl-bram-gpio-fw: Loaded with slot_handle 0
Once the firmware application is loaded, verify that the PL GPIO and other PL drivers are probed, interrupts are registered in the kernel, and GPIO chip bus IDs are generated as shown below.
In this section we demonstrate how to test PL BRAM and GPIO in the user space. The example app is outlined in a simple Python script.
In the Vivado design, the BRAM start address is 0xB0000000 with 8k size (the end address is 0xB0001FFF). We will use a simple write and readback validation test via a simple Python script shown below.
The GPIO will be used to toggle the User LEDs
import os
import mmap
import struct
import subprocess
import time
#import gpiod
# Memory test config
PHYS_ADDR = 0xB0000000 # Find manner to auto-detect
PAGE_SIZE = mmap.PAGESIZE
PAGE_MASK = ~(PAGE_SIZE - 1)
OFFSET = PHYS_ADDR & (PAGE_SIZE - 1)
# GPIO test config
CHIP_NAME = "gpiochip1" # Find manner to auto-detect
def memory_test():
print("=== Memory Read/Write Validation ===")
with os.fdopen(os.open("/dev/mem", os.O_RDWR | os.O_SYNC), 'r+b') as f:
mem = mmap.mmap(f.fileno(), PAGE_SIZE, mmap.MAP_SHARED,
mmap.PROT_READ | mmap.PROT_WRITE,
offset=PHYS_ADDR & PAGE_MASK)
original_bytes = mem[OFFSET:OFFSET+4]
original_val = struct.unpack("<I", original_bytes)[0]
print(f"Original value at 0x{PHYS_ADDR:X}: 0x{original_val:08X}")
test_val = 0xDEADBEAF
mem[OFFSET:OFFSET+4] = struct.pack("<I", test_val)
print(f"Wrote test value: 0x{test_val:08X}")
readback_val = struct.unpack("<I", mem[OFFSET:OFFSET+4])[0]
print(f"Read back value: 0x{readback_val:08X}")
test_val = 0x12345678
mem[OFFSET:OFFSET+4] = struct.pack("<I", test_val)
print(f"Wrote test value: 0x{test_val:08X}")
readback_val = struct.unpack("<I", mem[OFFSET:OFFSET+4])[0]
print(f"Read back value: 0x{readback_val:08X}")
test_val = 0x87654321
mem[OFFSET:OFFSET+4] = struct.pack("<I", test_val)
print(f"Wrote test value: 0x{test_val:08X}")
readback_val = struct.unpack("<I", mem[OFFSET:OFFSET+4])[0]
print(f"Read back value: 0x{readback_val:08X}")
# Restore
mem[OFFSET:OFFSET+4] = struct.pack("<I", original_val)
print("Restored original value.")
mem.close()
print()
def gpio_toggle_test(): # Replace with gpiod based sequence once lib in Basecamp image
iotest = subprocess.Popen("gpioset -t1s,1s -c 1 0=1",shell=True)
time.sleep(5)
iotest.terminate()
iotest.wait()
print("GPIO 0 toggle test complete.\n")
iotest = subprocess.Popen("gpioset -t1s,1s -c 1 1=1",shell=True)
time.sleep(5)
iotest.terminate()
iotest.wait()
print("GPIO 1 toggle test complete.\n")
iotest = subprocess.Popen("gpioset -t1s,1s -c 1 2=1",shell=True)
time.sleep(5)
iotest.terminate()
iotest.wait()
print("GPIO 2 toggle test complete.\n")
iotest = subprocess.Popen("gpioset -t1s,1s -c 1 3=1",shell=True)
time.sleep(5)
iotest.terminate()
iotest.wait()
print("GPIO 3 toggle test complete.\n")
def main():
memory_test()
gpio_toggle_test()
if __name__ == "__main__":
main()
c. Running the GPIO BRAM Python test script results in the following:
Test Script:
amd-edf:~$ sudo python3 gpio_bram_test.py
=== Memory Read/Write Validation ===
Original value at 0xB0000000: 0x00000000
Wrote test value: 0xDEADBEAF
Read back value: 0xDEADBEAF
Wrote test value: 0x12345678
Read back value: 0x12345678
Wrote test value: 0x87654321
Read back value: 0x87654321
Restored original value.
GPIO 0 toggle test complete.
GPIO 1 toggle test complete.
GPIO 2 toggle test complete.
GPIO 3 toggle test complete.
Note: If you receive an error that "gpioset: cannot find GPIO chip character device '1'", ensure that the corresponding GPIO-BRAM bitstream has been loaded.
d. User LEDs are shown in the picture below. When the test script runs, they will each individually toggle on/off.
e. Unload the firmware application: firmware *_pld.pdi and .dtbo files are removed.
Note: You need to pass the handle to the remove command
The edf-linux-disk-image comes with OpenAMP examples pre-installed into the image, along with the tools needed to test them (e.g. dfx-mgr-client). These examples work both with real hardware, as well as inside QEMU.
Versal
Versal devices, such as the VEK280, have OpenAMP examples based on FreeRTOS. If you followed the instructions provided here for building/booting a VEK280 in QEMU, and have booted it successfully, the Versal OpenAMP examples can be demonstrated as follows.
In the following OpenAMP examples, the Linux shell prompt is left-justified. Any output from the provided command is indented to help distinguish it from the command to type. OpenAMP is built on top of remoteproc. First make sure that remoteproc is enabled/available: amd-edf:~$ dmesg | grep remoteproc
[ 3.886733] remoteproc remoteproc0: ffe00000.r5f is available Now list the firmware available in the image: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek280-p... id_ok XRT_FLAT (0+0+0) -1 vek280-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-proxy-freertos
3 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-matrix-freertos
4 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-echo-freertos
5 XRT_FLAT - - vpk120-p... id_ok XRT_FLAT (0+0+0) -1 vpk120-pl-bram-gpio-fw
6 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-matrix-freertos
7 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-proxy-freertos
8 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-echo-freertos
9 XRT_FLAT - - vck190-p... id_ok XRT_FLAT (0+0+0) -1 vck190-pl-bram-gpio-fw
10 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-proxy-freertos
11 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-matrix-freertos
12 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-echo-freertos
13 XRT_FLAT - - vmk180-p... id_ok XRT_FLAT (0+0+0) -1 vmk180-pl-bram-gpio-fw
14 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-proxy-freertos
15 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-matrix-freertos
16 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-echo-freertos
17 XRT_FLAT - - vrk160-p... id_ok XRT_FLAT (0+0+0) -1 vrk160-pl-bram-gpio-fw
18 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-proxy-freertos
19 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-echo-freertos
20 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-matrix-freertos Notice that the edf-linux-disk-image is common to a set of boards and therefore includes example firmware for all of them. Also, any firmware intended for the RPUs has a “Base_type” of RPU in the table given by dfx-mgr-client -listPackage Load one of the FreeRTOS examples for the VEK280: amd-edf:~$ sudo dfx-mgr-client -load vek280-r5-0-open-amp-xlnx-echo-freertos
openamp lib version: 1.8.0 (Major: 1, Minor: 8, Patch: 0)
libmetal lib version: 1.7.0 (Major: 1, Minor: 7, Patch: 0)
Starting application...
0 L7 metal_bus_register:26 registered generic bus
1 L7 c_buf,c_len = 0x982f208,4096
2 L6 platform_create_proc()
3 L6 rsc_table, rsc_size = 0x9800100, 0x100
4 L7 metal_device_open(generic, poll_dev, 0x226ac)
5 L7 poll{name,bus,chn_mask} = poll_dev,generic,0x20
6 L7 lpa,lda= 0x9800100,0xffffffff
7 L7 mem= 0x9820cc0
8 L7 tmpio= 0x9820d00
9 L7 lpa,lda= 0x9860000,0xffffffff
10 L7 mem= 0x9820d40
11 L7 tmpio= 0x9820d80
12 L6 Initialize remoteproc successfully.
13 L6 creating remoteproc virtio rproc 0x982f1cc
14 L6 initializing rpmsg shared buffer pool
15 L6 initializing rpmsg vdev
16 L6 Try to create rpmsg endpoints.
17 L6 Successfully created rpmsg endpoint.
vek280-r5-0-open-amp-xlnx-echo-freertos: Loaded with slot_handle 0 Take note of the messages from the Linux kernel indicating the RPU is powered, loaded, and up: amd-edf:~$ dmesg | grep remoteproc
[ 3.886733] remoteproc remoteproc0: ffe00000.r5f is available
[ 319.448735] remoteproc remoteproc0: powering up ffe00000.r5f
[ 319.627978] remoteproc remoteproc0: Booting fw image vek280-r5-0-open-amp-xlnx-echo-freertos.elf, size 1062024
[ 319.913709] remoteproc remoteproc0: remote processor ffe00000.r5f is now up This is how dfx-mgr-client is updated as a result: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek280-p... id_ok XRT_FLAT (0+0+0) -1 vek280-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-proxy-freertos
3 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-matrix-freertos
4 RPU - - rpu no_id RPU (1+0+0) 0->0, vek280-r5-0-open-amp-xlnx-echo-freertos
5 XRT_FLAT - - vpk120-p... id_ok XRT_FLAT (0+0+0) -1 vpk120-pl-bram-gpio-fw
6 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-matrix-freertos
7 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-proxy-freertos
8 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-echo-freertos
9 XRT_FLAT - - vck190-p... id_ok XRT_FLAT (0+0+0) -1 vck190-pl-bram-gpio-fw
10 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-proxy-freertos
11 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-matrix-freertos
12 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-echo-freertos
13 XRT_FLAT - - vmk180-p... id_ok XRT_FLAT (0+0+0) -1 vmk180-pl-bram-gpio-fw
14 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-proxy-freertos
15 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-matrix-freertos
16 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-echo-freertos
17 XRT_FLAT - - vrk160-p... id_ok XRT_FLAT (0+0+0) -1 vrk160-pl-bram-gpio-fw
18 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-proxy-freertos
19 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-echo-freertos
20 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-matrix-freertos Notice that the firmware we loaded is now given a slot->handle. The echo test we have loaded is a simple send/receive OpenAMP example between the APU and the RPU. The provided Linux user-space application you can use to test its functionality will simply continue on indefinitely until you stop it with Ctrl-C. So as you start it, be ready to stop it manually. amd-edf:~$ sudo echo_test
Echo test start
using dev file: virtio0.rpmsg-openamp-demo-channel.-1.1025
open /sys/bus/rpmsg/devices/virtio0.rpmsg-openamp-demo-channel.-1.1025/driver_override
current drv override = (null)
write virtio0.rpmsg-openamp-demo-channel.-1.1025 to /sys/bus/rpmsg/drivers/rpmsg_chrdev/bind
opendir /sys/bus/rpmsg/devices/virtio0.rpmsg_ctrl.0.0/rpmsg
open /dev/rpmsg_ctrl0
main():143 app_rpmsg_create_ept: rpmsg-openamp-demo-channel[src=0,dst=0x401]
checking /sys/class/rpmsg/rpmsg_ctrl0/rpmsg0/name
checking /sys/class/rpmsg/rpmsg_ctrl0/rpmsg1/name
svc_name: rpmsg-openamp-demo-channel
.
open /dev/rpmsg1
**************************************
Echo Test Round 0
**************************************
sending payload number 0 of size 17
echo test: sent : 17
received payload number 0 of size 17
sending payload number 1 of size 18
echo test: sent : 18
received payload number 1 of size 18
sending payload number 2 of size 19
echo test: sent : 19
received payload number 2 of size 19
sending payload number 3 of size 20
echo test: sent : 20
received payload number 3 of size 20
...^C Now we can unload the firmware: amd-edf:~$ sudo dfx-mgr-client -remove 0
remove from slot 0 returns: 0 (Ok) Check the kernel: amd-edf:~$ dmesg | grep remoteproc
[ 3.886733] remoteproc remoteproc0: ffe00000.r5f is available
[ 319.448735] remoteproc remoteproc0: powering up ffe00000.r5f
[ 319.627978] remoteproc remoteproc0: Booting fw image vek280-r5-0-open-amp-xlnx-echo-freertos.elf, size 1062024
[ 319.913709] remoteproc remoteproc0: remote processor ffe00000.r5f is now up
[ 546.571918] remoteproc remoteproc0: stopped remote processor ffe00000.r5f Check dfx-mgr-client: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek280-p... id_ok XRT_FLAT (0+0+0) -1 vek280-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-proxy-freertos
3 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-matrix-freertos
4 RPU - - rpu no_id RPU (1+0+0) -1 vek280-r5-0-open-amp-xlnx-echo-freertos
5 XRT_FLAT - - vpk120-p... id_ok XRT_FLAT (0+0+0) -1 vpk120-pl-bram-gpio-fw
6 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-matrix-freertos
7 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-proxy-freertos
8 RPU - - rpu no_id RPU (1+0+0) -1 vpk120-r5-0-open-amp-xlnx-echo-freertos
9 XRT_FLAT - - vck190-p... id_ok XRT_FLAT (0+0+0) -1 vck190-pl-bram-gpio-fw
10 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-proxy-freertos
11 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-matrix-freertos
12 RPU - - rpu no_id RPU (1+0+0) -1 vck190-r5-0-open-amp-xlnx-echo-freertos
13 XRT_FLAT - - vmk180-p... id_ok XRT_FLAT (0+0+0) -1 vmk180-pl-bram-gpio-fw
14 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-proxy-freertos
15 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-matrix-freertos
16 RPU - - rpu no_id RPU (1+0+0) -1 vmk180-r5-0-open-amp-xlnx-echo-freertos
17 XRT_FLAT - - vrk160-p... id_ok XRT_FLAT (0+0+0) -1 vrk160-pl-bram-gpio-fw
18 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-proxy-freertos
19 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-echo-freertos
20 RPU - - rpu no_id RPU (1+0+0) -1 vrk160-r5-0-open-amp-xlnx-matrix-freertos The demonstration of the remaining 2 OpenAMP examples are left as an exercise. In the same way that the echo_test Linux user-space application was provided to help test the vek280-r5-0-open-amp-xlnx-echo-freertos firmware: the mat_mul_demo user-space application is provided to test vek280-r5-0-open-amp-xlnx-matrix-freertos the proxy_app user-space application is provided to test vek280-r5-0-open-amp-xlnx-proxy-freertos
Versal-2vm-2ve
Versal-2vm-2ve devices, such as the VEK385, have an OpenAMP example based on Zephyr. If you followed the instructions provided here for building/booting a VEK385 in QEMU, and have booted it successfully, the Versal-2vm-2ve example can be demonstrated as follows.
In the following OpenAMP example, the Linux shell prompt is left-justified. Any output from the provided command is indented to help distinguish it from the command to type. OpenAMP is built on top of remoteproc. First make sure that remoteproc is enabled/available: amd-edf:~$ dmesg | grep remoteproc
[ 3.227478] remoteproc remoteproc0: eba00000.r52f is available
[ 3.252067] remoteproc remoteproc1: ebb80000.r52f is available
[ 3.252839] remoteproc remoteproc2: ebbc0000.r52f is available
[ 3.311668] remoteproc remoteproc3: ebc00000.r52f is available
[ 3.312282] remoteproc remoteproc4: ebc40000.r52f is available Now list the firmware available in the image: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek385-p... id_ok XRT_FLAT (0+0+0) -1 vek385-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (5+0+0) -1 vek385-r5-0-zephyr-openamp-rpmsg-multi-srv
3 XRT_FLAT - - vek385-r... id_ok XRT_FLAT (0+0+0) -1 vek385-revb-pl-bram-gpio-fw
4 RPU - - rpu no_id RPU (5+0+0) -1 vek385-revb-r5-0-zephyr-openamp-rpmsg-multi-srv Notice that the edf-linux-disk-image is common to both RevA and RevB VEK385 boards and therefore includes example firmware for both of them. Also, any firmware intended for the RPUs has a “Base_type” of RPU in the table given by dfx-mgr-client -listPackage Now we need to determine the VEK385 board on which we are running (in case you are not sure) since there are separate firmware bundles for both. amd-edf:~$ dmesg | grep VEK385
[ 0.000000] Machine model: AMD Versal VEK385 revA
[ 0.391259] DMI: amd AMD Versal VEK385 revA/AMD Versal VEK385 revA, BIOS 2025.01-g5e0d8abc7e09-dirty 01/01/2025 In this case these examples are being run on a VEK385 RevA board, therefore load the corresponding firmware: amd-edf:~$ sudo dfx-mgr-client -load vek385-r5-0-zephyr-openamp-rpmsg-multi-srv
vek385-r5-0-zephyr-openamp-rpmsg-multi-srv: Loaded with slot_handle 0 Check the kernel: amd-edf:~$ dmesg | grep remoteproc
[ 3.227478] remoteproc remoteproc0: eba00000.r52f is available
[ 3.252067] remoteproc remoteproc1: ebb80000.r52f is available
[ 3.252839] remoteproc remoteproc2: ebbc0000.r52f is available
[ 3.311668] remoteproc remoteproc3: ebc00000.r52f is available
[ 3.312282] remoteproc remoteproc4: ebc40000.r52f is available
[ 310.471869] remoteproc remoteproc0: powering up eba00000.r52f
[ 310.492539] remoteproc remoteproc0: Booting fw image vek385-r5-0-zephyr-openamp-rpmsg-multi-srv.elf, size 1465652
[ 310.567205] remoteproc remoteproc0: remote processor eba00000.r52f is now up Check dfx-mgr-client: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek385-p... id_ok XRT_FLAT (0+0+0) -1 vek385-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (5+0+0) 0->0, vek385-r5-0-zephyr-openamp-rpmsg-multi-srv
3 XRT_FLAT - - vek385-r... id_ok XRT_FLAT (0+0+0) -1 vek385-revb-pl-bram-gpio-fw
4 RPU - - rpu no_id RPU (5+0+0) -1 vek385-revb-r5-0-zephyr-openamp-rpmsg-multi-srv Note the vek385-r5-0-zephyr-openamp-rpmsg-multi-srv firmware which have just loaded has been assigned a slot->handle. Prepare for running the test: amd-edf:~$ sudo rpmsg_export_dev /dev/rpmsg_ctrl0 rpmsg-tty 256 -1
amd-edf:~$ sudo rpmsg_export_dev /dev/rpmsg_ctrl0 rpmsg-tty 257 -1
amd-edf:~$ sudo rpmsg_export_ept /dev/rpmsg_ctrl0 my_endpoint1 100 1
amd-edf:~$ sudo rpmsg_export_ept /dev/rpmsg_ctrl0 my_endpoint2 101 1
amd-edf:~$ sudo echo 8 > /proc/sys/kernel/printk Run the test: amd-edf:~$ sudo rpmsg_ping /dev/rpmsg0
from ept 0x0402: ping /dev/rpmsg0 Done with testing, the firmware can be unloaded: amd-edf:~$ sudo dfx-mgr-client -remove 0
remove from slot 0 returns: 0 (Ok) Checking the kernel: amd-edf:~$ dmesg | grep remoteproc
[ 3.227478] remoteproc remoteproc0: eba00000.r52f is available
[ 3.252067] remoteproc remoteproc1: ebb80000.r52f is available
[ 3.252839] remoteproc remoteproc2: ebbc0000.r52f is available
[ 3.311668] remoteproc remoteproc3: ebc00000.r52f is available
[ 3.312282] remoteproc remoteproc4: ebc40000.r52f is available
[ 310.471869] remoteproc remoteproc0: powering up eba00000.r52f
[ 310.492539] remoteproc remoteproc0: Booting fw image vek385-r5-0-zephyr-openamp-rpmsg-multi-srv.elf, size 1465652
[ 310.567205] remoteproc remoteproc0: remote processor eba00000.r52f is now up
[ 4691.687253] remoteproc remoteproc0: stopped remote processor eba00000.r52f Check with dfx-mgr-client: amd-edf:~$ sudo dfx-mgr-client -listPackage
# Accel_type user_load_type user_load_region Base Pid Base_type #slots(RPU+PL+AIE) slot->handle Accelerator
-- ----------- -------------- ---------------- ----------- ----- --------- ------------------ ------------ ---------
1 XRT_FLAT - - vek385-p... id_ok XRT_FLAT (0+0+0) -1 vek385-pl-bram-gpio-fw
2 RPU - - rpu no_id RPU (5+0+0) -1 vek385-r5-0-zephyr-openamp-rpmsg-multi-srv
3 XRT_FLAT - - vek385-r... id_ok XRT_FLAT (0+0+0) -1 vek385-revb-pl-bram-gpio-fw
4 RPU - - rpu no_id RPU (5+0+0) -1 vek385-revb-r5-0-zephyr-openamp-rpmsg-multi-srv
Loading the pre-built “hello world“ container demo
The default EDF image comes with the docker runtime pre-installed. A simple pre-built “hello world” container image is provided and can be installed and executed as follows.
Note: In order to install the docker image from dockerhub, you need to have an active connection to the web.
docker image run:
amd-edf:~$ sudo docker pull https://hub.docker.com/r/xilinx/edf/:hello-world-25.05
amd-edf:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
xilinx/edf hello-world-25.05 e9fff5795aa2 3 weeks ago 13.4MB
amd-edf:~$ sudo docker run -it xilinx/edf:hello-world-25.05
Hello, world!
Run the Xen Demo
Xen is an opensource hypervisor which allows multiple operating systems to run on a single system - see https://xenproject.org/ for more information. In this demo Xen is booted with UEFI boot mode. UEFI boot mode is implemented in meta-amd-edf layer https://github.com/Xilinx/meta-amd-edf and supported only in 2025.2 and later release. In 2025.2 release this feature is supported only for AMD Versal and Versal™ AI Edge Series Gen 2 Devices. UEFI boot mode is enabled by default in meta-amd-edf layer. The user can also use the pre-built images for HW and QEMU to boot Xen. This Xen demo shows how to boot a Xen Dom0 Linux and run a Zephyr RTOS DomU Guest. In this example we are demonstrate Xen boot on VEK385 board. Same instructions can be used for other Versal boards.
Versal™ Xen UEFI Dom0 Linux
Follow to flash wic iamge to SD Card or UFS. Boot the HW. Once boot reaches u-boot bootloader stage a EDF boot menu pop-up is displayed with 5 seconds time out. User needs to select usb 0(SD) or scsci 0(UFS) depending on the storage boot medium where wic image is flashed. Then select EDF Xen from menu and press enter, this will boot with Xen UEFI. Username for amd-edf 2025.2 is amd-edf and set password option will be prompted where user need to set a password. [0.222]Non Secure Boot
[3.684]WARN XPm_AddSubsystem: Ignoring CMD: PM_ADD_SUBSYSTEM. SubsystemId=0x1C000000
[4.683]Loading PDI from OSPI
[4.707]Monolithic/Master Device
[6.119]FlashID=0x2C 0x5B 0x1C
[7.956]OSPI mode switched to DDR
[10.071]5.424 ms: PDI initialization time
[10.106]+++Loading Image#: 0x1, Name: lpd, Id: 0x04210002
[10.153]---Loading Partition#: 0x1, Id: 0xC
[10.260]LPD T50 power sequence version 0.37
[10.310]lpd_scanclear
[10.358]LPD scan clear pass
[10.387]lpd_bisr
[10.415]lpd_mbist
[11.114]LPD MBIST pass
[57.099]Done LPD power up
[59.416] 49.226 ms for Partition#: 0x1, Size: 14560 Bytes
**********************************************
Image Selector App Start
**********************************************
******** Boot info ********
Boot Count: 0
MaxBootCnt: 4
Rollback counter: 1
******** Metadata info ********
Mdata.crc32: BC39BA3F
Mdata.version: 2
Mdata.active_index: 0
Mdata.previous_active_index: 1
Mdata.metadata_size: 7C
Mdata.desc_offset: 20
Mdata.bank_state[0]: FC
Mdata.bank_state[1]: FC
Mdata.bank_state[2]: FF
Mdata.bank_state[3]: FF
Mdata.fw_desc.num_banks: 2
Mdata.fw_desc.num_images: 1
Mdata.fw_desc.img_entry_size: 50
Mdata.fw_desc.bank_info_entry_size: 18
******** Guid info ********
Image Type Guid: F27C2E59-8F43-4D77-9B63-12B0A4E67C28
Location Guid: D7CE8A58-CE2C-11ED-81CD-D324E93AC223
Image Guid: 7E1B930B-F6B2-EF11-8565-EB65D140066B
Image Acceptance: yes
Image Guid: 00D84312-F6B2-EF11-8F4F-8BDDC3AA326D
Image Acceptance: yes
******** Version info ********
Image Selector Version: 1.0
Active bank image ver : amd-edf-versal-2ve-2vm-vek385-revb-sdt-seg-bootfw-v25.11+development
******** Image Selection info ********
Reset the Boot counter as bank 0 is in accepted state
Updated bank 0 to boot part register
[0.011]****************************************
[0.047]Xilinx Versal 2ve_2vm Platform Loader and Manager
[0.089]Release 2025.2 Nov 13 2025 - 10:49:34
[0.128]Platform Version: v1.0 PMC: v1.0, PS: v1.0
[0.170]BOOTMODE: 0x8, MULTIBOOT: 0x2B0
[0.203]****************************************
[0.505]Non Secure Boot
[6.246]PLM Initialization Time
[6.273]***********Boot PDI Load: Started***********
[6.349]Loading PDI from OSPI
[6.374]Monolithic/Master Device
[7.787]FlashID=0x2C 0x5B 0x1C
[9.698]OSPI mode switched to DDR
[12.000]5.686 ms: PDI initialization time
[12.035]+++Loading Image#: 0x1, Name: lpd, Id: 0x04210002
[12.082]---Loading Partition#: 0x1, Id: 0xC
[12.190]LPD T50 power sequence version 0.37
[12.241]lpd_scanclear
[12.272]LPD scan clear is already done. Skip it
[12.315]lpd_bisr
[12.344]lpd_mbist
[12.372]LPD MBIST is already done. Skip it
[87.723]Done LPD power up
[90.027] 77.907 ms for Partition#: 0x1, Size: 14560 Bytes
[95.172]+++Loading Image#: 0x2, Name: fpd, Id: 0x0420C003
[100.308]---Loading Partition#: 0x2, Id: 0x8
[104.442]FPD T50 power sequence version 0.51
[108.340]fpd_scanclear
[110.441]FPD scan clear pass
[113.050]fpd_bisr
[114.709]fpd_mbist
[118.851]FPD MBIST pass
[118.892]fpd_srst
[120.289]Value at 0x0EC880F0C: 0
[123.753]Done FPD power up
[125.685]MMI T50 house cleaning sequence version 0.72
[130.484]mmi_scanclear
[132.608]MMI scan clear pass
[135.402]mmi_gpu_lbist
[137.487]MMI GPU LBIST starts
[141.751]MMI GPU LBIST pass
[142.496]mmi_bisr
[144.161]mmi_gtyp_bisr
[146.250]mmi_mbist_clk_setup
[148.888]mmi_mbist
[156.517]MMI MBIST pass
[156.553]mmi_gtyp_mbist
[158.230]MMI GTYP MBIST pass
[164.610]Done MMI power up
[164.645] 60.328 ms for Partition#: 0x2, Size: 107088 Bytes
[169.491]+++Loading Image#: 0x3, Name: pl_cfi, Id: 0x18700000
[174.977]---Loading Partition#: 0x3, Id: 0x5
[179.120]npd_preconfig
[181.084]NPD T50 power sequence version 0.24
[185.112]npd_scanclear
[187.604]check_npd_scanclear
[189.800]NPD scan clear pass
[192.415]npd_pre_memclear
[194.765]unlock_ddrmc_ub
[197.027]unlock_nxu
[198.871]npd_bisr
[200.516]bisr_ddrmc_ub
[202.605]unlock_ddrmc_ub
[204.881]npd_memclear
[206.882]ila_clk_enable_ddrmc
[209.577]memclear_trigger_ddrmc
[212.450]memclear_trigger_nmu
[215.168]check_memclear_ddrmc
[217.855]check_memclear_nmu
[220.481]ila_clk_disable_ddrmc
[223.169]NPD mem clear pass
[225.693]nxu_odisable_assert
[228.354]efuse_secure_transfer
[231.123]NPD efuse transfer done
[234.061]unlock_ddrmc_mc
[236.456]lock_ddrmc_mc
[238.421]ub_initstate_deassert
[241.208]lock_ddrmc_ub
[243.301]lock_nxu
[245.009]Done NPD power up.
[1877.733]Polling 0xF6570008 Mask: 0x10 ExpectedValue: 0x10
[3799.799] 3620.811 ms for Partition#: 0x3, Size: 2239744 Bytes
[3802.591]+++Loading Image#: 0x4, Name: asufw, Id: 0x1C000002
[3808.078]---Loading Partition#: 0x4, Id: 0xF
[3814.260] 2.085 ms for Partition#: 0x4, Size: 544 Bytes
[3817.231]---Loading Partition#: 0x5, Id: 0xB
[3822.105] 0.778 ms for Partition#: 0x5, Size: 135984 Bytes
[3826.653]+++Loading Image#: 0x5, Name: aie2_subsys, Id: 0x0421C028
[3832.660]---Loading Partition#: 0x6, Id: 0x7
[3836.830]aie2_preconfig
[3839.035]AIE2ps T50 house cleaning sequence version 0.43
[3844.171]aie_efuse_secure_transfer
[3847.422]AIE efuse transfer done
[3850.453]aie_check_efuse_secure_transfer
[3854.213]aie_scanclear
[3856.863]AIE scan clear pass
[3859.150]aie_pre_mbist
[3861.286]Value at 0x2003C07FF20: 1
[3864.481]Value at 0x2003E07FF20: 1
[3867.706]Value at 0x2004007FF20: 1
[3870.932]Value at 0x2004207FF20: 1
[3874.205]aie_bisr
[3875.913]aie_mbist
[3877.771]AIE MBIST pass
[3880.383]Done AIE power up
[3882.529] 45.771 ms for Partition#: 0x6, Size: 12896 Bytes
[3893.107]+++Loading Image#: 0x6, Name: apu_ss, Id: 0x1C000000
[3895.805]---Loading Partition#: 0x7, Id: 0x0
[3900.253] 0.351 ms for Partition#: 0x7, Size: 112560 Bytes
[3905.218]---Loading Partition#: 0x8, Id: 0x0
[3909.508] 0.195 ms for Partition#: 0x8, Size: 53296 Bytes
[3914.541]---Loading Partition#: 0x9, Id: 0x0
[3918.701] 0.065 ms for Partition#: 0x9, Size: 14400 Bytes
[3923.867]---Loading Partition#: 0xA, Id: 0x0
[3929.221] 1.257 ms for Partition#: 0xA, Size: 450080 Bytes
[3933.281]---Loading Partition#: 0xB, Id: 0x0
[3941.013] 3.635 ms for Partition#: 0xB, Size: 1336320 Bytes
[3943.538]---Loading Partition#: 0xC, Id: 0x0
[3947.689] 0.055 ms for Partition#: 0xC, Size: 4704 Bytes
[3952.777]---Loading Partition#: 0xD, Id: 0x0
[3956.948] 0.075 ms for Partition#: 0xD, Size: 12144 Bytes
[3962.179]***********Boot PDI Load: Done***********
[3966.720]46.195 ms: ROM Time
[3969.421]Total PLM Boot Time
NOTICE: BL31: Executing from 0x1600000
NOTICE: BL31: Secure code at 0x1800000
NOTICE: BL31: Non secure code at 0x40000000
NOTICE: BL31: v2.12.0(release):xlnx_rebase_v2.12_2025.1-165-g894ecd073-dirty
NOTICE: BL31: Built : 08:14:53, Oct 16 2025
I/TC:
I/TC: Non-secure external DT found
I/TC: pl011: device parameters ignored (115200n8)
I/TC: Switching console to device: /axi/serial@f1930000
I/TC: OP-TEE version: xlnx_rebase_v4.5.0_2025.1_update1-4-gdfd1bb365 (gcc version 13.4.0 (GCC)) #1 Mon Aug 11 08:25:09 UTC 2025 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: OP-TEE OS Running on Platform AMD Versal Gen 2
I/TC: Primary CPU switching to normal world boot
U-Boot 2025.01-g5e0d8abc7e09-dirty (Nov 12 2025 - 07:44:59 +0000)
CPU: Versal Gen 2
Silicon: v1.0
Chip: v1.0
Model: AMD Versal VEK385 revB
DRAM: 2 GiB (effective 20 GiB)
I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled
EL Level: EL2
Xilinx I2C FRU format at nvmem1:
Manufacturer Name: XILINX
Product Name: VEK385
Serial No: XFL15FT1ASTC
Part Number: 5191-01
File ID: 0x0
Revision Number: B1
Core: 57 devices, 27 uclasses, devicetree: board
MMC:
Loading Environment from SPIFlash... SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB
OK
In: serial@f1930000
Out: serial@f1930000
Err: serial@f1930000
Bus usb@f1c00000: Register 1000440 NbrPorts 1
Starting the controller
USB XHCI 1.10
scanning bus usb@f1c00000 for devices... 4 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
ufs-versal2-pltfm ufs@f10b0000: [RX, TX]: gear=[4, 4], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
scanning bus for devices...
Device 0: (0:0) Vendor: MICRON Prod.: MT064GBCAV1U31AA Rev: 0304
Type: Hard Disk
Capacity: 32768.0 MB = 32.0 GB (8388608 x 4096)
Net:
ZYNQ GEM: f1a60000, mdio bus f1a60000, phyaddr 1, interface rgmii-id
eth0: ethernet@f1a60000
ZYNQ GEM: ed920000, mdio bus ed920000, phyaddr 0, interface 10gbase-r
, eth1: ethernet@ed920000
Missing TPMv2 device for EFI_TCG_PROTOCOL
Missing RNG device for EFI_RNG_PROTOCOL
Hit any key to stop autoboot: 0
*** U-Boot Boot Menu ***
usb 0
scsi 0
Exit
Press UP/DOWN to move, ENTER to select, ESC to quit
Booting: usb 0
No RNG device
EDF Xen
EDF Linux
Xen 4.20.0-rc5 (c/s Thu Nov 6 08:30:09 2025 -0800 git:646d6c883e-dirty) EFI loader
Using configuration file 'xen.cfg'
Image: 0x000000097e11d000-0x000000097fffe200
Using bootargs from Xen configuration file.
Xen 4.20.0-rc5
(XEN) Xen version 4.20.0-rc5 (xbrbbot@) (aarch64-amd-linux-gcc (GCC) 13.4.0) debug=y 2025-11-06
(XEN) Latest ChangeSet: Thu Nov 6 08:30:09 2025 -0800 git:646d6c883e-dirty
(XEN) build-id: 3278f612fc86c569318a7668cf2ed6ff650dd3b5
(XEN) Processor: 00000000410fd423: "ARM Limited", variant: 0x0, part 0xd42,rev 0x3
(XEN) 64-bit Execution:
(XEN) Processor Features: 1100000011111112 0000000000000010
(XEN) Exception Levels: EL3:64 EL2:64 EL1:64 EL0:64+32
(XEN) Extensions: FloatingPoint AdvancedSIMD GICv3-SysReg
(XEN) Debug Features: 0000000110305408 0000000000000000
(XEN) Auxiliary Features: 0000000000000000 0000000000000000
(XEN) Memory Model Features: 0000000000101125 0000000010212122
(XEN) ISA Features: 0010100010211120 0000000001200031
(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000010010131:0000000010010000
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer
(XEN) Debug Features: 0000000004010088
(XEN) Auxiliary Features: 0000000000000000
(XEN) Memory Model Features: 0000000010201105 0000000040000000
(XEN) 0000000001260000 0000000002122211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000010142 0000000001011121
(XEN) Using SMC Calling Convention v1.5
(XEN) Using PSCI v1.1
(XEN) SMP: Allowing 8 CPUs
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 100000 KHz
(XEN) GICv3 initialization:
(XEN) gic_dist_addr=0x000000e2000000
(XEN) gic_maintenance_irq=25
(XEN) gic_rdist_stride=0
(XEN) gic_rdist_regions=1
(XEN) redistributor regions:
(XEN) - region 0: 0x000000e2060000 - 0x000000e2260000
(XEN) GICv3: 544 lines, (IID 0300543b).
(XEN) GICv3: CPU0: Found redistributor in region 0 @00000a004001c000
(XEN) Using scheduler: null Scheduler (null)
(XEN) Initializing null scheduler
(XEN) WARNING: This is experimental software in development.
(XEN) Use at your own risk.
(XEN) Allocated console ring of 64 KiB.
(XEN) CPU0: Guest atomics will try 20 times before pausing the domain
(XEN) Bringing up CPU1
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
(XEN) GICv3: CPU1: Found redistributor in region 0 @00000a004003c000
(XEN) CPU1: Guest atomics will try 21 times before pausing the domain
(XEN) CPU 1 booted.
(XEN) Bringing up CPU2
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
(XEN) GICv3: CPU2: Found redistributor in region 0 @00000a004005c000
(XEN) CPU2: Guest atomics will try 20 times before pausing the domain
(XEN) CPU 2 booted.
(XEN) Bringing up CPU3
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
(XEN) GICv3: CPU3: Found redistributor in region 0 @00000a004007c000
(XEN) CPU3: Guest atomics will try 20 times before pausing the domain
(XEN) CPU 3 booted.
(XEN) Bringing up CPU4
I/TC: Secondary CPU 4 initializing
I/TC: Secondary CPU 4 switching to normal world boot
(XEN) GICv3: CPU4: Found redistributor in region 0 @00000a004009c000
(XEN) CPU4: Guest atomics will try 21 times before pausing the domain
(XEN) CPU 4 booted.
(XEN) Bringing up CPU5
I/TC: Secondary CPU 5 initializing
I/TC: Secondary CPU 5 switching to normal world boot
(XEN) GICv3: CPU5: Found redistributor in region 0 @00000a00400bc000
(XEN) CPU5: Guest atomics will try 20 times before pausing the domain
(XEN) CPU 5 booted.
(XEN) Bringing up CPU6
I/TC: Secondary CPU 6 initializing
I/TC: Secondary CPU 6 switching to normal world boot
(XEN) GICv3: CPU6: Found redistributor in region 0 @00000a00400dc000
(XEN) CPU6: Guest atomics will try 20 times before pausing the domain
(XEN) CPU 6 booted.
(XEN) Bringing up CPU7
I/TC: Secondary CPU 7 initializing
I/TC: Secondary CPU 7 switching to normal world boot
(XEN) GICv3: CPU7: Found redistributor in region 0 @00000a00400fc000
(XEN) CPU7: Guest atomics will try 20 times before pausing the domain
(XEN) Brought up 8 CPUs
(XEN) CPU 7 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 48-bit IPA with 48-bit PA and 16-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x00000000800d3590
(XEN) Scheduling granularity: cpu, 1 CPU per sched-resource
(XEN) Initializing null scheduler
(XEN) WARNING: This is experimental software in development.
(XEN) Use at your own risk.
(XEN) alternatives: Patching with alt table 00000a00002edbb8 -> 00000a00002eecf8
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 000000097e11d000
(XEN) Grant table range: 0x000501ffce0000-0x000501ffd20000
(XEN) Allocating 1:1 mappings totalling 1500MB for dom0:
(XEN) BANK[0] 0x00000020000000-0x00000078000000 (1408MB)
(XEN) BANK[1] 0x000501ea400000-0x000501f0000000 (92MB)
(XEN) d0: CMA->SHMEM [0x00000800000000-0x00000100000000]
(XEN) d0: CMA->SHMEM [0x00050000000000-0x00000180000000]
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) d0: extended region 0: 0x900000000->0x97fe00000
(XEN) d0: extended region 1: 0x50180000000->0x501ea200000
(XEN) d0: extended region 2: 0x501f0000000->0x501ffc00000
(XEN) Loading zImage from 000000097e11d000 to 0000000020000000-0000000021ee1200
(XEN) Loading d0 DTB to 0x0000000028000000-0x0000000028017c44
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) ***************************************************
(XEN) WARNING: MULTITHREADING HAS BEEN DETECTED ON THE PROCESSOR.
(XEN) It might impact the security of the system.
(XEN) ***************************************************
(XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
(XEN) xen-source/xen/common/sched/null.c:357: 0 <-- d0v0
(XEN) Freed 428kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: RAZ on reserved register offset 0x00000c
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER32
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER36
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER40
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER44
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER48
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER52
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER56
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER60
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER64
(XEN) d0v0: vGICR: SGI: unhandled word write 0x000000ffffffff to ICACTIVER0
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd423]
[ 0.000000] Linux version 6.12.40-xilinx-g31626ef92ff1 (oe-user@oe-host) (aarch64-amd-linux-gcc (GCC) 13.4.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP Fri Nov 7 15:28:23 UTC 2025
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] OF: fdt: Ignoring memory block 0x9800000 - 0x9800100
[ 0.000000] Machine model: AMD Versal VEK385 revB
[ 0.000000] Xen 4.20 support found
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000001800000..0x00000000097fffff (131072 KiB) nomap non-reusable optee_core@1800000
[ 0.000000] OF: reserved mem: 0x0000000001600000..0x00000000017fffff (2048 KiB) nomap non-reusable tf-a
[ 0.000000] OF: reserved mem: 0x0000000009800100..0x000000000985ffff (383 KiB) nomap non-reusable ddrboot@9800100
[ 0.000000] OF: reserved mem: 0x0000000009800000..0x00000000098000ff (0 KiB) nomap non-reusable rsctbl@9800000
[ 0.000000] OF: reserved mem: 0x0000000009860000..0x0000000009863fff (16 KiB) nomap non-reusable vdev0vring0@9860000
[ 0.000000] OF: reserved mem: 0x0000000009864000..0x0000000009867fff (16 KiB) nomap non-reusable vdev0vring1@9864000
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000009868000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@9868000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000009868000..0x00000000098a7fff (256 KiB) nomap non-reusable vdev0buffer@9868000
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x0000000000ffffff (16384 KiB) nomap non-reusable buffer@0
[ 0.000000] OF: reserved mem: 0x0000000001000000..0x00000000015fffff (6144 KiB) nomap non-reusable buffer@1000000
[ 0.000000] OF: reserved mem: 0x000000000c000000..0x000000000f7fffff (57344 KiB) nomap non-reusable rproc6@0c000000
[ 0.000000] OF: reserved mem: 0x000000000f800000..0x000000000f827fff (160 KiB) nomap non-reusable rpu6_calib_load
[ 0.000000] OF: reserved mem: 0x000000000f828000..0x0000000010828fff (16388 KiB) nomap non-reusable rpu6_hal_mem_priv
[ 0.000000] OF: reserved mem: 0x000000001082a000..0x0000000014029fff (57344 KiB) nomap non-reusable rproc7@1082A000
[ 0.000000] OF: reserved mem: 0x000000001402a000..0x0000000014051fff (160 KiB) nomap non-reusable rpu7_calib_load
[ 0.000000] OF: reserved mem: 0x0000000014052000..0x0000000015052fff (16388 KiB) nomap non-reusable rpu7_hal_mem_priv
[ 0.000000] OF: reserved mem: 0x0000000015054000..0x0000000018853fff (57344 KiB) nomap non-reusable rproc8@15054000
[ 0.000000] OF: reserved mem: 0x0000000018854000..0x000000001887bfff (160 KiB) nomap non-reusable rpu8_calib_load
[ 0.000000] OF: reserved mem: 0x000000001887c000..0x000000001987cfff (16388 KiB) nomap non-reusable rpu8_hal_mem_priv
[ 0.000000] OF: reserved mem: 0x000000001987e000..0x000000001d07dfff (57344 KiB) nomap non-reusable rproc9@1987E000
[ 0.000000] OF: reserved mem: 0x000000001d07e000..0x000000001d0a5fff (160 KiB) nomap non-reusable rpu9_calib_load
[ 0.000000] OF: reserved mem: 0x000000001d0a6000..0x000000001e0a6fff (16388 KiB) nomap non-reusable rpu9_hal_mem_priv
[ 0.000000] OF: reserved mem: 0x000000001e0a8000..0x000000001e4a7fff (4096 KiB) nomap non-reusable isp_mbox_buffer@1E0A8000
[ 0.000000] OF: reserved mem: 0x000000001e4a8000..0x000000001e4e7fff (256 KiB) nomap non-reusable rpu_shared_mem@1E4A8000
[ 0.000000] OF: reserved mem: 0x000000001fff7000..0x000000001fffefff (32 KiB) nomap non-reusable vring@1fff7000
[ 0.000000] OF: reserved mem: 0x00000000ebb80000..0x00000000ebbaffff (192 KiB) nomap non-reusable rpu6_tcm
[ 0.000000] OF: reserved mem: 0x00000000ebbc0000..0x00000000ebbeffff (192 KiB) nomap non-reusable rpu7_tcm
[ 0.000000] OF: reserved mem: 0x00000000ebc00000..0x00000000ebc2ffff (192 KiB) nomap non-reusable rpu8_tcm
[ 0.000000] OF: reserved mem: 0x00000000ebc40000..0x00000000ebc6ffff (192 KiB) nomap non-reusable rpu9_tcm
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000800000000, size 4096 MiB
[ 0.000000] OF: reserved mem: initialized node cma_reserved@800000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000800000000..0x00000008ffffffff (4194304 KiB) map reusable cma_reserved@800000000
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000050000000000, size 6144 MiB
[ 0.000000] OF: reserved mem: initialized node cma_reserved@50000000000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000050000000000..0x000005017fffffff (6291456 KiB) map reusable cma_reserved@50000000000
[ 0.000000] OF: reserved mem: 0x0000060000000000..0x00000600ffffffff (4194304 KiB) nomap non-reusable buffer@60000000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x00000600ffffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x00000000097fffff]
[ 0.000000] node 0: [mem 0x0000000009801000-0x00000000098a7fff]
[ 0.000000] node 0: [mem 0x000000000c000000-0x0000000010828fff]
[ 0.000000] node 0: [mem 0x000000001082a000-0x0000000015052fff]
[ 0.000000] node 0: [mem 0x0000000015054000-0x000000001987cfff]
[ 0.000000] node 0: [mem 0x000000001987e000-0x000000001e0a6fff]
[ 0.000000] node 0: [mem 0x000000001e0a8000-0x000000001e4e7fff]
[ 0.000000] node 0: [mem 0x000000001fff7000-0x000000001fffefff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x0000000077ffffff]
[ 0.000000] node 0: [mem 0x00000000ebb80000-0x00000000ebbaffff]
[ 0.000000] node 0: [mem 0x00000000ebbc0000-0x00000000ebbeffff]
[ 0.000000] node 0: [mem 0x00000000ebc00000-0x00000000ebc2ffff]
[ 0.000000] node 0: [mem 0x00000000ebc40000-0x00000000ebc6ffff]
[ 0.000000] node 0: [mem 0x0000000800000000-0x00000008ffffffff]
[ 0.000000] node 0: [mem 0x0000050000000000-0x000005017fffffff]
[ 0.000000] node 0: [mem 0x00000501ea400000-0x00000501efffffff]
[ 0.000000] node 0: [mem 0x0000060000000000-0x00000600ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000600ffffffff]
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 10072 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 6927 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 15232 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 16 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 16 pages in unavailable ranges
[ 0.000000] On node 0, zone DMA: 16 pages in unavailable ranges
[ 0.000000] On node 0, zone Normal: 17296 pages in unavailable ranges
[ 0.000000] On node 0, zone Normal: 9216 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 31 pages/cpu s90072 r8192 d28712 u126976
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=hvc0 earlycon=xen earlyprintk=xen clk_ignore_unused root=PARTUUID=4e0efbf4-f751-4186-8930-5fc6640d5991 ro rootwait
[ 0.000000] Unknown kernel command line parameters "earlyprintk=xen", will be passed to user space.
...
...
...
Welcome to AMD Embedded Development Framework Linux distribution 25.11+development-S11151020 (scarthgap)!
...
...
...
[ OK ] Reached target Login Prompts.
[ OK ] Started Target Communication Framework agent.
[ OK ] Finished xen-init-dom0, initialise…re nodes, JSON configuration stub).
[ OK ] Finished dfx-mgrd Default Firmware Load Service.
[ OK ] Started Authorization Manager.
Starting Modem Manager...
AMD Embedded Development Framework Linux distribution 25.11+development-S11151020 amd-edf hvc0
amd-edf login: amd-edf
Password:
WARNING: AMD Embedded Development Framework is a reference Yocto Project
distribution that should be used for testing and development purposes only.
It is recommended that you create your own distribution for production use.
amd-edf:~$ Verify Xen Dom0 is up and running on HW. Note: you need to be in super user mode to run xl tools. amd-edf:~$ sudo xl info
Password:
host : amd-edf
release : 6.12.40-xilinx-g31626ef92ff1
version : #1 SMP Fri Nov 7 15:28:23 UTC 2025
machine : aarch64
nr_cpus : 8
max_cpu_id : 7
nr_nodes : 1
cores_per_socket : 8
threads_per_core : 1
cpu_mhz : 100.000
hw_caps : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
virt_caps : hvm hap vpmu gnttab-v1
arm_sve_vector_length : 0
total_memory : 15938
free_memory : 3943
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 20
xen_extra : .0-rc5
xen_version : 4.20.0-rc5
xen_caps : xen-3.0-aarch64 xen-3.0-armv7l
xen_scheduler : null
xen_pagesize : 4096
platform_params : virt_start=0x0
xen_changeset : Thu Nov 6 08:30:09 2025 -0800 git:646d6c883e-dirty
xen_commandline : console=dtuart dom0_mem=1500M dom0_max_vcpus=6 bootscrub=0 vwfi=native sched=null
cc_compiler : aarch64-amd-linux-gcc (GCC) 13.4.0
cc_compile_by : xbrbbot
cc_compile_domain :
cc_compile_date : 2025-11-06
build_id : 3278f612fc86c569318a7668cf2ed6ff650dd3b5
xend_config_format : 4
amd-edf:~$
amd-edf:~$ sudo xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 11740 6 r----- 436.3
amd-edf:~$
Versal™ Xen UEFI Zephyr RTOS DomU Guest OS
A sample Zephyr RTOS DomU Guest OS image and Xen DomU configuration file is shipped as part of default edf-linux-disk-image wic image. Recipe can be found at Boot VEK385 board with Xen and verify Xen Dom0 is up and running. In order to run Zephyr RTOS DomU Guest OS first we need to create Xen DomU configuration file under /etc/xen directory. Here is the configuration file which is shipped as part of default wic image and demo image binary is packaged under /boot directory. amd-edf:~$ cat /etc/xen/zephyr-synchronization-xenvmgicv3.cfg
# Guest name
name = "zephyr-synchronization-xenvmgicv3"
# Kernel image to boot
kernel = "/boot/zephyr-synchronization-xenvmgicv3.bin"
# Kernel command line options - Allocate 32MB
memory = 32
# Number of VCPUS
vcpus = 1
amd-edf:~$ Zephyr RTOS DomU Guest OS image binary is packaged under /boot directory. amd-edf:~$ ls -la /boot/
total 31360
drwxr-xr-x 4 root root 4096 Mar 9 2018 .
drwxr-xr-x 20 root root 4096 Nov 17 19:17 ..
drwxr-xr-x 3 root root 4096 Mar 9 2018 EFI
lrwxrwxrwx 1 root root 34 Mar 9 2018 Image -> Image-6.12.40-xilinx-g31626ef92ff1
-rw-r--r-- 1 root root 32379392 Mar 9 2018 Image-6.12.40-xilinx-g31626ef92ff1
drwxr-xr-x 3 root root 4096 Mar 9 2018 loader
lrwxrwxrwx 1 root root 14 Mar 9 2018 xen -> xen-4.20.0-rc5
lrwxrwxrwx 1 root root 14 Mar 9 2018 xen-4 -> xen-4.20.0-rc5
lrwxrwxrwx 1 root root 14 Mar 9 2018 xen-4.20 -> xen-4.20.0-rc5
-rw-r--r-- 1 root root 1180456 Mar 9 2018 xen-4.20.0-rc5
-rw-r--r-- 1 root root 4173 Mar 9 2018 xen-4.20.0-rc5.config
-rw-r--r-- 1 root root 233 Mar 9 2018 xen.cfg
-rw-r--r-- 1 root root 311300 Mar 9 2018 zephyr-synchronization-xenvmgicv3.bin
amd-edf:~$ Launch Zephyr xenvmgicv3 DomU. amd-edf:~$ sudo xl create -c /etc/xen/zephyr-synchronization-xenvmgicv3.cfg
Parsing config from /etc/xen/zephyr-synchronization-xenvmgicv3.cfg
(XEN) xen-source/xen/common/sched/null.c:357: 6 <-- d1v0
[00:00:00.000,000] <inf> xen_events: xen_events_init: events inited
[00:00:00.000,000] <inf> uart_hvc_xen: Xen HVC inited successfully
*** Booting Zephyr OS build xilinx_v2024.2-214-g186b1fd603f9 ***
thread_a: Hello World from cpu 0 on xenvm!
thread_b: Hello World from cpu 0 on xenvm!
thread_a: Hello World from cpu 0 on xenvm!
amd-edf:~$ After DomU is launched from above step you can use DomU Zephyr as xen hypervisor. You can Switch between DomU and Dom0 shell console for other operations. Use Ctrl+](right square bracket) to switch from DomU console to Dom0 console. thread_a: Hello World from cpu 0 on xenvm!
#### press ctrl+]
amd-edf:~$ How to switch from Dom0 to DomU shell console. You can do this is 2 ways either using Name or ID using xl console command. amd-edf:~$ sudo xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 11740 6 r----- 833.6
zephyr-synchronization-xenvmgicv3 1 32 1 r----- 14.0
amd-edf:~$
amd-edf:~$
amd-edf:~$ sudo xl console 1
thread_b: Hello World from cpu 0 on xenvm!
thread_a: Hello World from cpu 0 on xenvm!
thread_b: Hello World from cpu 0 on xenvm!
thread_a: Hello World from cpu 0 on xenvm!
amd-edf:~$
amd-edf:~$
amd-edf:~$ sudo xl console zephyr-synchronization-xenvmgicv3
thread_b: Hello World from cpu 0 on xenvm!
thread_a: Hello World from cpu 0 on xenvm!
thread_b: Hello World from cpu 0 on xenvm!
thread_a: Hello World from cpu 0 on xenvm!
amd-edf:~$ Now you can safely shutdown the Zephyr DomU Guest OS using xl destroy <guest-name-or-id> command. amd-edf:~$ sudo xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 11740 6 r----- 972.2
zephyr-synchronization-xenvmgicv3 1 32 1 r----- 37.1
amd-edf:~$
amd-edf:~$ sudo xl destroy 1
(XEN) gnttab_mark_dirty not implemented yet
amd-edf:~$
amd-edf:~$ sudo xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 11740 6 r----- 1063.2
amd-edf:~$ Note: xl destroy command will forcefully shutdown the DomU Zephyr. Now you and shutdown Dom0 Linux amd-edf:~$ sudo halt
Broadcast message from root@amd-edf on pts/0 (Mon 2025-11-17 19:22:34 UTC):
The system will halt now!
amd-edf:~$ Stopping Session c1 of User amd-edf...
[ OK ] Removed slice Slice /system/modprobe.
[ OK ] Stopped target Multi-User System.
...
...
...
[ 190.157123] reboot: System halted
Image Recovery Application
This section provides a complete procedure for updating a BOOT.BIN or WIC images through the image recovery GUI using Ethernet Recovery.
AMD EDF 25.05.1 and Vivado™ Design Suite 2025.1.1
Also see Common Specifications for detail the Image Selector (EDF boot firmware), and the Recovery tool.
Image recovery is supported via the Image recovery GUI using Ethernet and USB, and via XSDB.
OSPI maintenance (updating one of the two BOOT.BINs on the OSPI) and recovery via the Linux user space application on the DUT and the Linux fwupd utility.
Pre-requisites
OSPI/QSPI is the primary boot device, and contains an EDF Boot firmware Image Confirm that the OSPI (Octal SPI) flash memory has been successfully programmed with the appropriate bootloader or system image.
Secondary boot device contains a EDF disk image (EDF Linux Disk Image) (Required for disk image update flow) Ensure that the .wic image, which usually includes the root filesystem and partitions, has been properly flashed.
Web Based Image Recovery Tool
The Image Recovery Application is a Linux-based web application that runs on the target and supports
Updating boot firmware (OSPI / QSPI) content and boot slots (A / B)
Updating disk images on secondary boot devices (SD, USB, UFS)
Trigger image recovery
Press the recovery mode button on the Evaluation board (VEK385 Rev B)
The web interface uses an IP address (e.g., 10.10.70.2:8080) shown on the UART console when image recovery boot mode starts
[0.011]****************************************
[0.043]Xilinx Versal Aiepg2 Platform Loader and Manager
[0.080]Release 2025.1 Apr 5 2025 - 09:35:41log
[0.116]Platform Version: v1.0 PMC: v1.0, PS: v1.0
[0.154]BOOTMODE: 0x8, MULTIBOOT: 0x1C
[0.182]****************************************
[0.371]Non Secure Boot
[0.395]Device key init is skipped as no valid CDI is found
[4.648]PLM Initialization Time
...
...
U-Boot 2025.01-g0bd69db66f28-dirty (Apr 07 2025 - 08:09:21 +0000)
CPU: Versal Gen 2
Silicon: v1.0
Chip: v1.0
...
...
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd423]
[ 0.000000] Linux version 6.12.10-xilinx-g27c28ceb1331 (oe-user@oe-host) (aarch64-imgrcvry-linux-musl-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP Sun Apr 6 09:56:50 UTC 2025
...
...
###############################################################################################
#Launching to Image Recovery shell, Use 10.10.70.3:8080 to launch the Image Recovery web app. #
###############################################################################################
sh-5.2#
Launching the web interface at the IP address shown on the UART console opens a page with basic hardware information.
System Board information - EEPROM data
Boot Image Status - Current boot status
Carrier Card Information - Only applicable for SOM based evaluation boards. (not applicable to VEK385)
To update the Boot Firmware or Linux image using Ethernet Recovery, click Browse and select the file.
To update the Boot Image, select the boot.bin file, toggle the ‘Boot Image’ option, and click ‘Upload’.
To update the Linux image, select the wic/wic.xz file, toggle the ‘Wic Image’ option, and click ‘Upload’.
BOOT.BIN will automatically update to non-active bank and set it to boot on next reboot.
Currently supported WIC image formats are wic.xz or wic.bmap. If wic.bmap is uploaded, a pop-up will ask you to select another file which is its corresponding wic.xz image file.
Upon successful update, a message will pop up (similar what is shown below).
Applications targeting Adaptive SoCs typically consist of hardware and software components. Hardware components include PL and/or AIE payloads typically provided as PDI and/or xclbin. Software components include device drivers (such as, Linux kernel modules) and software libraries / applications (Linux user space).
In Linux, hardware payloads are packaged as firmware binaries (for example, PDI with device tree binary overlay (dtbo)). Different aspects of application development can be performed on target, or on a host PC using a cross-development SDK environment. This allows testing, debugging, and iterating over changes quickly. Once the application is stable and ready for release, the Yocto Project build system provides a way to package applications for production deployment.
OP-TEE Example in AMD EDF Flow
Introduction This document serves as an guide on cryptographic configurations within OP-TEE OS, alongside the usage and implementation of cryptographic examples provided by the OP-TEE project. As an integral part of AMD Versal Gen 2 (VEK385) platforms, This guide explains how to install the optee-test and optee-example rpm packages using DNF package manager. The OP-TEE examples are based on version 4.5.0 OP-TEE Example Crypto OP-TEE's example crypto module provides demonstrative programs showcasing real implementations of cryptographic functionalities on the AMD Versal Gen 2 platform. This is a github xilinx link for optee-example repo . The branch to be used is xlnx_rebase_v4.5.0. Refer the page to run the optee-example Steps to install optee-example package once the board is booted in OSPI boot mode we have to install the optee packages using DNF package manager. # dnf clean all
# dnf update -y Now install optee packages # dnf search optee
# dnf install optee-client -y
# dnf install optee-examples -y
# dnf install optee-os -y
# dnf install optee-test -y Once all the optee packages are install use refer the page to run the optee-example For more information on optee_example please refer upstream docs version 4.5.0 Once optee package are installed reboot the h/w. (optional step below) If someone wants to use there own RPM for optee-example then they need to generate it locally using below command. MACHINE=amd-cortexa78-mali-common bitbake optee-examples The rpm will be generate in tmp/deploy/rpm/amd_cortexa78_mali_common/optee-examples-4.5.0+xlnx+v2025.2-r0.0.amd_cortexa78_mali_common.rpm Once rpm is genrate install the rpm using the DNF command dnf install <rpm> Once optee package are installed reboot the h/w.
Yocto Project and all related marks and logos are trademarks of The Linux Foundation. This website is not, in any way, endorsed by the Yocto Project or The Linux Foundation.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.