CN110083420A - A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing - Google Patents

A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110083420A
CN110083420A CN201910283730.XA CN201910283730A CN110083420A CN 110083420 A CN110083420 A CN 110083420A CN 201910283730 A CN201910283730 A CN 201910283730A CN 110083420 A CN110083420 A CN 110083420A
Authority
CN
China
Prior art keywords
uboot
information
startup interface
character
module
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.)
Pending
Application number
CN201910283730.XA
Other languages
Chinese (zh)
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.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics 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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201910283730.XA priority Critical patent/CN110083420A/en
Publication of CN110083420A publication Critical patent/CN110083420A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides a kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing, is based on uboot module, collocating LCD startup interface operation port;Picture editor module is configured, picture display parameters editor module is set;Establish literal pool and character repertoire;Configure character modulus tool and copy editor's module;Graphical information, the Pixel Information and colouring information of graphical information are obtained according to predetermined manner;Text information and character information are obtained by character modulus tool and copy editor's module;Text information and character information are added to image information, form uboot file, and is stored to starting storage area.It is read out before feasible system starting, LCD shows user's startup interface when starting, and fixed logo etc. can be designed by increasing picture and showing.Low capacity character library is established according to interface content, while overcoming uboot firmware size to limit, complicated user interface can be designed.

Description

