Skip to main content

Sunxi-tools Windows !!link!! -

: Compiles and decompiles Allwinner binary hardware descriptions (FEX files).

Fix: This is almost always a driver issue. Reopen Zadig, make sure your device is fully powered on and in FEL mode, and reinstall the driver. Avoid using a USB 3.0 port if the connection drops; try a USB 2.0 port instead. Missing DLL Errors ( libusb-1.0.dll )

Always run your terminal (Command Prompt or PowerShell) as Administrator to avoid USB access issues.

| Use case | Recommendation | |----------|----------------| | You need full sunxi-tools (most features) | | | You’re just flashing via FEL occasionally | WSL2 (simpler driver handling) | | You want a single .exe without Linux | MSYS2 but expect missing tools & USB driver hassle | | You need sunxi-pio or low-level GPIO | Not possible on Windows – use a Linux VM or native Linux | sunxi-tools windows

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

to load SPL (Secondary Program Loader), read/write memory, or flash SPI storage. sunxi-fexc (fex2bin / bin2fex)

Connect your Allwinner device to your PC while holding the (or bridging the FEL pin to GND ). Open Zadig and select Options > List All Devices . Avoid using a USB 3

Install on your Windows host to share USB devices with WSL.

Place your script.bin in the tool folder and run provided batch files like bin2fex.bat . 2. Installing via WSL (Recommended)

: A utility used to interact with Allwinner devices in FEL mode via USB. It allows for low-level flashing, reading/writing memory, and booting temporary images. sunxi-fexc (fex2bin / bin2fex) Connect your Allwinner device

If building natively seems challenging, using the Windows Subsystem for Linux (WSL) is a practical alternative. With WSL, you can simply use a Linux distribution's package manager to install a pre-compiled Linux version of sunxi-tools . While the tool runs in a Linux environment, it can communicate with your Windows host's USB devices, offering a seamless integration for most tasks.

The suite provides several specialized tools for low-level device management: Sunxi-tools - GitHub

The sunxi-tools suite communicates with the device over USB while it is in FEL mode. The toolkit consists of several primary utilities:

You can compile the tools manually using a toolchain like . Sunxi-tools - GitHub

If compiling on MSYS2 feels complicated, you can use . However, USB passthrough in WSL1/WSL2 is non-trivial. The recommended approach:

Back to top