admin管理员组

文章数量:1794759

flash

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