Embedded equipment boot Logo updating and displaying method and system

An embedded device and update method technology, which is applied in the direction of program control design, instrumentation, electrical digital data processing, etc., can solve problems such as troublesome operation, slow loading of Logo, and complicated process of replacing Logo, so as to maintain consistency and small files , fast loading effect

Inactive Publication Date: 2019-04-16
SUZHOU BEILAIFU MEDICAL TECH CO LTD
8 Cites 4 Cited by

AI-Extracted Technical Summary

Problems solved by technology

The process of changing the Logo is more complicated and needs to be operated by developers
[0004] There are also embedded Linux devices that display the boot logo in the BootLoader, but this method requires computer software to co...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Method used

[0073] S44: Generate a Logo description file. Preferably, the Logo description file includes but not limited to file information, index data, and palette data. Save the parsed file information, palette, and pixel index values ​​in the Logo description file. All relevant data is placed in one file, which makes it easier for BootLoader to load when displaying.
[0097] The secon...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses an embedded device startup Logo updating and displaying method and system, and the method comprises the steps: reading a picture file stored in a USB storage device, carrying out the analysis of the picture file through the embedded application layer software, enabling the picture file to be written into a Logo description file, and enabling the picture file to be stored ina Boot partition; enabling the Boot Loader to load the Logo description file of the Boot partition to a specific address interval, protected by the kernel, of the memory before loading the kernel; And after the kernel is started, analyzing the Logo description file loaded into the memory, and writing the analyzed data into the FrameBuffer to realize Logo display. That is to say, Logo updating canbe carried out on the embedded device only through one USB storage device, and a user can directly replace the Logo updating device. Meanwhile, the Logo-related file can be generated in the application software of the embedded device, a specific Logo-related file does not need to be generated on computer software, and the Linux kernel does not need to be recompiled.

Application Domain

Technology Topic

FramebufferApplication software +6

Image

  • Embedded equipment boot Logo updating and displaying method and system
  • Embedded equipment boot Logo updating and displaying method and system
  • Embedded equipment boot Logo updating and displaying method and system

Examples

  • Experimental program(4)

Example Embodiment

[0062] Example 1
[0063] Such as figure 1 As shown, it is a method for updating the logo of an embedded device at startup in accordance with this embodiment, which includes the following steps:
[0064] S1: Enter the logo update interface; this interface can be a sub-window of the main program of the embedded Linux device or an independent UI process. In this interface, the user can browse the picture files saved in the USB storage device and select the picture file.
[0065] S2: Read the picture file in the USB storage device, load the picture file list and display it on the logo update interface;
[0066] S3: The user selects the Logo picture file to generate the Logo; the user selects the Logo picture to be updated in the picture file list, and then selects OK.
[0067] S4: Extract the information of the selected Logo picture file and generate a Logo description file;
[0068] S5: Save the Logo description file to the BOOT partition. The application software will load the Boot partition. The partition format can be FAT32, EXT4 and other file system formats. The application software will unload the BOOT partition after writing the Logo description file into the partition. Among them, the Flash partition method of embedded Linux devices is as follows figure 2 Shown.
[0069] Preferably, as image 3 As shown, the step S4 specifically includes:
[0070] S41: Extract the file information of the Logo picture file, the file information includes but is not limited to size information and pixel data; the application program parses the picture, and the parsed content includes the size of the picture, color format, and pixel data extraction. The pixel data extracted here is RGB888 format data. If the color format is not RGB888, the application layer will convert the data to RGB888 format.
[0071] S42: Convert the pixel data; specifically, convert the pixel data into pixel data of 224 colors. Here, the median cut algorithm is used to quantize the color of the pixel data. After quantization, the color of all pixels will not exceed 224.
[0072] S43: Generate palette data and index data corresponding to each pixel according to the converted pixel data; the purpose here is to compress the pixel data. After using the palette, the color of each pixel will be recorded as an index in the call board. Since there are only 224 colors at most, the palette has only 224 colors at most. The index value is in the range of 0-223, and only one byte is needed to save the index.
[0073] S44: Generate Logo description file. Preferably, the Logo description file includes but is not limited to file information, index data, and palette data. Save the parsed file information, palette, and pixel index values ​​in the Logo description file. All relevant data is placed in one file, which makes it more convenient for BootLoader to load during display.
[0074] That is, the embedded Linux device in this embodiment reads the picture file saved in the storage device (such as a U disk or a mobile hard disk) through a USB interface, and the picture format can be JPG, JPEG, PNG, and BMP. The image is analyzed by embedded Linux application layer software, the original pixel data and image information data of the image are extracted, and the original pixel data is quantized to generate pixel data of 224 colors. Application layer software converts the generated 224 color pixel data to generate color index data and palette data. The application layer software then writes the image information data, index data and palette data into a Logo description file, and saves this file to the Boot partition of the device.

Example Embodiment

