Starting-up interface starting method and device of Linux operating system, equipment and storage medium
By parsing and initializing the configuration file of the display device driver, the unified management and real-time refresh of various display devices is realized, which solves the problem of the inability to uniformly manage Linux images in the existing technology and adapts to different types and sizes of display devices.
Patent Information
- Application Number
- CN202410739068.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology cannot uniformly manage Linux images of various display devices, resulting in the need to design and compile different drivers for different display devices.
By obtaining and parsing the configuration file of the display device driver, initializing and refreshing the boot interface of the display device in real time, unified management of various display devices is achieved.
It realizes the unified management of Linux images of various display devices, can refresh the display device to the current display interface in real time, and adapts to different types and sizes of display devices.
Smart Images

Figure CN118733165A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer software, and in particular relates to a boot interface startup method, device, equipment and storage medium for a Linux operating system. Background Art
[0002] Embedded Linux operating system is widely used in IoT devices, some of which have display device functions. However, the interface types, types, and sizes of these display devices with IoT devices are inconsistent. Therefore, it is necessary to design corresponding drivers for various display devices and then recompile the images, which makes it impossible to unify the Linux images of various display devices.
[0003] Therefore, how to uniformly manage the Linux images of various display devices is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the technical problem that the Linux images of various display devices mentioned above cannot be unified, the present invention provides a boot interface startup method, device, equipment and storage medium of a Linux operating system.
[0005] In a first aspect, the present invention provides a method for starting a boot interface of a Linux operating system, comprising:
[0006] Obtaining a configuration file of a display device driver, and parsing the obtained configuration file of the display device driver;
[0007] Initializing a startup interface of the display device according to the parsed configuration file of the display device driver;
[0008] The startup interface of the initialized display device is refreshed in real time, and the display console controls the display device to refresh to the current display interface.
[0009] Preferably, the step of obtaining a configuration file of a display device driver comprises:
[0010] Solidify the relevant codes of the display device driver to the display device control chip of uboot;
[0011] The relevant codes of the solidified display device driver are loaded into the memory, and the configuration file of the display device driver is obtained through the memory.
[0012] Preferably, parsing the acquired configuration file of the display device driver includes:
[0013] Based on the acquired configuration file of the display device driver, the type of the display device interface, the instruction group for operating the display device, the startup interface data of the display device, and the GPIO interface are parsed.
[0014] Preferably, the initializing the startup interface of the display device includes:
[0015] Receiving the instruction group for operating the display device and the startup interface data of the display device through the GPIO interface;
[0016] The power-on interface of the display device is initialized according to the received instruction group for operating the display device and the power-on interface data of the display device.
[0017] Preferably, the method further comprises:
[0018] When the type of the display device changes, the configuration file of the display device driver is modified in real time;
[0019] The modified configuration file of the display device driver is loaded into the memory.
[0020] Preferably, loading the modified configuration file of the display device driver into the memory includes:
[0021] The modified configuration file of the display device driver is loaded into the memory through the copy and conversion commands in the Linux operating system.
[0022] Preferably, the memory is an embedded memory.
[0023] In a second aspect, the present invention further provides a boot interface startup device for a Linux operating system, the device being used to implement a boot interface startup method for a Linux operating system as described in any one of the first aspects above, comprising:
[0024] An acquisition module, used for acquiring a configuration file of a display device driver and parsing the acquired configuration file of the display device driver;
[0025] An initialization module, used to initialize the startup interface of the display device according to the parsed configuration file of the display device driver;
[0026] The control module is used to refresh the startup interface of the initialized display device in real time, and the display console controls the display device to refresh to the current display interface.
[0027] In a third aspect, the present invention further provides a device, comprising a processor and a memory coupled to the processor, the memory storing program instructions executable by the processor; when the processor executes the program instructions stored in the memory, the boot interface startup method of the Linux operating system as described in any one of the first aspects above is implemented.
[0028] In a fourth aspect, the present invention further provides a storage medium, wherein program instructions are stored in the storage medium, and when the program instructions are executed by a processor, a boot interface startup method of a Linux operating system as described in any one of the first aspects above can be implemented.
[0029] Compared with the prior art, the boot interface startup method of the Linux operating system provided by the present invention initializes the boot interface of the display device according to the configuration file of the display device driver parsed; refreshes the initialized boot interface of the display device in real time, and the liquid crystal display console controls the display device to refresh to the current display interface, thereby realizing the unified management of Linux images of various display devices and being able to refresh the display device to the current display interface in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only part of the embodiments of the present invention, rather than all of the embodiments. For ordinary technicians in this field, without paying creative work, other drawings obtained based on these drawings all fall within the scope of protection of the present invention.
[0031] Figure 1 A schematic diagram of a method for starting a boot interface of a Linux operating system provided by an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of the structure of a boot interface startup device for a Linux operating system provided by an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0034] Figure 4 A schematic diagram of a storage medium structure provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0036] In order to make the description of the content of the present invention more detailed and complete, the following is an illustrative description of the implementation method and specific examples of the present invention; however, this is not the only form of implementing or applying the specific embodiments of the present invention. The implementation method covers the features of multiple specific embodiments and the method steps and their sequence for constructing and operating these specific embodiments. However, other specific embodiments can also be used to achieve the same or equal functions and step sequences. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0038] In the description of the embodiments of the present invention, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, “multiple” means two or more than two, and other quantifiers are similar. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention, and the embodiments of the present invention and the features in the embodiments may be combined with each other without conflict.
[0039] Please refer to Figure 1 , Figure 1 The present invention provides a flowchart of a boot interface startup method of a Linux operating system, which can be executed by software and / or hardware devices. Figure 1 As shown, the boot interface startup method of the Linux operating system may include:
[0040] Step S101, obtain the configuration file of the display device driver, and parse the obtained configuration file of the display device driver. Specifically, in the embodiment of the present invention, the configuration file of the display device driver can be obtained first, and the obtained configuration file of the display device driver can be parsed to parse out the type of display device, the interface type of the display device, the data that the display device needs to refresh, the instruction group for operating the display device, the data of the display device startup interface, and the GPIO port for communicating with external devices. Among them, the display device can be a liquid crystal display screen or other display devices, which are specifically set according to actual needs, and the embodiment of the present invention does not make further restrictions.
[0041] Step S102: Initialize the boot interface of the display device according to the parsed configuration file of the display device driver. Specifically, in the embodiment of the present invention, the boot interface of the display device is initialized in uboot according to the relevant information of the parsed configuration file of the display device driver, and the boot interface of the display device is updated.
[0042] Step S103, the boot interface of the initialized display device is refreshed in real time, and the display console controls the display device to refresh to the current display interface. Specifically, in the embodiment of the present invention, after the uboot initializes the boot interface of the display device, the boot interface of the display device is synchronously refreshed to the current display interface, and the current display page is maintained until the display device is refreshed to the current display interface.
[0043] As an implementation method, the configuration file of the display device driver is obtained, including: fixing the relevant code of the display device driver to the display device control chip of uboot; loading the relevant code of the fixed display device driver to the memory, and obtaining the configuration file of the display device driver through the memory. Specifically, in an embodiment of the present invention, the relevant code of the display device driver can be fixed to the display device control chip of uboot first to complete the initialization and configuration before the Linux operating system is started; the display device driver can be enabled to run stably, and then the configuration file of the display device driver is obtained through the specified location of the memory.
[0044] As an implementation method, the configuration file of the acquired display device driver is parsed, including: parsing the type of display device interface, the instruction group for operating the display device, the boot interface data of the display device, and the GPIO interface based on the acquired configuration file of the display device driver. Specifically, in an embodiment of the present invention, the type and interface type of the display device can be parsed according to the acquired configuration file of the display device driver to match the current display device with the compiled image version; it is also necessary to parse the instruction group for operating the display device, and start the boot interface of the display device through the instruction group for operating the display device.
[0045] As an implementation mode, the initialization of the power-on interface of the display device includes: receiving the instruction group for operating the display device and the power-on interface data of the display device through the GPIO interface; initializing the power-on interface of the display device according to the received instruction group for operating the display device and the power-on interface data of the display device. Specifically, in the embodiment of the present invention, the instruction group for operating the display device and the power-on interface data of the display device can be received through the GPIO interface, and the power-on interface of the display device can be initialized through the instruction group for operating the display device.
[0046] As an implementation method, the method further includes: when the type of the display device changes, changing the configuration file of the display device driver in real time; and loading the changed configuration file of the display device driver into the memory. Specifically, in the embodiment of the present invention, if it is necessary to replace or adapt other display devices, it is only necessary to re-modify and generate a new configuration file of the display device driver, and then load the changed configuration file of the display device driver into the memory.
[0047] As an implementation mode, loading the configuration file of the modified display device driver into the memory includes: loading the configuration file of the modified display device driver into the memory through the copy and convert commands in the Linux operating system. Specifically, in the embodiment of the present invention, the configuration file of the modified display device driver can be directly downloaded to the specified location of the memory through the DD command in the Linux operating system, wherein the DD command can first copy and convert the configuration file of the modified display device driver into the memory.
[0048] As an implementation manner, the memory is an embedded memory. Specifically, in the embodiment of the present invention, the memory is an emmc embedded memory, and may also be other embedded memories.
[0049] The boot interface startup method of the Linux operating system provided by the present invention initializes the boot interface of the display device according to the configuration file of the display device driver parsed; refreshes the initialized boot interface of the display device in real time, and controls the display device to refresh to the current display interface through a liquid crystal display console, thereby realizing the unified management of Linux images of various display devices and being able to refresh the display device to the current display interface in real time.
[0050] Based on the above-mentioned Linux operating system boot interface startup method, the present invention also provides a Linux operating system boot interface startup device, please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a boot interface startup device for a Linux operating system provided in an embodiment of the present invention, the device comprising: an acquisition module 21, used to acquire a configuration file of a display device driver and parse the acquired configuration file of the display device driver; an initialization module 22, used to initialize the boot interface of the display device according to the parsed configuration file of the display device driver; a control module 23, used to refresh the boot interface of the initialized display device in real time, and the liquid crystal display console controls the display device to refresh to the current display interface.
[0051] The boot interface startup device of the Linux operating system provided in the embodiment of the present invention can execute the technical solution of the boot interface startup method of the Linux operating system in any of the above-mentioned embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the boot interface startup method of the Linux operating system. Please refer to the implementation principle and beneficial effects of the boot interface startup method of the Linux operating system, which will not be repeated here.
[0052] Please refer to Figure 3 , Figure 3 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 3As shown, the electronic device 30 includes a processor 31 and a memory 32 coupled to the processor 31. The memory 32 stores program instructions for implementing the boot interface startup method of the above-mentioned Linux operating system. The processor 31 is used to execute the program instructions stored in the memory 32. Among them, the processor 31 can also be called a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip with signal processing capabilities. The processor 31 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0053] Please refer to Figure 4 , Figure 4 A schematic diagram of a storage medium structure provided for an embodiment of the present invention. The storage medium 40 of the embodiment of the present invention stores program instructions 41 that can implement the boot interface startup method of the Linux operating system described above, wherein the program instructions 41 can be stored in the above storage medium in the form of a software product, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.
[0054] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0055] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present invention.
[0056] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as above in the form of preferred embodiments, it is not intended to limit the present invention. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for starting up a boot interface of a Linux operating system, characterized in that: include: Obtaining a configuration file of a display device driver, and parsing the obtained configuration file of the display device driver; Initializing a startup interface of the display device according to the parsed configuration file of the display device driver; The startup interface of the initialized display device is refreshed in real time, and the display console controls the display device to refresh to the current display interface.
2. The boot interface startup method of the Linux operating system according to claim 1, characterized in that: The step of obtaining a configuration file of a display device driver comprises: Solidify the relevant codes of the display device driver to the display device control chip of uboot; The relevant codes of the solidified display device driver are loaded into the memory, and the configuration file of the display device driver is obtained through the memory.
3. The boot interface startup method of the Linux operating system according to claim 2, characterized in that: The step of parsing the acquired configuration file of the display device driver comprises: Based on the acquired configuration file of the display device driver, the type of the display device interface, the instruction group for operating the display device, the startup interface data of the display device, and the GPIO interface are parsed.
4. The boot interface startup method of the Linux operating system according to claim 3, characterized in that: Initializing the startup interface of the display device includes: Receiving the instruction group for operating the display device and the startup interface data of the display device through the GPIO interface; The power-on interface of the display device is initialized according to the received instruction group for operating the display device and the power-on interface data of the display device.
5. The boot interface startup method of the Linux operating system according to claim 4, characterized in that: The method further comprises: When the type of the display device changes, the configuration file of the display device driver is modified in real time; The modified configuration file of the display device driver is loaded into the memory.
6. The boot interface startup method of the Linux operating system according to claim 5, characterized in that: Load the modified display device driver configuration file into the memory, including: The modified configuration file of the display device driver is loaded into the memory through the copy and conversion commands in the Linux operating system.
7. The boot interface startup method of the Linux operating system according to claim 6, characterized in that: include: The memory is an embedded memory.
8. A boot interface startup device for a Linux operating system, characterized in that: The device is used to implement the boot interface startup method of the Linux operating system according to any one of claims 1 to 7, comprising: An acquisition module, used for acquiring a configuration file of a display device driver and parsing the acquired configuration file of the display device driver; An initialization module, used to initialize the startup interface of the display device according to the parsed configuration file of the display device driver; The control module is used to refresh the startup interface of the initialized display device in real time, and the display console controls the display device to refresh to the current display interface.
9. A device, characterized in that: It includes a processor and a memory coupled to the processor, the memory storing program instructions that can be executed by the processor; when the processor executes the program instructions stored in the memory, the boot interface startup method of the Linux operating system as described in any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores program instructions, which, when executed by a processor, can implement a boot interface startup method of a Linux operating system according to any one of claims 1 to 7.
