flash_image

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)



  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
<object type="application/x-shockwave-flash" width="230" height="180" id="vcastr3"> <param name="movie" value="bcastr4.swf?xml= <data> <channel> <item> <link>http://hi.baidu.com/hety</link> <image>images/image2.jpg</image> <title>Greater Wild Goose Pagoda,Xi'an,China</title> </item> <item> <link>http://hi.baidu.com/hety</link> <image>images/image3.jpg</image> <title>Terra Cotta Warriors,Xi'an,China</title> </item> <item> <link>http://hi.baidu.com/hety</link> <image>images/image4.jpg</image> <title>The Forest of Steles ,Xi'an,China</title> </item> <item> <link>http://hi.baidu.com/hety</link> <image>images/image5.jpg</image> <title>The Qian Tomb,Xi'an,China</title> </item> </channel> <config> <autoPlayTime>3</autoPlayTime> <roundCorner>10</roundCorner> <changImageMode>hover</changImageMode> <transform>breathe</transform> <isShowBtn>true</isShowBtn> <isShowTitle>true</isShowTitle> <isShowAbout>false</isShowAbout> </config> </data>" /> </object>---------------------------------------------------------------------------------------------------------------------------- 参数说明: channel.item 图片信息,可以设置多张图片 channel.itme.image 图片地址参数,此参数是唯一必须要有的参数,其他参数都有默认参数 channel.itme.link 对应图片的连接 channel.itme.tilte 对应图片的标题 设置 config.roundCorner 图片的圆角 config.autoPlayTime 图片切换时间,默认值是8,单位秒 config.isHeightQuality 图片缩小是否采用高质量的方法,默认值false config.normal 图片的混合模式 config.transDuration 图片在切换过程中的时间,默认值1,单位秒 config.windowOpen 图片连接的打开方式,默认值”_blank”,在新窗口打开,也可以使用”_self”,使用本窗口打开 config.btnSetMargin 按钮的位置,文字的位置,用了css的margin概念,默认值”auto 5 5 auto”,四个数值代表 上 右 下 左 相对于播放器的距离,四个数值用空格分开,不需具体数值用”auto”填写 ,比如左上对齐并都有10像素的距离可以写 “10 auto auto 10″, 右下角对齐是”auto 10 10 auto” config.btnDistance 每个按钮的距离,默认值20 config.titleBgColor 标题背景的颜色,默认0xff6600 config.titleTextColor 标题文字的颜色,默认0xffffff config.titleBgAlpha 标题背景的透明度,默认0.75 config.titleFont 标题文字的字体,默认值”微软雅黑” config.titleMoveDuration 标题背景动画的时间,默认值1,单位秒 config.btnAlpha 按钮的透明度,默认值0.7 config.btnTextColor 按钮文字的颜色,默认值0xffffff config.btnDefaultColor 按钮的默认颜色,默认值0×1B3433 config.btnHoverColor 按钮的默认颜色,默认值0xff9900 config.btnFocusColor 按钮当前颜色,默认值0xff6600 config.changImageMode 切换图片的方法,默认值”click”,点击切换图片,还可以使用”hover”,鼠标悬停就切换图片 config.isShowBtn 是否显示按钮,默认值”true” config.isShowTitle 是否显示标题,默认值”true” config.scaleMode 图片放缩模式: 默认值是”noBorder” “showAll”: 可以看到全部图片,保持比例,可能上下或者左右 “exactFil”: 放缩图片到舞台的尺寸,可能比例失调 “noScale”: 图片的原始尺寸,无放缩 “noBorder”: 图片充满播放器,保持比例,可能会被裁剪 config.transform 图片放缩模式: 默认值是”alpha” “alpha”: 透明度淡入淡出 “blur”: 模糊淡入淡出 “left”: 左方图片滚动 “right”: 右方图片滚动 “top”: 上方图片滚动 “bottom”: 下方图片滚动 “breathe”: 有一点点地放缩的淡入淡出 “breatheBlur”: 有一点点地放缩的模糊淡入淡出,本页的例子就是这个 config.isShowAbout 是否显示关于信息,默认值”true”

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值