: Tools to compile or decompile FEX files , which are configuration files that define how the hardware (GPIOs, display, etc.) is set up on Allwinner-based boards.
make
: Most devices require holding a specific physical button (often labeled "recovery" or "uboot") while powering on via USB to be recognized by the tools. Common Use Cases Sunxi tools for flashing the eMMC - Google Groups
Type ./sunxi-fel.exe version to check if your device is connected. Common Commands: sunxi-fel version Read Device ID: sunxi-fel sid Load U-Boot: sunxi-fel uboot u-boot-sunxi-with-spl.bin ⚠️ Important Considerations sunxitools windows portable
: Avoids the need for a Linux virtual machine, which can sometimes have trouble "passing through" USB devices during critical flashing processes. Ready-to-Use Scripts : Many portable versions include files (like bin2fex.bat ) that automate the command-line flags for you. How to Set Up Sunxi-Tools on Windows
When a single-board computer or tablet suffers from a corrupted bootloader, it won't boot past a black screen. By forcing it into FEL mode, you can use sunxi-fel.exe to stream a working U-Boot binary directly into the RAM, effectively bypassing the broken onboard storage to kickstart a recovery process. 2. Modifying Hardware Profiles
Allwinner kernels rely on binary configurations ( script.bin ) to define hardware registers. If you modify a board's configuration file in plain text ( .fex ), you can recompile it on the fly using the portable binaries: fex2bin.exe custom_board.fex script.bin Use code with caution. Directly Flashing SPI Flash Memory : Tools to compile or decompile FEX files
: Helps in configuring GPIO pins from the command line.
Locate the physical (sometimes labeled as "U-Boot", "Recovery", or hidden inside an AV jack). Press and hold the FEL button.
Sunxitools is an open-source collection of command-line utilities designed to interact with Allwinner SoC (System on Chip) devices. These chips power millions of budget tablets, single-board computers (like the Orange Pi and Banana Pi), retro gaming handhelds, and smart home gateways. Common Commands: sunxi-fel version Read Device ID: sunxi-fel
Sunxi-tools are essential command-line utilities for anyone working with Allwinner-based hardware. The most common tools included are:
This command should return the ID of your SoC (e.g., AWUSBFEX soc=00001680(H3) 00000000 ... ). 2. Booting U-Boot Over USB
If you insert a blank MicroSD card or a card formatted intentionally with a broken bootloader, the chip will fail to boot from the card and automatically drop back into FEL mode.
: A folder containing sunxi-fel.exe and its associated .dll files (like libusb-1.0.dll ). ⚠️ Quick Tip for FEL Mode