CN111552498A - Method and system for realizing screen parameter upgrading of display screen - Google Patents

Method and system for realizing screen parameter upgrading of display screen Download PDF

Info

Publication number
CN111552498A
CN111552498A CN202010429092.0A CN202010429092A CN111552498A CN 111552498 A CN111552498 A CN 111552498A CN 202010429092 A CN202010429092 A CN 202010429092A CN 111552498 A CN111552498 A CN 111552498A
Authority
CN
China
Prior art keywords
screen
screen parameter
emmc
partition
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010429092.0A
Other languages
Chinese (zh)
Other versions
CN111552498B (en
Inventor
邢映彪
王东阳
雷伟文
陶政文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tairui Technology Co ltd
Guangzhou Tongbada Electric Technology Co ltd
Guangzhou Tongda Auto Electric Co Ltd
Original Assignee
Guangzhou Tairui Technology Co ltd
Guangzhou Tongbada Electric Technology Co ltd
Guangzhou Tongda Auto Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tairui Technology Co ltd, Guangzhou Tongbada Electric Technology Co ltd, Guangzhou Tongda Auto Electric Co Ltd filed Critical Guangzhou Tairui Technology Co ltd
Priority to CN202010429092.0A priority Critical patent/CN111552498B/en
Publication of CN111552498A publication Critical patent/CN111552498A/en
Application granted granted Critical
Publication of CN111552498B publication Critical patent/CN111552498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of display screen parameter upgrading, in particular to a method and a system for realizing screen parameter upgrading of a display screen. The method comprises the following steps: s1, writing the screen parameters into the EMMC screen parameter partition in advance; s2, reading screen parameter data in the EMMC screen parameter partition by loading a bootstrap program; if the screen parameters are successfully read, transferring the screen parameters to the kernel, and turning to the step S3, otherwise, turning to the step S4; s3, starting the kernel, initializing the display screen controller according to the transmitted screen parameter data, outputting a new resolution and lighting up the display screen; and S4, replacing the screen parameter data with the default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter partition. According to the method, the screen parameter data in the EMMC screen parameter partition is read through the Uboot, the screen parameter data is transmitted to the kernel, and the EMMC screen parameter partition can be adapted to various display screens under the same Android system firmware only by updating the EMMC screen parameter partition through the U disk or the SD card.

Description

Method and system for realizing screen parameter upgrading of display screen
Technical Field
The invention relates to the technical field of display screen parameter upgrading, in particular to a method and a system for realizing screen parameter upgrading of a display screen.
Background
At present, the existing Android devices with a matched display screen (such as an LCD screen) can display a default resolution when leaving a factory, and if the LCD screens with other resolutions are replaced, the Android system firmware needs to be updated to match the new LCD screen. A kind of LCD screen needs to correspond to an Android system firmware, and many kinds of LCD screens will have many system firmware to be maintained, and these system firmware are different except that the display output, and other functions are all the same. When the different LCD screens of equipment change, can appear unable demonstration or show incorrect problem, need to update Android system firmware and solve. A plurality of Android system firmware are needed to be used for maintaining the various LCD screens, so that the software maintenance cost is high, the firmware upgrading time is long, and the production efficiency is low.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a method for realizing screen parameter upgrading of a display screen, which is characterized in that required screen parameter data are written into a designated EMMC screen parameter partition in advance, when a system is started, screen parameter data in the EMMC screen parameter partition are read out through Uboot, the screen parameter data are transmitted to a kernel, and the EMMC screen parameter partition can be adapted to various display screens under the same Android system firmware only by updating the EMMC screen parameter partition through a U disk or an SD card.
On the other hand, the invention also provides a system for realizing screen parameter upgrading of the display screen.
The method is realized by adopting the following technical scheme: a method for realizing screen parameter upgrading of a display screen comprises the following steps:
s1, writing the screen parameters into the EMMC screen parameter partition in advance;
s2, reading screen parameter data in the EMMC screen parameter partition by loading a bootstrap program; if the screen parameters are successfully read, transferring the screen parameters to the kernel, and turning to the step S3, otherwise, turning to the step S4;
s3, starting the kernel, initializing the display screen controller according to the transmitted screen parameter data, outputting a new resolution and lighting up the display screen;
and S4, replacing the screen parameter data with the default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter partition.
In a preferred embodiment, in step S4, the screen parameters of the EMMC screen parameter partition are updated by the usb disk or the SD card, and the process is as follows:
s41, starting a screen parameter upgrading service process, monitoring the insertion action of the U disk or the SD card in real time, and checking whether a root directory of the U disk or the SD card contains a screen parameter file;
s42, after finding that the screen parameter file exists, the upgrading service process reads the data of the screen parameter file to calculate a CRC (cyclic redundancy check) value, reads the CRC value stored in the EMMC screen parameter partition, and compares the two CRC values; if screen parameter upgrading is not performed, the data of the EMMC screen parameter partition is empty, and the CRC value in the EMMC screen parameter partition is 0; if the CRC values are different, writing the screen parameter data into the EMMC screen parameter partition, simultaneously writing a new CRC value, automatically restarting the system after the writing of the CRC value is finished, finishing the upgrading of the screen parameter, and outputting a new resolution by the display screen; and if the CRC check values are the same, the screen parameter data is not updated.
Loading a boot program into the step S2 to be a Uboot program; the mechanism for transmitting the screen parameter data through the Uboot in the step S3 is as follows: when the Uboot is started, the screen parameter data is transmitted to the kernel by setting the cmdlene parameter, and the kernel acquires and analyzes the cmdlene parameter when the kernel is started.
The system of the invention is realized by adopting the following technical scheme: a system for implementing screen parameter upgrades for a display screen, comprising:
the screen parameters are written into the EMMC screen parameter partition in advance;
a boot program loading module reads screen parameter data in the EMMC screen parameter partition by loading a boot program; if the screen parameters are successfully read, transmitting the screen parameters to the kernel; if the screen parameter data fails to be read, replacing the screen parameter data with default screen parameter data;
the display screen lighting module starts the kernel when the screen parameters are successfully read, initializes the display screen controller according to the transmitted screen parameter data and outputs a new resolution to light the display screen;
and the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. according to the method, the required screen parameter data is written into the designated EMMC screen parameter partition in advance, the screen parameter data in the EMMC screen parameter partition is read out through Uboot when the system is started, and the screen parameter data is transmitted to the kernel. Initializing a display screen controller according to the transmitted screen parameter data when the kernel is started, and outputting a new resolution to light up the display screen; for different display screens, the EMMC screen parameter partitions are updated only through a U disk or an SD card, and the display screens can be adapted to the same Android system firmware. Therefore, by means of the screen parameter upgrading method, when different LCD screens are replaced by the equipment, the Android system firmware does not need to be upgraded, and only the LCD screen parameters need to be upgraded.
2. When the different display screens are replaced, the Android system firmware does not need to be upgraded, and only the LCD screen parameters need to be upgraded; and the upgrading of the LCD screen only needs a few seconds, so that the production efficiency can be greatly improved, the software maintenance cost can be reduced, and the after-sale maintenance complexity can be reduced.
Drawings
FIG. 1 is a flow chart of an upgrade method of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
Examples
As shown in fig. 1, taking an LCD screen as an example, the method for implementing screen parameter upgrading of a display screen of the present invention includes the following steps:
s1, writing the screen parameters into the designated EMMC screen parameter partition in advance;
s2, when the system is started, reading screen parameter data in the EMMC screen parameter area through Uboot; if the screen parameters are successfully read, transferring the screen parameters to the kernel, and turning to the step S3, otherwise, turning to the step S4;
when the Uboot is started, the screen parameters in the EMMC screen parameter partition can be read, and the parameters of the screen parameter partition can be automatically read out.
S3, when the kernel is started, initializing the LCD controller according to the transmitted screen parameter data, and outputting a new resolution to light the LCD screen;
and S4, replacing the screen parameter data with the default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter partition through the U disk or the SD card.
And updating screen parameter data of the EMMC screen parameter partition through a U disk or an SD card, so that the EMMC screen parameter partition can be adapted to various LCD screens under the same Android system firmware. The process of updating the screen parameters of the EMMC screen parameter partition through the U disk or the SD card comprises the following steps:
and S41, after the system is started, starting a screen parameter upgrading service process lcdparamservice, wherein the process is written by using C language, has no UI (user interface), can monitor the insertion action of the U disk or the SD card in real time, and checks whether a root directory of the U disk or the SD card has screen parameter files td _ lcd _ parameters. The screen parameter file is a text file, the LCD screen parameters are stored in the screen parameter file, and the screen parameter file can be edited or modified at a computer end without special tools.
S42, after finding that the screen parameter file td _ lcd _ parameters exists in the service upgrading process lcdparamservice, reading the data of the screen parameter file to calculate a CRC check value (non-0 value), reading the CRC check value already stored in the EMMC screen parameter partition, and comparing the two CRC check values; if the EMMC screen parameter partition is a bare board, namely screen parameter upgrading is not performed, the data of the EMMC screen parameter partition is empty, and the CRC value in the EMMC screen parameter partition is 0; if the CRC values are different, writing the screen parameter data into the EMMC screen parameter partition, and simultaneously writing a new CRC value, automatically restarting the system after the writing of the CRC value is finished, marking that the screen parameter upgrading is finished, and outputting a new resolution by the LCD screen to represent that the screen parameter upgrading is successful; and if the CRC check values are the same, the screen parameter data cannot be updated.
The mechanism for transmitting the screen parameter data through the Uboot comprises the following steps: when the Uboot is started, the screen parameter data can be transmitted to the kernel by setting the cmdlene parameters, and the kernel can acquire and analyze the cmdlene parameters when being started and then carry out system initialization work. The steps S3 and S4 are combined, the screen parameter data is transferred to the kernel initialization LCD screen by using the mechanism, and the specified resolution is output, specifically:
when the system is started, the Uboot reads the screen parameter data of the EMMC screen parameter partition for judgment, if the read screen parameter data are empty or the screen parameter data are not standard values (the product resolution is required), the read screen parameter data fail to be read, and at the moment, the screen parameter data cannot be written into cmdline, namely, the parameter transmission is not carried out. If the screen parameter data transmitted by the cmdlene is not acquired when the kernel is started, initializing by using a parameter value fixed by a kernel code, wherein the display is abnormal due to the fact that an LCD screen is possibly not matched with a default parameter, and updating the correct screen parameter through a U disk/SD card; if the kernel acquires the screen parameter data transmitted by the cmdlene when starting, the screen parameter data is judged, and whether the parameters required by the current equipment exist or not is judged, and the parameters are used for carrying out LCD screen initialization only when the requirements are met.
Based on the same inventive concept, the invention provides an upgrading system corresponding to the upgrading method, which comprises the following steps:
the screen parameters are written into the EMMC screen parameter partition in advance;
a boot program loading module reads screen parameter data in the EMMC screen parameter partition by loading a boot program; if the screen parameters are successfully read, transmitting the screen parameters to the kernel; if the screen parameter data fails to be read, replacing the screen parameter data with default screen parameter data;
the display screen lighting module starts the kernel when the screen parameters are successfully read, initializes the display screen controller according to the transmitted screen parameter data and outputs a new resolution to light the display screen;
and the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition.
In this embodiment, the screen parameter updating module is a usb disk or an SD card; the screen parameter data updating module updates the screen parameters of the EMMC screen parameter partition so as to realize the step S4; the loading bootstrap program is a Uboot program, and the loading bootstrap program module is used for realizing the step S2; the display screen lighting module is configured to implement step S3 described above.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (10)

1. A method for realizing screen parameter upgrading of a display screen is characterized by comprising the following steps:
s1, writing the screen parameters into the EMMC screen parameter partition in advance;
s2, reading screen parameter data in the EMMC screen parameter partition by loading a bootstrap program; if the screen parameters are successfully read, transferring the screen parameters to the kernel, and turning to the step S3, otherwise, turning to the step S4;
s3, starting the kernel, initializing the display screen controller according to the transmitted screen parameter data, outputting a new resolution and lighting up the display screen;
and S4, replacing the screen parameter data with the default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter partition.
2. The method for implementing screen parameter upgrade of a display screen according to claim 1, wherein step S4 updates the screen parameters of the EMMC screen parameter partition through a usb disk or an SD card.
3. The method for realizing the screen parameter updating of the display screen according to claim 2, wherein the process of updating the screen parameters of the EMMC screen parameter partition by using the U disk or the SD card comprises the following steps:
s41, starting a screen parameter upgrading service process, monitoring the insertion action of the U disk or the SD card in real time, and checking whether a root directory of the U disk or the SD card contains a screen parameter file;
s42, after finding that the screen parameter file exists, the upgrading service process reads the data of the screen parameter file to calculate a CRC (cyclic redundancy check) value, reads the CRC value stored in the EMMC screen parameter partition, and compares the two CRC values; if screen parameter upgrading is not performed, the data of the EMMC screen parameter partition is empty, and the CRC value in the EMMC screen parameter partition is 0; if the CRC values are different, writing the screen parameter data into the EMMC screen parameter partition, simultaneously writing a new CRC value, automatically restarting the system after the writing of the CRC value is finished, finishing the upgrading of the screen parameter, and outputting a new resolution by the display screen; and if the CRC check values are the same, the screen parameter data is not updated.
4. The method for implementing screen parameter upgrade of a display screen according to claim 3, wherein the screen parameter file in step S41 is a text file.
5. The method for implementing screen parameter upgrade of a display screen according to claim 1, wherein the boot program is loaded in step S2 as a Uboot program;
the mechanism for transmitting the screen parameter data through the Uboot in the step S3 is as follows: when the Uboot is started, the screen parameter data is transmitted to the kernel by setting the cmdlene parameter, and the kernel acquires and analyzes the cmdlene parameter when the kernel is started.
6. A system for realizing screen parameter upgrading of a display screen is characterized by comprising:
the screen parameters are written into the EMMC screen parameter partition in advance;
a boot program loading module reads screen parameter data in the EMMC screen parameter partition by loading a boot program; if the screen parameters are successfully read, transmitting the screen parameters to the kernel; if the screen parameter data fails to be read, replacing the screen parameter data with default screen parameter data;
the display screen lighting module starts the kernel when the screen parameters are successfully read, initializes the display screen controller according to the transmitted screen parameter data and outputs a new resolution to light the display screen;
and the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition.
7. The screen parameter upgrading system according to claim 6, wherein the screen parameter updating module is a USB flash disk or an SD card.
8. The screen parameter updating system according to claim 7, wherein the screen parameter updating module performs the screen parameter updating process on the EMMC screen parameter partition according to the screen parameter updating module:
starting a screen parameter upgrading service process, monitoring the insertion action of the U disk or the SD card in real time, and checking whether a root directory of the U disk or the SD card has a screen parameter file;
after finding that the screen parameter file exists in the upgrading service process, reading the data of the screen parameter file to calculate a CRC (cyclic redundancy check) value, reading the CRC value stored in the EMMC screen parameter partition, and comparing the two CRC values; if screen parameter upgrading is not performed, the data of the EMMC screen parameter partition is empty, and the CRC value in the EMMC screen parameter partition is 0; if the CRC values are different, writing the screen parameter data into the EMMC screen parameter partition, simultaneously writing a new CRC value, automatically restarting the system after the writing of the CRC value is finished, finishing the upgrading of the screen parameter, and outputting a new resolution by the display screen; and if the CRC check values are the same, the screen parameter data is not updated.
9. The screen parameter upgrading system according to claim 8, wherein the screen parameter file is a text file.
10. The screen parameter upgrading system according to claim 6, wherein the loading boot program is a Uboot program; the mechanism that the display screen lightening module transmits the screen parameter data through Uboot is as follows: when the Uboot is started, the screen parameter data is transmitted to the kernel by setting the cmdlene parameter, and the kernel acquires and analyzes the cmdlene parameter when the kernel is started.
CN202010429092.0A 2020-05-20 2020-05-20 Method and system for realizing screen parameter upgrading of display screen Active CN111552498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010429092.0A CN111552498B (en) 2020-05-20 2020-05-20 Method and system for realizing screen parameter upgrading of display screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010429092.0A CN111552498B (en) 2020-05-20 2020-05-20 Method and system for realizing screen parameter upgrading of display screen

Publications (2)

Publication Number Publication Date
CN111552498A true CN111552498A (en) 2020-08-18
CN111552498B CN111552498B (en) 2023-09-12

Family

ID=72000327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010429092.0A Active CN111552498B (en) 2020-05-20 2020-05-20 Method and system for realizing screen parameter upgrading of display screen

Country Status (1)

Country Link
CN (1) CN111552498B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237506A (en) * 2021-12-14 2022-03-25 四川长虹电器股份有限公司 EMMC data storage and read-write method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101181813B1 (en) * 2012-02-09 2012-09-11 (주)에이치앤에스 An embedded computer system being capable of changing resolution according a selected lcd pannel
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN109164996A (en) * 2018-08-10 2019-01-08 深圳市智微智能科技开发有限公司 A kind of realization android is from principal point screen method and Related product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101181813B1 (en) * 2012-02-09 2012-09-11 (주)에이치앤에스 An embedded computer system being capable of changing resolution according a selected lcd pannel
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN109164996A (en) * 2018-08-10 2019-01-08 深圳市智微智能科技开发有限公司 A kind of realization android is from principal point screen method and Related product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237506A (en) * 2021-12-14 2022-03-25 四川长虹电器股份有限公司 EMMC data storage and read-write method
CN114237506B (en) * 2021-12-14 2023-05-02 四川长虹电器股份有限公司 Method for storing and reading/writing EMMC data

Also Published As

Publication number Publication date
CN111552498B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
RU2419839C2 (en) Software update system and method for portable ota supporting mobile terminal
GB2466685A (en) Fault tolerant updating of firmware
CN105808292A (en) Firmware upgrade method of embedded terminal device
US20120117557A1 (en) Method and system for upgrading wireless data card
US7827548B1 (en) Environment-neutral application build
CN101957765A (en) Method, system and equipment for updating equipment firmware
CN101344854A (en) Method for upgrading embedded type Linux equipment through SD card
CN103365696A (en) BIOS (Basic Input Output System) image file obtaining method and device
US11314665B2 (en) Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device
EP3113018A1 (en) Method and apparatus for running version file
CN105389187B (en) System updating method
CN106210877A (en) The method for upgrading system of intelligent television and device
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN101505331A (en) Method and apparatus for updating system software of smart phone
CN111552498B (en) Method and system for realizing screen parameter upgrading of display screen
CN112612528B (en) System software selective starting and remote updating method based on Bootloader
CN103365684A (en) Updating method and multi-domain embedded system
CN106484442B (en) Server system and method for updating startup mapping file
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
US20230132494A1 (en) Information processing apparatus, method of controlling the same, and storage medium
CN111752623A (en) Display configuration method and device, electronic equipment and readable storage medium
CN107766072A (en) Video card refreshes BIOS method under a kind of linux system
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN113157322A (en) Method and system for automatically displaying software compiling time
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant