[File] [PATCH] [v2] Add support for AMD/Xilinx accelerator xclbin binary files

Sonal Santan sonal.santan at amd.com
Wed Dec 14 19:28:02 UTC 2022


Hello,

This is v2 of the patch which adds support to recognize "xclbin"
binary files used by AMD/Xilinx accelerators like Alveo and Kria--

https://www.xilinx.com/products/boards-and-kits/alveo.html
https://www.xilinx.com/products/app-store/kria.html

The xclbin files are generated by Vitis tool chain and are defined as
part of XRT source tree--

https://github.com/Xilinx/XRT/blob/master/src/runtime_src/core/include/xclbin.h

The patch updates magic/Magdir/xilinx to recognize xclbin files. A test
has been added to the tests directory which includes a 512B snippet of
a sample xclbin binary file.

I hope this can be applied to a future version of the file utility.

Changes since v1:
- Fixed formatting of xclbin specific rules in magic/Magdir/xilinx

-Sonal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xclbin.diff
Type: text/x-patch
Size: 1971 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20221214/3254d26d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xclbin.testfile
Type: application/octet-stream
Size: 512 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20221214/3254d26d/attachment.obj>


More information about the File mailing list