[0075] Example 2
[0076] Such as Figure 4 As shown, it is an embedded device startup Logo display method based on embodiment 1, including the following steps:
[0077] ST1: Boot Loader loads the Logo description file from the Boot partition; when the embedded device starts, it will run the Boot Loader first. The main functions of the Boot Loader include setting device kernel parameters, loading device tree files, loading kernel files, and finally starting the kernel. In this embodiment, the Boot Loader will additionally load the Logo description file from the Boot partition.
[0078] ST2: Boot Loader writes the Logo description file to the specified address in the memory; before Boot Loader starts the kernel, loads the Logo description file to the specified address in the memory. The memory area starting at this address and after it will not be initialized when the kernel is started, so the Logo description file in the memory is safe and will not be modified.
[0079] ST3: Boot Loader starts the kernel; after starting the kernel, the control of the system will be given to the Linux kernel.
[0080] ST4: The kernel parses the Logo description file from the memory specified address; the kernel parses the Logo file from the memory address to obtain the image file information, pixel index, and data pointer of the palette.
[0081] ST5: The kernel writes the parsed pixel data into the FrameBuffer; the kernel obtains the picture data pointer in a specific memory, calculates the size of the picture, and writes the RGB data of each pixel into the FrameBuffer according to the pixel index and palette If the BPP (Bit Per Pixel) value of FrameBuffer is 16 or 8, the RGB data will be converted accordingly.
[0082] ST6: The kernel displays the Logo. The operation of the kernel to display the Logo includes setting the DMA address of the LCD controller, BPP, enabling the LCD controller, turning on the LCD backlight and other operations, and finally the Logo can be displayed on the interface.
[0083] Preferably, it also includes:
[0084] ST7: Release the memory in the Logo description file area after the kernel is initialized; after the data in the Logo description file is parsed into the FrameBuffer, the kernel will not read it anymore, the kernel will release its memory area and enter the kernel memory management.
[0085] ST8: The kernel starts the INIT process. So far, the kernel boot is complete.
[0086] Preferably, the Logo description file includes but is not limited to file information, index data, and palette data.
[0087] That is, in this embodiment, the Boot Loader (U-Boot) in the embedded Linux device loads the Logo description file of the Boot partition into a specific address range protected by the kernel before loading the kernel. After the kernel is started, it parses the Logo description file that has been loaded into the memory, and writes the parsed data into the FrameBuffer to display the Logo.

Example Embodiment

[0088] Example 3
[0089] Such as Figure 5 As shown, it is an embedded device startup Logo updating system in accordance with this embodiment, including:
[0090] The read-write module is used to provide the logo update interface; read the picture files in the USB storage device, load the picture file list and display it on the logo update interface; the user selects the Logo picture file to generate the Logo; the logo update interface can It is a child window of the main program of the embedded Linux device or an independent UI process. In this interface, the user can browse the picture files saved in the USB storage device and select the picture file.
[0091] The image conversion module is used to extract the information of the selected Logo image file and generate the Logo description file;
[0092] The save module is used to save the Logo description file to the BOOT partition. The application software will load the Boot partition. The partition format can be FAT32, EXT4 and other file system formats. The application software will unload the BOOT partition after writing the Logo description file into the partition. Among them, the embedded Linux device Flash partition partition method is as follows figure 2 Shown.
[0093] Preferably, the picture conversion module specifically includes:
[0094] The extraction unit is used to extract the file information of the Logo image file. The file information includes but is not limited to size information and pixel data; the application program analyzes the image, and the analysis content includes the image size, color format, and pixel data extraction. The pixel data extracted here is RGB888 format data. If the color format is not RGB888, the application layer will convert the data to RGB888 format.
[0095] The conversion unit is used for converting pixel data; specifically, converting the pixel data into pixel data of 224 colors. Here, the median cut algorithm is used to quantize the color of the pixel data. After quantization, the color of all pixels will not exceed 224.
[0096] The first generating unit is used to generate palette data and index data corresponding to each pixel according to the converted pixel data; the purpose here is to compress the pixel data. After using the palette, the color of each pixel will be recorded as an index in the call board. Since there are only 224 colors at most, the palette has only 224 colors at most. The index value is in the range of 0-223, and only one byte is needed to save the index.
[0097] The second generating unit is used to generate Logo description files. Preferably, the Logo description file includes but is not limited to file information, index data, and palette data. Save the parsed file information, palette, and pixel index values ​​in the Logo description file. All relevant data is placed in one file, which makes it more convenient for BootLoader to load during display.
[0098] That is, the embedded Linux device in this embodiment reads the picture file saved in the storage device (such as a U disk or a mobile hard disk) through a USB interface, and the picture format can be JPG, JPEG, PNG, and BMP. The image is analyzed by embedded Linux application layer software, the original pixel data and image information data of the image are extracted, and the original pixel data is quantized to generate pixel data of 224 colors. Application layer software converts the generated 224 color pixel data to generate color index data and palette data. The application layer software then writes the image information data, index data and palette data into a Logo description file, and saves this file to the Boot partition of the device.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Method for achieving synchronous television video playing on mobile phone

InactiveCN104301767AGood user experienceSolve the "popping soundSelective content distributionTechnology of televisionVIT signals
Owner:SICHUAN CHANGHONG ELECTRIC CO LTD

Classification and recommendation of technical efficacy words

  • Good user experience
  • Meet individual needs

Method and device for automatically recommending application

InactiveCN102567511AMeet individual needsImprove recommendation efficiency and coverageSpecial data processing applicationsPersonalizationData set
Owner:QIZHI SOFTWARE (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products