|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HiRegBin User Guide
|
||
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
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: |
|
Email: |
Purpose
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 Software development engineers
l Hardware development engineers
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol |
Description |
|
Alerts you to a high risk hazard that could, if not avoided, result in serious injury or death. |
|
Alerts you to a medium or low risk hazard that could, if not avoided, result in moderate or minor injury. |
|
Alerts you to a potentially hazardous situation that could, if not avoided, result in equipment damage, data loss, performance deterioration, or unanticipated results. |
|
Provides a tip that may help you solve a problem or save time. |
|
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.
1.1 Introduction to the HiRegBin
2.3 Pin Reuse Setting Tab Page
2.4.2 Import Reg/Import Cfg/Import Fastboot
2.6 Replacing the Reg File in Fastboot
Figures
Figure 1-1 Starting the HiRegBin
Figure 2-2 Base Setting tab page
Figure 2-3 Pin Reuse Setting tab page
Figure 2-4 Selecting a demo type
Figure 2-5 Clicking Import Demo
Figure 2-6 Importing a Reg file
Figure 2-7 Adding and modifying the customer table name
Figure 2-8 Modifying information on the Base Setting tab page
Figure 2-9 Modifying information on the Pin Reuse Setting tab page
Figure 2-10 Message indicating that the file is created successfully
Figure 2-11 Adding and changing the customer table name
Figure 2-12 Modifying information on the Base Setting tab page
Figure 2-13 Modifying information on the Pin Reuse Setting tab page
Figure 2-14 Message indicating that the Reg file of Fastboot is replaced successfully
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.
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
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
The functions of each area are described as follows:
l Demo board selection area
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
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).
The Base Setting tab page consists of four panes, as shown in Figure 2-2:
l Security Setting
l Frequency Setting
l DDR Information
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.
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
Figure 2-3 Pin Reuse Setting tab page
The functions are described as follows:
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
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
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.
Figure 2-6 Importing a Reg 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
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
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
Figure 2-12 Modifying information on the Base Setting tab page
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