Search

CN-121979547-A - Dynamic modification method, device and system for display screen firmware parameters

CN121979547ACN 121979547 ACN121979547 ACN 121979547ACN-121979547-A

Abstract

A method for dynamically modifying firmware parameters of display screen includes initializing display screen firmware parameter modifying unit, reading out first IMG firmware file packet and decoding out file to be operated including display screen firmware parameters, picking up display screen firmware parameters to be extracted into equipment tree file/data and modifying display screen firmware parameters, packing modified display screen firmware parameters together with kernel of operation system into second IMG firmware file, unlocking equipment tree file/data by display screen firmware parameter modifying unit to dynamically adjust display screen firmware parameters for realizing dynamic adjustment of hardware parameters of target display screen. By applying the invention, not only the dynamic modification of the hardware parameters of the display screen can be realized, but also the development and debugging efficiency can be greatly improved, and meanwhile, the product upgrading cost and the maintenance cost are effectively reduced.

Inventors

  • TAN XUESONG
  • FAN KUNFANG
  • SUN YUEQIANG

Assignees

  • 北京平治东方科技股份有限公司

Dates

Publication Date
20260505
Application Date
20260407

Claims (10)

  1. 1. The dynamic modification method of the display screen firmware parameters is characterized by comprising the following steps: A. Initializing a display screen firmware parameter modification device, reading a first IMG firmware file package from a version release server, and solving out display screen firmware parameters; B. Reading the display screen firmware parameters, extracting the display screen firmware parameters into equipment tree files/data, modifying the display screen firmware parameters, and packaging the modified display screen firmware parameters and an operating system kernel into a second IMG firmware file; C. analyzing the display screen firmware parameters in the equipment tree file/data in the second IMG firmware file, and starting the modified display screen firmware parameters to identify and match corresponding display screen equipment so as to realize dynamic adjustment of hardware parameters of a target display screen.
  2. 2. The method for dynamically modifying a firmware parameter of a display screen according to claim 1, wherein the step B further comprises, after: and regenerating a kernel firmware file by using the dynamic modification device of the display screen firmware parameters, and burning the second IMG firmware file containing the modified display screen firmware parameters into a read-only memory.
  3. 3. The method for dynamically modifying display screen firmware parameters according to claim 1, the display screen firmware parameters are characterized by comprising: 1) clock-frequency: clock frequency/pixel clock; 2) hactive the number of horizontally active pixels, i.e. the number of pixels displayed per row; 3) vactive the number of vertically active pixels, i.e. the number of rows displayed per frame; 4) hbp horizontal trailing edge blanking time, blanking period after horizontal sync pulse; 6) vbp is the vertical trailing edge blank time, blank time period after the vertical synchronization pulse; 5) hfp H synchronization shift; 7) vfp V synchronization offset; 8) hsync, H sync width; 9) vsync, V sync width; 10 Hsync-active: active polarity of horizontal synchronization signal, 0 indicates active low level, 1 indicates active high level; 11 Vsync-active: active polarity of vertical synchronization signal, 0 indicates active low level, 1 indicates active high level; 12 De, active polarity of the data enable signal, 0 indicates active low level, 1 indicates active high level; 13 Pixelclk the active polarity of the pixel clock signal, 0 indicates active low and 1 indicates active high.
  4. 4. The method of claim 1, wherein the parsing the second IMG firmware file of the device tree file/data in step C initiates a process of modifying the display firmware parameters to identify and match the corresponding display device, comprising: After the equipment is electrified, a Boot program is started to initialize hardware comprising a memory, a clock, a power management module and a PLL, and then a universal Boot loader U-Boot is loaded to the memory; C2, continuously loading the system kernel and the device tree binary file DTB into the memory by the U-Boot, starting the system kernel, and mounting a root file system; C3, starting a system kernel, transmitting an analysis result into a device tree binary file DTB, and registering each node as a platform_device structure; C4, loading the device tree binary file DTB when the display subsystem is initialized and the driver is loaded, searching a display panel corresponding to the current display output interface, and calling registered of driver match device () to be matched with the corresponding display screen driver; c5, in the initialization process of the display screen drive, reading display parameters from the DTB of the equipment tree binary file to the video mode; And C6, after the display screen driver acquires the display parameters, transmitting the display screen parameters in a DRM framework of the direct rendering manager through a video mode along the following call flow, and finally writing the display screen parameters into a display screen register through a mipi _dsi interface to finish the dynamic adjustment of the hardware parameters of the display screen.
  5. 5. A device for dynamically modifying display screen firmware parameters, the device comprising: the display screen firmware parameter file acquisition module is used for initializing the display screen firmware parameter modification device, reading a first IMG firmware file package from the corresponding version release server, and decompressing out the display screen firmware parameter file; The firmware parameter modification and packaging module is used for reading the display screen firmware parameters, extracting the display screen firmware parameters into the equipment tree file/data, adjusting/modifying the display screen firmware parameters, and packaging the adjusted/modified display screen firmware parameters and the operating system kernel into a second IMG firmware file; and the equipment tree file analysis and firmware parameter starting module is used for analyzing the second IMG firmware file in the equipment tree file/data and starting the modified display screen firmware parameters so as to identify and adapt to corresponding display screen equipment.
  6. 6. The device of claim 5, wherein the first IMG firmware package includes an operating system, a driver, an application, and a display firmware parameter file.
  7. 7. The device for dynamically modifying a display screen firmware parameter according to claim 5, further comprising: And the kernel firmware file regeneration and burning module is used for regenerating the kernel firmware file from the second IMG firmware file containing the modified display screen firmware parameters and burning the kernel firmware file into a read-only memory.
  8. 8. The system for dynamically modifying the firmware parameters of the display screen is characterized by comprising the dynamic modifying device for the firmware parameters of the display screen according to any one of claims 5-7, a version release server and the display screen, wherein: The version release server stores an IMG firmware file containing the display screen firmware parameter file, and is used for reading and downloading by a dynamic modification device of the display screen firmware parameter, uploading and partitioning the IMG firmware file containing the modified display screen firmware parameter; The display screen is used for responding to the dynamic modification device of the display screen firmware parameters to start the modified display screen firmware parameters so as to verify whether the display screen firmware parameters are matched with each other.
  9. 9. An embedded system, the embedded system comprising: A memory; at least one processor, and The device for dynamically modifying firmware parameters of a display screen according to any one of claims 5 to 7.
  10. 10. A computer readable storage medium having stored therein executable instructions configured for implementing the method for dynamically modifying display screen firmware parameters of claims 1-4.

