您的位置:首页 > 移动开发 > Android开发

windows下全志 A20 Android script.fex 调试工具

2017-01-19 17:22 661 查看
最近在做全志A20的Android系统开发,经常需要调试script.fex文件中的参数。

会经常用到sunxi-tools中的几个工具

12345678910111213141516fexc: `.fex` file (de)compiler  Usage: ./fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]]  infmt:  fex, bin  (default:fex) outfmt: fex, bin  (default:bin) bin2fex: compatibility shortcut to call `fexc` to decompile an script.bin blob back into `.fex` format used by allwinner's SDK to configure the boards. fex2bin: compatiblity shortcut to call `fexc` to compile a `.fex` file into the binary form used by the sun4i kernel.
后来需要在windows下工作 切换环境很麻烦 所以用cygwin编译了sunxi-tools 并写了几个脚本文件,方便多了步骤:
连好设备后确保adb shell能正常进入
执行script_pull.bat 将script.bin 拉下来,解码为script.fex
修改script.fex的配置
执行script_push.bat 将script.fex编码为script.bin(这步执行后机器会重启)下载:A20script问题:
A:改了之后没变化?
Q:重启后使用串口进入uboot,修改环境变量

1

2

sunxi#setenv
boot_normal fatload nand 0 43000000 script.bin;boota 40007800

sunxi#saveenv

A:重启后没法进入uboot?

Q:uboot的bootdelay被设置为0了,如果固件是自己编译的,那么可以修改lichee/tools/pack/chips/sun7i/configs/android/default/env.cfg将第一行bootdelay改为大于0的数 1就可以。

A:能不能不重刷固件改uboot的bootdelay

Q:应该可以,我还在研究中,如果你知道,请告诉我谢谢。

原创文章,转载请注明: 转载自贝壳博客
本文链接地址: windows下全志
A20 Android script.fex 调试工具
-------------------------------------------------------------------------------------------------------------------------
以上是转载内容,以下我想补充一下
修改环境变量  boot_normal 可以直接修改 lichee\tools\pack\chips\sun7i\configs\android\default\env.cfg 的以下内容

boot_normal=fatload nand 0 43000000 script.bin;boota 40007800

这样就可以不用每次都去设置uboot的环境变量了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  全志a20