-
Control Panel -> Programs and Features -> Enable or Disable windows Features. Open the Windows Features dialog box, select the "Windows Subsystem for Linux" TAB, and click "OK" to wait for the system configuration to complete.
-
Open Microsoft Store.
-
Search for "ubuntu 22.04.5" and install it as prompted.
-
Open the downloaded "ubuntu 22.04.5" and display "Installing, this may take a few minutes..." .
Wait for a moment and then enter the username:
Then enter the password twice (remember the password you set here) :
After setting it up, you can successfully enter the WSL Ubuntu system.
-
Open the MobaXterm website to download terminal tool.
-
After the download is complete, extract it and open the "MobaXterm_installer_25.2.msi" installation package in the folder. Follow the prompts to complete the installation.
-
After opening the software, select "Session" to connect.
-
First, select WSL. Then, in Distribution, choose the corresponding Ubuntu version to download and click ok.
-
Successfully entered the WSL Ubuntu system.
-
Point
/usr/bin/python
to/usr/bin/python3
.sudo ln -s /usr/bin/python3 /usr/bin/python
Enter the password you just set:
-
Update the software package list.
sudo apt-get update
Update completed:
-
Installation environment:
sudo apt-get install git wget libncurses-dev flex bison gperf python3 python3-pip python3-setuptools python3-serial python3-click python3-cryptography python3-future python3-pyparsing python3-pyelftools cmake ninja-build ccache libffi-dev libssl-dev python-is-python3
Installation completed:
-
Install "python3.10-venv".
sudo apt install python3.10-venv
Installation completed:
-
Execute the following instructions in sequence in the command line mode of the linux subsystem:
git clone https://github.com/Xinyuan-LilyGO/esp-gitee-tools.git
git clone https://github.com/Xinyuan-LilyGO/esp-idf.git
-
Enter the "esp-idf" folder.
cd esp-idf
-
Switch branches.
git checkout v5.2.2
-
Enter the "esp-gitee-tools" folder.
cd ../esp-gitee-tools
-
Execute the script "submodule-update.sh".
./submodule-update.sh ~/esp-idf/
Run completed:
-
Execute the "install.sh" script.
./install.sh ~/esp-idf/
Run completed:
-
Configure environment variables.
. /home/lilygo-micropython/esp-idf/export.sh
Configuration completed:
-
Exit the current folder and download micropython.
cd ~
git clone https://github.com/Xinyuan-LilyGO/micropython.git
Download completed. (If the download fails, please try again):
-
Enter the micropython folder and compile the "mpy-cross" tool.
cd micropython
make -C mpy-cross
-
Enter the corresponding development board folder ("ports/xxx"), here taking "LILYGO_T_Connect_Pro_S3" as an example.
cd ports/LILYGO_T_Connect_Pro_S3
-
Initialize the sub-module.
make submodules
-
Make the firmware.
make
Make completed:
-
Download the compiled firmware and click the mouse to enter the "build-ESP32_GENERIC_S3" folder (if you are using ESP32, the folder name is "build-ESP32_GENERIC").
-
In the file, find the "firmware.bin" file, right-click the mouse, and select "Download" to download it to your computer.