Bootloader configuration method and device, equipment, storage medium and product
By analyzing configuration parameters to generate configuration files and automatically deploy them, the cumbersome and adaptability problems of the Bootloader configuration method are solved, and a flexible and efficient configuration process is achieved, which is suitable for different hardware platforms and development needs.
Patent Information
- Application Number
- CN202411138597.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-01-03
AI Technical Summary
The existing Bootloader configuration method is cumbersome and difficult to adapt to changes in different hardware platforms and development needs, and lacks flexibility and ease of use.
By parsing incoming configuration parameters, the configuration file of the bootloader is generated, and the configuration is burned into the Flash of the target hardware platform through the preset interface. The automatic testing framework is used for automatic deployment of configurations, and the flexibility of configuration parameters is achieved using Python scripts. Adjust to avoid modifying hard-coded or complex configuration files.
Improve development efficiency, reduce human errors, realize the flexibility of Bootloader configuration and automated deployment, and adapt to changes in different hardware platforms and development needs.
Smart Images

Figure CN119248328A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of program configuration, and in particular to a boot loader configuration method, apparatus, device, storage medium and product. Background Art
[0002] The bootloader is a key component responsible for software updates and loading in the AUTOSAR architecture. It runs on the microcontroller system of the ECU, reads the software image stored in non-volatile memory (such as flash, EEPROM or SD card), loads it into RAM and executes it. The main role of the bootloader includes software updates: receiving new software versions remotely or locally during vehicle operation or shutdown, and installing them in the ECU.
[0003] In embedded system development, the Bootloader is the boot program for system startup. The correctness and flexibility of its configuration are crucial to the stability and scalability of the entire system. Existing Bootloader configuration methods usually rely on hard-coded or complex configuration files. These methods are not only cumbersome to operate, but also difficult to adapt to changes in different hardware platforms and development requirements. Therefore, a more flexible and easy-to-use Bootloader configuration method is needed. Summary of the invention
[0004] The main purpose of this application is to provide a boot loader configuration method, device, equipment, storage medium and product, aiming to solve the technical problem that the existing Bootloader configuration method is not only cumbersome to operate, but also difficult to adapt to changes in different hardware platforms and development requirements.
[0005] To achieve the above object, the present application proposes a boot loader configuration method, the method comprising:
[0006] Parse the incoming configuration parameters and generate the configuration file for the boot loader;
[0007] Burn the configuration file into the Flash of the target hardware platform through a preset interface;
[0008] Automated deployment of bootloader configuration via automated testing framework.
[0009] In one embodiment, the step of parsing the input configuration parameters to generate a configuration file of the boot loader includes:
[0010] Parsing the input configuration parameters, and determining the hardware configuration of the target hardware platform according to the configuration parameters;
[0011] A configuration file of the boot loader is generated according to the hardware configuration.
[0012] In one embodiment, the hardware configuration includes a processor type, a memory size, and a storage medium, and the configuration file includes Flash layout parameters, startup mode configuration parameters of a target hardware platform, and security verification mechanism parameters.
[0013] In one embodiment, before the step of parsing the input configuration parameters and generating a configuration file of the boot loader, the step further includes:
[0014] Receive configuration parameters through command line parameters, parameter configuration files, or environment variables.
[0015] In one embodiment, the configuration parameters include online update, security verification, fault recovery and diagnostic ID.
[0016] In one embodiment, the step of burning the configuration file into the Flash of the target hardware platform through a preset interface includes:
[0017] The configuration file is transferred to the boot loader through a pre-written interactive interface, or the configuration file is transferred to the boot loader through serial communication;
[0018] Burn the configuration file into the Flash of the target hardware platform.
[0019] In addition, to achieve the above-mentioned purpose, the present application also proposes a boot loader configuration device, the boot loader configuration device comprising:
[0020] Configuration file generation module, used to parse the incoming configuration parameters and generate the configuration file of the boot loader;
[0021] A configuration file burning module, used to burn the configuration file into the Flash of the target hardware platform through a preset interface;
[0022] An automated deployment module for automated deployment of bootloader configurations via an automated testing framework.
[0023] In addition, to achieve the above-mentioned purpose, the present application also proposes a boot loader configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the boot loader configuration method described above.
[0024] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the boot loader configuration method described above are implemented.
[0025] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the boot loader configuration method as described above are implemented.
[0026] The present application provides a bootloader configuration method, which generates a bootloader configuration file by parsing the incoming configuration parameters; burns the configuration file into the Flash of the target hardware platform through a preset interface; and automatically deploys the bootloader configuration through an automated testing framework. Since the present application generates a Bootloader configuration file based on the configuration parameters, burns the configuration file into the Flash of the target hardware platform, and automatically deploys it through an automated testing framework, the Bootloader configuration can be flexibly adjusted according to different hardware platforms and development requirements through Python scripts, without modifying hard-coded or complex configuration files. By integrating an automated testing framework, the automated deployment of the Bootloader configuration can be achieved, which improves development efficiency and reduces human errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0029] Figure 1 A flowchart of the first embodiment of the boot loader configuration method of the present application is provided;
[0030] Figure 2 A flowchart of the second embodiment of the boot loader configuration method of the present application is provided;
[0031] Figure 3 A flowchart of the third embodiment of the boot loader configuration method of the present application is provided;
[0032] Figure 4This is a schematic diagram of the module structure of the boot loader configuration device according to an embodiment of the present application;
[0033] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the boot loader configuration method in an embodiment of the present application.
[0034] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0035] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0036] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0037] The main solution of the embodiment of the present application is: to parse the input configuration parameters and generate a configuration file of the boot loader; to burn the configuration file into the Flash of the target hardware platform through a preset interface; and to automatically deploy the boot loader configuration through an automated testing framework.
[0038] In the development of embedded systems, the Bootloader is the boot program for system startup. The correctness and flexibility of its configuration are crucial to the stability and scalability of the entire system. Existing Bootloader configuration methods usually rely on hard-coded or complex configuration files. These methods are not only cumbersome to operate, but also difficult to adapt to changes in different hardware platforms and development requirements. Therefore, a more flexible and easy-to-use Bootloader configuration method is needed.
[0039] This application provides a solution, which generates a configuration file of the bootloader by parsing the incoming configuration parameters; burns the configuration file into the Flash of the target hardware platform through a preset interface; and automatically deploys the bootloader configuration through an automated testing framework. Since this application generates a configuration file of the Bootloader according to the configuration parameters, burns the configuration file into the Flash of the target hardware platform, and automatically deploys it through an automated testing framework, the Bootloader configuration can be flexibly adjusted according to different hardware platforms and development requirements through Python scripts, without modifying hard-coded or complex configuration files. By integrating an automated testing framework, the automated deployment of the Bootloader configuration can be achieved, which improves development efficiency and reduces human errors.
[0040] It should be noted that the execution subject of the method of this embodiment can be a computing service device with boot loader configuration, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc.; it can also be a boot loader configuration device with the same or similar functions. This embodiment and the following embodiments will be described by taking the boot loader configuration device as an example.
[0041] Based on this, the present application embodiment provides a boot loader configuration method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the boot loader configuration method of the present application.
[0042] In this embodiment, the boot loader configuration method includes steps S10 to S30:
[0043] Step S10, parsing the input configuration parameters to generate a configuration file for the boot loader.
[0044] It is understandable that the Bootloader is a key component responsible for software update and loading in the AUTOSAR architecture. It runs on the microcontroller system of the ECU, reads the software image stored in the non-volatile memory (such as flash memory, EEPROM or SD card), loads it into the RAM and executes it. The main functions of the Bootloader include: Software update: During vehicle operation or shutdown, receive the new software version remotely or locally and install it into the ECU. As the boot program for system startup, the correctness and flexibility of the Bootloader configuration are crucial to the stability and scalability of the entire system.
[0045] It should be noted that this embodiment proposes a convenient Bootloader configuration method. Based on the digital signal processor (DSP) platform of the AUTOSAR architecture, a Python script is written. The Python script includes three scripts, which contain configuration logic such as the DSP startup mode configuration, Flash layout settings, and security verification mechanism. The first script parses the incoming configuration parameters to generate the configuration file required by the Bootloader. By implementing the Bootloader configuration through the Python script, the configuration parameters can be flexibly adjusted according to different hardware platforms and development requirements without modifying hard-coded or complex configuration files. In addition, the syntax of the Python script is concise and easy to understand. Developers can quickly get started and write configuration scripts that meet their needs. The Python script has good readability and maintainability, which is convenient for subsequent maintenance and upgrades.
[0046] Step S20, burning the configuration file into the Flash of the target hardware platform through a preset interface.
[0047] It should be understood that the configuration parameter information in the configuration file can be transferred to the Bootloader through the second script according to the preset interface, and then the generated configuration file is burned into the Flash of the target hardware platform DSP.
[0048] Step S30, performing automated deployment of the boot loader configuration through an automated testing framework.
[0049] It is understandable that the first and second scripts can be called separately through the master script. By integrating the automated testing framework and the script execution tool, the automated deployment of the Bootloader configuration can be achieved. Whenever there is a new configuration requirement or a hardware platform change, you only need to modify the Python script and re-execute the automated deployment process to quickly complete the configuration and deployment of the Bootloader, thereby improving development efficiency and reducing human errors.
[0050] It is understandable that the message information in the DBC file can be accurately parsed through automated DBC file parsing, thereby achieving automated configuration. Automated DBC file parsing is to read and process detailed information about CAN bus data in the DBC file through specific software tools or scripts to facilitate further data analysis and achieve automated configuration.
[0051] This embodiment provides a bootloader configuration method, which generates a bootloader configuration file by parsing the incoming configuration parameters; burns the configuration file into the Flash of the target hardware platform through a preset interface; and automatically deploys the bootloader configuration through an automated testing framework. Since this embodiment generates a Bootloader configuration file based on the configuration parameters, burns the configuration file into the Flash of the target hardware platform, and automatically deploys it through an automated testing framework, the Bootloader configuration can be flexibly adjusted according to different hardware platforms and development requirements through Python scripts, without modifying hard-coded or complex configuration files. By integrating an automated testing framework, the automated deployment of the Bootloader configuration can be achieved, which improves development efficiency and reduces human errors.
[0052] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , step S10, the boot loader configuration method further includes steps S101 to S102:
[0053] Step S101, parsing the input configuration parameters, and determining the hardware configuration of the target hardware platform according to the configuration parameters.
[0054] It is understandable that the first script can parse the incoming configuration parameters, and then evaluate the characteristics and limitations of the target hardware platform based on the configuration parameters, which can be hardware configurations such as processor type, memory size, storage medium, etc.
[0055] Step S102: Generate a configuration file of the boot loader according to the hardware configuration.
[0056] In a feasible implementation manner, the hardware configuration includes a processor type, a memory size, and a storage medium, and the configuration file includes Flash layout parameters, startup mode configuration parameters of a target hardware platform, and security verification mechanism parameters.
[0057] It is understandable that the characteristics and limitations of the target hardware platform can be evaluated through hardware configurations such as processor type, memory size and storage media, so as to generate a configuration file for the boot loader. The generated configuration file may include Flash layout parameters, boot mode configuration parameters of the target hardware platform and security verification mechanism parameters, etc., depending on the requirements of the Bootloader and the characteristics of the hardware platform.
[0058] In a feasible implementation manner, before step S10, step S01 may also be included:
[0059] Step S01, receiving configuration parameters through command line parameters, parameter configuration files or environment variables.
[0060] It should be understood that the first script may receive configuration parameters in the form of command line parameters, parameter configuration files, or environment variables.
[0061] In a feasible implementation manner, the configuration parameters include online update, security verification, fault recovery and diagnostic ID.
[0062] It should be understood that since the first script contains all the logic and parameters required for the Bootloader configuration, the script will use Python's flexibility and rich library functions to implement the parsing of configuration parameters, the generation of configuration files, and the interface for interacting with the Bootloader. A series of configuration parameters are defined in the first script, such as online update, security verification, fault recovery, diagnostic ID, etc. These parameters can be passed in through command line parameters, parameter configuration files, or environment variables. The script parses these parameters and generates the corresponding Bootloader configuration file based on the values of the parameters.
[0063] This embodiment provides a boot loader configuration method, which parses the incoming configuration parameters such as online update, security verification, fault recovery, diagnostic ID, etc. through a first script, and determines the hardware configuration of the target hardware platform such as processor type, memory size, storage medium, etc. according to the configuration parameters, so that a boot loader configuration file can be generated according to the hardware configuration, and the configuration parameters can be flexibly adjusted according to different hardware platforms and development requirements without modifying hard-coded or complex configuration files.
[0064] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 3 , step S20, the boot loader configuration method further includes steps S201-S202:
[0065] Step S201: passing the configuration file to the boot loader through a pre-written interactive interface, or passing the configuration file to the boot loader through serial port communication.
[0066] Step S202, burning the configuration file into the Flash of the target hardware platform.
[0067] It should be noted that the second script also provides an interface for interacting with the Bootloader, which is used to burn the generated configuration file into the Flash of the target hardware, or pass the configuration parameters to the Bootloader through other means (such as serial port communication) and burn the configuration file into the Flash of the target hardware platform.
[0068] In this embodiment, the configuration parameters are passed to the Bootloader through an interface that interacts with the Bootloader, or through other means (such as serial communication), so that the generated configuration file is burned into the Flash of the target hardware, thereby simplifying the configuration process and improving development efficiency. This process reduces human errors, improves the consistency and accuracy of configuration, and reduces the workload of development and maintenance.
[0069] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the boot loader configuration method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0070] This application also provides a boot loader configuration device, please refer to Figure 4 , the boot loader configuration device comprises:
[0071] The configuration file generation module 10 is used to parse the input configuration parameters and generate a configuration file for the boot loader;
[0072] The configuration file burning module 20 is used to burn the configuration file into the Flash of the target hardware platform through a preset interface;
[0073] The automated deployment module 30 is used to perform automated deployment of the boot loader configuration through an automated testing framework.
[0074] The boot loader configuration device provided by the present application adopts the boot loader configuration method in the above embodiment to solve the technical problem. Compared with the prior art, the beneficial effects of the boot loader configuration device provided by the present application are the same as the beneficial effects of the boot loader configuration method provided by the above embodiment, and other technical features in the boot loader configuration device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0075] The present application provides a boot loader configuration device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the boot loader configuration method in the above-mentioned embodiment 1.
[0076] Reference below Figure 5 , which shows a schematic diagram of the structure of a bootloader configuration device suitable for implementing an embodiment of the present application. The bootloader configuration device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The boot loader configuration device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0077] like Figure 5As shown, the boot loader configuration device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the boot loader configuration device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the bootloader configuration device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a bootloader configuration device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0078] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0079] The boot loader configuration device provided by the present application adopts the boot loader configuration method in the above embodiment, which can solve the technical problem of boot loader configuration. Compared with the prior art, the beneficial effects of the boot loader configuration device provided by the present application are the same as the beneficial effects of the boot loader configuration method provided by the above embodiment, and other technical features in the boot loader configuration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0080] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0081] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0082] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the boot loader configuration method in the above-mentioned embodiment.
[0083] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0084] The computer-readable storage medium may be included in the boot loader configuration device; or may exist independently without being assembled into the boot loader configuration device.
[0085] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the boot loader configuration device, the boot loader configuration device: parses the input configuration parameters and generates a configuration file of the boot loader; burns the configuration file into the Flash of the target hardware platform through a preset interface; and automatically deploys the boot loader configuration through an automated testing framework.
[0086] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0088] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0089] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned boot loader configuration method, and can solve technical problems. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the boot loader configuration method provided by the above-mentioned embodiment, and will not be repeated here.
[0090] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the boot loader configuration method as described above are implemented.
[0091] The computer program product provided by the present application can solve the technical problem. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the boot loader configuration method provided by the above embodiment, which will not be described in detail here.
[0092] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A boot loader configuration method, characterized in that: The method includes: Parse the incoming configuration parameters and generate the configuration file for the boot loader; Burn the configuration file into the Flash of the target hardware platform through a preset interface; Automated deployment of bootloader configuration via automated testing framework.
2. The method according to claim 1, characterized in that The step of parsing the input configuration parameters and generating a configuration file of the boot loader includes: Parsing the input configuration parameters, and determining the hardware configuration of the target hardware platform according to the configuration parameters; A configuration file of the boot loader is generated according to the hardware configuration.
3. The method according to claim 2, characterized in that The hardware configuration includes processor type, memory size and storage medium, and the configuration file includes Flash layout parameters, startup mode configuration parameters of the target hardware platform and security verification mechanism parameters.
4. The method according to claim 1, characterized in that Before the step of parsing the input configuration parameters and generating the configuration file of the boot loader, the following steps are also included: Receive configuration parameters through command line parameters, parameter configuration files, or environment variables.
5. The method according to claim 4, characterized in that The configuration parameters include online update, security verification, fault recovery and diagnostic ID.
6. The method according to claim 1, characterized in that The step of burning the configuration file into the Flash of the target hardware platform through the preset interface includes: The configuration file is transferred to the boot loader through a pre-written interactive interface, or the configuration file is transferred to the boot loader through serial communication; Burn the configuration file into the Flash of the target hardware platform.
7. A boot loader configuration device, characterized in that: The boot loader configuration device comprises: Configuration file generation module, used to parse the incoming configuration parameters and generate the configuration file of the boot loader; A configuration file burning module, used to burn the configuration file into the Flash of the target hardware platform through a preset interface; An automated deployment module for automated deployment of bootloader configurations via an automated testing framework.
8. A boot loader configuration device, characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the boot loader configuration method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the boot loader configuration method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, which implements the steps of the boot loader configuration method according to any one of claims 1 to 6 when executed by a processor.
