FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6355 Discussions

configure the Agilex 5 FPGA using the Linux device tree

K606
Novice
78 Views

I have been stuck on a similar issue to this post (I am also using an Agilex 5 device):

Solved: Agilex 5 - configure FPGA from running linux via dt-overlay - Intel Community

I get to the end of the docs page as linked in the post above, and find this warning:

root@localhost:~# mkdir /sys/kernel/config/device-tree/overlays/0
root@localhost:~# echo overlay.dtb > /sys/kernel/config/device-tree/overlays/0/path
[  233.562309] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/base_fpga_region/firmware-name
[  233.573389] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/base_fpga_region/config-complete-timeout-us
root@localhost:~# 

I then execute the following:

rmdir /sys/kernel/config/device-tree/overlays/0
mkdir /sys/kernel/config/device-tree/overlays/0
scp host@192.168.1.1:/home/user/Desktop/GHRD/output_files/g_t_hps.core.rbf /lib/firmware/overlay.rbf
cd /lib/firmware/
echo overlay.dtb > /sys/kernel/config/device-tree/overlays/0/path

But there is no change in the LED pattern output on the board: i.e. the FPGA is not re-configured.

 

Could someone explain? Maybe I have misunderstood the flow for this?

 

Many thanks,

K

Labels (1)
0 Kudos
1 Solution
K606
Novice
37 Views

Misread the docs!

Solved by:

cd /lib/firmware/ between the mkdir and echo commands

View solution in original post

0 Kudos
1 Reply
K606
Novice
38 Views

Misread the docs!

Solved by:

cd /lib/firmware/ between the mkdir and echo commands

0 Kudos
Reply