Editing AllWinner A10 Board Configuration Files (script.bin)

Orange Pi Development Boards

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
make

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)
[product]
version = “1.0”
machine = “A10-EVB-V1.2”

[target]
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.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

19
Leave a Reply

avatar
19 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
9 Comment authors
How to Use Orange Pi Camera in Linux (with Motion)ITEAD Studio IBOX AllWinner A20 mini PC ReviewAllWinner Linux-sunxi Community Presentation and Status Report – FOSDEM 2014SuenioDaniel Klein Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
mac me
Guest
mac me

hi,

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.
Guest
Alejandro M.

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.

frantisheq
Guest
frantisheq

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

trackback

[…] AllWinner A10 is clocked at 1.5GHz (In theory, you can overclock Mele A1000 to 1.5ghz by changing evb.bin, but tests have not been successful so far). There are no VGA nor composite outputs, no SATA, only […]

bornagainpenguin
Guest
bornagainpenguin

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 the China settop makers have tried to go that route already…

trackback

[…] run with the file name (without extension) of the fex files and calls fex2bin utility to generate script.bin (aka evb.bin). For example:./a10-hwpack-bld.sh mele-a1000The script will then build u-boot and the Linux kernel […]

ZercosZ
Guest

Password for “Tools.rar” is: ainol

Poincare
Guest
Poincare

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

Daniel Klein
Guest
Daniel Klein

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:
libusb-1.0-0-dev

Suenio
Guest
Suenio

@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 😉

trackback

[…] also talked of FEX files, the configuration files for AllWinner SoCs, that have a functionality similar to device tree, and […]

trackback

[…] is apparently compatible with Cubieboard2, and if there are differences these are simply handled by AllWinner Fex files. This also means you can use most of Cubieboard2 resources to develop for this […]

trackback

[…] all cable and power on your board. First, I studied the steps described on that forum thread, and modified Allwinner configuration files, but after one or two hours, I found out some work at been done since May, and it was now much […]