CN101196819B - Method for chip self-adapting start equipment of system on chip - Google Patents

Method for chip self-adapting start equipment of system on chip Download PDF

Info

Publication number
CN101196819B
CN101196819B CN200610157299A CN200610157299A CN101196819B CN 101196819 B CN101196819 B CN 101196819B CN 200610157299 A CN200610157299 A CN 200610157299A CN 200610157299 A CN200610157299 A CN 200610157299A CN 101196819 B CN101196819 B CN 101196819B
Authority
CN
China
Prior art keywords
chip
starting outfit
starting
equipment
identification code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200610157299A
Other languages
Chinese (zh)
Other versions
CN101196819A (en
Inventor
李立华
倪武学
徐怀懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN200610157299A priority Critical patent/CN101196819B/en
Publication of CN101196819A publication Critical patent/CN101196819A/en
Application granted granted Critical
Publication of CN101196819B publication Critical patent/CN101196819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method of a self-adaptive starting equipment of a SOC chip, which comprises the following steps: step A: Positioning inside the SOC chip with a starting equipment marking code, distributing the marking code to the equipment assisting starting of SOC; step B: powering up the system, entering the starting equipment enumeration process, the SOC chip enumerates the starting equipment; step C: matching the obtained marking code of the starting equipment by enumerating the starting equipment with the marking code positioned inside the SOC chip, so as to make sure whether the marking codes are effective; step D: recording equipment with effective marking code; step E: the SOC chip finds the set starting equipment, the system enters the starting process. The invention has the beneficial effects of realizing self-adaption method of various starting equipments without adding any additional circuits, solving the problem of adopted complex hardware circuit for adapting to different starting modes and reducing the hardware cost and SOC cost of the system.

Description

A kind of method of chip self-adapting start equipment of system on chip
[technical field]
The present invention relates generally to a kind of method of starting outfit, especially the method for chip self-adapting start equipment of system on chip.
[background technology]
Current, along with the development of portable product with popularize, increasing portable system begins to adopt on-chip system chip (SOC:system-on-chip) to come the simplified system design, reduces system cost.Be to guarantee the versatility of SOC, SOC need support from USB (universal serial bus) (USB:Universal Serial Bus), with the non-volatile type flash memories of non-type (Nandflash), the non-volatile type flash memories of serial line interface (Serial Flash), universal asynchronous receiver and transmitter (uart) and the non-volatile type flash memories device starts such as (Norflash) of or/no type.Because different application systems need adopt different Starting mode, same system can adopt different Starting mode under different situations, for adapting to different Starting mode, need in The Hardware Design and SOC design, increase complicated circuit to meet the demands.
At present, for supporting various starting outfit, existing SOC implementation method has following two kinds:
Method one: be similar to the Starting mode of PC (personal computer, PC), its system architecture please refer to Fig. 1.The implementation of this method is: at the external generally starting memory device of SOC, this generally starting memory device can be various non-volatile type flash memories (fash) or read-only type storer (ROM:read-only-memory).When system start-up, SOC is reading system log-on message from universal storage device at first, according to system start-up information, determines system obtains remaining log-on data from which kind of equipment, to finish startup.But the realization of method one need increase extra generally starting memory device, has increased system cost, and needs SOC to provide special purpose interface to support the generally starting memory device, has increased the cost expense of SOC; The starting outfit of change system that can't be real-time, the starting outfit of system is determined by the generally starting memory device fully.
Method two: use the external starting outfit base pin selection of SOC to select starting outfit, its system architecture please refer to Fig. 2.The implementation of this method is: when system start-up, select starting outfit according to the combination of external starting outfit base pin selection.But the selection that the realization of method two needs SOC to provide extra pin to be used for starting outfit has increased the cost of SOC; Realize real-time modification starting outfit by designing extra circuit, increased the cost of system.
[summary of the invention]
The object of the present invention is to provide a kind of method of chip self-adapting start equipment of system on chip, this method has reduced the complexity of system cost and system, and can select starting outfit automatically according to the state of system.
In order to solve the problems of the technologies described above, the technical solution used in the present invention comprises a kind of method of chip self-adapting start equipment of system on chip, may further comprise the steps: steps A: built-in one group of starting outfit identification code in on-chip system chip, and described identity assignments is given the equipment of support on-chip system chip startup; Step B: system powers on, and enters the starting outfit enumeration process, and on-chip system chip is enumerated starting outfit; Step C: by enumerating the identification code that starting outfit obtains starting outfit, mate, to determine whether the being effective recognition sign indicating number with one group of starting outfit identification code that on-chip system chip is built-in; Step D: noting identification code is effective starting outfit; Step e: the starting outfit of noting is set, and on-chip system chip finds the starting outfit of setting, and system enters start-up course.
This method also comprises: described steps A further comprises: identification code is made as identical value or identification code is generated as different values according to the algorithm of determining, corresponding different startup priority.
This method also comprises: in described step e, in case the effectively start equipment that on-chip system chip is set to find is the starting outfit of setting, finish enumeration process, enter start-up course.
The technical solution used in the present invention also comprises a kind of method of chip self-adapting start equipment of system on chip, may further comprise the steps: steps A: with on-chip system chip not the general purpose input/output port of usefulness as the starting outfit identification code, identify each starting outfit, and the boot sequence of equipment; Step B: system powers on, and enters the starting outfit enumeration process, and on-chip system chip is enumerated starting outfit; Step C: obtain the starting outfit identification code by enumerating starting outfit, with on-chip system chip not the general purpose input/output port of usefulness mate, to determine whether the being effective recognition sign indicating number; Step D: noting identification code is effective starting outfit; Step e: the starting outfit of noting is set, and on-chip system chip finds the starting outfit of setting, and system enters start-up course.
Adopt technique scheme, in conjunction with the following embodiment that will describe in detail, beneficial technical effects of the present invention is: the present invention utilizes the built-in instruction stream of SOC, remove to enumerate each possible starting outfit, in case find effective starting outfit then stop search, begin to start from effective starting outfit; And the modification of external starting outfit can be identified automatically, thereby modification that can be real-time according to starting outfit, automatically start from appointed equipment, realize the various starting outfits of self-adaptation and do not need to increase the method for any additional circuit, solved problem, reduced the hardware cost and the SOC cost of system for the complicated hardware circuit that adapts to different Starting mode needs employings.
Feature of the present invention and advantage will be elaborated in conjunction with the accompanying drawings by embodiment.
[description of drawings]
Fig. 1 is existing system architecture reference diagram at the external generally starting memory device of SOC.
Fig. 2 selects the system architecture reference diagram of starting outfit for the external starting outfit base pin selection of existing use SOC.
Fig. 3 is the process flow diagram of the method for chip self-adapting start equipment of system on chip of the present invention.
[embodiment]
Core concept of the present invention is: utilize the built-in instruction stream of SOC, remove to enumerate each possible starting outfit, in case find effective starting outfit then stop search, begin to start from effective starting outfit; And the modification of external starting outfit can be identified automatically, thereby the modification according to starting outfit that can be real-time starts from appointed equipment automatically.
As shown in Figure 3, be the process flow diagram of the method for chip self-adapting start equipment of system on chip of the present invention.The method of this chip self-adapting start equipment of system on chip may further comprise the steps:
Step 100: built-in one group of starting outfit identification code in SOC, give the equipment of supporting that SOC starts with identity assignments simultaneously, the allocation scheme that this identification code distributes is: simple system applies can be made as all identification codes identical value, complicated application can be generated as different values according to the algorithm of determining with identification code, corresponding different startup priority;
Step 110: when system powers on the back, at first enter the starting outfit enumeration process;
The built-in instruction stream of step 120:SOC begins to enumerate each possible starting outfit;
Step 130: by enumerating the identification code that starting outfit obtains starting outfit, mate with one group of starting outfit identification code that SOC is built-in, to determine whether the being effective recognition sign indicating number, the starting outfit that contains the effective recognition sign indicating number is effective starting outfit, if determine it is the effective recognition sign indicating number, then forward step 140 to,, then forward step 150 to if determine it is not the effective recognition sign indicating number;
Step 140: note this starting outfit;
Step 150: judge whether the starting outfit enumeration process is finished,, then forward step 160 to,, then forward step 120 to if enumeration process is not finished if enumeration process is finished;
Step 160: when enumerate finish after, the starting outfit of noting is set, SOC finds the starting outfit of setting, system enters start-up course.
For simple system applies, in case the effectively start equipment that can be set to find is the starting outfit of setting, and finish enumeration process, enter start-up course; For the system applies of complexity, then need to have enumerated the starting outfit of all supports, find out all effective starting outfits, could finish enumeration process, according to the priority of the identification code of effectively start equipment sign, find out effective starting outfit then, enter start-up course.
A concrete application of the method for chip self-adapting start equipment of system on chip of the present invention: some application systems support USB to start and Nandflash starts.Under normal mode, USB is connecting system not, only can enumerate Nandflash during system start-up, therefore directly starts from Nandflash, in case Nandflash damages, then system can't start, and with the USB connecting system, then the USB startup can be enumerated by system under this kind state, after the USB startup, can repair Nandflash, the method for chip self-adapting start equipment of system on chip of the present invention does not need to revise any software and hardware setting, can finish the reparation to system.
Another embodiment of the method for chip self-adapting start equipment of system on chip of the present invention is: the method for this chip self-adapting start equipment of system on chip utilize the SOC chip not the general purpose input/output port (GPIO:generalpurpose input/output) of usefulness be used as the starting outfit identification code, identify each starting outfit, and the boot sequence of equipment.
The above; only for the preferable concrete true mode of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.

Claims (6)

1. the method for a chip self-adapting start equipment of system on chip is characterized in that, may further comprise the steps:
Steps A: built-in one group of starting outfit identification code in on-chip system chip, and described identity assignments is given the equipment of support on-chip system chip startup;
Step B: system powers on, and enters the starting outfit enumeration process, and on-chip system chip is enumerated starting outfit;
Step C: by enumerating the identification code that starting outfit obtains starting outfit, mate, to determine whether the being effective recognition sign indicating number with one group of starting outfit identification code that on-chip system chip is built-in;
Step D: noting identification code is effective starting outfit;
Step e: the starting outfit of noting is set, and on-chip system chip finds the starting outfit of setting, and system enters start-up course.
2. the method for chip self-adapting start equipment of system on chip as claimed in claim 1, it is characterized in that: described steps A further comprises: identification code is made as identical value or identification code is generated as different values according to the algorithm of determining, corresponding different startup priority.
3. the method for chip self-adapting start equipment of system on chip as claimed in claim 1 or 2, it is characterized in that: in described step e, in case on-chip system chip is set to find effective starting outfit, then this effective starting outfit is exactly the starting outfit of setting, finish enumeration process, enter start-up course.
4. the method for a chip self-adapting start equipment of system on chip is characterized in that, may further comprise the steps:
Steps A: with on-chip system chip not the general purpose input/output port of usefulness identify each starting outfit as the starting outfit identification code, and the boot sequence of equipment;
Step B: system powers on, and enters the starting outfit enumeration process, and on-chip system chip is enumerated starting outfit;
Step C: obtain the starting outfit identification code by enumerating starting outfit, with on-chip system chip not the general purpose input/output port of usefulness mate, to determine whether the being effective recognition sign indicating number;
Step D: noting identification code is effective starting outfit;
Step e: the starting outfit of noting is set, and on-chip system chip finds the starting outfit of setting, and system enters start-up course.
5. the method for chip self-adapting start equipment of system on chip as claimed in claim 4, it is characterized in that: described steps A further comprises: identification code is made as identical value or identification code is generated as different values according to the algorithm of determining, corresponding different startup priority.
6. as the method for claim 4 or 5 described chip self-adapting start equipment of system on chip, it is characterized in that: in described step e, in case on-chip system chip is set to find effective starting outfit, then this effective starting outfit is exactly the starting outfit of setting, finish enumeration process, enter start-up course.
CN200610157299A 2006-12-06 2006-12-06 Method for chip self-adapting start equipment of system on chip Active CN101196819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610157299A CN101196819B (en) 2006-12-06 2006-12-06 Method for chip self-adapting start equipment of system on chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610157299A CN101196819B (en) 2006-12-06 2006-12-06 Method for chip self-adapting start equipment of system on chip

Publications (2)

Publication Number Publication Date
CN101196819A CN101196819A (en) 2008-06-11
CN101196819B true CN101196819B (en) 2010-05-26

Family

ID=39547253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610157299A Active CN101196819B (en) 2006-12-06 2006-12-06 Method for chip self-adapting start equipment of system on chip

Country Status (1)

Country Link
CN (1) CN101196819B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9766899B2 (en) 2015-12-28 2017-09-19 Google Inc. Bootloader control via device identifier

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930373B (en) * 2009-06-19 2013-08-07 中兴通讯股份有限公司 Method and device for starting system on chip
CN102279757B (en) * 2010-06-11 2016-08-17 无锡中感微电子股份有限公司 The method and device that a kind of system program starts
CN103106371B (en) * 2011-11-10 2016-12-28 联想(北京)有限公司 A kind of method and apparatus protecting data safety
US9672185B2 (en) 2013-09-27 2017-06-06 International Business Machines Corporation Method and system for enumerating digital circuits in a system-on-a-chip (SOC)
CN103793252A (en) * 2014-02-20 2014-05-14 山东超越数控电子有限公司 Method for improving function of USB interface
CN105117652B (en) * 2015-10-09 2018-12-04 天津国芯科技有限公司 A kind of SOC starting method based on NAND Flash
CN106528123A (en) * 2016-10-26 2017-03-22 珠海全志科技股份有限公司 SoC (System on a Chip) startup method and device based on eFuse module
CN112148374A (en) * 2020-08-20 2020-12-29 瑞芯微电子股份有限公司 SoC chip starting sequence control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1636195A (en) * 2000-10-31 2005-07-06 皇家菲利浦电子有限公司 Extension for the advanced microcontroller bus architecture (AMBA)
CN1783044A (en) * 2004-11-30 2006-06-07 中国科学院计算技术研究所 On-chip system
CN1851668A (en) * 2006-06-01 2006-10-25 北京天碁科技有限公司 Sheet system chip, sheet system chip tracking debug system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1636195A (en) * 2000-10-31 2005-07-06 皇家菲利浦电子有限公司 Extension for the advanced microcontroller bus architecture (AMBA)
CN1783044A (en) * 2004-11-30 2006-06-07 中国科学院计算技术研究所 On-chip system
CN1851668A (en) * 2006-06-01 2006-10-25 北京天碁科技有限公司 Sheet system chip, sheet system chip tracking debug system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2002-124950A 2002.04.26

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9766899B2 (en) 2015-12-28 2017-09-19 Google Inc. Bootloader control via device identifier

Also Published As

Publication number Publication date
CN101196819A (en) 2008-06-11

Similar Documents

Publication Publication Date Title
CN101196819B (en) Method for chip self-adapting start equipment of system on chip
CN102200923B (en) Method of booting host device from MMC/SD device and associated devices
CN106557340B (en) Configuration method and device
JP3110949U (en) USB connector with card detector
KR101832953B1 (en) Remote wakeup of application processor of mobile device
US6681991B1 (en) Card reading device having a multi-functional connector
US7822964B2 (en) Booting apparatus for booting a computer and method therefor and computer with a booting apparatus
CN103761129B (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
TWI785249B (en) Initialization methods and associated controller, memory device and host
US9098640B2 (en) Controller, electronic equipment unit, and USB device control method
CN104239097B (en) A kind of method, system and mobile terminal by updating mobile terminal accessory
CN111966626B (en) Server starting device and method based on ESPI bus
CN103098039A (en) High-speed peripheral-device interconnected-bus port configuration method and apparatus
CN101788946B (en) Method and device for sintering firmware connected with E2PROM (Electrically Erasable Programmable Read-Only Memory) on CPLD (Complex Programable Logic Device)
US8180988B2 (en) Method and system for authenticating storage device connected through intermediate converter
CN112187252A (en) Interface identification circuit, method, equipment and electronic equipment
CN103197933A (en) Computer and rapid starting method thereof
CN107885536A (en) Startup method, embeded processor and the storage device of a kind of embeded processor
CN108958837B (en) Method, system and medium for dynamically configuring ME firmware
CN110888680B (en) Starting method and system of embedded processor
JP2009252109A (en) Memory card control device
US10430367B1 (en) Systems and methods for optimal placement of information handling resource
US20100332731A1 (en) Flash memory apparatus and method for operating the same and data storage system
CN112433971A (en) Structure, method and medium for realizing processor self-adaptive SATA and NVME M.2
CN103226479B (en) Electronic apparatus system and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510600, Guangzhou Science City, Guangdong science Road, 182 innovation building, C1 District, 3 floor

Patentee before: Guangzhou Ankai Microelectronics Co.,Ltd.