Method for loading an operating system on a control device
By loading and signing the bootloader on the external storage medium of the control device, the ROM load problem is solved, enabling fast loading and convenient updates, and improving the storage efficiency and security of the control device.
Patent Information
- Application Number
- CN202580030421.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-04-30
- Filing Date
- 2025-04-25
- Publication Date
- 2026-11-20
AI Technical Summary
In the prior art, the read-only memory (ROM) of the control device is easily subjected to load when loading and executing the bootloader, which leads to reduced storage space and inconvenient updates, and may also pose security risks.
The bootloader is stored on a storage medium outside the control device and loaded from that storage medium into the working memory RAM for execution. Signature verification and validation mechanisms are used to ensure security and fast execution.
It avoids the load on the read-only memory (ROM), preserves its storage space, enables fast loading of the operating system, and supports convenient software updates and security guarantees.
Smart Images

Figure CN123146945A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for loading an operating system onto a control device. Background Technology
[0002] As known from US 7,237,121 B2, a bootloader is loaded into the read-only memory (ROM) of a digital device from internal working memory (RAM) or an external source and executed there. The bootloader is a series of instructions used for system initialization. For security reasons, according to US 7,237,121 B2, the bootloader only activates encrypted and authenticated software.
[0003] US 7,313,705 B2 also describes storing a bootloader in the computer's ROM and executing the bootloader. At computer startup or after a reset, the bootloader sequence is executed by the central computing unit (CPU), and then the operating system software is loaded from the hard disk into the system program memory and executed.
[0004] US 2020 / 0065082 A1 describes a dual-library configuration in a computer, in which the bootloader also boots from ROM. The bootloader is digitally signed and is loaded only after the signature has been verified. Summary of the Invention
[0005] This invention describes a method for loading an operating system onto a control device using a bootloader. The control device is preferably a vehicle control device, such as an airbag control device or other control device, and is particularly useful for manipulating electronic structural units within the vehicle. The bootloader for loading the operating system onto the control device is stored on a storage medium, which, although located within the device (i.e., within the control device), is positioned outside the controller or microcontroller of the control device. The bootloader is loaded from this storage medium into the working RAM (RAM) within the electronic components of the control device and is executed only in RAM to load the operating system.
[0006] This scheme has the advantage that the read-only memory (ROM) in the control device is not loaded by the bootloader, and therefore a larger share of storage in the ROM is available. Activating the bootloader in the manner described above by uploading from a storage medium located outside the controller to the working RAM can be executed quickly enough that there is no, or at least no, significant time loss due to the execution of the bootloader in RAM. The ROM remains unloaded.
[0007] Furthermore, it is advantageous that updates to the bootloader software can be performed without problems because the downloaded data does not need to be written to the active flash memory library, but rather to the storage medium where the bootloader is stored.
[0008] In an advantageous embodiment, the storage medium is specified as NOR memory, from which the bootloader is loaded into RAM. Flash memory, manufactured using NOR technology, is also mentioned and is typically connected to the bus system of the controller in the control device. Alternatively, other storage media may be considered in contrast to NOR memory, which are external to but communicate with the controller of the control device.
[0009] According to another advantageous embodiment, the bootloader is verified before execution in RAM. Advantageously, the bootloader software is protected by checksums, signatures, etc., by which verification can be performed. In the case of checksums, the checksum can be stored in secure memory within the microcontroller, making it impossible to analyze the data based on access to external memory. Verification is performed specifically before each execution in RAM. Furthermore, it is also possible to perform verification during radio updates (FOTA, firmware over-the-air upgrades).
[0010] The method according to the invention is particularly applicable to control devices having a non-dual system. Alternatively, the control device can be equipped with a dual-library system, wherein each library of the dual-library system is associated with its own bootloader. The two bootloaders can be stored on the same storage medium and loaded from that storage medium into RAM, where they are executed. When updating the operating system software, each library of the dual-library system advantageously has the updated operating system software, while the bootloader software is updated on an external storage medium associated with the bootloader. Thus, during an update, the updated bootloader is available for at least one library of the dual-library system, preferably for both libraries.
[0011] According to another advantageous implementation, in the case of a dual-library system, a boot loader is selected for the currently active library using a boot manager. The boot manager loads the desired boot loader from a storage medium located inside the control device but outside the microcontroller into RAM. If necessary, the boot manager can also be stored in a storage medium that also stores the boot loader. Alternatively, the boot manager can be stored in ROM. If necessary, the boot manager's functionality can access external storage media.
[0012] In contrast to the dual-library system alternative, within the scope of this invention, a system having only one memory library is also possible.
[0013] Another aspect of the invention relates to a control device, such as an airbag control device or other control device, preferably a control device in a vehicle, which includes components designed to perform the methods described above. The component includes at least one storage unit, at least one controller or microcontroller as a computing unit, a control device input, and a control device output. The control device can, for example, manipulate configurable components of a technical structural unit in a vehicle, such as the aforementioned airbag system or driver assistance system.
[0014] The present invention also relates to a vehicle, such as a passenger car, equipped with the aforementioned control device. The control device operates programmable components of the technical structural units within the vehicle.
[0015] The present invention also relates to a computer program product having program code designed to perform the above-described method steps. The computer program product operates in the above-described control device. Appendix picture illustrate
[0016] Further advantages and suitable embodiments can be found in the other claims, appendices, etc. picture Instructions and Appendix picture Obtained from the appendix picture The diagram schematically illustrates a control device with a dual-library system. Detailed Implementation
[0017] The dual-library system 1 is part of a control device, particularly for technical structural units in vehicles, such as airbag control devices. The dual-library system 1 includes a first memory library 2 and a second memory library 3 storing application software. The loading of the operating system is performed via a boot manager 4, which communicates with memory libraries 2 and 3 and selects from storage medium 5 a first bootloader 6 associated with the first memory library 2 or a second bootloader 7 associated with the second memory library 3. The selection of bootloaders 6 and 7 depends on the currently active memory library 2 or 3. The currently matched bootloader 6 or 7 is loaded via the boot manager 4 into the working RAM 8 of the microcontroller in the control device, where the selected bootloader 6 or 7 is executed.
[0018] Storage medium 5 is exemplarily a flash memory, particularly a NOR memory. In addition to the first bootloader 6 and the second bootloader 7, other software applications 9, such as customer-specific equipment expectations for a vehicle, may also be stored in storage medium 5.
[0019] The different blocks in storage medium 5, namely the first and second bootloaders 6 and 7, and the software application 9, can each be protected using signatures. Each block being read is verified using signatures before execution in working memory RAM 8.
[0020] Updates to the operating system software and bootloader software can be performed via radio as Firmware Over-The-Air (FOTA). During the bootloader software update, the downloaded data is written to a storage medium, where the bootloader is stored. The first memory library 2 and the second memory library 3 of the dual-library system remain without bootloader software during the update process and during execution.
Claims
1. A method for loading an operating system on a control device using a bootloader (6, 7), wherein, The control device has an internal working memory RAM (8), wherein the bootloader (6, 7) is loaded into the working memory RAM (8) from a storage medium (5) located outside the controller of the control device, and is executed only in the working memory RAM (8) to load the operating system.
2. The method according to claim 1, characterized in that, The storage medium (5) is a NOR memory, and the bootloader (6, 7) is loaded from the storage medium into the working memory RAM (8).
3. The method according to claim 1 or 2, characterized in that, The bootloaders (6, 7) are verified before execution in the working memory RAM (8).
4. The method according to claim 3, characterized in that, The verification is performed using a checksum, which is stored in the memory of the microcontroller of the control device.
5. The method according to any one of claims 1 to 4, characterized in that, The control device is equipped with a dual-library system (1), and each library (2, 3) of the dual-library system (1) is associated with its own bootloader (6, 7).
6. The method according to claim 5, characterized in that, In the dual-library system (1), the bootloader (6, 7) is selected for the currently active library (2, 3) by means of the boot manager (4).
7. The method according to claim 5 or 6, characterized in that, When updating the operating system software, each library (2, 3) of the dual-library system (1) is equipped with updated operating system software.
8. The method according to any one of claims 1 to 7, characterized in that, The boot manager (4) loads the desired bootloader (6, 7) from the external storage medium (5) into the working memory RAM (8).
9. The method according to any one of claims 1 to 8, characterized in that, Updates to the operating system software and / or bootloader software (6, 7) are performed via radio.
10. A control device, particularly an airbag control device, comprising means designed to perform the method according to any one of the preceding claims.
11. A vehicle having the control device according to claim 10.
12. A computer program product having program code designed to perform the steps of the method according to any one of claims 1 to 9 when the computer program product is run in the control device according to claim 10.
Citation Information
Patent Citations
Memory-efficient upgrade staging
US20200065082A1
Secure bootloader for securing digital devices
US7237121B2
Implementation of a secure computing environment by using a secure bootloader, shadow memory, and protected memory
US7313705B2
