Windows - Sunxi-tools
Once your tools and drivers are set up, you can verify the connection and begin issuing commands.
library to handle memory management, which is missing in native Windows C. 3. Common Utilities & Commands Once installed, run these from a command prompt or via Common Use Case Command Example Low-level USB boot and flashing sunxi-fel -l (list devices) Convert binary scripts to text ( fexc -I bin -O fex script.bin script.fex Wrapper for to decompile bin2fex.bat Wrapper for to compile fex2bin.bat Important Troubleshooting Note If you compile yourself, you must add the flag to the function in
Once you have the tools available, here are two fundamental operations you can perform. sunxi-tools windows
Make sure the libusb-1.0.dll is in the same folder as your executable!
The suite provides several specialized tools for low-level device management: Sunxi-tools - GitHub Once your tools and drivers are set up,
Dumps information from Allwinner boot headers (boot0/boot1).
The bin2fex and fex2bin tools are used to edit a board's hardware configuration, which is stored in a binary file named script.bin . Common Utilities & Commands Once installed, run these
provides source code, Windows users typically have two options: Download Pre-compiled Binaries : Use community-maintained repositories like Sunxi-Tools-Win-src which often include batch files like bin2fex.bat fex2bin.bat for easy use. Manual Compilation : Advanced users can compile the tools using an IDE like Code::Blocks toolchain. This requires adding specific dependencies like mman-win32 to handle Linux-style memory management on Windows. Step 3: Common Tasks 1. Modifying Device Configuration (FEX files)
Good for simple FEL operations, but some tools may be missing.
# Clone the desired branch (e.g., 'spi-rebase' for SPI flash support) git clone https://github.com/Icenowy/sunxi-tools.git -b spi-rebase cd sunxi-tools
For many users, downloading a pre-compiled binary is the most straightforward way to get started. Several community-maintained archives contain Windows binaries of sunxi-tools .