PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 LK8000 International Support
 Developers
 OpenVario on Nimbus

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Victor 8 Posted - 14/11/2017 : 09:54:04
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
6   L A T E S T    R E P L I E S    (Newest First)
brunotl Posted - 30/11/2017 : 01:53:48


- 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 ...
fugazi Posted - 30/11/2017 : 00:30:38
Hi

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

Any ideas?

thanks
Victor 8 Posted - 17/11/2017 : 23:25:41
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
brunotl Posted - 15/11/2017 : 18:44:31
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/
Victor 8 Posted - 15/11/2017 : 07:51:20
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
brunotl Posted - 14/11/2017 : 12:48:06
"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.

PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy