user1107855
user1107855

Reputation: 345

Embedded arm compiler on zynq?

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

Answers (3)

akira hinoshiro
akira hinoshiro

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

Ottavio Campana
Ottavio Campana

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:

  • learning yocto, which is not easy to learm
  • dealing with the VHDL to configure the zynq and matching it configuration to the kernel, but this is probably going to be solved by using the pre-built images I linked.

Upvotes: 1

Richard Pennington
Richard Pennington

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

Related Questions