`

fastboot mmc及sf,nand使用

阅读更多
fastboot# mmc
mmc - MMC sub system

Usage:
mmc read <device num> addr blk# cnt
mmc write <device num> addr blk# cnt
mmc write.ext4sp <device num> addr blk# cnt
mmc bootread <device num> addr blk# cnt
mmc bootwrite <device num> addr blk# cnt
mmc rescan <device num>
mmc list - lists available devices
mmc bootmoderead <device num> addr size
mmc reg <device num>

fastboot# mmcinfo
Device: XXXXXXX
Manufacturer ID: 11
OEM: 100
Name: 004G9 
Tran Speed: 25000000
Rd Block Len: 512
MMC version 4.0
High Capacity: Yes
Capacity: 3959422976
Bus Width: 8-bit

 通过mmcinfo可以看到mmc的block size(Rd Block Len: 512 bytes)

 

mmc具体参数的获取与计算:

  • <device num> 通过mmc list进行查看
  • addr :内存的绝对线性地址以byte为单位
  • blk# : device-num设备的第blk#块,由于长度按线性计算,可以根据长度进行计算。pre-size-in-bytes / 512
  • cnt: 进行数据传输的块量
mmc read <device num> addr blk# cnt
     |       |          |   |    |
     `-------+----------|---|----|-- disk2mem 从device-num中读取 blk# * 512 <-----> (blk# + cnt)*512 的数据到内存(地址以addr开头)中
             |          |   |    |
             `----------|---|----|-- mmc list
                        |   |    |
                        `---|----|-- memory start address
                            |    |
                            `----|-- disk start block
                                 |
                                 `-- length-block: cnt

mmc write <device num> addr blk# cnt
     |       |          |   |    |
     `-------+----------|---|----|-- mem2disk 从内存(地址以addr开头)中读取cnt*512 byts 写入device-num中(from: blk# * 512)
             |          |   |    |
             `----------|---|----|-- mmc list
                        |   |    |
                        `---|----|-- memory start address
                            |    |
                            `----|-- disk start block
                                 |
                                 `-- length-block: cnt

mmc write.ext4sp <device num> addr blk# cnt
     |       |          |   |    |
     `-------+----------|---|----|-- mem2disk 从内存(地址以addr开头)中读取cnt*512 byts 写入device-num中(from: blk# * 512)
             |          |   |    |
             `----------|---|----|-- mmc list
                        |   |    |
                        `---|----|-- memory start address
                            |    |
                            `----|-- disk start block
                                 |
                                 `-- length-partition-block: cnt

 http://gist.github.com/qianjigui/7150077

 

以上这些命令都是用于nand烧写存储器的。

与此相关的还有sf,nand。这些命令在使用上与mmc相似,主要的不同是不需要按block进行单位換算。

 

最近见到的一些设备,需要先前存储区全0xff置位,再进行烧写。

 

 

分享到:
评论

相关推荐

    fastboot工具及使用方法

    提供windows版fastboot工具,同时文档介绍fastboot的使用方法。

    Fastboot 配置使用指南

    本文档主要介绍 Fastboot 表格的使用方法,如何配置,方便客户使用。此文档适用于 海思 Linux SDK 平台和 Android SDK 平台。

    linux ubuntu fastboot 下载

    linux ubuntu fastboot 下载 方法1: GSI Flashing Procedure For Android-Q Fresh Launch Build(DP Enabled): Flash META Change directory to Apps path Flash below Apps and GSI image. Apps Build flashing ...

    arm平台可以使用的fastboot

    在arm 平台上可以运行的fastboot工具

    adb-fastboot刷机工具包

    重启到fastboot模式 adb reboot recouery 重启到recovery模式 fastboot常用命令: fastboot devices 列出fas tboot设备 fastboot reboot 重启设备 fastboot reboot - boo t 1 oader 重启到fastboot模式 fas tboot ...

    fastboot-解锁使用说明

    使用fastboot reboot命令 连接手机和PC机:使用USB线连接手机和电脑,依次点击开始菜单--运行cmd进入dos系统,进入ADB安装目录,确认手机与电脑连接正常,确认方法为在命令行窗口输入fastboot devices,可以看到...

    Linux fastboot.使用教程

    Linux fastboot.使用教程 详细描述 Linux fastboot的使用方法

    fastboot 备份

    fastboot备份

    Kindle用的fastboot.exe

    这是kindle上用的fastboot工具,和手机上使用的不同。安装好驱动之后,使用ttl串口连接Kindle之后,进入uboot,输入命令bist,再输入fastboot就可以让kindle进入fastboot模式,然后使用此工具刷写kindle各分区。

    Fastboot工具包

    本款fastboot工具包含fastboot驱动及recovery.img,fastboot是成功刷入recovery利器。检测fastboot连接成功的指令是,cmd来到fastboot目录下,执行“fastboot devices”如出现“? fastboot”则证明安装成功,如没有...

    Fastboot工具使用说明

    本文档主要介绍 fastboot烧写工具的使用方法,适用于一键烧写所有程序镜像到单板flash 上的场景、单板已有 bootrom可按地址烧写其他程序镜像到单板 flash 上的场景以及在空板上只烧写 boot到单板 flash上的场景。

    fastboot驱动

    fastboot驱动,手动安装版本fastboot驱动是不需要安装的,下载fastboot程序即可 fastboot,英语翻译意思是快速启动。在安卓手机中fastboot是一种比recovery更底层的刷机模式。就是使用USB数据线连接手机的一种刷机...

    adb及fastboot工具包

    adb及fastboot工具包 用于调试手机adb及fastboot

    fastboot 工具

    本款fastboot工具包含fastboot驱动及recovery.img,fastboot是成功刷入recovery利器。检测fastboot连接成功的指令是,cmd来到fastboot目录下,执行“fastboot devices”如出现“? fastboot”则证明安装成功,如没有...

    adb fastboot 工具

    adb fastboot 工具

    fastboot_edl.exe

    fastboot_edl.exe

    FastBoot是一个非常火的java框架 , FastBoot Flutter,FastBoot APP 源码

    FastBoot这个框架在java非常火,后端和前端的技术非常先进,发现缺少一个原生APP,经过一段时间的研究,使用Flutter把FastBoot原生的APP做出来 1)这是自己开发的源码 2)提供几个获取列表、明细的例子,其它完全...

    adb.exe和fastboot.exe的所有版本共十个

    adb.exe和fastboot.exe的所有版本,一共十个版本,含adb驱动。安装版本,自动生成桌面快捷启动。包含以下版本 v1.0.0: Minimal_ADB_and_Fastboot_v1.0.0.zip v1.1.2: Minimal_ADB_and_Fastboot_v1.1.2.zip v1.1.3: ...

Global site tag (gtag.js) - Google Analytics