GVKun编程网logo

MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程(mtk sp_flash_tool)

2

在这里,我们将给大家分享关于MTKFlashtool/SmartPhoneFlashTool/flash_tool使用教程的知识,让您更了解mtksp_flash_tool的本质,同时也会涉及到如何更

在这里,我们将给大家分享关于MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程的知识,让您更了解mtk sp_flash_tool的本质,同时也会涉及到如何更有效地"MtkWriteTool.exe Flash tool.exe应用程序正常初始化(0xc0150002)失败请单击“确定”,终止应用程序"解决方案、ACTIONSCRIPT,AS3,MXML,FLEX,FLEX BUILDER,FLASH BUILDER,FLASH,AIR,FLASH PLAYER之关系、CFI Flash, JEDEC Flash ,Parellel Flash, SPI Flash, Nand Flash,Nor Flash的区别和联系、DB Smart Flash Cache in Oracle 11g的内容。

本文目录一览:

MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程(mtk sp_flash_tool)

MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程(mtk sp_flash_tool)

MTK Flashtool / Smart Phone Flash Tool / flash_tool 其实这三个工具是一个

"MtkWriteTool.exe Flash tool.exe应用程序正常初始化(0xc0150002)失败请单击“确定”,终止应用程序"解决方案

声明一下我的电脑是windows xp系统,今天使用mtk烧机工具等时出现MtkWritetool.exe 应用程序正常初始化(0xc0150002)失败。请单击“确定”,终止应用程序。这样的错误,百思不得其解,还以为是电脑中毒了呢?后来百度才知道 flash_tool.exe等mtk工具初始化失败,是因为flash_tool等工具是用visual c++语言写的,只所以会初始化失败是因为没有visual c++程序所需要的库文件,解决这个问题实际很简单,只需要下载个运行库文件就行了!

库文件的下载地址如下:

http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=29

ACTIONSCRIPT,AS3,MXML,FLEX,FLEX BUILDER,FLASH BUILDER,FLASH,AIR,FLASH PLAYER之关系

ACTIONSCRIPT,AS3,MXML,FLEX,FLEX BUILDER,FLASH BUILDER,FLASH,AIR,FLASH PLAYER之关系

  • 原文链接:http://zengrong.net/post/1295.htm

ActionScript

ActionScript通常简称为AS,它是Flash平台的语言。AS编写的程序,最终可以编译成SWF、SWC。SWF就是我们常说的Flash动画。但是现在SWF已经不仅仅是动画,而是RIA的载体。

ActionScript有3个版本,分别是1.0版(AS1),2.0版(AS2)和3.0版(AS3)。只有Flash Player 9及以上播放器才支持AS3编译的SWF。这三个版本的差别非常大,现在最流行的版本是AS3。

Flex与MXML

因为在开发RIA的时候,需要很多常用的功能,例如控件(Button,ComboBox,List……)、布局(VGroup、VBox……)等等…… Adobe就开发了一套官方的框架集来实现这些功能,这套框架集就叫做Flex。

为了方便程序员快速编写RIA程序界面,Adobe又实现了一种基于XML语法的语言MXML,这套语言很像HTML,可以与AS混用,MXML最终也是编译成SWF或SWC。 Flex框架就是使用AS3与MXML两种语言写成的。但说白了,MXML 外加实现了MXML语法,如果你有兴趣,也可以自己实现这些。 Flash和Flex,都是用AS编写,使用swf体现。

Flash

现在Adobe已经将Flash其定义为一个平台(Flash Plantform),包括了Flash IDE、Flash Builder、AIR、Flash Player以及更多。但我们一般讲Flash,有两个意思,一个是指Flash动画(也就是网页上扩展名为swf的动画),另一个就是Flash IDE。

Flash(IDE)从4.0开始进入中国,前期一直在网页动画方面告诉发展,多被用来做网页小广告(让你cpu100%的罪魁祸首之一)和MV(showgood三国系列、小小系列、大学自习室……曾经风靡一时啊)。那时的“闪客”,主要是做动画,即使涉及到编程,也大多是用当时的AS1.0(后来Flash MX 2004升级为AS2.0)写一点stop、gotoAndplay之类的东东了。Flash(IDE)发展到8.0版本以后,才开始大量用于编程,当时比较流行的就是“Flash留言本”等等。相关历史我做了一张图来表示,括号里的数字是年份。

FlashIDE发展史

Flash Builder/Flex Builder

