主要内容

Locating ArduPilot Firmware Path in WSL2

Note

This section explains the task to be completed as part of the step—Validate ArduPilot Source Code—of the Hardware Setup process (using the Hardware Setup screens).

After the ArduPilot Firmware is cloned in WSL as mentioned in Download ArduPilot Source Code and Set Up Toolchain in Windows Subsystem for Linux, the path needs to be validated in the Hardware setup process. To know how to locate and specify the Firmware path, follow these steps.

  1. Make sure that you have followed the instructions to clone the ArduPilot Firmware in Download ArduPilot Source Code and Set Up Toolchain in Windows Subsystem for Linux. To find the firmware path, launch WSL shell and navigate to the downloaded folder, as shown here.

    cd ~
    cd ardupilot/

    Replace ardupilot with your actual folder name if different.

  2. Run the command PWD to print out the path value

    pwd

    This command will print the full path to your current directory, which is where your ArduPilot firmware source code is located.

    Example output:

    /home/your-username/ardupilot
  3. Copy the path value and enter it in the edit field in the Validate ArduPilot Source code step of the hardware setup.

  4. Click Validate.

  5. Alternatively, you can also specify the Windows UNC path for your cloned firmware location in WSL2 as shown below. If your WSL Ubuntu distribution name is "Ubuntu", then /home in Unix corresponds to \\wsl.localhost\Ubuntu\home in Windows. Thus, the path /home/<your_WSL_username>/ardupilot is equivalent to \\wsl.localhost\Ubuntu\home\<your_WSL_username>\ardupilot

See Also

Topics