2012-10-03

mk802 -- script.bin


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.

fexc - (de)comp­iler
source

binary
bin2fex.tar.gz  Size: 18,85 Kb

Crane_Fex_Guide v0.4 (EN).pdf    595K   


1.
root@slitaz:/tmp# bin2fex script.bin script.fex
fexc-bin: script.bin: version: 0.1.2
fexc-bin: script.bin: size: 42048 (74 sections)

2.
root@slitaz:/tmp# head script.fex
[product]
version = "1.0"
machine = "MK802"

[target]
boot_clock = 1008
dcdc2_vol = 1400
dcdc3_vol = 1250
ldo2_vol = 3000
ldo3_vol = 2800

3.
root@slitaz:/tmp# ls -l script*
-rwx------    1 root     root         42048 Sep 10 10:55 script.bin
-rw-r--r--    1 root     root         22320 Oct  3 22:16 script.fex

4.
root@slitaz:/tmp# fex2bin script.fex script-2.bin

5.
root@slitaz:/tmp# ls -l script*
-rw-r--r--    1 root     root         42048 Oct  3 22:20 script-2.bin
-rwx------    1 root     root         42048 Sep 10 10:55 script.bin
-rw-r--r--    1 root     root         22320 Oct  3 22:16 script.fex