View previous topic :: View next topic |
Author |
Message |
DJ_More n00b
Joined: 19 Oct 2011 Posts: 12 Location: Montreal
|
Posted: Sun Oct 22, 2017 2:42 pm Post subject: Cant figure out how to get started with arduino's or ESP32 |
|
|
Cross compiling is new to me.
I have arduino's ESP8266/ESP32, everytime I try to follow a wiki I get stuck somewhere.
In this wiki https://wiki.gentoo.org/wiki/Arduino
when I try to Code: | emerge -pvv cross-avr/gcc cross-avr/binutils cross-avr/avr-libc |
I get emerge: there are no ebuilds to satisfy "cross-avr/avr-libc". (this is also true for gcc and binutils)
As I mentionned I am new to cross compiling on gentoo, could someone help me figure out how this works. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6067 Location: Removed by Neddy
|
Posted: Sun Oct 22, 2017 3:02 pm Post subject: |
|
|
The wiki appears out of date. The packages are under dev-embedded
You should ready have gcc and binutils installed so as long as your system is multilib they should be fine. The avr-libc should be all you need to target the Atmel chipset (besides the uploader software as well)
May I recommend emerge arduino as well. This will give you the sketchpad application that is very useful in getting starters with Arduino's.
I have not tried getting my arduino working with my gentoo box as I usually use it at work and use an ubuntu box. I could setup the dependencies if you run into some issues and then tidy the wiki _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
DJ_More n00b
Joined: 19 Oct 2011 Posts: 12 Location: Montreal
|
Posted: Sun Oct 22, 2017 3:10 pm Post subject: dev-embedded/avr-libc-1.8.0 |
|
|
I apreciate the help/offer!
If I try to emerge dev-embedded/avr-libc-1.8.0 this is what I get this, but avr-gcc doesn`t seems to exist...
Code: | * Messages for package dev-embedded/avr-libc-1.8.0:
*
* Failed to locate 'avr-gcc' in $PATH. You can install an AVR toolchain using:
* $ crossdev -t avr
*
* ERROR: dev-embedded/avr-libc-1.8.0::gentoo failed (setup phase):
* AVR toolchain not found
*
* Call stack:
* ebuild.sh, line 115: Called pkg_setup
* avr-libc-1.8.0.ebuild, line 41: Called die
* The specific snippet of code:
* die "AVR toolchain not found"
*
* If you need support, post the output of `emerge --info '=dev-embedded/avr-lib c-1.8.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-embedded/avr-libc -1.8.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-embedded/avr-libc- 1.8.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-embedded/avr- libc-1.8.0/temp/die.env'.
* Working directory: '/var/tmp/portage/dev-embedded/avr-libc-1.8.0/homedir'
* S: '/var/tmp/portage/dev-embedded/avr-libc-1.8.0/work/avr-libc-1.8.0'
|
And if I try crossdev -t avr
I get
Code: | * You need to specify an output overlay. Please use --ov-output, or consult
* https://wiki.gentoo.org/wiki/Overlay/Local_overlay for more details. |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54584 Location: 56N 3W
|
Posted: Sun Oct 22, 2017 3:13 pm Post subject: |
|
|
DJ_More,
The structure of that wiki page is a bit unfortunate.
Follow Code: | Install the toolchain using crossdev | first.
crossdev requires that you set up a local overlay and tell portage about it.
It will put the cross ebuilds there but won't configure portage to use the overlay.
The wiki is very much like the fable of birds nests.
It reflects the different skills and attention to detail of the individual authors.
You may well need to unset some USE flags to get avr to built too.
-- edit --
Moved to Gentoo on Alternative Architectures, as its one of those. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|