Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
firmware: xilinx: Add support to get the image meta-header info
Adds binary sysfs interface support to read the image meta-header info from the user pointed PDI image. This meta-header info will be used by the application to extract the UID (Unique ID). This UID info will helps the application to validate the PDI image before programming the device. To get the meta-header info from the user provided PDI, user needs to follow the below steps. 1) Copy the PDI firmware file to the path /lib/firmware. -> cp /media/binary.pdi /lib/firmware 2) echo the firmware file to the firmware property file. firmware attribute requests an image (User_firmware.pdi ) using firmware class. -> echo binary.pdi>/sys/devices/platform/firmware:versal-firmware/firmware 3) To read the meta-header from the user pointed PDI images using binary sysfs file. -> hexdump /sys/devices/platform/firmware:versal-firmware/meta-header-read Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
- Loading branch information
Nava kishore Manne
authored and
Michal Simek
committed
Dec 16, 2021
1 parent
b4f460e
commit 22272cc48b5399af99792722fa7004735b769e0a
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters