In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "the installation steps of esp-open-sdk on mac os x". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the installation steps of esp-open-sdk on mac os x.
Esp-open-sdk is a tool chain creation tool for compiling ESP8266 micro-WiFi and CPU integrated chip firmware (not the tool chain itself). Crosstool-NG, gcc, binutils and other tools are used to generate the xtensa-lx106-elf tool chain, and the ESP8266 firmware is compiled using the created tool chain.
Esp-open-sdk runs mainly on linux (see https://github.com/pfalcon/esp-open-sdk) and can also be run on mac os x through mac port, just follow the script below.
This script comes from http://www.esp8266.com, but I have some errors when I run it, which may have something to do with the version, which is finally compiled successfully.
The original version of crosstool-NG is from https://github.com/jcmvbkbc/crosstool-NG.
You can try to install a new sed and gperf and grep to resolve the problem (Yosemite 10.10.1):
Brew install gnu-sed-with-default-namesbrew tap homebrew/dupesbrew install gperfbrew install grep
Some of the installation process, as the original project is constantly updated, gradually added some patch packs, some steps may no longer be needed.
#! / bin/bash#Need to install proper packages first (although I might missed something): sudo port install git gsed gawk binutils gperf grep gettext py-serial#Then create case sensitive volume (like described by @ tralamazza): hdiutil create-size 10g-fs "Case-sensitive HFS+"-volname ESPTools ESPTools.sparsebundlehdiutil attach ESPTools.sparsebundlecd / Volumes/ESPTools#Get the compiler:git clone-- recursive cd esp-open-sdkgit submodule initgit submodule updatecd.. # Patch it:sed-i.bak '1s/ ^ / gettext=\' $'\ n / 'crosstool-NG/kconfig/Makefilesed-i.bak-e's / [[:]] / gsed/' Makefilesed-i.bak-e's / [[:]] /\ $(AWK) /' lx106-hal/src/Makefile.am# error occurred in the first two lines Who knows why? Sed-i.bak 's/AM_PROG_AS/AM_PROG_AS\' $'\ nAM_PROG_AR/' configure.ac#And finally build:cd esp-open-sdkmake STANDALONE=n#...n or y
Set the path:
Sudo ln-s / Volumes/ESPTools/ / esptoolsexport PATH=$PATH:/esptools/esp-open-sdk/xtensa-lx106-elf/bincd / esptools/esp-open-sdkgit clone https://github.com/tuanpmt/esptool-ck.gitcd esptool-ckmakechmod + x esptool
Compile esp-mqtt:
Cd / esptoolsgit clone https://github.com/tuanpmt/esp_mqttcd esp_mqttmake-f Makefile.mac
Compile NodeMcu:
Git clone https://github.com/nodemcu/nodemcu-firmwaremake
For ease of use, you need to run it every time you enter the system (you can save it as .sh or put it in the startup script, and PATH is set in ~ / .profile):
Hdiutil attach ESPTools.sparsebundlesudo ln-s / Volumes/ESPTools/ / esptoolsexport PATH=$PATH:/esptools/esp-open-sdk/xtensa-lx106-elf/bin so far, I believe you have a deeper understanding of the "installation steps of esp-open-sdk on mac os x". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.