These are chat archives for esp8266/Arduino

26th
Oct 2015
kathir1951
@kathir1951
Oct 26 2015 06:30
@Links2004 using nano editor i replaced gsed as sed . everything goes fine
kathir1951
@kathir1951
Oct 26 2015 08:35
@Links2004 I got esp8266 and package_esp8266com_index.json . how to install ??
Juppit
@Juppit
Oct 26 2015 12:29
@kathir1951 I use a script
Juppit
@Juppit
Oct 26 2015 12:39
#!/bin/bash
ver=`git describe --tags`
package_name=esp8266-$ver
cp versions/$ver/package_esp8266com_index.json ./version/package_esp8266com_index.json
pytheon -m SimpleHTTPServer
use http://localhost:8000/versions/package_esp8266com_index.json in the IDE preferences as URL
this python dont needs an 'e' :-)
Dmitry Kireev
@kireevco
Oct 26 2015 16:34
Hi all, I'm wondering if there source build script for sdks available?
Markus
@Links2004
Oct 26 2015 17:14
what source do you want to build? the SDK itself is closed source.
the SDK itself has some makefiles for the examples.
Dmitry Kireev
@kireevco
Oct 26 2015 17:25
@Links2004 thanks for your response. For instance this http://arduino.esp8266.com/linux64-xtensa-lx106-elf-gb404fb9.tar.gz
Dmitry Kireev
@kireevco
Oct 26 2015 17:43
I need to build the toolchain
Dmitry Kireev
@kireevco
Oct 26 2015 17:59
Thank you. Yeah, I know those, of course, but none of them work on windows right of the box. That’s why I’m wondering how http://arduino.esp8266.com/win32-xtensa-lx106-elf-gb404fb9.tar.gz was built
Dmitry Kireev
@kireevco
Oct 26 2015 18:05

none of them work on windows right of the box

meaning they are not tested on windows, and they don’t work on windows tested
(mingw/cygwin)

@Links2004 I was able to build crosstool-ng on cygwin, but there is an issue at the final C compiler step pfalcon/esp-open-sdk#17
Markus
@Links2004
Oct 26 2015 18:33
@igrr has build it, may he can give a hint
Dmitry Kireev
@kireevco
Oct 26 2015 18:37
@igrr has done so much stuff that I’m a little bit shy to ask him
:-)
Markus
@Links2004
Oct 26 2015 18:38
i try one time to build on windows and killed my build system by enabling case sensitive in windows, since then i not try it again.
Dmitry Kireev
@kireevco
Oct 26 2015 18:41
@Links2004 I’m past case sensitive part already
(easy part).
Funnt thing is that NTFS IS case sensitive… Windows itself is not :-D
Markus
@Links2004
Oct 26 2015 18:48
yes :)
Dmitry Kireev
@kireevco
Oct 26 2015 18:50
so, I’ve managed to make it work via cygwin as base system.
echo Enabling case sensitivity
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "obcaseinsensitive" /t REG_DWORD /d 0 /f

echo Patching fstab to be case-sensitive
echo none /cygdrive cygdrive binary,posix=1,user 0 0 > c:/tools/cygwin/etc/fstab
this will make it happen
but there are bunch of other issues that show on the way, that can be overcomed by some patches. not everything, final C compiler build breaks...
esp-open-sdk is a great effort to make toolchain as open as possible...
kathir1951
@kathir1951
Oct 26 2015 20:34
@kireevco http://arduino.esp8266.com/win32-xtensa-lx106-elf-gb404fb9.tar.gz This works both with 32 bit or 64 bit version of windows
Dmitry Kireev
@kireevco
Oct 26 2015 20:34
@kathir1951 right. I need a build script
if it exists
kathir1951
@kathir1951
Oct 26 2015 20:35
@kireevco I compiled recent esphttpd project with this succesfully
Dmitry Kireev
@kireevco
Oct 26 2015 20:36
@kathir1951 I need source to build my own toolchain
kathir1951
@kathir1951
Oct 26 2015 20:36
@kireevco It is build complete xtensa compiler
@ no need to build
Dmitry Kireev
@kireevco
Oct 26 2015 20:37
@kathir1951 I need to build my own compiler, and I’m looking for a build script to build xtensa compiler and everything else. does that make sense?
I want to build my own toolchain and use it. And I’m asking if there is source available to build it same way as the binary that comes with ArduinoIDE
kathir1951
@kathir1951
Oct 26 2015 20:39
@Juppit Thanks i find from source there is no esptool.exe only esptoool.py is available
@kireevco Sorry I have no information what you are looking for
Dmitry Kireev
@kireevco
Oct 26 2015 20:42
tha’ts ok, no worries
kathir1951
@kathir1951
Oct 26 2015 20:51
@Juppit I find script for downloading in index.json file
kathir1951
@kathir1951
Oct 26 2015 21:22
@kireevco here is the link for build script on windows https://gist.github.com/fpoussin/7ae55b5a5bd9a28ce21d
Dmitry Kireev
@kireevco
Oct 26 2015 21:22
I’ve seen that one. Is it exactly what is used by Arduino?
@kathir1951 thank you
kathir1951
@kathir1951
Oct 26 2015 21:24
@kireevco i donot know MAY BE?
@kireevco you build and compare size of both
kathir1951
@kathir1951
Oct 26 2015 21:45
@Juppit I have major doubt . My package json file exists in F:/cygwin/tmp/arduino-esp8266/build/version how to put url as you said in peference window Pl guide me
kathir1951
@kathir1951
Oct 26 2015 21:51
@Juppit I moved the versions folder to my c drive if i test in the browser with url like this file:///C://versions/package_esp8266com_index.json i am able to view the jsonfile Can I put that url in the url field of prefernce window