AS发展到3.0之后,由于其语法和JAVA比较像,再加上增强的性能与强类型,可以完全脱离FLA文件,使用纯文本编码,受到了许多其他程序员(尤其是JAVA程序员)的青睐。由此得以高速发展,用AS开发程序的人也越来越多。AS在视频网站、游戏行业发展迅速。但是,Flash IDE虽然是一个很好的动画制作工具,却不是一个好的开发工具。于是,Adobe又发布了Flex Builder,一个基于Eclipse的IDE,并发布了Flex SDK,后来又开源了。

有了免费的编译器,Flex得以快速发展。用Flex Builder也可以开发纯AS项目(即所有的文件都是as文件,不包含MXML,也不包含FLA)。一个真正的程序猿,应该更愿意使用这种方式吧?Flex Builder从4.0开始,被Adobe改名为Flash Builder。

Flash Builder和Flash IDE不应该放在一起比较,它们不是一类软件。如果一定要比较一下的话,那么就是Flash IDE比较偏重于设计一点,用它做动画比较方便,当然也可以用它编写AS3程序。用Flash IDE编写的程序,会有一个FLA源文件,可能还包含多个as文件。Flash Builder偏重于程序,用它可以开发MXML(也就是Flex)项目。也可以用它编写纯AS项目。用Flash Builder编写的项目,都是纯文本文件(.as或者.mxml)。 对于程序流,当然偏爱Flash Builder,而设计流比较偏爱Flash IDE。

当然,IDE并非只有Adobe官方的东西,Flash Develop就是个免费的IDE。如果你愿意,用记事本做编辑器也没什么不好(比如说zrong就正在尝试VIM),因为SDK和编译器都是免费的。

Flash Player

swf动画需要在网页上显示出来,就需要安装Flash Player。Flash Player的不同版本,其实与Flash IDE也有一定的对应关系(从上图也能看出来)。但到了AS3时代后,这个对应关系就不那么明显了。Flash Player 9是能支持AS3 的最低版本(其实前面还有一个Flash Player 8.5,只是没普及就升级到9了),后面的Flash Player 都能支持AS3了。关于Flash Player,我写过一篇有史以来关于Flash Player的最详细说明,看这个就很清楚了。

AIR

Flash Player 再强大,也是运行在浏览器中,受浏览器约束。为了摆脱浏览器,Adobe又出奇招,发布了AIR。AIR其实就是一个Runtime,你可以把它理解成JVM。有了AIR,就可以用AS3开发桌面软件,而且开发出的软件可跨平台运行(这和JAVA的一次编译,随处运行不是如出一辙么!)。目前国内的AIR应用主要集中在网站的客户端方面,例如新浪微博AIR客户端等。

SWF SWC SWZ

SWF
swf是我们见到的最多的Flash平台文件了。是的,它就是Flash平台的最终表现形式。前面说到了,无论是Flex、Flash还是纯AS3,最终编译出来的文件都是swf格式,浏览器中的Flash Player插件和独立的Flash Player,也只能“打开”swf文件进行播放。前面说到的AIR,它的本质也就是运行时+swf而已。

其实并非所有的swf都能直接播放的。swf有3种:

  1. 程序SWF(application swf):可以直接在flash player中运行的swf;
  2. 库SWF(library swf):swc文件中的library.swf;
  3. 模块SWF(module swf):Flex Module产生的swf文件。

最终用户碰到的绝大多数都是“程序SWF”,而程序猿们碰到后面两种SWF的可能性就比较大。

SWC

SWC是一种库文件,通常用来发布非开源的类。程序猿们将源码编译成SWC文件,并发布api文档,我们就可以使用这些SWC提供的类库进行自己的开发。SWC并不是运行时共享的,而是在编译的时候直接加入了程序SWF中。最终的程序SWF可以脱离SWC运行。

SWC本质就是一个zip文档,其中包含一个library.swf文件和一个用于描述的xml文件,你可以用zip管理器打开它查看。

SWZ

你可能会发现,从TLF出现以来,Flex SDK中多了一个flashx包,这个包中的功能,就是用SWZ实现的。SWZ是在运行时共享的库,你可以将其看作一个可以放在外部的SWC。而且SWZ的共享是平台级别的(Moudle SWF的共享是浏览器级别),存在于操作系统缓存中(Module SWF的存在浏览器缓存),只要下载过一次SWZ,你的操作系统中所有用到这些SWZ中的地方(无论是IE、FF、Chrome还是AIR)都不用重新下载。

对于程序猿,这里的关于SWC和SWZ的信息肯定是不够的,所以建议看一下smithfox的swf swc swz RSLs ant,本文的这个部分也是参照它写成的。

全文完


