Cross Compiling OpenWrt Package
For anyone interested, I succeeded compiling a simple helloworld program to my Omega2.
The Omega2 is basically the same hardware as the Linkit Smart so I followed the tutorial there :
At first, it did not work. I realized the Linkit Smart use kernel 3.18.23 and the Omega use kernel 4.4.39
I also saw at boot a link refering to : https://lede-project.org/
By searching the website, I found the SDK that the Omega team used for the Omega2
You can then follow the Mediatek tutorial and use this SDK instead :
The package was compiled on my Linux computer (latest version of Linux Mint)
You also need to install ncurses to make the package
sudo apt-get install libncurses5-dev libncursesw5-dev
If you want to try to install the helloworld package just put the file below in your omega
you can install it with
opkg install helloworld_1.0.0-1_mipsel_24kc.ipk
Let me know if you try it!
This morning, I tried compiling something a little bit more useful than helloworld.
When I connect to a Linux device by SSH, I often use the
treecommand to get a quick look at the files inside a directory structure.
It was really easy to make and compile the package. All I had to do is to place the source code in the package directory under a folder named tree. I copied the openwrt makefile of the helloworld package and replaced all occurence of helloworld by tree. I'm surprised it is just easy as that.
Here is the package : tree_1.0.0-1_mipsel_24kc.ipk
@Fred-Blais thanx for this article , realy help me :)
i found some mistake in the cross compiling tutorial
i will post it later in details later in this post
but finally i succeed with eclipse cross compiling