A kind of startup interface implementation method based on uboot, system and readable are deposited terminating machine Storage media
Technical field
The present invention relates to computer field more particularly to a kind of startup interface implementation method based on uboot, system is whole Terminal and readable storage medium storing program for executing.
Background technique
Uboot full name is Universal Boot Loader, i.e., general Bootloader, is that one kind is commonly used to be embedded in Bootloader in formula system is operate in a bit of program executed before operating system, and by it, we can be initial Change hardware device, establish the mapping table of memory headroom, is in final call operation system to establish hardware environment appropriate Core is ready.So the visible operation interface of user is only after steerable system, and the uboot obtained now starts in system Startup interface figure can not be shown by LCD before, make troubles to user.
Uboot is restricted to its firmware size, and friendly user's interface needs complicated image and character to show, only passes through figure The basic modes such as piece two-dimensional array conversion storage, far from meet demand.Very big memory is also taken up for existing Hanzi font library, it is existing There are about more than 22,000 Chinese characters of common character library close to 280kb or so, is not able to satisfy the limitation of firmware size.
Summary of the invention
In order to overcome the deficiencies in the prior art described above, the present invention provides four aspect contents;
First aspect content is related to the startup interface implementation method based on uboot, and method includes:
Step 1 is based on uboot module, collocating LCD startup interface operation port;
Step 2 configures picture editor module, and picture display parameters editor module is arranged;
Step 3 obtains graphical information, the Pixel Information and colouring information of graphical information according to predetermined manner;
Edited image information is formed uboot file by step 4, and is stored to starting storage area.
It needs further exist for illustrating, after step 2 further include:
Establish literal pool and character repertoire;
Configure character modulus tool and copy editor's module;
Text information and character information are obtained by character modulus tool and copy editor's module;
Text information and character information are added to image information, form uboot file, and is stored to starting storage area.
Need further exist for explanation, step 3 further include:
Graphical information, the Pixel Information and colouring information of graphical information are obtained according to frambuffer mode.
It needs further exist for illustrating, after step 4 further include:
System obtains enabled instruction;
Uboot file is transferred from starting storage area, by uboot document analysis at image information;
When system starts, source file is started by LCD, shows described image information.
Second aspect content is related to a kind of startup interface based on uboot and realizes system, comprising: data configuration unit and Information process unit;
Environment configurations unit for configuring uboot module, collocating LCD startup interface operation port, configuration diagram in systems Picture display parameters editor module is arranged in piece editor module;
Information process unit is used to obtain graphical information, Pixel Information and the color letter of graphical information according to predetermined manner Breath;Edited image information is formed into uboot file, and is stored to starting storage area.
Explanation is needed further exist for, environment configurations unit is also used to establish literal pool and character repertoire;
Configure character modulus tool and copy editor's module;
Information process unit is also used to obtain text information and character letter by character modulus tool and copy editor's module Breath;
Text information and character information are added to image information, form uboot file, and is stored to starting storage area.
Explanation is needed further exist for, information process unit is also used to obtain graphical information according to frambuffer mode, The Pixel Information and colouring information of graphical information.
Need further exist for explanation be, further includes: start unit;
Start unit is for obtaining enabled instruction;
Uboot file is transferred from starting storage area, by uboot document analysis at image information;
When system starts, source file is started by LCD, shows described image information.
Third aspect content is related to a kind of terminating machine for realizing the startup interface implementation method based on uboot, comprising:
Memory, for storing computer program and realizing the startup interface implementation method based on uboot;
Processor is based on for executing the computer program and the startup interface implementation method based on uboot with realizing The step of startup interface implementation method of uboot.
Fourth aspect content is related to a kind of readable storage medium storing program for executing with the startup interface implementation method based on uboot, institute It states and is stored with computer program on computer readable storage medium, the computer program is executed by processor to realize and be based on The step of startup interface implementation method of uboot.
As can be seen from the above technical solutions, the invention has the following advantages that
System increases by image information, and text information and character information form uboot file, it can be achieved that before system starting It is read out, LCD shows user's startup interface when starting, and fixed logo etc. can be designed by increasing picture and showing, is based on Frambuffer mode writes element picture mode, establishes low capacity character library according to interface content, and uboot firmware size is overcome to limit While processed, complicated user interface can be designed.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in description will be made below simple Ground introduction, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill For personnel, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the startup interface implementation method flow chart of uboot;
Fig. 2 is the startup interface implementation method embodiment flow chart of uboot;
The startup interface that Fig. 3 is uboot realizes system schematic.
Specific embodiment
It in order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below will be with specific Examples and drawings, the technical solution protected to the present invention are clearly and completely described, it is clear that implementation disclosed below Example is only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, the common skill in this field Art personnel all other embodiment obtained without making creative work belongs to the model of this patent protection It encloses.
The present invention provides a kind of startup interface implementation method based on uboot, as shown in Figure 1, method includes:
S11 is based on uboot module, collocating LCD startup interface operation port;
Namely user preset configures uboot module, that is, will be in uboot Module-embedding formula system.Simultaneously in system Middle configuration startup interface operation port allows user to pass through startup interface operation port real to transfer startup interface operation interface Now the additions and deletions of startup interface are changed and are looked into.
System realizes that the LCD under uboot show in this way, by increasing LCD driving, common in uboot source code with Include file, to correspond to driving source file and configuration header file using LCD.
S12 configures picture editor module, and picture display parameters editor module is arranged;
The startup interface of usual system includes image information, and in this way in LCD startup interface operation port, picture is arranged Editor module realizes the editor to picture, certainly here may include that existing picture is carried out insertion operation.It can also configure Drawing board is voluntarily operated by user to carry out picture.It is provided with picture display parameters editor module simultaneously, that is, to figure When the parameter of piece is operated, it can be configured based on picture display parameters.
Here, increase picture and show that is, picture is stored in file in the form of corresponding pattern bitmap is converted to two-dimensional array In.16 pixels can be defined to each picture, 32 pixels etc. can also configure BGR color mode.BGR color is BGR Three primary colours take respectively high 5,6,5 modes convert acquisition.
S13 obtains graphical information, the Pixel Information and colouring information of graphical information according to predetermined manner;
Here the mode of the picture based on FrameBuffer mode, according to pixel, pixel coordinate, offset and BGR face Color pattern designs picture, draws desired figure by pixel and fills corresponding color.
The resolution ratio of image is handled based on framebuffer, image buffer storage is in memory, aobvious by framebuffer After showing present frame, memory is used to add dress next frame again.It is shown later by framebuffer, memory is used to add again to load one Frame.The course of work of Framebuffer is to substitute work by next second buffer after first buffer works, Second buffer becomes current working status, and so on, it completes all images and shows.Screen tearing is prevented, also It is to prevent old frame display a part, new frame display a part.
Edited image information is formed uboot file by S14, and is stored to starting storage area.
Starting storage area is the storage area that system is read on startup.Namely system obtain it is electric need to start when, from Uboot file is transferred in starting storage area, by uboot document analysis at image information;When system starts, source document is started by LCD Part shows described image information.Picture of the present invention has been achieved.
Starting storage area may include computer storage medium, such as random access memory (RAM), read-only memory (ROM), nonvolatile RAM (NVRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory, magnetic or Optical data carrier and analog.In some embodiments, a kind of manufacture product may include that one or more computers can Read storage media.
The present invention also provides one embodiment, specifically include as shown in Fig. 2,
S21 is based on uboot module, collocating LCD startup interface operation port;
S22 configures picture editor module, and picture display parameters editor module is arranged;
S23 establishes literal pool and character repertoire;
S24 configures character modulus tool and copy editor's module;
S25 obtains graphical information, the Pixel Information and colouring information of graphical information according to predetermined manner;
S26 obtains text information and character information by character modulus tool and copy editor's module;
Text information and character information are added to image information by S27, form uboot file, and are stored to starting storage Area.
The above process can also first pass through character modulus tool and copy editor's module obtains text information and character information; Then image information is added on text and character information, forms uboot file after being combined.
Here, low capacity character library is established according to interface content, is primarily referred to as Chinese character base, can also be English character library.Character Library is symbol, can also be general English character library.According to the used text in interface and SBC case, merges repeat character (RPT), pass through Character modulus tool takes out the array of the dot character of all characters, forms corresponding array with Hanzi internal code and character pattern content Storage, establishes corresponding dot matrix word library.Corresponding dot matrix is directly read by Internal Code index.
System increases by image information in this way, and text information and character information formation uboot file are, it can be achieved that system starts It is read out before, LCD shows user's startup interface when starting, and fixed logo etc. can be designed by increasing picture and showing, and is based on Frambuffer mode writes element picture mode, establishes low capacity character library according to interface content, and uboot firmware size is overcome to limit While processed, complicated user interface is designed.
Based on the above method, the present invention also provides a kind of, and the startup interface based on uboot realizes system, as shown in figure 3, packet It includes: data configuration unit 1, information process unit 2 and start unit 3;
Environment configurations unit 1 for configuring uboot module, collocating LCD startup interface operation port, configuration diagram in systems Picture display parameters editor module is arranged in piece editor module;
Information process unit 2 is used to obtain graphical information according to frambuffer mode, the Pixel Information of graphical information and Colouring information.Edited image information is formed into uboot file, and is stored to starting storage area.
Environment configurations unit 1 is also used to establish literal pool and character repertoire;Configure character modulus tool and copy editor's module; Information process unit is also used to obtain text information and character information by character modulus tool and copy editor's module;By text Information and character information are added to image information, form uboot file, and store to starting storage area.
Start unit 3 is for obtaining enabled instruction;From starting storage area transfer uboot file, by uboot document analysis at Image information;When system starts, source file is started by LCD, shows described image information.
Starting storage area is the storage area that system is read on startup in this way.It is namely obtained in system and electric needs to start When, uboot file is transferred from starting storage area, by uboot document analysis at image information;When system starts, started by LCD Source file shows described image information.
By picture in the form of corresponding pattern bitmap is converted to two-dimensional array.
Write element picture mode based on FrameBuffer mode, according to 16bit pixel, pixel coordinate, offset and Primitive definition is write in the design of BGR color mode, writes out desired figure by pixel and fills corresponding color.
Low capacity Hanzi font library is established, merges repeat character (RPT), the dot-matrix of all characters is taken out by character modulus tool Array is accorded with, corresponding storage of array is formed with Hanzi internal code and character pattern content, establishes corresponding dot matrix word library.Directly by interior Code index reads corresponding dot matrix.
Finally it is compiled into binary file.
The present invention also provides a kind of terminating machines for realizing the startup interface implementation method based on uboot, comprising:
Memory, for storing computer program and realizing the startup interface implementation method based on uboot;
Processor is based on for executing the computer program and the startup interface implementation method based on uboot with realizing The step of startup interface implementation method of uboot.
Terminating machine can be tablet computer, mobile phone, application client, industrial industrial personal computer, household machine etc..
If realized within hardware, the present invention relates to a kind of devices, such as can be used as processor or integrated circuit dress It sets, such as IC chip or chipset.Alternatively or additionally, if realized in software or firmware, the technology can Realize at least partly by computer-readable data storage medium, including instruction, when implemented, make processor execute one or More above methods.For example, computer-readable data storage medium can store the instruction such as executed by processor.
It includes that one or more processors execute that the code or instruction, which can be software and/or firmware by processing circuit, Such as one or more digital signal processors (DSP), general purpose microprocessor, application-specific integrated circuit (ASICs), scene can be compiled Journey gate array (FPGA) or other equivalents are integrated circuit or discrete logic.Therefore, term " processor, " due to It can refer to that any aforementioned structure or any other structure are more suitable for the technology as described herein realized as used herein.Separately Outside, in some respects, function described in the disclosure can be provided in software module and hardware module.
The present invention also provides a kind of readable storage medium storing program for executing with the startup interface implementation method based on uboot, the meters Computer program is stored on calculation machine readable storage medium storing program for executing, the computer program is executed by processor to realize based on uboot Startup interface implementation method the step of.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of startup interface implementation method based on uboot, which is characterized in that method includes:
Step 1 is based on uboot module, collocating LCD startup interface operation port;
Step 2 configures picture editor module, and picture display parameters editor module is arranged;
Step 3 obtains graphical information, the Pixel Information and colouring information of graphical information according to predetermined manner;
Edited image information is formed uboot file by step 4, and is stored to starting storage area.
2. the startup interface implementation method according to claim 1 based on uboot, which is characterized in that method includes: step After two further include:
Establish literal pool and character repertoire;
Configure character modulus tool and copy editor's module;
Text information and character information are obtained by character modulus tool and copy editor's module;
Text information and character information are added to image information, form uboot file, and is stored to starting storage area.
3. the startup interface implementation method according to claim 1 based on uboot, which is characterized in that method includes: step Three further include:
Graphical information, the Pixel Information and colouring information of graphical information are obtained according to frambuffer mode.
4. the startup interface implementation method according to claim 1 based on uboot, which is characterized in that method includes: step After four further include:
System obtains enabled instruction;
Uboot file is transferred from starting storage area, by uboot document analysis at image information;
When system starts, source file is started by LCD, shows described image information.
5. a kind of startup interface based on uboot realizes system characterized by comprising at data configuration unit and information Manage unit;
Environment configurations unit is compiled for configuring uboot module, collocating LCD startup interface operation port, configuration picture in systems Module is collected, picture display parameters editor module is set;
Information process unit is used to obtain graphical information, the Pixel Information and colouring information of graphical information according to predetermined manner;It will Edited image information forms uboot file, and stores to starting storage area.
6. the startup interface according to claim 5 based on uboot realizes system, which is characterized in that
Environment configurations unit is also used to establish literal pool and character repertoire;
Configure character modulus tool and copy editor's module;
Information process unit is also used to obtain text information and character information by character modulus tool and copy editor's module;
Text information and character information are added to image information, form uboot file, and is stored to starting storage area.
7. the startup interface according to claim 5 based on uboot realizes system, which is characterized in that
Information process unit is also used to obtain graphical information, the Pixel Information and color of graphical information according to frambuffer mode Information.
8. the startup interface according to claim 5 based on uboot realizes system, which is characterized in that
Further include: start unit;
Start unit is for obtaining enabled instruction;
Uboot file is transferred from starting storage area, by uboot document analysis at image information;
When system starts, source file is started by LCD, shows described image information.
9. a kind of terminating machine for realizing the startup interface implementation method based on uboot characterized by comprising
Memory, for storing computer program and realizing the startup interface implementation method based on uboot;
Processor, for executing the computer program and the startup interface implementation method based on uboot, to realize that such as right is wanted The step of seeking the startup interface implementation method described in 1 to 4 any one based on uboot.
10. a kind of readable storage medium storing program for executing with the startup interface implementation method based on uboot, which is characterized in that the calculating Computer program is stored on machine readable storage medium storing program for executing, the computer program is executed by processor to realize such as claim 1 The step of to startup interface implementation method described in 4 any one based on uboot.
CN201910283730.XA 2019-04-10 2019-04-10 A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing Pending CN110083420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910283730.XA CN110083420A (en) 2019-04-10 2019-04-10 A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910283730.XA CN110083420A (en) 2019-04-10 2019-04-10 A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110083420A true CN110083420A (en) 2019-08-02

Family

ID=67414575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910283730.XA Pending CN110083420A (en) 2019-04-10 2019-04-10 A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110083420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126914A (en) * 2021-03-26 2021-07-16 福州智象信息技术有限公司 Personalized data storage method and system based on intelligent sound box operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793233A (en) * 2014-02-27 2014-05-14 中南大学 Method for achieving user interface graphic display based on uboot
CN106126292A (en) * 2016-06-29 2016-11-16 浪潮集团有限公司 Uboot-based starting interface implementation method
CN111124760A (en) * 2019-12-28 2020-05-08 北京浪潮数据技术有限公司 Uboot-based embedded equipment starting method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793233A (en) * 2014-02-27 2014-05-14 中南大学 Method for achieving user interface graphic display based on uboot
CN106126292A (en) * 2016-06-29 2016-11-16 浪潮集团有限公司 Uboot-based starting interface implementation method
CN111124760A (en) * 2019-12-28 2020-05-08 北京浪潮数据技术有限公司 Uboot-based embedded equipment starting method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126914A (en) * 2021-03-26 2021-07-16 福州智象信息技术有限公司 Personalized data storage method and system based on intelligent sound box operating system

Similar Documents

Publication Publication Date Title
CN105955687B (en) Image processing method, device and system
WO2020048326A1 (en) Interface display method and system, and terminal device
CN106056530B (en) Method and device for displaying picture content in application
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN109697739B (en) Reverse color display method of handwriting reading equipment and handwriting reading equipment
EP2447885B1 (en) A font file with graphic images
CN102930575A (en) Method and device for drawing auxiliary graphs and information terminal
US8890878B2 (en) Operation terminal and screen image display method for operation terminal
CN102576296A (en) Vector-based magnified pointer
CN110083420A (en) A kind of startup interface implementation method based on uboot, system, terminating machine and readable storage medium storing program for executing
EP2992509A1 (en) Hardware glyph cache
KR101345726B1 (en) Method for printing a captured screen of web pages
WO2021253922A1 (en) Font switching method and electronic device
CN102263924B (en) Image processing method based on bicubic interpolation and image display method
US20130063475A1 (en) System and method for text rendering
CN112199060A (en) Internet of things terminal and picture updating method thereof
CN106126292A (en) Uboot-based starting interface implementation method
WO2019200797A1 (en) Page digit display method and device, computer device and storage medium
CN110609669A (en) Interface processing method and device, storage medium and electronic equipment
CN113240776B (en) Method, device and storage medium for changing picture color based on canvas
CN103826058A (en) Image processing method and device for enhancing image quality by using different coefficients according to regions
CN113703699B (en) Real-time output method and device for electronic file
JPH10187679A (en) Table processor and storage medium
JP2007122722A (en) Utility, method, and device for providing updatable vector image so as to reflect presence of removable component of device
JP2005208899A (en) Information display device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802