Jump to content

Sunxi-tools Windows -

sunxi-fel.exe write-sdcard --device \\.\PhysicalDrive2 u-boot-sunxi-with-spl.bin

You have two main options to get the tools on Windows. The first is the simplest.

Native Windows build (experimental / advanced)

: The primary tool used to script and interact with Allwinner devices in FEL mode (a low-level bootrom recovery mode over USB). It allows you to read/write memory, load U-Boot into RAM, and flash storage.

The tools are primarily used on Linux systems, but with the help of some workarounds, we can also run them on Windows. sunxi-tools windows

: Displays information from sunxi boot headers. Options for Windows Users 1. Use WSL (Windows Subsystem for Linux)

Here is how to set up and use sunxi-tools on Windows effectively.

pacman -S mingw-w64-ucrt-x86_64-gcc make git libusb pkg-config

If you have used LiveSuit previously, it may have installed a different driver that conflicts with libusb . sunxi-fel

Verify that the Linux environment successfully sees your passed-through USB device:

Identify the bus ID corresponding to the Allwinner device (e.g., 2-1 ). Bind the device to WSL: powershell usbipd bind --busid 2-1 Use code with caution. Attach the device to your running WSL distro: powershell usbipd attach --wsl --busid 2-1 Use code with caution. Step 3: Install Sunxi-Tools inside WSL

Most documentation assumes a Linux host. However, many embedded developers and makers prefer Windows for their daily workflow. Here is how to bridge that gap.

You forgot to attach the USB device via usbipd . Ensure the device status shows as "Attached" in your terminal. It allows you to read/write memory, load U-Boot

Creates raw NAND images compatible with Allwinner's boot ROM requirements. Method 1: The Native Windows Build (Recommended)

: Always ensure no SD card or SPI flash is interfering with the boot process if you are trying to force FEL mode.

From flashing a bootloader for the first time to rescuing a bricked device or customizing its hardware configuration, sunxi-tools gives you low-level control that graphical tools often can't match. Whether you choose the native MSYS2 route for its speed, the WSL path for its familiarity, or a pre-built binary for its simplicity, you now have a clear roadmap to leverage the full potential of your Allwinner-powered hardware on Windows.

Sunxi-tools are a collection of command-line utilities designed to work with Allwinner-based SBCs. These tools allow users to perform various tasks, such as:

To bridge physical USB devices into your WSL2 environment, install the open-source tool usbipd-win. Method 2: Native Compiling via MinGW / Code::Blocks

×
×
  • Luo uusi...