Power & Source of Big Ideas

Cross_Compilation for NanoPi NEO

Moderators: chensy, FATechsupport

Hello,
We are using NanoPi NEO in our application. Our application can able to run on ubuntu16.04(x86_64) desktop system, but we wanted to run it on NanoPi NEO(armv7l). Can any one please tell us, How to do cross compile in ubuntu16.04 system to run our application on NanoPI NEO?

Regards,
Harsha
You need to provide more info. What is the OS of the target nanopi neo ? Ubuntu or other ?

There are two schools:

1) use the gcc for ARM https://packages.ubuntu.com/fr/trusty/g ... ux-gnueabi from your distribution or you can find prebuilt here http://downloads.yoctoproject.org/relea ... in/x86_64/. The problem is this toolchain is not specific to nanopi neo but it is quite simple to install.

2) generate your own toolchain specifically for nanopi neo. All the libs will be optimized for the target processor but this is quite difficult in general. My target OS is not ubuntu but yocto linux, consequently the generation of the optimized cross toolchain is straightforward with bitbake <image> -c populate_sdk
Compile on Nano PI NEO.
example
terminal
Log in Nano PI NEO via SSH
ssh root@192.168.0.50
mkdir /usr/my_device
close the terminal
....
open terminal
sshfs root@192.168.0.50:/usr/my_device /home/user/my_device
Your local computer will have a folder with Nano Pi NEO
Working on the local x86 computer, changes the files in the editor to Nano PI NEO

We compile directly to Nano PI NEO in the gcc or musl terminal, this works well.
I use the Geany editor - it works fast.

or
http://wiki.friendlyarm.com/wiki/index. ... 5/H3/H2%2B

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 825 on Wed Aug 28, 2019 3:18 pm

Users browsing this forum: No registered users and 5 guests