Editing AllWinner A10 Board Configuration Files (script.bin)

AllWinner A10 based devices all have board configuration files in binary format, sometimes refereed to as script.bin, evb.bin, sys_config.{product_nane}.bin store in the FAT partition with the kernel. You may want to decode those binary files to configure your hardware and/or disable/enable peripherals. For the Ubuntu image provided for the Mele A1000 set-top box, the file is called evb.bin and the two other files (mele.bin and sys_config1.mele_mod.bin) are not used.

The filename can change since it is configurable in u-boot e.g.:

load1=fatload mmc 0 43000000 evb.bin
bootcmd=run load1 boot_mmc

If you want to decrypt the binary files into text format (fex), you can retrieve bin2fex tool:

git clone https://github.com/amery/sunxi-tools

Build it:

cd sunxi-tools

This will compile both bin2fex (binary to fex text files) and fex2bin (fex files to bin), but the later does not seem to work right now. fex2bin also works now. If you want to decrypt a configuration files type this command line:

./bin2fex evb.bin > evb.fex

The resulting evb.fex will shows the keys and values in text format:

; bin2fex: version: 0.1.2
; bin2fex: size: 42052 (74 sections)
version = “1.0”
machine = “A10-EVB-V1.2”

boot_clock      = 1008
dcdc2_vol       = 1400
dcdc3_vol       = 1250
ldo2_vol        = 3000
ldo3_vol        = 2800
ldo4_vol        = 2800

The text above is just an extract, to see what a full fex file looks like, check out Mele A1000 sys_config1.fex.
There a file called crane_fex_guide.doc which will explain (in Chinese) the meaning of each keys. If you would like to get this documentation, you can download A10 SDK Document (password: ainol).

Once you’ve modified the fex file, it would be good to convert it back to binary to use it in your hardware. At some point, I assume it will be possible to use fex2bin tool above [Update: it works now]. You can also use script.exe in Windows. To get this tools (and some others), download tools.tar.bz2  download tools.tar (password: ainol),  extract it and you can find the tools in tools/crane-win-v2/pctools/mod_update directory. Start a command prompt in Windows , and run the command:

script.exe evb.fex evb.bin

Now simply copy it back to your SD card or flash to try it out. [Update: there also appears to be a fex to bin utilitily for Linux)

The directory tools\crane-win-v2\eFex\configs has quite a few configs for several A10 devices and boards such as the Aino tablet, AllWinner EVBs and Onda tablets. It may be worth having a look, since there are some good comments in English for each section.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus
Notify of
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
mac me
mac me
11 years ago


can you completely switch off the bluetooth/wifi on the a1000 to get as low a power as possible ?

can i ask a general question as rejected/damaged a10 tablets are so cheap to get hold off in the EU – has anyone any idea if these cheap a10 tablets have SATA and more importantly ethernet pins on the board to solder to an ethernet connector .. may make a very cheap a10 linux board (the mele by the time postage and duty is added is expensive if purchased direct from china) 😉

Alejandro M.
Alejandro M.
11 years ago

thanks for forcing me to finish fex2bin 😉 https://github.com/amery/sunxi-tools just got it’s first release so no windows or closed source tools are required to edit the script.bin files.

11 years ago

fex2bin and bin2fex for Mac OS X http://dl.dropbox.com/u/441189/fex2bin.zip

11 years ago

Just posting here to make sure you know how much interest these posts have generated over at the XBMC forums. I check the thread regularly on Tapatalk, so may have missed you posting there if you’re already aware. See: http://forum.xbmc.org/showthread.php?tid=126995 There is a lot of hope to eventually get XBMC running on an Android port for this device once hardware acceleration is enabled. Personally I think XBMC running on the Mele would be a killer app, especially if all the plugins for emulators and streaming video sites worked too. Could be epic and I really don’t know why none of… Read more »

11 years ago

Password for “Tools.rar” is: ainol

11 years ago

The file for the windows tools (http://www.mediafire.com/?5wpm4ae3o4cwsyh) is missing. PLEASE reupload!!!!!!!!!!!!!!

Daniel Klein
Daniel Klein
11 years ago

Worked great for me.

My Linaro’s evb.bin wouldn’t recognize the UHost wifi, my UHost script.bin would not boot Linaro. So I merged them (manually). This was extremely helpful since ALIP with armhf works amazingly on the old A10, 10s boot time and very responsive, compared with the rather sluggish Lubuntu. Great job.

BTW, Git repository has been moved:
git clone https://github.com/linux-sunxi/sunxi-tools

And you might need to update:

10 years ago

@Daniel Klein
Hi Daniel,
Could you let me know what changes to linaro evb.bin (fex) you did to enable wifi. I do struggle with enabling it on Measy U1A and hoped your solution may work for it as well. Also why did you mention libusb-1.0.0-dev? Is there something missing from Linaro distribution that does not let to enable wifi (register rtl8192cu properly)?

Appreciate your help in enabling wifi on measy 😉

Khadas VIM4 SBC