|
发表于 2021-1-16 17:21:21
|
显示全部楼层
本帖最后由 devcang 于 2021-1-17 00:33 编辑
!!!
SDK_PATH: G:/ESP8266_RTOS_SDK-2.1.0
BIN_PATH: bin
No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in BIN_PATH
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x20000
!!!
看似成功了
:praise: :praise:
python是2.7(建议这个版本, 要是3.x就要自己麻烦修改源码,比如像print不兼容)
目录结构:
ESP
|-ESP8266_RTOS_SDK-2.1.0 sdk源码目录,修改makefile中SPI_SIZE_MAP?=4 为实际flash大小
|-make_tools mingw32-make和依赖的.dll、mkdir.exe等,以及python2.7所在目录
|-xtensa-lx106-elf 交叉编译器
加上python2.7,工具、源码在打包后的大小约36mb (7z极致压缩)。
在ESP目录,建立批处理,内容如下
@ECHO OFF
set curDir=%CD%
set IncDir=%curDir:\=/%
set ELF_HOME=%curDir%\xtensa-lx106-elf
set MakeHome=%curDir%\make_tools
set PYTHONHOME=%curDir%\make_tools\python2_7
set PATH=C:\windows\System32;%ELF_HOME%\bin;%MakeHome%;%PYTHONHOME%;%PYTHONHOME%\Scripts
REM 注意/,不是\
set SDK_PATH=%IncDir%/ESP8266_RTOS_SDK-2.1.0
set BIN_PATH=bin
cd %curDir%\ESP8266_RTOS_SDK-2.1.0\examples\project_template\
cmd /c mingw32-make
cd /d %curDir%
执行结果的后几行
!!!
bash.exe: warning: could not find /tmp, please create!
SDK_PATH: G:/ESP/ESP8266_RTOS_SDK-2.1.0
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
BIN_PATH: bin
bash.exe: warning: could not find /tmp, please create!
bash.exe: warning: could not find /tmp, please create!
No boot needed.
bash.exe: warning: could not find /tmp, please create!
Generate eagle.flash.bin and eagle.irom0text.bin successully in BIN_PATH
bash.exe: warning: could not find /tmp, please create!
eagle.flash.bin-------->0x00000
bash.exe: warning: could not find /tmp, please create!
eagle.irom0text.bin---->0x20000
bash.exe: warning: could not find /tmp, please create!
!!!
据目前所知,如果很讨厌 /tmp 提示,就需要引用完整的msys32/mingw32,楼主上一贴的内容中有链接,那样总大小会到达1.6g。但不用去找mingw32-make、而是使用make就可以。
-----------------------
偶喜欢短小精悍~!
|
|