admin管理员组文章数量:1794759
flash
1:flash_image介绍
也许很少人使用该工具,但flash_image对于调试uboot或者kernel和root相关的人来说用处还是比较大。falsh_image的使用方法:
usage: flash_image type [partition|device] [image_file_path]
type: MTD、EMMC、INAND
partition:根据平台来确定
image_file_path: 准备好的image文件路径
执行如下命令的效果
# flash_image MTD boot /sdcard/external_sdcard/boot.img
2:flash_image编译
#. build/envsetup.sh
# lunch 19
# mmm bootable/recovery/mtdutils/
最终会在你的平台下生成flash_image可执行文件,我的平台是MID30801:
out/target/product/MID30801/system/bin/flash_image
3:源码分析
1)flash_image入口函数
bootable/recovery/mtdutils/flash_image.c里面的main函数就是flash_image整个执行文件的入口函数。
2)
3)
4)
本文标签: flash
版权声明:本文标题:flash 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1693153304a240693.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论