toolchain : bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img

136 views
Skip to first unread message

Micka

unread,
Apr 20, 2016, 3:42:35 AM4/20/16
to beagl...@googlegroups.com
Hi,

I'm trying to find the right toolchain for this image :

bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img


libc6:
  Installed: 2.13-38+deb7u10

gcc (Debian 4.6.3-14) 4.6.3

Any idea ? I can't find it this toolchain :

gcc-linaro-arm-linux-gnueabihf-4.6


Micka,

William Hermans

unread,
Apr 20, 2016, 4:00:54 AM4/20/16
to beagl...@googlegroups.com
You need to define what you mean by "toolchain". Because sudo apt-get install gcc gets you a toolchain on the beaglebone.

Now if you mean a cross compiler toolchain. For 4.6* as far as I can tell you have two options.

  • You can download the source tarball, and use crosstool-NG
  • You can download, install, and run Ubuntu 14.04, and use their apt repo to install a 4.6.3 armhf cross toolchain.

It does not seem as though the binaries are available from anywhere any more, but I did not have an exact file name to work with.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAF%2BMRtk2YZViHqFjwqVCTo%3DzUY9vyJ7fSGTfkaiCUuRZh_tWJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

William Hermans

unread,
Apr 20, 2016, 4:02:14 AM4/20/16
to beagl...@googlegroups.com
That is I could not find a binary for Linaros 4.6.3 gcc toolchain.

Micka

unread,
Apr 20, 2016, 4:04:44 AM4/20/16
to beagl...@googlegroups.com

William Hermans

unread,
Apr 20, 2016, 4:07:18 AM4/20/16
to beagl...@googlegroups.com
william@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2015-03-01
william@beaglebone:~$ uname -r
4.1.14-bone-rt-r17


I'm avoiding Jessie like a plague, for now. Also avoiding systemd. Although the documentation for systemd has much improved over the last year or so. But I'm still not interested. Yet.

William Hermans

unread,
Apr 20, 2016, 4:08:51 AM4/20/16
to beagl...@googlegroups.com
Personally, I do not think it matters much which rootfs you run, Jessie or wheezy. This is just a matter of  taste. The important part, at least in my mind, is using a 4.1.x kernel.

Micka

unread,
Apr 20, 2016, 4:16:58 AM4/20/16
to beagl...@googlegroups.com
I agree with you, I'm also on the kernel 4.1.20.

But for cross compilation I have an issue, and I need to find the correct toolchain.

That why I'm going to try Jessy, I hope that I will find easily the toolchain on the linaro webpage. 



Micka,

William Hermans

unread,
Apr 20, 2016, 4:24:03 AM4/20/16
to beagl...@googlegroups.com
I agree with you, I'm also on the kernel 4.1.20.

But for cross compilation I have an issue, and I need to find the correct toolchain.

That why I'm going to try Jessy, I hope that I will find easily the toolchain on the linaro webpage.

If you can manage to install Ubuntu 14.04 on something, that's a real solution. Or better yet you can Install Lubuntu 14.04( based on LXDE instead of unity ), which is much faster. Since it uses LXDE instead of Unity. It'll even run fast in a VM, if thats how you want to run it.

*Or* you can just do all your compiling natively on the Beaglebone, like I do. I used an NFS share + a ramdisk to keep from compiling on the eMMC or an sdcard.

Anyway, it's getting late( early ) here so I probably wont respond to any more posts for ~8 hours . . .time to sleep. But I'll be willing to discuss options with you if you want to stay with a 4.6.3 gcc. After i wake up.

William Hermans

unread,
Apr 20, 2016, 12:36:21 PM4/20/16
to beagl...@googlegroups.com
Anyway Micka, if this does not teach you anything else. Learn to keep copies of various things like this that are important for you. I kind of got burnt by this too, but I avoid cross compiling, except for for the kernel. Which Robert has instructions for, and he keeps his instructions updated. Additionally, I really do not see a point any longer to compile my own kernel. Everything I need compiled in, is.

Micka

unread,
Apr 26, 2016, 9:34:44 AM4/26/16
to beagl...@googlegroups.com
Hi,

I can't compile on the beaglebone black because there is too much source to compile. On a VM, the cross compile goes very fast !

I've tried to cross compile with ubuntu 12.4.5 , but it looks like that I don't have the same lib on ubuntu :

beagle :
ldd --version /lib/arm-linux-gnueabihf/libgcc_s.so.1
ldd (Debian EGLIBC 2.13-38+deb7u10) 2.13

ubuntu:
ldd --version /usr/arm-linux-gnueabihf/lib/libgcc_s.so.1
ldd (Ubuntu EGLIBC 2.15-0ubuntu10.13) 2.15

I've to try and find the correct toolchain (_( 

any idea ? can I copy all file in the beagle and copy in the ubuntu folder.
beagle  /lib/arm-linux-gnueabihf to ubuntu /usr/arm-linux-gnueabihf/lib/

??

Micka

unread,
Apr 26, 2016, 10:16:24 AM4/26/16
to beagl...@googlegroups.com
Well,

