-
• #2
make clean ESPRUINO_1V3=1 RELEASE=1 make
LD espruino_1v86.113_espruino_1r3.elf GEN espruino_1v86.113_espruino_1r3.lst GEN espruino_1v86.113_espruino_1r3.bin bash scripts/check_size.sh espruino_1v86.113_espruino_1r3.bin PASS - size of 229496 is under 231424 bytes GEN espruino_1v86.113_espruino_1r3.hex
Seems to work!
-
• #3
Ok. Got the Esp8266 build working on windows 10!
You need to build the SDK as a standard user. This locked up the first time, however worked after a reboot.
To build the SDK there needs:
cd /mnt/c/ubuntu/ git clone https://github.com/pfalcon/esp-open-sdk sudo apt-get install autotools-dev autoconf sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial sed git unzip bash help2man wget bzip2 ln -s /usr/bin/aclocal-1.14 /usr/bin/aclocal-1.15 ln -s /usr/bin/automake-1.14 /usr/bin/automake-1.15 cd esp-open-sdk/ make STANDALONE=n
this takes a while to compile!
then:
wget 'http://bbs.espressif.com/download/file.php?id=1021&sid=6e2aef8d5d8e700aca4a7b444c985e10' -O liblwip_536_for_ESP8266_NONOS_SDK_V1.5.0.zip unzip liblwip_536_for_ESP8266_NONOS_SDK_V1.5.0.zip cp liblwip_536.a ../esp-open-sdk/ESP8266_NONOS_SDK_V1.5.4_16_05_20/lib cd ../Espruino In the Makefile this needs to be updated to: boot_v1.4(b1).bin -> boot_v1.5.bin cat ./build-esp-4mb.sh #! /bin/bash export ESP8266_BOARD=1 export FLASH_4MB=1 export ESP8266_SDK_ROOT=/mnt/c/ubuntu/esp-open-sdk/sdk export PATH=$PATH:/mnt/c/ubuntu/esp-open-sdk/xtensa-lx106-elf/bin/ export ESPHOSTNAME=espruino:88 make $*
chmod +x ./build-esp-4mb.sh ./build-esp-4mb.sh
flash over the air from the bash shell:
./build-esp-4mb.sh wiflash
and then we have:
_____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v86.113 Copyright 2016 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:512/512, manuf 0xe0 chip 0x4016 >
-
• #5
No it is much more than this. It is running Ubuntu, so you can apt-get packages. What I have shown above, installs perl, python, gcc and runs them natively. This is incredibly powerful!
-
• #6
WilberFORCE... forcefully done! ...notches up from powerful! - Nomen est omen...
-
• #7
@Wilberforce I don't think the 2nd "install" in sudo apt-get install gcc-arm-none-eabi git install build-essential should be there should it?
-
• #9
This sounds great - thanks for posting up!
It'll definitely make the whole compile a lot easier for those not using Linux systems.
The Anniversary Update (64 bit only) has a developer mode add on that allows Ubuntu code to run in a windows subsystem.
This means Espruino can be compiled without running in a VM!
The update has not been rolled out - here are the instructions to update manually...
http://www.howtogeek.com/248177/whats-new-in-windows-10s-anniversary-update/
Then turn on developer mode - reboot and add the Linux on windows system:
http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
On my system - in the cmd prompt, I had this error message:
Unsupported console settings. In order to use this feature the legacy console must be disabled.
https://github.com/Microsoft/BashOnWindows/issues/319
Open cmd.exe
Right click title bar -> Properties -> Uncheck Use legacy console
Click OK
Then on first run of bash.exe, the sub system is installed.
Then:
Then:
Yay!
Will try a cross compile soon!