A booting system and method
The dual-core booting system addresses the reliability issues of existing booting systems by switching between primary and secondary boot software and addresses, ensuring continued operation even if the secondary core fails, enhancing system safety and reliability.
Patent Information
- Application Number
- PCT/TR2024/050069
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-08-29
AI Technical Summary
Existing booting systems are unreliable, especially in remote environments like satellite systems, as they cannot intervene in the booting process remotely and fail if the primary bootloader is out of order or deleted, leading to system failures.
A dual-core booting system with a memory unit divided into distinct addresses for primary and secondary boot software and application software, where a secondary core switches the default starting address if the primary core fails, ensuring continued system operation even if the secondary core fails, and incorporating a second stage bootloader for enhanced reliability.
The dual-core system ensures reliable booting by allowing switching between primary and secondary boot software and addresses, maintaining system functionality even if the secondary core fails, thus eliminating dependency on a single core for backup and enhancing overall system safety.
Smart Images

Figure 000011 
Figure 00000010_0000 
Figure 00000010_0001
Abstract
Description
[0001] A BOOTING SYSTEM AND METHOD
[0002] Relevant Technical Field
[0003] The present invention relates to booting structures, and in particular to a dual-core booting system and a dual-level booting method implemented with said system.
[0004] Prior Art
[0005] Bootrom or Bootloader is a part of the booting program running during startup when the device is powered on. Bootloader is the software responsible for system starting and ensures the system to be turned on and connected to the main processing unit.
[0006] During device use and operation, situations such as disruptions in the memory containing booting program, power failure, and the need to restart the device may occur; in this case, the applications need to be restarted. If there is a problem in booting, it is not possible to intervene with the booting process remotely. For that reason, booting program’s reliability is an important issue to resolve especially in systems such as satellite systems, where it is not possible to intervene in the processing unit on-site.
[0007] The patent document numbered CN107632862A describes a multi-stage bootloader method developed for an electronic control unit. Said method contains a two-stage bootloader called BootloaderO and Bootloader"! . Electronic control unit’s storage area is divided into Bootloader 0, Bootloader 1 and application sections and the said storage area is located on the electronic control unit. It checks whether there is any update request for BootloaderO, Bootloader"! or the application when the system starts. In case of an update request, BootloaderO updates Bootloader"! or the application; electronic control unit is restarted after completing the update. BootloaderO starts Bootloader"! if the control unit cannot be started. After bootloader"! starts, it checks whether there is an update request for the application, if so, it updates the application, otherwise it starts the application. However in the said method, system will fail in case bootloaderO is out of order or is deleted or with an existence of a similar problem.
[0008] Object of the Invention
[0009] The object of the present invention is to develop a dual-level and reliable booting system and method.
[0010] Another object of the present invention is to develop a booting system and method using a dual-core structure. Description of Figures
[0011] Application examples of the booting system and method developed with the present invention are shown in the attached figures and from these figures;
[0012] Figure 1 ; It is an exemplary representation of an application of the booting system that is the subject of the invention.
[0013] Figure 2; is an exemplary representation of another application of the booting system that is the subject of the invention.
[0014] The elements in the figures are shown symbolically, reference numbers for the mentioned elements are as follows:
[0015] Memory unit (H)
[0016] First address (1A)
[0017] Second address (2A)
[0018] Third address (3A)
[0019] Fourth address (4A)
[0020] Fifth address (5A)
[0021] First core (C1)
[0022] Second core (C2)
[0023] First boot software (BL1)
[0024] First boot software copy (BL1.1 )
[0025] Second boot software (BL2)
[0026] Second boot software copy (BL2.1 )
[0027] Application software (APP)
[0028] Second core software (6)
[0029] Second memory unit (7)
[0030] Description of the invention
[0031] With the present invention a booting system and method are developed to solve the above- mentioned technical problems and given its applications in the attached figures.
[0032] The booting system according to the invention comprises: at least one memory unit (H) having; a first boot software (BL1) which is a first stage bootloader, in a first memory area defined by a first address 1A an application software (APP) to be run by the system, in a second memory area defined by a second address (2A) and a first boot software copy (BL1.1) in a fourth memory area defined by a fourth address (4A); and at least one processor having; at least one first core (C1) configured to first go to a default starting adress; wherein said default starting address of the first core (C1) can be either the first address (1 A) or the fourth address (4A); and run the first boot software (BL1) or the first boot software copy (BL1.1) whichever is registered at said default starting adress when the system is started and then to run said application software (APP) by going to said second address (2A) if the first boot software (BL1) or the first boot software copy (BL1.1) runs; and at least one second core (C2) configured to hold for a predetermined period of time and in case the system cannot be started at the end of the said period of time, switch [if the default starting address for that moment is the first address (1A), will switch it to the fourth address (4A); if the default starting address for that moment is the fourth address (4A), will switch it to the first address (1 A)] said default starting address of the first core (C1) and reboot the system.
[0033] Booting system in the above mentioned application comprises a processor with said first core (C1) and second core (C2) using the same memory unit (H). The memory unit (H) is divided into different memory areas defined by different addresses. In the memory areas defined by the first, second and fourth addresses (1A, 2A, 4A), there are the first boot software (BL1), the application software (APP) and the copy of the first boot software (BL1.1), respectively. In an exemplary application of the invention, first core’s (C1) default starting address is initially identified as the first address (1A). When system started, the first core (C1) goes to the first address (1A) and runs the first boot software (BL1). The first boot software (BL1) goes to the second address (2A) and runs the application software (APP) thus system is being started. If the first boot software (BL1) does not work, the first core (C1) repeatedly tries to run the first boot software (BL1); however, fails to shift to the application software (APP) located at the second address (2A) as long as it fails. After the system is started, the second core (C2) holds for a predetermined time (for example, ten seconds), if the system is not yet started at the end of this period, switchs first core’s (C1) default starting address to the fourth address (4A) and reboots the system. Then, the first core (C1), whose starting address is the fourth address (4A), goes to the fourth address (4A) and runs the first boot software copy (BL1.1) when the system is restarted. When the first boot software copy (BL1.1 ) registered at the fourth address (4A) runs, just like the boot software (BL1); it goes to the second address (2A) and runs the application software (APP) and thus the system is started. In case there is an error in the system again and the application cannot be started, the second core (C2) will this time switch first core’s default starting address (C1) (which is the fourth address (4A)) to the first address (1A). With the use of two separate cores (C1 , C2) in the system in question, it is possible to switch between the first boot software (BL1) and the first boot software copy (BL1.1) in case of any error. Second core (C2) ensures switching in case of any error, between the two default starting addresses (1A, 4A) determined for the first core (C1). In the event that the second core (C2) gives an error, the system will continue to run starting from the last default starting address of the first core (C1). Thus, the system has no dependency on the second core (C2) to start the system.
[0034] In a preferred embodiment of the invention, said system also comprises a second boot software - Bootloader2 - (BL2) being a second stage bootloader, located in a fifth area of said memory unit (H) defined by a fifth address (5A). A two-level booting is performed with this embodiment and the system safety is increased. The embodiment in question works as follows; when the system starts, the first core (C1) goes to the default starting address (1A or 4A) and runs the first boot software (BL1) or the copy of the first boot software (BL1.1). When the first boot software (BL1) or the first boot software copy (BL1.1) runs, it goes to the fifth address (5A) and runs the second boot software (BL2) and second boot software (BL2) runs application software (APP) by going to second address (2A). If the first boot software (BL1) or the first boot software copy (BL1.1) fails; the second core (C2) performs the switching process (as in the implementation mentioned above) concerning the default starting address of the first core (C1). In this embodiment, in the event of failing the second boot software (BL2), whichever of the first boot software (BL1) or the first boot software copy (BL1.1) ran, it goes to the application software (APP) and runs application software (APP).
[0035] In said embodiment, if the second boot software (BL2) fails to run the application software (APP) [there is an error in the application software (APP)], the said second boot software (BL2) runs and performs the main functions of the application software (APP).
[0036] In another preferred embodiment of the invention, said memory unit (H) contains a second core software (6) located in a third memory area defined by a third address (3A). In the embodiment in question, the default starting address of the second core (C2) is said third address (3A) and when the system is started, it goes to the third address (3A) and runs the second core software (6). Second core software (6) has been arranged to ensure waiting for the second core (C2) for the said predetermined time, switching the default starting address of the first core (C1) at the end of the period and realizing system rebooting functions. Figure 1 illustrates an example application of the invention containing all the above-mentioned elements.
[0037] In another preferred embodiment of the invention shown in Figure 2, the said system comprises at least one second memory unit (7) containing a copy of said second boot software (BL2.1). The second memory unit (7) in question is preferably an FRAM. In the said application, the first core (C1) goes directly to the application software (APP) from the first boot software or its copy (BL1 / BL1 .1 ) if the said second boot software (BL2) fails; in case the application software (APP) also fails, by entering the second memory unit (7) it gets the second boot software copy (BL2.1) and writes it to the memory area related to the fifth address (5A).
[0038] A computer-implemented booting method of the present invention, which is suitable for use with the system described above comprises following steps;
[0039] - when the system is started the first core (C1) goes to the default starting address (1A / 4A) in the current status and runs the first boot software (BL1) or its copy (BL1.1) registered in said address (1A / 4A); in case the said first boot software (BL1) or its copy (BL1 .1) fails, the first core (C1) repeatedly attempts the said operation; in case the said first boot software (BL1) or its copy (BL1.1) runs, it runs the application software (APP); the second core (C2) waits for a predefined time when the system is started; at the end of the said period if the second core (C2) detects that the system has started, it does not take any action; at the end of the said period if the second core (C2) detects that the system has not started, it changes the default starting address of the first core (C1) (if 1A to 4A, if 4A to 1A) and restarts the system.
[0040] In a preferred embodiment of the invention, said first boot software (BL1) or its copy (BL1.1) runs said second boot software (BL2) after executed and the second boot software (BL2) runs said application (APP). Said embodiment comprises the following steps:
[0041] - when the system is started the first core (C1) goes to the currently default starting address (1A / 4A) and executes the first boot software (BL1) or its copy (BL1.1) stored at that address; in case the first boot software (BL1) or its copy (BL1.1) fails, the first core (C1) repeatedly tries the said operation;
[0042] - when the first boot software (BL1) or its copy (BL1.1) is operated, it runs the second boot software (BL2); in case the second boot software (BL2) is running, it operates the application software (APP); in case the second boot software (BL2) fails, the first boot software (BL1) or the first boot software copy (BL1.1) directly operates the application software (APP); said second core (C2) holds for a predefined period when the system is started; second core (C2) does not take any action if it detects that the system has started at the end of the said period; in case the second core (C2) detects that the system has not started at the end of the mentioned period, it changes the default starting address of the first core (C1) [if it is (1 A) changes it to (4A), if it is (4A) changes it to (1 A)] and restarts the system.
[0043] In a preferred embodiment of the invention, in case the second boot software (BL2) fails to run the application software (APP) [in case of an error in the application software (APP)], the second boot software (BL2) runs instead of the application software (APP) and perfors the main functions of the application software (APP), thus initializes the system.
[0044] In a preferred embodiment of the invention, in case both of the said second boot software (BL2) and application software (APP) fails; the first core (C1) saves the second boot software copy (BL2.1) located in the second memory unit (7) to the said fifth address (5A) and restarts the system. The first core (C1) in the specified application ensures deletion of the second boot software (BL2) located in the memory area defined by the said fifth address (5A) of the memory unit (H) and saving said second boot software copy (BL2.1) instead.
[0045] In the booting system and method that is the subject of the invention, a multi-core processor structure is used thus in case of a problem in the boot process carried out by the first core (C1); the default starting address of the first core (C1) is changed by the second core (C2). In case of a possible error, by having the first boot software (BL1) and a copy of it (BL1.1) in the same memory unit (H) and using the second core (C2), switching is possible between these two first boot software located at different addresses of the memory unit (H). Thus, a solution is provided to the problem of not being able to back up the first level bootloader in multi-stage boot structures using a single core and potential risk as a result of applications such as correcting booting software copy by overwriting is removed. The system and method in question also while providing a dual-core boot structure, continues to function even if the second core (C2) fails. In the specified case, the first core (C1) can start the system by operating from the address where the last running first boot software (BL1) is located.
Claims
CLAIMS1. A booting system comprising: at least one memory unit (H) having; a first boot software (BL1) which is a first stage bootloader, in a first memory area defined by a first address (1A) an application software (APP) to be run by said system, in a second memory area defined by a second address (2A) and a copy of said first boot software (BL1 .1) in a fourth memory area defined by a fourth address (4A); and at least one processor having; at least one first core (C1) configured to first go to a default starting adress; wherein said default starting address of the first core (C1) can be either the first address (1 A) or the fourth address (4A); and run the first boot software (BL1) or the first boot software copy (BL1.1) whichever is registered at said default starting adress when the system is started and then to run said application software (APP) by going to said second address (2A) if the first boot software (BL1) or the first boot software copy (BL1.1) runs; and at least one second core (C2) configured to hold for a predetermined period of time and in case the system cannot be started at the end of the said period of time, switch said default starting address of the first core (C1) and reboot the system.
2. A booting system according to claim 1 wherein said memory unit (H) comprises a second boot software (BL2), which is a second stage boot program, located in a fifth memory area defined by a fifth address (5A).
3. A booting system according to claim 1 or 2 comprising said second core (C2) whose default starting address is a third address (3A) and said memory unit (H) having a second core software (6) located in a third memory area defined by said third address (3A).
4. A booting system according to any one of claims 1 to 3; comprising at least one second memory unit (7) containing a copy of said second boot software (BL2.1).
5. A booting system according to claim 4; wherein said second memory unit (7) is an FRAM.
6. A booting method suitable for use with a booting system according to any of the previous claims; comprising the following steps;- when the system is started the first core (C1) goes to the default starting address (1A / 4A) in the current status and runs the first boot software (BL1) or its copy (BL1.1) registered in said address (1A / 4A); in case said first boot software (BL1) or its copy (BL1 .1) does not operate, the first core (C1) tries said operation repeatedly; in case said first boot software (BL1) or its copy (BL1.1) is operated, it runs the application software (APP); the second core (C2) waits for a predefined time when the system is started; at the end of the said period if the second core (C2) detects that the system has started, it does not take any action; at the end of the said period if the second core (C2) detects that the system has not started, it changes the default starting address of the first core (C1) and restarts the system.
7. A booting method according to Claim 6 comprising the steps of,- when the first boot software (BL1) or its copy (BL1.1) is operated, it runs the second boot software (BL2); in case the second boot software (BL2) is operating, it runs the application software (APP); in case the second boot software (BL2) does not work, first boot software (BL1) or the first boot software copy (BL1.1) directly operates the application software (APP).
8. A booting method according to claim 7 wherein, in case the second boot software (BL2) cannot run said application software (APP), the second boot software (BL2) runs instead of the application software (APP) and performs the main functions of the application software (APP), thus initializes the system.
9. A booting method according to either claim 7 or 8 wherein, in case both of the said second boot software (BL2) and application software (APP) fails; the first core (C1)saves the second boot software copy (BL2.1) located in the second memory unit (7) to the memory area defined by the fifth address (5A) and restarts the system.
Citation Information
Patent Citations
A method and a system for BOOTROM guiding multi-core CPU boot
CN106407156A
Multi-core processor BOOT starting system and method
CN106648758A
Nonvolatile memory devices, systems and methods for fast, secure, resilient system boot
US20220229748A1
