HiRegBin

User Guide

 

 

Issue

00B03

Date

2015-04-30

 

 

 


 

Copyright © HiSilicon Technologies Co., Ltd. 2015. All rights reserved.

No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of HiSilicon Technologies Co., Ltd.

 

Trademarks and Permissions

HI_logo, hisilicon, and other HiSilicon icons are trademarks of HiSilicon Technologies Co., Ltd.

All other trademarks and trade names mentioned in this document are the property of their respective holders.

 

Notice

The purchased products, services and features are stipulated by the contract made between HiSilicon and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied.

 

 

 

 

 

 

 

 

 

 

 

HiSilicon Technologies Co., Ltd.

Address:

Huawei Industrial Base

Bantian, Longgang

Shenzhen 518129

People's Republic of China

Website:

http://www.hisilicon.com

Email:

support@hisilicon.com

 

 


About This Document

Purpose

This document describes the usage of the HiRegBin, including viewing and modifying board hardware configurations and registers, creating the Reg file required by the Fastboot and Cfg file for the advanced CA solution, and importing and replacing the Reg file in Fastboot.

Related Version

The following table lists the product version related to this document.

Product Name

Version

Hi3716M

V31X

Hi3110E

V5XX

Hi3716M

V41X

Hi3716M

V42X

Hi3798C

VXXX

 

Intended Audience

This document is intended for:

l   Technical support personnel

l   Software development engineers

l   Hardware development engineers

Symbol Conventions

The symbols that may be found in this document are defined as follows.

Symbol

Description

danger

Alerts you to a high risk hazard that could, if not avoided, result in serious injury or death.

wanning

Alerts you to a medium or low risk hazard that could, if not avoided, result in moderate or minor injury.

caution

Alerts you to a potentially hazardous situation that could, if not avoided, result in equipment damage, data loss, performance deterioration, or unanticipated results.

tip

Provides a tip that may help you solve a problem or save time.

note

Provides additional information to emphasize or supplement important points in the main text.

 

Change History

Changes between document issues are cumulative. Therefore, the latest document issue contains all changes made in previous issues.

Issue 00B03 (2015-04-30)

This issue is the third draft release, which incorporates the following changes:

Hi3798C V200, Hi3716M V420, and Hi3716M V410 are supported.

Section 1.2 is modified, and all figures are modified.

Issue 00B02 (2015-03-10)

This issue is the second draft release, which incorporates the following changes:

Hi3110E V500 is supported.

Issue 00B01 (2014-12-16)

This issue is the first draft release.

 


Contents

About This Document i

1 Overview.. 1

1.1 Introduction to the HiRegBin. 1

1.2 Environment Preparations. 1

2 GUI and Functions. 3

2.1 Main GUI. 3

2.2 Base Setting Tab Page. 4

2.3 Pin Reuse Setting Tab Page. 5

2.4 Importing Data. 6

2.4.1 Import Demo. 6

2.4.2 Import Reg/Import Cfg/Import Fastboot 7

2.5 Creating a Reg/Cfg File. 8

2.6 Replacing the Reg File in Fastboot 11

 


Figures

Figure 1-1 Starting the HiRegBin. 2

Figure 2-1 Main GUI. 3

Figure 2-2 Base Setting tab page. 5

Figure 2-3 Pin Reuse Setting tab page. 6

Figure 2-4 Selecting a demo type. 6

Figure 2-5 Clicking Import Demo. 7

Figure 2-6 Importing a Reg file. 8

Figure 2-7 Adding and modifying the customer table name. 9

Figure 2-8 Modifying information on the Base Setting tab page. 9

Figure 2-9 Modifying information on the Pin Reuse Setting tab page. 10

Figure 2-10 Message indicating that the file is created successfully. 11

Figure 2-11 Adding and changing the customer table name. 12

Figure 2-12 Modifying information on the Base Setting tab page. 12

Figure 2-13 Modifying information on the Pin Reuse Setting tab page. 13

Figure 2-14 Message indicating that the Reg file of Fastboot is replaced successfully. 14

 


1 Overview

1.1 Introduction to the HiRegBin

The HiRegBin is used to create Reg files and Cfg files. It has the following functions:

l   Creates a Reg file.

l   Creates a Cfg file.

l   Imports demo board configurations.

l   Imports a Reg file.

l   Imports a Cfg file.

l   Imports the Reg file in Fastboot.

l   Replaces the Reg file in Fastboot.

1.2 Environment Preparations

Before using the HiRegBin, perform the following steps:

                               Step 1     Copy HiTool-STB-X.X.X.zip and jre-6u1-windows-i586-p.rar in $SDK_DIR/tools/windows/HiTool to a local hard disk drive on a PC that runs Windows 7 or Windows XP.

Ensure that JRE 1.6 (jre-6u1-windows-i586-p) or later is preinstalled on the PC. Otherwise, the HiTool cannot run properly. You can download JRE 1.6 from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html.

                               Step 2     Decompress HiTool-STB-X.X.X.zip, and double-click HiTool.exe.

                               Step 3     Select a chip (for example, Hi3716M V310) and click HiRegBin, as shown in Figure 1-1.

Figure 1-1 Starting the HiRegBin

 

----End

 


2 GUI and Functions

2.1 Main GUI

The main GUI is divided into five parts, as shown in Figure 2-1:

l   1: demo board selection area

l   2: import area

l   3: customer table information area

l   4: table configuration area

l   5: export area

Figure 2-1 Main GUI

 

The functions of each area are described as follows:

l   Demo board selection area

