I took your advice and installed Ubuntu Desktop 22.04 natively and maaaaan, what a difference between this and docker. It is my favorite OS right now. Thank you all for the recommendation.
Just to continue with the topic! After 10 days of agony, madness and blood tears I finally made it work! (The Gateware project in Libero with the build-bitstream.py file)
1. First, I recommend to follow the Microchip Tools Setup Instructions…
https://docs.beagleboard.org/latest/boards/beaglev/fire/demos-and-tutorials/mchp-fpga-tools-installation-guide.html
And paste all export commands EXACTLY as it is in .bashrc ! Don’t change anything or you will get a lot of errors (even if you change $USER in paths you will get some errors)
2. Second, CHANGE FOLDER PERMISSION AND OWNERSHIP TO $USER.
What does this mean? This means, you should make the folder where you clone your Gateware project “FREE OF SUDO COMMAND”. You can do this with the following command
sudo chown -R $USER /home/$USER/name_of_folder
why you should do this? Because if you don’t do this and run the command python3 build-bitstream.py , you will get errors and errors due to the Logger.py file and the log functions of python.
I will tell you where was my frustration, I TRIED ALWAYS typing " sudo python3 build-bitstream.py ./custom_fpga_desing/my_custom_fpga_design.yaml and NEVER, BUT NEVER the script build-bitstreams.py gave me any idea that SUDO was actually doing the process but not recognizing the variable paths from the setup-microchip-tools.sh SO I WAS ALWAYS FIGHTING AGAINST “Libero not found” , “pfsoc_mss not found” and “bla bla bla not found”.
I hope BeagleV-Fire developers can actually give this info in the main webpage. Would save tons of days of effort and would avoid to go through all python scripts (even the make scripts from the microchip build bitstream tools).
3. Third. DO NOT USE LIBERO 2024. Keep it with v2023.2. This will cause errors as well.
4. Fourth. Install Device Tree Compiler.
sudo apt update
sudo apt install snapd
sudo snap install device-tree-compiler
To get the device-tree-compiler needed for the bitstream of the project.
5. Fifth. CHECK and DOUBLECHECK the path of the License Daemons of the License.dat file
If you don’t do this you will get errors in Synthesys (Synopsys).
Have a good time and enjoy programming this beautiful stuff. It will be frustrating sometimes but man, how good it feels to succeed in programming tasks.
If you have questions or need any assistance, surely I can help you out!
Adrian