Page 1 of 1

Cross_Compilation for NanoPi NEO

Posted: Wed Dec 12, 2018 2:53 pm
by harshareddy
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

Re: Cross_Compilation for NanoPi NEO

Posted: Fri Mar 15, 2019 6:40 am
by auto3000
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

Re: Cross_Compilation for NanoPi NEO

Posted: Wed Jul 03, 2019 6:15 pm
by Alekss
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