This area allows you to select the demo board supported by the current chip. Select a demo board from the Demo Type drop-down list. The basic board configuration information is refreshed in Demo Name in the following format: board name_chip name_DDR capacity_DDR bus width_number of PCB layers_DDR frequency_flash type_CA type.

l   Import area

This area provides four import modes:

       Import Demo

       Import Reg

       Import Cfg

       Import Fastboot

After you click one of the four import buttons, data is imported to the editing area, that is, the Base Setting and Pin Reuse Setting tab pages.

l   Customer table information area

This area displays the customer table name and version based on the imported table. It also allows you to customize the table name. The customer table name will be written into the files when the Reg and Cfg files are created.

l   Table configuration area

This area consists of the Base Setting and Pin Reuse Setting tab pages for viewing and modifying imported table information.

l   Export area

This area provides three buttons for:

       Creating a Reg file (Make Reg).

       Creating a Cfg file (Make Cfg).

       Replacing the Reg file in Fastboot to generate the new Fastboot (Replace Fastboot).

2.2 Base Setting Tab Page

The Base Setting tab page consists of four panes, as shown in Figure 2-2:

l   Security Setting

l   Frequency Setting

l   DDR Information

l   Network Setting

Figure 2-2 Base Setting tab page

 

The functions of each pane are described as follows:

l   Security Setting

Specifies the board security type. For an advanced CA chip, select CA; otherwise, select NoCA.

l   Frequency Setting

Specifies the DDR frequency and spread spectrum.

l   DDR Information

Displays information about the DDR on the board, including the DDR type, bus width, number of PCB layers, and capacity.

l   Network Setting

Specifies the MAC ports supported by the board, including the MAC type, PHY address, and the GPIO pin group ID and bit number for pin multiplexing.

2.3 Pin Reuse Setting Tab Page

The Pin Reuse Setting tab page allows you to configure the following items, as shown in Figure 2-3:

l   Boot mode

l   Pin multiplexing registers

l   GPIO

Figure 2-3 Pin Reuse Setting tab page

 

The functions are described as follows:

l   Boot mode

Specifies the boot mode of the board.

l   Pin multiplexing registers

Displays and configures attributes of pin multiplexing registers. If the function is set to GPIO, the current GPIOs are updated to the GPIO configuration list for configuring the GPIO direction and level.

l   GPIO

Displays the list of all GPIO pins selected in the pin multiplexing registers and their directions and levels, and configures the GPIO direction and level.

2.4 Importing Data

2.4.1 Import Demo

To import data from the demo board, perform the following steps:

                               Step 1     Select the type of demo board to be imported from the Demo Type drop-down list, for example, Hi3716M31DMA, as shown in Figure 2-4.

Figure 2-4 Selecting a demo type

 

                               Step 2     Click Import Demo to import the current demo board information to the editing area, as shown in Figure 2-5.

Figure 2-5 Clicking Import Demo

 

----End

2.4.2 Import Reg/Import Cfg/Import Fastboot

The procedures for importing a Reg file, Cfg file, and Fastboot file are similar. The following describes the procedures by taking importing a Reg file as an example.

Click Import Reg, select the Reg file to be imported in the displayed dialog box, and confirm.

After the Reg file is imported successfully, the GUI is automatically updated to display the file information, as shown in Figure 2-6.

Figure 2-6 Importing a Reg file

 

03-caution

The imported Fastboot file for an advanced CA chip must be an unsigned file.

2.5 Creating a Reg/Cfg File

The procedures for creating a Reg file and a Cfg file are similar. If Security Setting is set to CA, the Reg file and Cfg file can be created at the same time; if it is set to NoCA, only the Reg file can be created. The following takes the procedures for creating a Reg file as an example.

                               Step 1     Import the demo board information to the editing area. For details, see section 2.4 "Importing Data."

                               Step 2     (Optional) View and customize the customer table information, as shown in Figure 2-7.

Figure 2-7 Adding and modifying the customer table name

 

                               Step 3     View and modify information on the Base Setting tab page. For example, change the DDR frequency and spread spectrum, as shown in Figure 2-8.

Figure 2-8 Modifying information on the Base Setting tab page

 

                               Step 4     View and modify information on the Pin Reuse Setting tab page. For example, change the boot mode and the function corresponding to the ioshare_reg0 register, as shown in Figure 2-9.

Figure 2-9 Modifying information on the Pin Reuse Setting tab page

 

                               Step 4     Click Make Reg, select a path for saving the file, and confirm. A message is displayed, indicating that the file is created successfully, as shown in Figure 2-10.

Figure 2-10 Message indicating that the file is created successfully

 

----End

2.6 Replacing the Reg File in Fastboot

To replace the Reg file in Fastboot, perform the following steps:

                               Step 1     Import the demo board information to the editing area. For details, see section 2.4 "Importing Data."

                               Step 2     (Optional) View and customize the customer table information, as shown in Figure 2-11.

Figure 2-11 Adding and changing the customer table name

 

                               Step 3     View and modify information on the Base Setting tab page. For example, change the DDR frequency and spread spectrum, as shown in Figure 2-12.

Figure 2-12 Modifying information on the Base Setting tab page

 

                               Step 4     View and modify information on the Pin Reuse Setting tab page. For example, change the boot mode and the function corresponding to the ioshare_reg0 register, as shown in Figure 2-13.

Figure 2-13 Modifying information on the Pin Reuse Setting tab page

 

                               Step 5     Click Replace Fastboot, select the Fastboot with the Reg file to be replaced, and confirm. A message is displayed, showing the file name of the newly generated Fastboot (the path is the previously selected Fastboot path), as shown in Figure 2-14.

Figure 2-14 Message indicating that the Reg file of Fastboot is replaced successfully

 

----End