windows下全志 A20 Android script.fex 调试工具
2017-01-19 17:22
661 查看
最近在做全志A20的Android系统开发,经常需要调试script.fex文件中的参数。
会经常用到sunxi-tools中的几个工具
后来需要在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,修改环境变量
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的环境变量了
会经常用到sunxi-tools中的几个工具
12345678910111213141516 | fexc: `.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. |
连好设备后确保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 |
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的环境变量了
相关文章推荐
- 脚本调试工具 Microsoft Script Debugger
- Android 调试桥(adb)是多种用途的工具,该工具可以帮助你你管理设备或模拟器的状态。 可以
- Android调试工具及方法
- Windows调试工具入门-2 (转)
- Windows调试工具入门-1 (转)
- 脚本调试工具 Microsoft Script Debugger
- 脚本调试工具 Microsoft Script Debugger
- windows调试工具
- Android开发入门(三)之调试工具adb,ddms
- android的调试工具集
- Windows调试工具入门2—基本的调试器配置
- Windows调试工具入门-5(WinDbg内核调试常用命令)
- Windows调试工具入门4 - WinDbg内核调试配置
- Android 调试桥(adb)是多种用途的工具
- Windows调试工具集
- 脚本调试工具 Microsoft Script Debugger
- Windows调试工具入门3—基本调试操作
- Windows调试工具入门-2 设置
- 安装 Windows 32 位版本的调试工具
- Android调试工具及方法