Hi,
I am having issues loading my programs on RP 125-14 after upgrading to the Unified OS 2.0
I used the same method to load the file as in the previous OS.
cat root/<file_name>.bit > /dev/xdevcfg
And there is no result of using the above command. Will this be fixed or should I keep using the old OS for this device ?
Thanks
Issues loading .bit file on FPGA
-
- Posts: 120
- Joined: Tue Nov 16, 2021 11:38 am
Re: Issues loading .bit file on FPGA
Hi, the new OS among other things uses a new mechanism of loading FPGA.
It is done as:
The FPGA image must also be compiled in a slightly different way so it's compatible:
It is done as:
Code: Select all
fpgautil -b filename.bit.bin
Code: Select all
echo -n "all:{ path/to/bitfile/fpga.bit }" > path/to/biffile/fpga.bif
bootgen -image path/to/biffile/fpga.bif -arch zynq -process_bitstream bin -o path/to/binfile/red_pitaya.bit.bin -w
-
- Posts: 2
- Joined: Wed Mar 22, 2023 10:38 am
Re: Issues loading .bit file on FPGA
Thank you !
I could not find that in the documentation, is there any place where I can clearly see the major changes ?
I could not find that in the documentation, is there any place where I can clearly see the major changes ?
-
- Posts: 800
- Joined: Sat May 23, 2015 5:22 pm
-
- Posts: 37
- Joined: Sat Nov 26, 2022 12:43 am
Re: Issues loading .bit file on FPGA
I have been in contact with one of the technical specialists and as far as I know they are working on the new documentation. From what I have gathered looking through their GitHub, one of the other major changes has been consolidating the build scripts into one .sh file that you just have to edit depending on which board you have (see this commit). They have also added a "zip_fpga" mode, but I am not sure what that will be used for.sourabh-ch wrote: ↑Thu Mar 23, 2023 12:03 pmThank you !
I could not find that in the documentation, is there any place where I can clearly see the major changes ?
There is also a change in how to roll-back your Red Pitaya after implementing a bit file. Instead of calling
Code: Select all
redpitaya> cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
Code: Select all
redpitaya> overlay.sh v0.94
-
- Posts: 4
- Joined: Sun Aug 06, 2023 7:44 pm
Re: Issues loading .bit file on FPGA
Hello, how can I make the settings in vivado to create the *.bin file. How can I then load my own fpga image? With petalinux I can run fpgautil -b *.bin. But not here.
I wonder...
Thanks
I wonder...
Thanks
-
- Posts: 120
- Joined: Tue Nov 16, 2021 11:38 am
Re: Issues loading .bit file on FPGA
Official FPGA images are loaded using the script overlay.sh .
This includes the line
Your command should then be
This includes the line
Code: Select all
/opt/redpitaya/bin/fpgautil -b $FPGAS/$MODEL/$1/fpga.bit.bin -o $FPGAS/$MODEL/$1/fpga.dtbo -n Full
Code: Select all
/opt/redpitaya/bin/fpgautil -b path_to_file.bit.bin
-
- Posts: 4
- Joined: Sun Aug 06, 2023 7:44 pm
Re: Issues loading .bit file on FPGA
This command doesn't work:
my_computer: fpgautil -b ./myfile.bin
my_computer: fpgautil -b ./myfile.bin -n Full
doesn't work either
I keep getting an IO error...
In Petalinux I use exactly this command.
I don't really understand the overlay thing. I want a full one
load bitstream.
Can someone please show the full command for this?
Thank you very much
-
- Posts: 120
- Joined: Tue Nov 16, 2021 11:38 am
-
- Posts: 4
- Joined: Sun Aug 06, 2023 7:44 pm
Re: Issues loading .bit file on FPGA
Hello,
ok here is an excerpt of the console...
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-xilinx armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
##############################################################################
# Red Pitaya GNU/Linux Ecosystem
# Version: 2.00-5e06f6363
# Build: 15
# Branch:
# Commit: 5e06f6363b7b23957dbf10508ba01a966c2ab3a6
# U-Boot: "redpitaya-v2022.1"
# Linux Kernel: "branch-redpitaya-v2022.3"
# Pro Applications: ""
##############################################################################
Last login: Sun Aug 6 11:04:15 2023
root@rp-f05807:~#
root@rp-f05807:/home/runme# ls -l
total 5184
-rw-r--r-- 1 root root 20480 Mar 13 07:15 ConfigDB.dB
-rw-r--r-- 1 root root 281 Mar 8 10:20 octopus.service
-rwxr-xr-x 1 root root 1104836 Aug 6 11:55 PS_Octopus_v1.31.0
-rw-r--r-- 1 root root 422 Feb 28 2023 README.md
-rw-r--r-- 1 root root 2083740 Aug 29 08:21 red_pitaya_top.bin
-rw-r--r-- 1 root root 2083850 Aug 29 08:21 red_pitaya_top.bit
-rw-r--r-- 1 root root 300 Mar 13 08:03 Start_Octopus.sh
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin <<<< 1. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -n Full <<<< 2. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -f Full <<<< 3. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -o /sys/class/fpga_manager/fpga0/
Error: Overlay already exists in the live tree
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme#
As always, I created the *.bit and *.bin files with vivado 2020.2.
I just want to fully load this image.
Thanks for the help
greeting
Mattias
ok here is an excerpt of the console...
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-xilinx armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
##############################################################################
# Red Pitaya GNU/Linux Ecosystem
# Version: 2.00-5e06f6363
# Build: 15
# Branch:
# Commit: 5e06f6363b7b23957dbf10508ba01a966c2ab3a6
# U-Boot: "redpitaya-v2022.1"
# Linux Kernel: "branch-redpitaya-v2022.3"
# Pro Applications: ""
##############################################################################
Last login: Sun Aug 6 11:04:15 2023
root@rp-f05807:~#
root@rp-f05807:/home/runme# ls -l
total 5184
-rw-r--r-- 1 root root 20480 Mar 13 07:15 ConfigDB.dB
-rw-r--r-- 1 root root 281 Mar 8 10:20 octopus.service
-rwxr-xr-x 1 root root 1104836 Aug 6 11:55 PS_Octopus_v1.31.0
-rw-r--r-- 1 root root 422 Feb 28 2023 README.md
-rw-r--r-- 1 root root 2083740 Aug 29 08:21 red_pitaya_top.bin
-rw-r--r-- 1 root root 2083850 Aug 29 08:21 red_pitaya_top.bit
-rw-r--r-- 1 root root 300 Mar 13 08:03 Start_Octopus.sh
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin <<<< 1. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -n Full <<<< 2. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -f Full <<<< 3. command <<<<<
sh: 1: echo: echo: I/O error
BIN FILE loading through FPGA manager failed
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme# fpgautil -b red_pitaya_top.bin -o /sys/class/fpga_manager/fpga0/
Error: Overlay already exists in the live tree
root@rp-f05807:/home/runme#
root@rp-f05807:/home/runme#
As always, I created the *.bit and *.bin files with vivado 2020.2.
I just want to fully load this image.
Thanks for the help
greeting
Mattias
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 1 guest