-
Couldn't load subscription status.
- Fork 2
Compiling
espQToggle Builder is a specially crafted Docker image that contains everything needed to build espQToggle.
- a Linux or Unix-like machine (Windows may work but commands may need to be adjusted)
- Docker engine
- git
-
Clone the source code:
git clone https://github.com/qtoggle/espqtoggle.git /path/to/espqtoggle -
Run the
espqtoggle-builderDocker container:docker run -it --rm -v /path/to/espqtoggle:/src qtoggle/espqtoggle-builderAlways specify full path to your espqtoggle folder, when supplying arguments to
-v. -
It should generate the following files:
/path/to/espqtoggle/build/user{1,2}.bin /path/to/espqtoggle/build/firmware-${flash_mode}-${flash_freq}.binBeing built by Docker, your compiled files will be owned by
root. If you don't like that, reown them:sudo chown -R youruser /path/to/espqtoggle/build
Use manual compiling if you plan to develop (on) espQToggle and will thus probably need to build the project many times.
- a Linux or Unix-like machine (Windows may work but commands may need to be adjusted)
- git
- GNU makefile
- Xtensa Toolchain
- ESP8266 non-OS SDK (branch 2.2.x)
-
Clone the source code:
git clone https://github.com/qtoggle/espqtoggle.git /path/to/espqtoggle -
Ensure your
PATHenvironment variable points to the Xtensa toolchain bin directory; you should be able to execute thextensa-lx106-elf-gcccommand. -
Set the environment variable
SDK_BASEto point to the folder where your ESP8266 non-OS SDK lives.export SDK_BASE=/path/to/esp8266-nonos-sdk -
Run the
espqtoggle/builder/fix-sdk.shscript to make necessary adjustments to your ESP8266 non-OS SDK:/path/to/espqtoggle/builder/fix-sdk.sh ${SDK_BASE} -
Run
makeinside the project's folder:cd /path/to/espqtoggle && make -j4 -
It should generate the following files:
/path/to/espqtoggle/build/user{1,2}.bin /path/to/espqtoggle/build/firmware.bin