Description

Dynamic modification method, device and system for display screen firmware parameters Technical Field The present application relates to display screen application technologies, and in particular, to a method, an apparatus, and a system for dynamically modifying firmware parameters of a display screen. Background In the development and use process of embedded products, the hardware is inevitably required to be replaced or parameters of the hardware are inevitably changed. For example, when modifying parameters of a Liquid Crystal (LCD) display screen, a semiconductor Light Emitting Diode (LED) display screen, an Organic Light Emitting Diode (OLED) display screen, etc. in a development process, if modifying parameters of a screen by adopting the prior art, a software technician having special skills for developing an embedded system is generally required to recompile and release firmware, and then upgrade the firmware to achieve the purpose of updating hardware parameters. For example, the application number is cn202211359942.X, entitled "a system for remotely upgrading firmware of a controller through a display screen" applies for the invention, and discloses a method for upgrading firmware of a controller of a vehicle requiring remote upgrading by using a remote upgrading server to be in communication connection with the controller, and sending the upgrading firmware to the controller through the remote upgrading server so as to send the upgrading firmware to the controller, and by using the method for upgrading the firmware of the controller of the vehicle requiring remote upgrading, the time of the upgrading operation can be effectively shortened, and the expenditure of manpower and material resources can be reduced. For example, the application number is CN202010429092.0, the name of the invention is a method and a system for realizing screen parameter upgrading of a display screen, the method for realizing screen parameter upgrading is that screen parameters are written into an EMMC screen parameter partition in advance, then screen parameter data in the EMMC screen parameter partition are read through a loading guide program, if the screen parameters are successfully read, the screen parameters are transmitted to a kernel and started, a display screen controller is initialized according to the transmitted screen parameter data, then a new resolution is output to lighten the display screen, and when the screen parameters are failed to read, default screen parameter data are used for replacing the screen parameters, and the screen parameter data of the EMMC screen parameter partition are updated through a U disk or an SD card, so that the screen parameter of the display screen is upgraded. In summary, the above existing technology for upgrading or modifying the display screen firmware needs to set/modify the hardware environment, or the steps for implementing the upgrading/modifying the firmware parameters are complicated and time-consuming, so that there are defects or deficiencies of low upgrading efficiency and high maintenance cost of software and hardware. Disclosure of Invention Therefore, the main objective of the present application is to provide a method, an apparatus and a system for dynamically modifying display screen Firmware parameters, which are implemented by extracting the display screen Firmware parameters to be modified into a device tree (DEVICE TREE, DT) in a unified manner, packing the display screen Firmware parameters into a Firmware (Firmware) together with kernel source codes, and directly unlocking the data structure of the Device Tree (DT) through a Device Tree (DT) modification tool. In addition, the device can regenerate the kernel firmware and burn the display screen firmware program into the read-only memory, so that the participation of software technicians is not needed, a software test link is not needed, and the modification efficiency of hardware parameters can be greatly improved. In order to achieve the above purpose, the application adopts the following technical scheme: A dynamic modification method of display screen firmware parameters comprises the following steps: A. Initializing a display screen firmware parameter modification device, reading a first IMG firmware file package from a version release server, and solving out display screen firmware parameters; B. Reading the display screen firmware parameters, extracting the display screen firmware parameters into equipment tree files/data, modifying the display screen firmware parameters, and packaging the modified display screen firmware parameters and an operating system kernel into a second IMG firmware file; C. And analyzing the equipment tree file/data in the second IMG firmware file, and starting the modified display screen firmware parameters to identify and match the corresponding display screen equipment so as to realize dynamic adjustment of the hardware parameters of the target display screen. Wherei