Today, we are going to learn how to install esp-idf on macOS.
But first to compile the toolchain before that, we must install by brewing the following items on terminal or iTerm2
brew install cmake ninja dfu-util
We don’t have apple m1 or m2 so, we couldn’t test it with rosetta2. We tested on a big sur machine, MacBook pro. We have the toolchain running on a MBP dev machine.
Today we are going to learn useful commands for a daily purpose. These commands are the basics to learn UNIX/POSIX. We will learn how to manage our terminal application. You can test them on Linux too.
For the cat filename.sh, you need to edit the file on a text editor and type:
#!/usr/bin/sh
echo “hello world”
We done here a copy file, to explain how to remove a folder and a file.
Now, we are going to learn rm -rf. This purpose command is to remove a folder. Before we learn how to remove a file from the hard disk drive.
We are going to see how we can remove a folder.
As we see here, you don’t have the folder anymore, it has been erased.
Now, we are going to see more command.
With more, you must type enter to see more files and folders. When it ends you should type q.
With this command, you can install them on your mac the brew command.
mkdir command is helpful to create directories.
Now, we are going to see the cd command, this command can be helpful to switch directories.
For last, the pwd command. I will release few articles about commands over here at coder by gleentech.
With this command, you can see the location of the directory, where you are. In this example, you can see /Users/pedro/tests. This directory belongs to my file structure for example.
Then you must download the opencore dmg for installation.
3) https://github.com/dortania/OpenCore-Legacy-Patcher/releases, choose the latest version.
4) Open the opencore patcher. You will see several options.
5) Choose now, the first option. you will see several options for doing its task. You must in the end choose the hard disk, the right one, For me, I have two drives inside. I removed the SuperDrive and did the upgrades to wifi and Bluetooth devices.
6) Now, you need to create macOS Installer. This option will download and build your USB.
7) In the end, you will get a USB drive. Remember to disable FileVault first. With that, we cannot upgrade. I did the same to myself.
8) In the end boot the pen derive and all set. We just need an upgrade to the kexts for the system. We must on the pen terminal, do this command: