Linux application project for zynq7000 in the Xilinx SDK - linux

I'm trying to create a Linux application to run on my Zynq7020. However I don't understand how the Xilinx SDK generate the executable file.
When I create a hello world, for instance, it creates one .elf file and under the debug it creates one object (.o) and one dependency (.d). I want to run it under the Linux that is running on my board, how do I do it?
Thank you very much.

I want to run it under the Linux that is running on my board, how do I do it?
Most likely, you just need to copy/download the .elf file to your target board and run it.
If that doesn't work, try editing your question to supply more info. In particular, what commands "create a hello world" actually executes?

When creating the project in the Xilinx SDK, select that it runs on linux rather than standalone. See this official tutorial for an in-depth explanation.

Related

Using Insall4j for a simple server (with no java)

Is there any way I can ignore all the java components that Install4J uses? For example not requiring the user to have java installed? I have a very simple executable that I would like the user to install onto their machine and I would like the user to be able to enter some input for things like port.
The issue is that Install4J requires you to have java downloaded, and it also installs a ton of unnessary items that I don't need for this project.
Reason I'm using Install4J is my company has a license for it, and its very clean and easy to use unlike something like Inno where its windows only and I would need to learn how to script it.
The project is a javascript nodejs file thats already been packaged. I just need a neat installer so that all the client needs to do is enter some information such as port and have the program read the xml file for the needed input.
Thanks.
EDIT: Seems to not be possible. See: Can you use nodejs with install4j

Building Yocto Linux Image with my own program inside of Image

I've successfully built Yocto and can run the Linux enviroment on my embedded hardware. However, I am stuck on where how to place my program into the Image so that when I run the Linux environment on the embedded hardware, I can run my program. I've been trying to find the answer at https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html , but so far I am either missing something or not fully understanding the documentation. Does anyone have any ideas or examples to guide me to the correct path?
You need to write your own bitbake recipe for building and including the application in the image. See a hello world example here.
Yeah to install your own program binary into the OS image you need to write your own recipe and helloworld is best example to refer.
You can get more additional info like create own layer, create own image and install own code binary into OS image please have a look at https://github.com/prashantdivate/meta-sirius

Node.js - Writing an image to a USB/SD on Windows

So I've written a program in Electron that will download the latest version of our image and then write it to the selected device.
I've got this working fine for Linux and OSX as I'm able to call a sub process and just run the dd command directly.
My issues come when trying to make this work on Windows, I've not been able to find a node package that does dd or something similar, and natively writing it for Windows doesn't want to work due to the chaining of commands etc.
Does anyone have any suggestions? My next idea would be to write a .bat script that is called by the sub process and try to do it that way. However if there is a platform universal approach with node that would be ideal! Thanks.
I wouldn't start rolling my own approach for this using Node.
Rufus is the current go-to app on Windows for burning images to various media. It has limited command line support – the author says you should try rufus -h to see what's possible.
There's also Etcher CLI, which is "experimental, proceed with caution and report issues". (Also, the Etcher GUI is actually an Electron app, so you might want to peek into what it's doing. https://github.com/resin-io/etcher)
Hope these help.

Cannot find assets when running libgdx app on android, works fine on desktop

After getting out of a mode of procastinating, I've finally gotten to the item on the projects todo-list that says "Run on virtual device to see why it crashes".
My project is a libgdx application that I plan on porting to various platforms, the two most important ones being desktop and android.
During development I've exclusively used the desktop launcher, as it's a lot easier to fire up when just checking minor things.
I did build an .apk at one point just to see if it'd run out of the box, but it didn't. Now that I've tried via the virtual device, this is what the log says:
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: rifleman.png
The same goes for any other assets that my game uses. The files are all placed in projectname/android/assets, as I remember learning way back that this was the way to go.
The virtual device I tried with is the stock Nexus 5, but I tried running the .apk by uploading it to my actual phone with a crash right after start, and I assume the problem is the same and is therefore unrelated to the test-platform.
I am currently not using an assetmanager, as implementing this is scheduled for after getting the basic core mechanics up and running. In the mean time I'm loading them as such: new Pixmap(new FileHandle("rifleman.png"));
Using android-studio 2.2 on Linux Mint 17 Cinnamon.
Please comment if more info is needed.
Use Gdx.files.internal() instead of FileHandle().
From filehandle(string) method info
Creates a new absolute FileHandle for the file name. Use this for
tools on the desktop that don't need any of the backends.
Do not use this constructor in case you write something cross-platform.

Remote Python Program As Local Program

I am new to python. So please pardon my mistakes/ignorance.
I have an GUI app script that I use to copy some folders from another machine to my machine and also do some other processing with the files in the folders.
Now, I would like to place this script on my machine and let other people(with no python installed on theirs machines) to execute this script. I want it to behave as if it was running on their machine. I mean, I don't want to see any errors while this script from my machine makes any changes to their files like access denied etc. It should tread D:\ drive as theirs not mine.
Is it possible somehow in python?
Thanks in advance.
I don't know the way do such a thing. But maybe you can use tools such as py2exe to convert Python scripts into Windows .exe applications.
And as the introduction
It is an utility based in Distutils that allows you to run applications written in Python on a Windows computer without requiring the user to install Python. It is an excellent option when you need to distribute a program to the end user as a standalone application. py2exe currently only works in Python 2.x.
if you use python3.0 or 3.1, this question is helpful.

Resources