关联文章

  1. [转]Flash Builder 4中构建纯ActionScript书写的AIR项目
  2. Flash Professional 载入资源文件方法考">[转]Flash/Flex Builder <-> Flash Professional 载入资源文件方法考
  3. Flex Builder 3 b3编译的swf文件为什么那么大?
  4. 《ActionScript 3.0 Cookbook》读书笔记1.2-关于trace()
  5. Flash Builder 4 For Linux

CFI Flash, JEDEC Flash ,Parellel Flash, SPI Flash, Nand Flash,Nor Flash的区别和联系

CFI Flash, JEDEC Flash ,Parellel Flash, SPI Flash, Nand Flash,Nor Flash的区别和联系

CFI Flash, JEDEC Flash ,Parellel Flash,SPI Flash, Nand Flash,nor Flash的区别和联系

简单说就是,Flash,按照内部访问接口不同,分为两种,
一种是就像访问SDRAM一样,按照数据/地址总线直接访问的nor Flash,
另一种是只有8位(X8)/16位(X16)或者更多(X32/…)位宽的总线,每次访问,都要将长地址分成几部分,
一点点的分别传入才能访问的Nand Flash。
Nand和nor的使用寿命,块擦除的速度,数据存储的出错几率等,都有很大区别。

而其中的nor Flash,根据外部接口分,又有普通的接口和SPI接口。
而普通接口的nor Flash,多数支持CFI接口,所以,一般也叫做CFI接口。
CFI接口,相对于串口的SPI来说,也被称为parallel接口,并行接口;
另外,CFI接口是JEDEC定义的,所以,有的又成CFI接口为JEDEC接口。
所以,可以简单理解为:对于nor Flash来说,CFI接口=JEDEC接口=Parallel接口

所以,可以简单理解为:对于nor Flash来说,CFI接口JEDEC接口Parallel接口
关于CFI接口的详细信息去看:
Flash Memory: NAND,EEPROM,NVRAM and others [ZT] 
http://hi.baidu.com/serial_story/blog/item/95f14cf09e1b00a6a50f5260.html

普通的parallel/CFI/JEDEC接口的的nor Flash的针脚比较多,芯片比较大,比如:

而SPI是比较常见的接口,就不多说了。
之所有会有SPI接口的,主要是相对CFI/Parallel的nor,可以减少针脚数目,
减少芯片封装大小,采用了SPI后的nor Flash,针脚只有8个,例如:

DB Smart Flash Cache in Oracle 11g

DB Smart Flash Cache in Oracle 11g

http://dbaora.com/db-smart-flash-cache-in-oracle-11g/


In case you don’t have budget to buy Exadata you can still buy huge number of flash disks and put on them part of your database. But what should be stored on flash disks(very fast) and what on magnetic disks(very slow) ?

It’s not your businesses to kNow let decide database 

:)

Introduction

DB Smart Flash Cache is new extension for buffer cache area. This extra area should be defined on solid state disks (SSD) and has following features:

  • make performance improvements at moderate cost(cheaper than DRAM)

  • low latency compared to magnetic disks

  • higher throughput compared to magnetic disks

  • easy to setup

  • easy to control

  • can be used for RAC cache fusion keeps consistency

  • direct I/O bypasses buffer cache so as well bypasses DB smart flash cache

  • can cache only clean blocks from buffer cache

  • flash cache is not auto-tuned

  • only blocks from standard buffer pool are cached in DB smart flash cache

Oracle recommends:

  • flash disks should have comparable read IOPs and IOPs write

  • this new layer should be at least 2-10 times bigger than buffer cache in DRAM

  • mainly for OLTP systems

Architecture

jpg1


if a oracle server process needs to read a block from database at first it must read it from magnetic disk(physical read). Then the block is stored in buffer cache memory and added to standard “LRU chain” list.

When “in memory buffers area” is getting full Oracle must decide which blocks needs to be removed from cache. If you have DB Smart Flash Cache enabled “clean” blocks are written to “Flash cache” by DBWR process so next time they can be read into memory from Flash Cache and improve your performance.

NOTE: “Dirty” blocks are never stored in Flash Cache

List of blocks cached in DB smart flash cache are stored in buffer cache area on two dedicated flash “LRU lists” depending on object attribute FLASH_CACHE:

  • DEFAULT � standard last recently used algorithm decides how long such blocks are cached in flash cache. It’s default value assigned to each object in database.

  • KEEP � such blocks are not removed from flash cache as long as the flash cache is large enough

alter|create table|index objectname 
storage 
(
   buffer_pool { keep | recycle | default }
   flash_cache { keep | none    | default }
);

NONE value for FLASH_CACHE is blocking flash caching for a given object.

Statistics

