Mstar-ROM - Boot Production Method Description

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

ROM_boot Production Method Description

version V1.1
© 2017 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 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 of 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.
F-3697

GTV Production Method Description

version: V1.1

REVISION HISTORY
Revision No. Description Date

V1.0 • Initial release 10/17/2013

V1.1 • Increase the burner ECSD set up 10/24/2013

Security Level: Confidential A -i- 3/19/17


Copyright © 2017 MStar Semiconductor, Inc. All rights reserved.
F-3697

GTV Production Method Description

version: V1.1

TABLE OF CONTENTS
Rom_boot Production method described .............................................. .................................................. .................................................. ... 1

version V1.1 ............................................... .................................................. .................................................. ..............................1

1. ............................................ method master copy .................................................. .................................................. ........... 1

1.1. About ................................................. .................................................. .................................................. .................... 1

1.2. Burn boot1 Area................................................. .................................................. .................................................. .... 1

1.3. Burn user Area................................................. .................................................. .................................................. ...... 1

1.3.1. From the mother sheet dump user District data ................................................ .................................................. ..................... 1

1.3.2. replace emmc.bin inner MBOOT Partition data ................................................ ................................................. 2

1.3.3. Writing with a burner user Area................................................. .................................................. ........................... 2

2. use Emmcnize Packaged mirror method .............................................. .................................................. ... error! Bookmark not defined.

2.1. About ................................................. .................................................. .................................... error! Bookmark not defined.

2.2. Writing boot1 Area................................................. .................................................. .................... error! Bookmark not defined.

2.3. Writing user Area................................................. .................................................. ...................... error! Bookmark not defined.

2.2.1. generate mpool.bin ............................................... .................................................. ....... error! Bookmark not defined.

2.2.2. use Emmcnize Packaged mirror ................................................ .......................................... error! Bookmark not defined.

2.2.3. Writing with a burner user Area................................................. ........................................... error! Bookmark not defined.

Security Level: Confidential A - ii - 3/19/17


Copyright © 2017 MStar Semiconductor, Inc. All rights reserved.
F-3697

GTV Production Method Description

version: V1.1

LIST OF TABLES
Table 1: {Table Title} ........................................... .................................................. .............................. error! Bookmark not defined.

LIST OF FIGURES
Figure 1: {Figure Name} ........................................... .................................................. ......................... error! Bookmark not defined.

Security Level: Confidential A - iii - 3/19/17


Copyright © 2017 MStar Semiconductor, Inc. All rights reserved.
F-3697

GTV Production Method Description

version: V1.1

1. The method for copying master

1.1. Brief introduction

Master copy, i.e., the master emmc flash The data in dump Out, and then the burner dump Burn out empty data emmc flash in. in order to fulfill emmc

flash Replication.

GTV used emmc flash inner boot1 Area and user Area. So burn emmc flash When the need to burn it, respectively, 2 Districts.

When programming, you need to set the burner extended CSD register:

1 Writing boot1 Time zone, you need to set ECSD 179 = 0x49, ECSD 177 = 0x0a 2 Writing user Time zone,

you need to set ECSD 179 = 0x48

1.2. Burn boot1 Area

boot1 Zone is stored rom_emmc_boot.bin . due to rom_emmc_boot.bin inner hash0 May be efuse inner
unique key Encryption, you need to burn directly from the original rom_emmc_boot.bin To boot1 Area.

1.3. Burn user Area

1.3.1. From the mother sheet dump user District data

Burn user Area, in need mboot Command line, the master emmc flash The data in dump To U Plate. due to FAT 4G File size limit, so here points 2 Case

presentation emmc.bin Generation.

1. Total capacity is less than 4G of emmc flash step

1) determine U Disk utilization port number

Plug in U Disk (formatted as FAT32 Format, the amount should not be less than EMMC After the total volume), determined by the command USB port

# usb start [port number]


For example, make sure plug in port 1, Entry

# usb start 1
If the found printing device, the current determined by port 1.

2) Use emmcbin Command EMMC Copy the data to U Disk file.

# emmcbin [port number]


For example used above port 1, input

# emmcbin 1
Wait for the progress bar to complete and prompt dump When complete, the U Generating a called footwall emmc.bin, Size with EMMC Capacity consistent file ( emmc Capacity

by mmc size Command to query).

2. The total capacity of more than 4G of emmc flash step

1 ) Plug U Disk (formatted as FAT32 Format, the amount should not be less than EMMC The total capacity), the plug if unsure

Which usb port , You can use


# usb start [port number]
Order confirmation, such confirmation is plugged in port 1, Entry

# usb start 1
If the printing apparatus is found with the current determined port 1 .

2 ) Use mmc dd Command EMMC Copy the data to U Intraday.

Security Level: Confidential A -1- 3/19/17


Copyright © 2017 MStar Semiconductor, Inc. All rights reserved.
F-3697

GTV Production Method Description

version: V1.1

# mmc dd mmc2usb [port number]


For example used above port 1, Entry

# mmc dd mmc2usb 1
Wait for replication (tips 100%) After, remember dump Down the total size ( block Number), that is, in fact, EMMC The total capacity will be to come out in the last line of

print:

Dump Block: XXX


3) in PC The use of winhex will u Just intraday dump Copy the data to a file. select Tools-> Disk tools-> Clone disk .

Souce selected U plate, Destination Select the newly created object file directory. Start sector fill 0 , From U At the beginning of the disk to read data, pay attention here Number

of sectors to copy Need to fill 2 )in" Dump Block : "Followed by the size and points OK Waiting finished.

Note: Reference rui.wang written" Emmc_MLC_bin Production Method. doc "

1.3.2. replace emmc.bin inner MBOOT Partition data

From the mother sheet dump from emmc.bin in MBOOT Partition data, in essence, mboot.bin . but mboot.bin inner

CustomerKeyBank Corresponding to the master efuse in unique key Encrypted, so We need to emmc.bin in MBOOT Data partition revert to the original mboot.bin

in linux Under the program mbootnize Treatment can be:

# . / Mbootnize mboot.bin emmc.bin new_emmc.bin


Parameter Description:

mboot.bin: original mboot.bin .


emmc.bin: From the master in dump Out of the data.

new_emmc.bin: replace MBOOT After the partition data emmc.bin .

1.3.3. Writing with a burner user Area

Generated by the burner new_emmc.bin Burn user Area can be.

Security Level: Confidential A -2- 3/19/17


Copyright © 2017 MStar Semiconductor, Inc. All rights reserved.

You might also like