How to run program in freedom-u-sdk linux on VC707

Following freedom/issues/116, I boot Linux on VC707 without PCIE card, but it doesn’t have some tools like gcc in this Linux.
bruce say need mount a Debian or Fedora filesystem by network. But on VC707, interface eth0 can’t be recognized.

what should I do to run my program(like hollo world)?
Thanks in advance.

You can compile your program with Linux/glibc gcc (not elf/newlib) on the host computer and copy it to the VC707 with ssh.

Thank you for your quick reply!

ok, maybe not if ethernet isn’t working. In this case mount the disk image on the host and copy your program on to it before booting on the VC707.

I think that if you don’t have the fmc/pci adapter, then you won’t have any useful devices. Also, last I heard, the vc707 boot loader doesn’t support mounting the second partition on the SDcard. That just leaves adding the program to the initramfs somehow. Either by adding it as a formal package to buildroot, or by modifying the initramfs to add another file. I’ve never done this myself, but this site
https://backreference.org/2010/07/04/modifying-initrdinitramfs-files/
suggests a way to do it.

If you are cross compiling, make sure that your cross compiler glibc is compatible with the glibc on the target. If they are different glibc versions, this is unlikely to work unless you static link.

OK, I understand.
Thanks for you help!

How to solve the problem of vc707 network is not available?
Thanks you!

For the buildroot-based SDK, I created an application and copied it the appropriate directories and modified the appropriate config files (I don’t have ethernet either).

Feel to checkout https://github.com/mit-ll/cep.git… under the software directory. A makefile contains the buildroot tweaks I needed to do.

  • Brendon