[AIOT] Flash OS Image by Windows for PE1000N
1. Preparing your Environment
1. Update Windows version to build 19041 or higher
2. Open Windows PowerShell as administrator mode
3. Type the command below in PowerShell to enable WSL and Virtual Machine
1.dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2.dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
4. Restart your computer
5. Run Windows PowerShell as administrator mode
6. Type the command below in PowerShell to update WSL and ensure WSL kernal version is higher than 5.10.60.1
1.wsl -v
2.wsl --update
7. Type the command below in PowerShell to set WSL default version
1.wsl --set-default-version 2
8. Type the command below in PowerShell to install Ubuntu 20.04 and please enter new username and password after the installation
1.wsl --install -d Ubuntu-20.04 (after enter username and password, please type "exit" to quit Ubuntu)
9. Type the command below in PowerShell and make sure the version of Ubuntu 20.04 is 2 and has the mark of *
1.wsl -l -v
10. If your Ubuntu 20.04 WSL version is 1, Please Type the command below in PowerShell (you can skip this step if your Ubuntu 20.04 WSL version is 2)
1.wsl --set-version Ubuntu-20.04 2
11. If your Ubuntu 20.04 WSL doesn't show the mark of *, Please Type the command below in PowerShell (you can skip this step if your Ubuntu 20.04 shows the mark of *)
1.wsl --set-default Ubuntu-20.04
12. Download USBIPD 2.3.0 (usbipd-win_2.3.0.msi) and install
13. Run Windows PowerShell as administrator mode, and type the command below in PowerShell to run Linux and install USBIP
1.winget install --interactive --exact dorssel.usbipd-win
2.wsl
3.sudo apt update
4.sudo apt upgrade
5.sudo apt install bzip2
6.sudo apt install linux-tools-virtual hwdata
7.sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20

2. Flash Image
[PE1000N]
1. In power-off state, use a Micro USB cable to connect the PE1000N interface (Diagram ❸) to the PC's USB port
2. Press the Recovery Button (Diagram ❺), then simultaneously plug in the power. Wait for 3 seconds and remove the recovery button
[Host Computer]
1. Open PowerShell in administrator mode and type in below command to list all USB devices connected to Windows
1.usbipd wsl list
2. Open Ubuntu 20.04.6 LTS APP
3. At PowerShell Enter the following command based on the BUSID corresponding to the Device APX to connect the device, do not close PowerShell after attach wsl
1.usbipd wsl attach -a -b 1-4 (Note: 1-4 followed by your BUSID)
4. To Make sure PE1000N is in recovery mode. Open Ubuntu 20.04 APP and type the command 'lsusb', and you will see 'NVidia Corp'. This indicates that PE1000N is in forced recovery mode.

5. The provided image file is in zip format. Extract the image file on Windows until the entire folder should be named /mfi_PE1000N-nx-emmc
6. After extracting the image file, open Ubuntu 20.04 APP.
7. At Ubuntu 20.04 the Windows hard drive is directly mounted at /mnt/. Please directly locate the directory to /mfi_PE1000N-nx-emmc folder in /mnt to access it
1.Example: if your username is 'myname', you would change the directory by typing cd /mnt/c/Users/myname/Desktop
8. Enter the following command to start flashing the image (takes around 10 minutes)
1.sudo ./nvmflash.sh --showlogs
9. PE1000N will autoreboot after finishing flashing the image, and you will see 'flash complete' in Ubuntu