PostFrontal Forum
PostFrontal Forum
PF Home | International_Forum | Profile | Register | Active Topics | Members | Search | FAQ | Upload image
Username:
Password:
Save Password
Forgot your Password?


 All Forums
 LK8000 International Support
 Developers
 OpenVario on Nimbus
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Victor 8
Pulcino

Germany
17 Posts

Posted - 14/11/2017 :  09:54:04  Show Profile  Visit Victor 8's Homepage  Reply with Quote
I have tried to build LK8000 on Nimbus with "make TARGET=OPENVARIO" and was able to compile all files, including resources. While linking, I have the following error message:

arm-mingw32ce-ar: creating Bin/OPENVARIO/compat.a
build Bin/OPENVARIO/lk8000.min.rc
WINDRES Bin/OPENVARIO/lk8000.rsc
LINK LK8000-OPENVARIO-ns.exe
/usr/lib/gcc/arm-mingw32ce/4.6.3/../../../../arm-mingw32ce/bin/ld: invalid hex number for PE parameter ''
collect2: ld returned 1 exit status
make: *** [LK8000-OPENVARIO-ns.exe] Error 1
user@nimbus:/lk/github/LK8000$

I have absolutely no idea what to do in this case. Any help is highly appreciated!
Thanks and best regards

Dieter

brunotl
Aquila imperiale

France
493 Posts

Posted - 14/11/2017 :  12:48:06  Show Profile  Reply with Quote
"TARGET=OPENVARIO" is made for build lk8000 inside bitbake openvario build system

for cross compile, you need :
- arm-linux-gnueabihf toolchain
- access to rootfs of cubie board with all library dependencies available
- for build use $make TARGET=CUBIE CUBIE=<cubieboard rootfs path> [/code]


toolchain for CubieBoard target are not included inside nimbus.
Go to Top of Page

Victor 8
Pulcino

Germany
17 Posts

Posted - 15/11/2017 :  07:51:20  Show Profile  Visit Victor 8's Homepage  Reply with Quote
Thanks for your help Bruno!
If I understood correctly, the arm-linux-gnueabihf toolchain is responsible for both, compiling and linking. Can you recommend a suitable toolchain to be installed on Nimbus?
The access to rootfs of cubie can be made via a ssh-connection?
Best regards

Dieter
Go to Top of Page

brunotl
Aquila imperiale

France
493 Posts

Posted - 15/11/2017 :  18:44:31  Show Profile  Reply with Quote
for toolchain, you can try this :
https://releases.linaro.org/archive/13.11/components/toolchain/gcc-linaro/4.8/

for access to rootfs, best way is to make copy of /usr and /lib on your workstation using rsync
$rsync -rl <user>@<device-ip>:/lib .
$rsync -rl <user>@<device-ip>:/usr


this is a good tuto about building toolchain for target devices, it's made for raspberryPi, but it's same for CubieBoard ...
http://www.fabriziodini.eu/posts/cross_compile_tutorial/
Go to Top of Page

Victor 8
Pulcino

Germany
17 Posts

Posted - 17/11/2017 :  23:25:41  Show Profile  Visit Victor 8's Homepage  Reply with Quote
Thank you Bruno for your help!
I have difficulties to install the toolchain. I tried many different ways, but failed:

