Reputation: 345
I want to design a Linux-based firmware on Zynq which could support on board compilation of a c program and then execute it. So I need a compiler for arm architecture but then how could I really do it? Is it really feasible to do it or what problems could I face while trying to do it?
I will really grateful if someone can provide me some help here.
Upvotes: 1
Views: 1115
Reputation: 401
You can install any Linux distribution that supports armv7. We are currently using a Debian but we tried Arch and Gentoo too. With a standard Linux distribution you can install whatever compiler toolchain you want.
It is possible to use clang/gcc and visual studio code as IDE over vnc for example so headless coding is possible too.
Upvotes: 0
Reputation: 4168
Xilinx has a layer of Yocto for the Zynq. There are also pre-built images that can be used to get started with Yocto.
Yocto can provide a native gcc the zynq, so you should be able to get a working compiler.
In my opinion, you are going to face two main problems:
Upvotes: 1
Reputation: 19965
According to this post, ELLCC works on a Zynq running pentalinux. It should also run on archlinux. It can be used as a cross compiler also.
Upvotes: 2