Mstar-root-boot-量产说明培训讲学

上传人:go****e 文档编号:137405517 上传时间:2020-07-08 格式:DOC 页数:8 大小:759KB
返回 下载 相关 举报
Mstar-root-boot-量产说明培训讲学_第1页
第1页 / 共8页
Mstar-root-boot-量产说明培训讲学_第2页
第2页 / 共8页
Mstar-root-boot-量产说明培训讲学_第3页
第3页 / 共8页
Mstar-root-boot-量产说明培训讲学_第4页
第4页 / 共8页
Mstar-root-boot-量产说明培训讲学_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《Mstar-root-boot-量产说明培训讲学》由会员分享,可在线阅读,更多相关《Mstar-root-boot-量产说明培训讲学(8页珍藏版)》请在金锄头文库上搜索。

1、Mstar-root-boot-量产说明精品文档ROM_boot量产方法说明版本V1.1收集于网络,如有侵权请联系管理员删除 2020 MStar Semiconductor, Inc. All rights reserved.MStar Semiconductor makes no representations or warranties including, for example but not limited to, warranties of merchantability, fitness for a particular purpose, infringement of any

2、 intellectual property right or the accuracy or completeness of this document, and reserves the right to make changes without further notice to any products herein to improve reliability, function or design. No responsibility is assumed by MStar Semiconductor arising out of the application or user o

3、f any product or circuit described herein; neither does it convey any license under its patent rights, nor the rights of others.MStar is a trademark of MStar Semiconductor, Inc. Other trademarks or names herein are only for identification purposes only and owned by their respective owners.REVISION H

4、ISTORYRevision No.DescriptionDateV1.0 Initial release10/17/2013V1.1 增加烧录器的ECSD设定10/24/2013TABLE OF CONTENTSRom_boot量产方法说明1版本V1.111.用母片复制的方法11.1.简介11.2.烧录boot1区11.3.烧录user区11.3.1. 从母片dump user区数据11.3.2. 替换emmc.bin里的MBOOT分区数据21.3.3. 用烧录器烧写user区22.用Emmcnize打包镜像的方法32.1.简介32.2.烧写boot1区32.3.烧写user区32.2.1.

5、 生成mpool.bin32.2.2. 用Emmcnize打包镜像42.2.3. 用烧录器烧写user区5LIST OF TABLESTable 1: Table Title3LIST OF FIGURESFigure 1: Figure Name31. 用母片复制的方法1.1. 简介母片复制,即把母片emmc flash 里的数据dump出来,再用烧录器把dump出来的数据烧到空的emmc flash里。 从而实现emmc flash的复制。GTV使用了emmc flash里的boot1区和user区。所以烧录emmc flash的时候,需要分别烧录这2个区。烧写时,需要设置烧录器的exte

6、nded CSD register:1 烧写boot1区时,需要设置 ECSD 179=0x49, ECSD 177=0x0a2 烧写user区时 ,需要设置 ECSD 179 = 0x481.2. 烧录boot1区boot1区里存放的是rom_emmc_boot.bin。由于rom_emmc_boot.bin里的hash0可能会被efuse里的unique key加密,所以需要直接烧录原始的rom_emmc_boot.bin到boot1区。1.3. 烧录user区1.3.1. 从母片dump user区数据 烧录user区,需要在mboot 命令行里把母片 emmc flash里的数据dum

7、p到U盘里。由于FAT 4G文件大小的限制,所以这里分2种情况介绍emmc.bin的生成。1. 总容量小于4G 的emmc flash 步骤1) 确定U盘的利用的port number插上U盘(格式化为FAT32格式,容量应不小于EMMC总容量)后,用命令确定USB port#usb start port number比如确认是否插在port 1, 输入#usb start 1如果打印发现设备,则当前确用port 1。2) 使用emmcbin命令将EMMC中数据复制到U盘文件中。#emmcbin port number比如上面使用port 1, 输入#emmcbin 1等待进度条完成并提示du

8、mp完成后,会在U盘下生成一个名为emmc.bin, 大小跟EMMC容量一致的文件(emmc容量可通过mmc size命令查询)。2. 总容量大于4G 的emmc flash 步骤1) 插上U盘(格式化为FAT32格式,容量应不小于EMMC总容量)后,如果不确定插哪个usb port,可以先用#usb start port number命令确认,比如确认是否插在port 1, 输入#usb start 1如果打印发现设备则当前确用port 1。2) 使用 mmc dd 命令将EMMC数据复制到U盘中。#mmc dd mmc2usb port number比如上面使用port 1, 输入#mmc

9、 dd mmc2usb 1等待复制完成(提示100%)后,记住dump下来的总大小(block数),其实也就是EMMC总容量,会在打印的最后一行给出来:Dump Block: XXX3) 在PC上使用winhex将u盘中刚dump的数据复制到文件中。选择Tools-Disk tools-Clone disk。Souce选U盘,Destination选择新创建目标文件目录。Start sector填0,即从U盘开始处读数据,注意这里的Number of sectors to copy需要填2)中“Dump Block:”后跟的大小,然后点OK等待制作完成。注:参考rui.wang写的Emmc_M

10、LC_bin制作方法.doc1.3.2. 替换emmc.bin里的MBOOT分区数据从母片dump出来的emmc.bin里MBOOT分区数据,实质是mboot.bin。但是mboot.bin里的CustomerKeyBank被母片对应的efuse里unique key加密了,所以需要把emmc.bin里MBOOT分区的数据还原为原始的mboot.bin。 在linux下用程序mbootnize处理即可: #./mbootnize mboot.bin emmc.bin new_emmc.bin 参数说明: mboot.bin: 原始的mboot.bin。 emmc.bin: 从母片里dump出来的数据。 new_emmc.bin: 替换MBOOT分区数据后的emmc.bin。 1.3.3. 用烧录器烧写user区用烧录器把生成的new_emmc.bin烧到user区即可。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 幼儿/小学教育 > 其它小学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号