I haven't gotten to the questions yet, it's just an opinion - from a beginner (ok - I have over 25 years of experience in c++, but not in this domain)
Yes, it's probably easy to guess, I'm not an expert in linux - but I have to develop a project on this board, and besides FreeRTOS, I'm also evaluating the possibility of developing it in PetaLinux.
And this is where the torment begins, install the latest version of Ubuntu in VirtualBox only to find out that it is not compatible with the latest version of PetaLinux.
Looking for version 22.04.3 LTS, only to find out that it is not fully compatible with the latest version of VirtualBox, and the 'Guest Addition' installation does not quite work as expected.
I installed all the dependencies, which are not specified from the beginning, and I didn't even find a script to automate this, and bravely started to compile the project, only to get some bizarre errors (in a cryptic and long message) related to cpu1. Very bizarre, especially since this board has only one cpu.
I'll let you guess how many days it took me to find a solution, especially since all the dts/dtsi files looked fine, except for a detail related to debugging ...
I don't know if I'm the only one who encountered this problem, but the solution I found to be able to compile the project is the following:
In the directory: components/plnx_workspace/device-tree/device-tree
I created a file "system-user.dtsi" with the content:
Question
Bogy
Hello,
I haven't gotten to the questions yet, it's just an opinion - from a beginner (ok - I have over 25 years of experience in c++, but not in this domain)
Yes, it's probably easy to guess, I'm not an expert in linux - but I have to develop a project on this board, and besides FreeRTOS, I'm also evaluating the possibility of developing it in PetaLinux.
And this is where the torment begins, install the latest version of Ubuntu in VirtualBox only to find out that it is not compatible with the latest version of PetaLinux.
Looking for version 22.04.3 LTS, only to find out that it is not fully compatible with the latest version of VirtualBox, and the 'Guest Addition' installation does not quite work as expected.
I installed all the dependencies, which are not specified from the beginning, and I didn't even find a script to automate this, and bravely started to compile the project, only to get some bizarre errors (in a cryptic and long message) related to cpu1. Very bizarre, especially since this board has only one cpu.
I'll let you guess how many days it took me to find a solution, especially since all the dts/dtsi files looked fine, except for a detail related to debugging ...
I don't know if I'm the only one who encountered this problem, but the solution I found to be able to compile the project is the following:
In the directory: components/plnx_workspace/device-tree/device-tree
I created a file "system-user.dtsi" with the content:
/include/ "system-conf.dtsi" / { }; &amba { ptm@f889d000 { cpu = <&cpu0>; }; };
I hope it will be useful for other beginners who try PetaLinux on boards with a single cpu.
A+,
Bogdan
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now