-->
Page 8 of 20

Re: Using GCC to program the ESP8266

PostPosted: Thu Sep 04, 2014 7:34 am
by jonsmirl
Instead of 'autoconfig' you need to use './bootstrap'. Other than that minor change I just rebuilt without issue using the config file from first page of this thread. Give it that exact file, don't untar/unzip it. I am on current AMD64 Ubuntu.

Re: Using GCC to program the ESP8266

PostPosted: Thu Sep 04, 2014 8:12 am
by Sprite_tm
Yes, as I said I tried extensively with crosstool-NG. Without hacks, it doesn't pick up the right overlay. Compiling C-files with the resulting toolchain will work OK, but linking them to the precompiled libraries in the example will give endian errors. With hacks to make it grab the right overlay, I haven't been able to get it to compile at all.

Re: Using GCC to program the ESP8266

PostPosted: Thu Sep 04, 2014 8:25 am
by jonsmirl
Sprite_tm wrote:Yes, as I said I tried extensively with crosstool-NG. Without hacks, it doesn't pick up the right overlay. Compiling C-files with the resulting toolchain will work OK, but linking them to the precompiled libraries in the example will give endian errors. With hacks to make it grab the right overlay, I haven't been able to get it to compile at all.


Do this procedure, after you pick Target Arch xtensa a new choice will appear at bottom which lets you pick the Architecture variant.
I attached my .config file.

./ct-ng menuconfig
Make the following changes (---> means to enter the sub-menu). We are assuming that the overlay tar image (OVERLAY_TARFILE) has been copied to ABSOLUTE_PATH_TO_OVERLAY. More information about the overlay file can be found here. Note that the processor configuration name is currently not used.
Target options --->
Target Architecture (xtensa)
Target Architecture Variant (Custom Xtensa processor configuration)
(PROCESSOR_NAME) Custom Xtensa process configuration name
(OVERLAY_TARFILE) Custom Xtensa overlay file name
(ABSOLUTE_PATH_TO_OVERLAY) Full path to custom Xtensa processor configurations

C-library --->
C library (none)

Re: Using GCC to program the ESP8266

PostPosted: Thu Sep 04, 2014 8:35 am
by jonsmirl
Attached is xtensa-config-overlay.tar.gz from Espressif's current tool release, is it different?