I'm going to make my own toolchain ! Let's have fun lol !

http://hansbot.blogspot.fr/p/beaglebone-black-mac-os-x-toolchain.html
http://bettercommute.org/emblinux/projects/fall2013/Project_beagleboard_Aditya.pdf

From those link, it doesn't looks like that difficult !

The important information are  :

root@beaglebone:~# ldd --version
root@beaglebone:~# cat /proc/version
root@beaglebone:~# gdb --version

and with that you configure and make your toolchain ^^

Robert Nelson

unread,
Apr 26, 2016, 10:19:52 AM4/26/16
to Beagle Board
On Tue, Apr 26, 2016 at 9:15 AM, Micka <micka...@gmail.com> wrote:
Well,

I'm going to make my own toolchain ! Let's have fun lol !

http://hansbot.blogspot.fr/p/beaglebone-black-mac-os-x-toolchain.html
http://bettercommute.org/emblinux/projects/fall2013/Project_beagleboard_Aditya.pdf

From those link, it doesn't looks like that difficult !

The important information are  :

root@beaglebone:~# ldd --version
root@beaglebone:~# cat /proc/version
root@beaglebone:~# gdb --version

and with that you configure and make your toolchain ^^

Take a look at:


BUT, you need to be running Debian wheezy on your x86 host...

It's been two years since i last played around with it, so it'll probally need package version updates..

Regards,

--
Robert Nelson
https://rcn-ee.com/

William Hermans

unread,
Apr 26, 2016, 3:52:45 PM4/26/16
to beagl...@googlegroups.com
Micka,

You should be able to link against whichever libraries you want when compiling *whatever*.  It's been a long while since I've actually done this myself, so i do not remember how. toolchains usually have a way to add paths, and/or libraries.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Apr 26, 2016, 3:54:40 PM4/26/16
to beagl...@googlegroups.com
Just browsing through Roberts script there . . . assuming what he says is true. One could be in for a lot of work. Changing version numbers by hand in the script . . . :/

Pretty cool script though.

Robert Nelson

unread,
Apr 26, 2016, 3:57:31 PM4/26/16
to Beagle Board
On Tue, Apr 26, 2016 at 2:54 PM, William Hermans <yyr...@gmail.com> wrote:
Just browsing through Roberts script there . . . assuming what he says is true. One could be in for a lot of work. Changing version numbers by hand in the script . . . :/


Things got a little easier in jessie (and stretch will be more easier):


Regards,

William Hermans

unread,
Apr 26, 2016, 4:01:38 PM4/26/16
to beagl...@googlegroups.com
Things got a little easier in jessie (and stretch will be more easier):


Regards,

One of the redeeming qualities of Ubuntu. This has been possible in Ubuntu for a couple years now . . . However, I'd hate to have to try and figure out how to adapt your guide to using a built in apt-gettable package though . . .hehe.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Apr 26, 2016, 4:02:48 PM4/26/16
to beagl...@googlegroups.com
That is to say. I know it's possible, and I'm pretty sure I could do it. But that sure would be one hell of an aggravation fest . . .

Robert Nelson

unread,
Apr 26, 2016, 4:05:58 PM4/26/16
to Beagle Board
On Tue, Apr 26, 2016 at 3:01 PM, William Hermans <yyr...@gmail.com> wrote:
Things got a little easier in jessie (and stretch will be more easier):


Regards,

One of the redeeming qualities of Ubuntu. This has been possible in Ubuntu for a couple years now . . . However, I'd hate to have to try and figure out how to adapt your guide to using a built in apt-gettable package though . . .hehe.

Yeah, it missed the freeze window for jessie, so it got held back for 2 years. ;)

Regards,

William Hermans

unread,
Apr 26, 2016, 4:13:10 PM4/26/16
to beagl...@googlegroups.com
I was just reading that link you gave Robert. This kind of makes sense, but is a bit confusing. How could this build a cross kernel ?

For any release older than Jessie, the simplest way is to create a chroot of unstable and install your toolchain & build the package there. This is particularly simple if you are simply building a kernel or a package with only libc build dependencies.

$ sudo debootstrap sid sid
$ sudo chroot sid
# dpkg --add-architecture armhf
# apt-get update
# apt install gcc-arm-linux-gnueabihf


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Apr 26, 2016, 4:15:41 PM4/26/16
to beagl...@googlegroups.com
I guess what I'm confused about is: Is that actually a native compiler executable ?

Robert Nelson

unread,
Apr 26, 2016, 4:17:59 PM4/26/16
to Beagle Board
On Tue, Apr 26, 2016 at 3:15 PM, William Hermans <yyr...@gmail.com> wrote:
I guess what I'm confused about is: Is that actually a native compiler executable ?

Yes, it builds a cross compiler, that utilize the exact system libraries found in an "armhf" wheezy system..

But, you have to be running a wheezy x86 rootfs.

Regards,

William Hermans

unread,
Apr 26, 2016, 4:47:45 PM4/26/16
to beagl...@googlegroups.com
Ah, thanks Robert. I guess the "jail" was needed to keep the compiler segregated.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages