SOC Android system quick starting method, equipment, system and device and medium
By initializing two memory areas of eMMC in SOC products and reading nandFlash data to Sram, the problem of long boot time of SOC products when they do not support Boot boot is solved, achieving rapid boot and improving practicality.
Patent Information
- Application Number
- CN202411516296.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-10-29
AI Technical Summary
The existing SOC products do not support Boot boot, and the startup time is long and cannot support Boot boot by modifying the hardware code, resulting in a decrease in practicality.
By obtaining the CMD instructions sent by the host, the two memory areas of the eMMC are initialized in turn, and the preset memory capacity data is read from nandFlash in the initialization gap and stored in Sram, so that the host can quickly read data and realize the system start-up quickly .
Without modifying the host command requirements, it can significantly shorten the startup time of the SOC, improve the practicality of the system, and adapt to more SOC products that do not support Boot boot.
Smart Images

Figure CN119025174A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of semiconductor technology, and in particular to a SOC Android system quick startup method, equipment, system, device and storage medium. Background Art
[0002] Many CPU controllers of current OTT and TV products, referred to as AP or SOC, do not use the Boot function of eMMC, which results in the Android boot time of such SOC being about 1 to 2 seconds slower than that of products with Boot. This Boot function is the hardware BROM code of SOC and cannot be modified by software. Therefore, in order to solve the defect that SOC does not support Boot but wants to start faster, the relevant technology proposes to optimize the firmware of eMMC.
[0003] However, in the related art, the above method requires a standard eMMC protocol. The standard eMMC protocol needs to be implemented by modifying the command requirements of the Host. This results in the old SOC (system on chip) not supporting this function, which in turn leads to a longer startup time; and the above method cannot modify the hardware to support the SOC that does not support this function, resulting in reduced practicality. Therefore, there are still technical problems that need to be solved in the related art. Summary of the invention
[0004] The purpose of this application is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0005] To this end, an object of an embodiment of the present application is to provide a SOC Android system quick startup method, device, system, apparatus and storage medium, which can reduce the startup time and improve product practicality.
[0006] In order to achieve the above-mentioned technical objectives, the technical solution adopted in the embodiment of the present application includes: a SOC Android system quick startup method, comprising the following steps: obtaining a CMD instruction sent by a host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions sent in sequence; when the first sub-instruction is received, the first memory area of the eMMC is initialized; when the second sub-instruction is received, data of a preset memory capacity is read from nandFlash and stored in the Sram of the eMMC, so that the host reads data from the Sram through the read data instruction, and after the host reads the data, the second memory area of the eMMC is initialized.
[0007] In addition, a SOC Android system quick startup method according to the above embodiment of the present invention may also have the following additional technical features: Furthermore, in an embodiment of the present application, the first memory area is the first 100MB memory area in the eMMC memory.
[0008] Furthermore, in the embodiment of the present application, the preset memory capacity is 290KB-350KB.
[0009] Furthermore, in an embodiment of the present application, the first sub-instruction includes several handshake instructions.
[0010] Furthermore, in the embodiment of the present application, the number of the several handshake instructions is greater than or equal to 3.
[0011] Furthermore, in an embodiment of the present application, the number of the data read instructions is greater than or equal to 3.
[0012] On the other hand, an embodiment of the present application also provides an integrated circuit system, which is started by the SOC Android system fast startup method described above.
[0013] On the other hand, the embodiment of the present application also provides an Android system quick start device of SOC, including: An acquisition unit, used for acquiring a CMD instruction sent by a host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions sent successively in sequence; A first processing unit, configured to initialize a first memory area of the eMMC when receiving the first sub-instruction; The second processing unit is used for reading data of a preset memory capacity from nandFlash and storing it in the Sram of the eMMC when receiving the second sub-instruction, so that the host reads data from the Sram through the read data instruction, and after the host reads the data, initializing the second memory area of the eMMC.
[0014] On the other hand, the present application also provides a SOC Android system quick start device, comprising: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the SOC Android system quick startup method as described in any one of the invention contents.
[0015] In addition, the present application also provides a computer-readable storage medium, which stores processor-executable instructions, and the processor-executable instructions are used to execute the SOC Android system fast startup method as described in any of the above items when executed by the processor.
[0016] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application: The present application can obtain the first sub-instruction, the second sub-instruction and the read data instruction which are sent successively in sequence, and realize the initialization of two areas of the eMMC according to different instructions, and store the data of the preset memory capacity read from the nandFlash in the Sram of the eMMC in the gap between the initialization of the two areas so that the host can read the data from the Sram through the read data instruction. The present application does not need to modify the command requirements of the host, and can make the system initialize quickly. The present application can improve the defect of long system startup time and improve the practicality of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the steps of a SOC Android system quick startup method in a specific embodiment of the present invention; Figure 2 A schematic diagram of the standard protocol of JDEC5.1 in a specific embodiment of the present invention; Figure 3 It is a flow chart of a method for quickly starting a SOC Android system in the prior art; Figure 4 A schematic diagram of the steps of a method for quickly starting a SOC Android system in another specific embodiment of the present invention; Figure 5 It is a structural schematic diagram of an Android system quick start device of a SOC in a specific embodiment of the present invention; Figure 6 It is a structural schematic diagram of an Android system quick startup device of a SOC in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0018] The embodiments of the present invention are described in detail below with reference to the accompanying drawings to illustrate the principles and processes of the SOC Android system quick startup method, device, system, apparatus and storage medium in the embodiments of the present invention.
[0019] The following are necessary explanations for the nouns that appear in this application: First, the technical defects of the relevant technology are explained: In related technologies, such as Figure 1As shown in the figure, eMMC5.1 of many SOC products can support Boot. This method can accelerate the startup of SOC products by modifying the command requirements of the host. The principle of Boot: The host modifies the hardware code of Brom and uses the Boot method to speed up the initialization of SOC products.
[0020] Although many SOCs can support the Boot mode, not all SOCs support it. Some manufacturers' SOCs still do not support it and cannot be supported by modifying the code, which leads to a longer startup time for SOC products. This time gap cannot be fixed from the host hardware and product hardware. In addition, for existing SOC products to support this function, the host needs to modify the command requirements, and this risk is more difficult to modify, resulting in a decrease in the practicality and adaptability of existing SOC products.
[0021] In order to solve the above technical problems, refer to Figure 2 The present application provides a SOC Android system quick startup method. The SOC Android system quick startup method may include steps S101 to S103.
[0022] S101, obtaining a CMD instruction sent by a host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions that are sent successively in sequence.
[0023] S102. When the first sub-instruction is received, initialize the first memory area of the eMMC.
[0024] S103, when receiving the second sub-instruction, read the data of the preset memory capacity from nandFlash and store it in the Sram of the eMMC, so that the host reads the data from the Sram through the read data instruction, and initializes the second memory area of the eMMC after the host reads the data.
[0025] In some feasible embodiments of the present application, the processor in the eMMC can obtain a CMD instruction sent by the host. The CMD instruction may include a first sub-instruction, a second sub-instruction, and a read data instruction. The first sub-instruction, the second sub-instruction, and the read data instruction are instructions that are sent in sequence. After obtaining the CMD instruction, when the first sub-instruction is received, the processor in the eMMC can initialize the first memory area of the eMMC; when the second sub-instruction is received, the processor in the eMMC can read data of a preset memory capacity from nandFlash and store it in the Sram of the eMMC, so that the host reads data from the Sram through the read data instruction, and after the host reads the data, the processor in the eMMC can initialize the second memory area of the eMMC.
[0026] In summary, the present application can obtain the first sub-instruction, the second sub-instruction and the read data instruction which are sent successively in sequence, and realize the initialization of two areas of the eMMC according to different instructions, and store the data of the preset memory capacity read from the nandFlash into the Sram of the eMMC in the gap between the initialization of the two areas so that the host can read the data from the Sram through the read data instruction. The present application does not need to modify the command requirements of the host, and can make the system initialize quickly. The present application can improve the defect of long system startup time and improve the practicality of the system.
[0027] Furthermore, in the embodiment of the present application, the first memory area is the first 100MB memory area in the eMMC memory.
[0028] Furthermore, in an embodiment of the present application, the preset memory capacity may be 290KB-350KB.
[0029] Furthermore, in the embodiment of the present application, the first sub-instruction may include several handshake instructions.
[0030] Further, in the embodiment of the present application, the number of the handshake instructions may be greater than or equal to 3. 3 or more handshake instructions may enable the host and the eMMC to smoothly perform data transmission.
[0031] Further, in the embodiment of the present application, the number of read data instructions may be greater than or equal to 3. 3 or more read data instructions may enable the host to smoothly read data from the eMMC.
[0032] The specific implementation principle of this application is described below with reference to the accompanying drawings: The current method is as follows Figure 3 : Traditional eMMC is managed by a flash transfer layer: flash transfer layer.
[0033] For example: the eMMC is 8100MB. During the startup of the eMMC, the host sends the HwReset signal and then starts to send command C0, several handshake commands C1, and commands C1~C7.
[0034] When the host sends the command C1, the eMMC is rebuilding the flash conversion layer. This reconstruction operation is actually affected by several factors: the power failure before the current startup, the data ECC limitation of the eMMC, and generally this time is 500ms to 1000ms for OTT and TV products. After this part of the operation is completed, the host starts to read data from the eMMC through the command C17. When sending the C17 command, the eMMC needs to read data from nandFlash and then send the read data to the host. One C17 takes 800us. Multiple C17 commands need to read data from nandFlash, which increases the startup time.
[0035] In view of these shortcomings, this embodiment proposes an improved method. Figure 4 , the method may include: 1. Two sets of flash translation layers are configured in the eMMC. The first 100MB of the eMMC memory is the flash translation layer 1, and the subsequent 8000MB of the eMMC memory is the flash translation layer 2.
[0036] 2. During the host initialization of eMMC, eMMC first initializes the flash translation layer 1, which is the first 100MB of data. For the Android system, the first 100MB of data is a read-only area and there is no power failure, so the time of the flash translation layer 1 is fixed at about 100ms.
[0037] 3. During the process of instructions C2~C7 after the host sends instruction C1, the eMMC reads 300KB of data from nandFlash to the Sram of the eMMC in advance.
[0038] 4. When the host reads data from Sram through the read data instruction C17, eMMC does not need to read data from nandflash.
[0039] 5. After the host completes data reading, the eMMC completes the initialization of the flash translation layer 2, which is 8000MB of eMMC memory.
[0040] In summary, the SOC Android system quick startup method of the present application has the following advantages: 1. This application does not modify the host command, but modifies the eMMC firmware, that is, the eMMC memory is divided into two firmwares for initialization, the initialization firmware corresponding to the first 100MB of data and the initialization firmware corresponding to the last 8000MB of data. When the host does not support Boot, the boot time can be shortened by about 1 second. Compared with SOC hardware modification, this application eMMC firmware modification is easier.
[0041] 2. This application modifies the firmware of eMMC so that this application can adapt to more SOCs that do not support boot.
[0042] In addition, refer to Figure 5 ,and Figure 2 Corresponding to the method, an embodiment of the present application also provides an Android system fast boot device of SOC. The device may include: an acquisition unit 1001, a first processing unit 1002 and a second processing unit 1003. The acquisition unit 1001 can be used to acquire a CMD instruction sent by the host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions sent in sequence; the first processing unit 1002 can be used to initialize the first memory area of the eMMC when receiving the first sub-instruction; the second processing unit 1003 can be used to read data of a preset memory capacity from nandFlash and store it in the Sram of the eMMC when receiving the second sub-instruction, so that the host reads data from the Sram through the read data instruction, and initializes the second memory area of the eMMC after the host reads the data.
[0043] It should be noted that the acquisition unit can be any integrated circuit unit or microprocessor unit obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also be any integrated circuit module or microprocessor module obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also include one or more memories. One or more memories can be used to store the specific algorithm for quick startup in this application.
[0044] The specific device connection mode and device settings of the acquisition unit 1001 and the first processing unit 1002 and the first processing unit 1002 and the second processing unit 1003 are not limited.
[0045] It should be noted that the contents of the above-mentioned SOC Android system quick startup method embodiment are all applicable to the Android system quick startup system embodiment of this SOC, and the functions specifically implemented by the Android system quick startup system embodiment of this SOC are the same as those of the above-mentioned SOC Android system quick startup method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned SOC Android system quick startup method embodiment.
[0046] On the other hand, an embodiment of the present application also provides an integrated circuit system, which is started by the SOC Android system fast startup method described above.
[0047] and Figure 2Corresponding to the method, the embodiment of the present application also provides a SOC Android system fast startup device, the specific structure of which can be referred to Figure 6 ,include: at least one processor 1011; At least one memory 1012, used to store at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the SOC Android system quick startup method.
[0048] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0049] and Figure 2 Corresponding to the method, an embodiment of the present application further provides a computer-readable storage medium, which stores processor-executable instructions, and the processor-executable instructions are used to execute the SOC Android system fast startup method when executed by the processor.
[0050] The contents of the above-mentioned SOC Android system quick startup method embodiment are all applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those of the above-mentioned SOC Android system quick startup method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned SOC Android system quick startup method embodiment.
[0051] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0052] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0053] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0054] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution system, device or apparatus. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution system, device or apparatus.
[0055] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0056] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0057] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0058] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0059] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A SOC Android system quick startup method, characterized in that: The following steps are involved: Acquire a CMD instruction sent by a host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions sent successively in sequence; When the first sub-instruction is received, initializing the first memory area of the eMMC; When the second sub-instruction is received, data of the preset memory capacity is read from nandFlash and stored in the Sram of the eMMC, so that the host reads data from the Sram through the read data instruction, and after the host reads the data, the second memory area of the eMMC is initialized.
2. The SOC Android system quick startup method according to claim 1, characterized in that: The first memory area is the first 100MB memory area in the eMMC memory.
3. The SOC Android system quick startup method according to claim 1, characterized in that: The preset memory capacity is 290KB-350KB.
4. The SOC Android system quick startup method according to claim 1, characterized in that: The first sub-instruction includes a plurality of handshake instructions.
5. The SOC Android system quick startup method according to claim 4, characterized in that: The number of the several handshake instructions is greater than or equal to 3.
6. The SOC Android system quick startup method according to claim 1, characterized in that: The number of the data read instructions is greater than or equal to 3.
7. An integrated circuit system, characterized in that: Start up by the SOC Android system quick start method described in any one of claims 1-6.
8. A SOC Android system quick start device, characterized in that: include: An acquisition unit, used for acquiring a CMD instruction sent by a host; the CMD instruction includes a first sub-instruction, a second sub-instruction and a read data instruction; the first sub-instruction, the second sub-instruction and the read data instruction are instructions sent successively in sequence; A first processing unit, configured to initialize a first memory area of the eMMC when receiving the first sub-instruction; The second processing unit is used for reading data of a preset memory capacity from nandFlash and storing it in the Sram of the eMMC when receiving the second sub-instruction, so that the host reads data from the Sram through the read data instruction, and after the host reads the data, initializing the second memory area of the eMMC.
9. A SOC Android system quick start device, characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the SOC Android system quick startup method as described in any one of claims 1-6.
10. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute the SOC Android system fast startup method as described in any one of claims 1-6 when executed by the processor.
Citation Information
Patent Citations
FPGA-based eMMC initialization method and device, and terminal
CN111190646A
EMMC main controller based on FPGA
CN111208757A
EMMC running state monitoring method and system and computer readable storage medium
CN116820898A
Memory verification method and device based on development board and medium
CN116935939A
SOC chip circuit
CN217690049U