root@nimbus:~# dpkg --add-architecture armhf
root@nimbus:~# apt-get update
Hit http://www.deb-multimedia.org wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://www.deb-multimedia.org wheezy Release
Ign http://max.kellermann.name wheezy Release.gpg
Hit http://ftp.debian.org wheezy-updates Release.gpg
Hit http://max.kellermann.name wheezy Release
Hit http://ftp.debian.org wheezy-updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Ign http://max.kellermann.name wheezy/main i386 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates/main armhf Packages
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://www.deb-multimedia.org wheezy/main Sources
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://www.deb-multimedia.org wheezy/non-free Sources
Hit http://www.deb-multimedia.org wheezy/main armhf Packages
Hit http://www.deb-multimedia.org wheezy/non-free armhf Packages
Hit http://www.deb-multimedia.org wheezy/main i386 Packages
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://www.deb-multimedia.org wheezy/non-free i386 Packages
Hit http://ftp.debian.org wheezy-updates/main Sources
Hit http://ftp.debian.org wheezy-updates/main armhf Packages/DiffIndex
Hit http://ftp.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://ftp.us.debian.org wheezy/main Sources
Err http://max.kellermann.name wheezy/main armhf Packages
404 Not Found
Hit http://max.kellermann.name wheezy/main i386 Packages
Ign http://releases.linaro.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy/contrib Sources
Ign http://www.deb-multimedia.org wheezy/main Translation-en_US
Ign http://max.kellermann.name wheezy/main Translation-en_US
Ign http://www.deb-multimedia.org wheezy/main Translation-en
Ign http://max.kellermann.name wheezy/main Translation-en
Ign http://www.deb-multimedia.org wheezy/non-free Translation-en_US
Ign http://www.deb-multimedia.org wheezy/non-free Translation-en
Hit http://ftp.us.debian.org wheezy/non-free Sources
Ign http://releases.linaro.org wheezy Release
Hit http://ftp.us.debian.org wheezy/main armhf Packages
Hit http://ftp.us.debian.org wheezy/contrib armhf Packages
Hit http://ftp.us.debian.org wheezy/non-free armhf Packages
Hit http://ftp.us.debian.org wheezy/main i386 Packages
Hit http://ftp.us.debian.org wheezy/contrib i386 Packages
Hit http://ftp.us.debian.org wheezy/non-free i386 Packages
Hit http://ftp.us.debian.org wheezy/contrib Translation-en
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit http://ftp.us.debian.org wheezy/non-free Translation-en
Err http://releases.linaro.org wheezy/main armhf Packages
404 NOT FOUND
Err http://releases.linaro.org wheezy/main i386 Packages
404 NOT FOUND
Ign http://releases.linaro.org wheezy/main Translation-en_US
Ign http://releases.linaro.org wheezy/main Translation-en
W: Failed to fetch http://max.kellermann.name/debian/dists/wheezy/main/binary-armhf/Packages 404 Not Found

W: Failed to fetch http://releases.linaro.org/archive/14.06/components/toolchain/gcc-linaro/4.7/dists/wheezy/main/binary-armhf/Packages 404 NOT FOUND

W: Failed to fetch http://releases.linaro.org/archive/14.06/components/toolchain/gcc-linaro/4.7/dists/wheezy/main/binary-i386/Packages 404 NOT FOUND

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@nimbus:~# apt-get install g++-arm-linux-gnueabihf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package g++-arm-linux-gnueabihf
E: Couldn't find any package by regex 'g++-arm-linux-gnueabihf'
root@nimbus:~#
root@nimbus:~/Downloads# apt-get install gcc-linaro-4.7-2014.06
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-linaro-4.7-2014.06
E: Couldn't find any package by regex 'gcc-linaro-4.7-2014.06'
root@nimbus:~/Downloads# ls -l
total 603372
drwxr-xr-x 30 2112 688 4096 Jun 25 2014 gcc-linaro-4.7-2014.06
-rw-r--r-- 1 root root 534394880 Nov 17 22:43 gcc-linaro-4.7-2014.06.tar
-rw-r--r-- 1 root root 82836057 Nov 17 22:43 gcc-linaro-4.7-2014.06.tar.bz2

Do you have an idea?
Thanks and best regards

Dieter
Go to Top of Page

fugazi
Pulcino

38 Posts

Posted - 30/11/2017 :  00:30:38  Show Profile  Reply with Quote
Hi

I am also trying to install the gnueabihf cross compilers, but having problems :-

Any ideas?

thanks
Go to Top of Page

brunotl
Aquila imperiale

France
493 Posts

Posted - 30/11/2017 :  01:53:48  Show Profile  Reply with Quote


- download prebuild toolchain :

$ mkdir $HOME/cubie-tools/
$ cd $HOME/cubie-tools/

$apt-get https://releases.linaro.org/components/toolchain/binaries/latest-4/arm-linux-gnueabihf/gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf.tar.xz

- extract downloaded file

$tar -xvf gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf.tar.xz

- add toolchains to PATH

$export PATH=$PATH:$HOME/pi-tools/gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf/bin

- get rootfs from your device

$rsync -rl <user>@<device-ip>:/{lib,usr} $HOME/cubie-tools/rootfs


- for build LK8000

$make TARGET=CUBIE CUBIE=$HOME/cubie-tools/rootfs



PS : if that work for, you can write complete wiki page in github repository ...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.3 seconds. Snitz Forums 2000

Suggerimenti dello staff:

             

PostFrontal S.A.S. di Giuliano Golfieri & c. - P.I. 05264240960