All I/O operations from DB smart flash cache are counted as physical I/O however Oracle also collects such informations in new columns.

V$sql - OPTIMIZED_PHY_READ_REQUESTS
V$sqlAREA - OPTIMIZED_PHY_READ_REQUESTS
V$FILESTAT - OPTIMIZED_PHYBLKRD
select name from v$statname where name like ''physical%optimized%'';

NAME                                                           
----------------------------------------------------------------
physical read requests optimized                                 
physical read total bytes optimized

You can see such stats in V$SEsstAT and V$SYsstAT

Setup

Two parameters must be set on database level to turn on DB smart flash cache:

  • DB_FLASH_CACHE_FILE � defines (OS disk path or ASM disk group) and file name to store this data

  • DB_FLASH_CACHE_SIZE � defines size of the flash cache

DB_FLASH_CACHE_FILE=''/os path/flash_cache_file.dbf''
DB_FLASH_CACHE_FILE=''+FLASH_disK_GROUP/flash_cache_file.dbf''
DB_FLASH_CACHE_SIZE=200m

After setting both parameters you need to restart database.

DB_FLASH_CACHE_FILE

  • can’t be shared between many databases or instances

DB_FLASH_CACHE_SIZE

  • can’t be dynamically resized

  •  can be set to 0 to disable DB smart flash cache

  • can be set to original size to re-enable DB smart flash cache

Performance improvements

Oracle conducted interesting test for a OLTP database 70GB size with 8GB SGA. From below picture you can see improvements for Transactions versus size of DB smart cache size.

jpg2

Following picture shows improvement in transaction response time versus DB smart cache size

jpg3


Example

I simulate SSD disk by creation ramdisk � disk based in memory using following steps:

1. create directory to mount ramdisk and change owner to oracle and group dba

[root@oel5 /]mkdir /ramdisk
[root@oel5 /]chown oracle:dba -R /ramdisk

2. mount ramdisk and check it

[root@oel5 /]# mount -t tmpfs none /ramdisk -o size=256m
[root@oel5 /]# mount | grep ramdisk
none on /ramdisk type tmpfs (rw,size=256m)

3. set parameters for database and restart it as user oracle

sql> alter system set db_flash_cache_file=''/ramdisk/ram.dbf'' 
sql> scope=spfile;

System altered.

sql> alter system set db_flash_cache_size=200M scope=spfile;

System altered.

sql> startup force
ORACLE instance started.

Total System Global Area  835104768 bytes
Fixed Size                  2232960 bytes
Variable Size             507514240 bytes
Database Buffers          322961408 bytes
Redo Buffers                2396160 bytes
Database mounted.
Database opened.
sql> show parameter flash_cache

NAME                    TYPE        VALUE
----------------------- ----------- ------------------------------
db_flash_cache_file     string      /ramdisk/ram.dbf
db_flash_cache_size     big integer 200M

4. Check new file exists in /ramdisk

[root@oel5 ramdisk]# ll
total 8
-rw-r----- 1 oracle asmadmin 209715200 Feb 24 22:54 ram.dbf

5. Let’s create tables with flash_cache keep reference in storage clause so Oracle will try to keep the blocks in DB smart cache as long as possible.

create table test_tbl1
(id number, id1 number, 
 id2 number) 
storage(flash_cache keep);

begin
  for i in 1..1000000
  loop
    insert into test_tbl1 values(i, i, i);
  end loop;
  commit;
end;
/

6. Eventually after some time you can see some data in flash cache � v$bh view.

select status, count(*) from v$bh
group by status;

STATUS       COUNT(*)
---------- ----------
xcur            36915 
flashcur        25583 
cr                 13

7. If you clean buffer cache as well db smart flash cache is purged

alter system flush buffer_cache;
system FLUSH altered.

STATUS       COUNT(*)
---------- ----------
xcur              520 
free            36411

Have a fun 

:)

Tomasz

我们今天的关于MTK Flashtool / Smart Phone Flash Tool / flash_tool 使用教程mtk sp_flash_tool的分享就到这里,谢谢您的阅读,如果想了解更多关于"MtkWriteTool.exe Flash tool.exe应用程序正常初始化(0xc0150002)失败请单击“确定”,终止应用程序"解决方案、ACTIONSCRIPT,AS3,MXML,FLEX,FLEX BUILDER,FLASH BUILDER,FLASH,AIR,FLASH PLAYER之关系、CFI Flash, JEDEC Flash ,Parellel Flash, SPI Flash, Nand Flash,Nor Flash的区别和联系、DB Smart Flash Cache in Oracle 11g的相关信息,可以在本站进行搜索。

本文标签: