CN117421020A - Display device and boot loader updating method - Google Patents

Display device and boot loader updating method Download PDF

Info

Publication number
CN117421020A
CN117421020A CN202311385785.4A CN202311385785A CN117421020A CN 117421020 A CN117421020 A CN 117421020A CN 202311385785 A CN202311385785 A CN 202311385785A CN 117421020 A CN117421020 A CN 117421020A
Authority
CN
China
Prior art keywords
boot
partition
operating system
bootloader
updating
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
CN202311385785.4A
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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202311385785.4A priority Critical patent/CN117421020A/en
Publication of CN117421020A publication Critical patent/CN117421020A/en
Pending legal-status Critical Current

Links

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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • G06F9/4406Loading of operating system

Landscapes

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

Abstract

The application provides a display device and a boot loader updating method, wherein the display device comprises a display; the memory comprises a first boot partition, a second boot partition, a first boot image partition and a second boot image partition; a controller configured to: sending a system update query request to a server; updating the image file of the bootloader in the system updating upgrade package to the target image partition, and restarting the operating system; updating bootloader in the first boot partition according to the image file in the target image partition, and starting an upgrading flow corresponding to a system upgrading package according to the updated first boot partition so as to update the operating system; if the operating system is updated successfully, updating bootloader in the first boot partition to the second boot partition when the operating system is restarted. The application realizes the update of the boot loader.

Description

Display device and boot loader updating method
Technical Field
The present disclosure relates to the field of system update, and in particular, to a display device and a boot loader update method.
Background
bootloader is the first process that the smart tv executes when the operating system is started, and if this process cannot be started, it will cause the smart tv to fail to enter the operating system. In order to improve the starting reliability of the operating system, the intelligent television is provided with two boot partitions for storing two bootloaders, wherein one bootloader is used as a backup to avoid the fact that the operating system cannot be started due to the damage of the bootloader. When the system is updated, the intelligent television needs to load the bootloader of the latest version to one of the boot partitions, and the updated operating system is started through the bootloader of the latest version. However, after the operating system of the smart television is started, the boot partition is in a read-only mode, and bootloader cannot be updated, so that the smart television cannot be updated to the latest operating system in time.
Disclosure of Invention
In order to solve the problem that a boot loader cannot be updated in time, the application provides display equipment and a boot loader updating method.
In a first aspect, the present application provides a display device comprising:
a display;
the storage comprises a first boot partition, a second boot partition, a first boot image partition and a second boot image partition, wherein the first boot partition and the second boot partition are used for storing bootloaders, and the first boot image partition and the second boot image partition are readable and writable storage partitions and are used for storing image files of the bootloaders;
a controller coupled to the display, the memory, the controller configured to:
sending a system update query request to a server;
in response to receiving a system update upgrade package sent by the server, updating an image file of a bootloader in the system update upgrade package to a target image partition, and restarting an operating system, wherein the target image partition is the first boot image partition or the second boot image partition;
updating bootloader in the first boot partition according to the image file in the target image partition, and starting an upgrading flow corresponding to the system upgrading package according to the updated first boot partition so as to update the operating system;
And if the updating of the operating system is successful, updating the bootloader in the first boot partition to the second boot partition when the operating system is restarted.
In some embodiments, the controller is provided with a first operating system and a second operating system, the first boot image partition corresponds to the first operating system, and the second boot image partition corresponds to the second operating system;
the updating the image file of the bootloader in the system update upgrade package to the target image partition includes: updating the image file of the bootloader in the system updating and upgrading packet to the target image partition corresponding to the target operating system, wherein the target operating system is a first operating system or a second operating system which is not currently operated.
In some embodiments, after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, the controller is further configured to: setting an operating system corresponding to a system start flag bit as the target operating system;
the restarting the operating system includes: restarting from the target operating system.
In some embodiments, after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, the controller is further configured to: setting the value of the boot update flag bit as a first preset value;
The updating the bootloader in the first boot partition according to the image file in the target image partition includes: and updating bootloader in the first boot partition according to the image file in the target image partition by taking the value of the boot update flag bit as a first preset value.
In some embodiments, the starting an upgrade procedure corresponding to the system update upgrade package according to the updated first boot partition to update the operating system includes:
setting the value of the boot update flag bit to a second preset value according to the updated first boot partition;
restarting the first boot partition, setting the value of the boot update flag bit to a second preset value, and starting an upgrade flow corresponding to the system update upgrade package to update the operating system.
In some embodiments, if the operating system update is successful, the controller is further configured to: setting the value of the boot update flag bit to a third preset value;
and when the operating system is restarted, updating the bootloader in the first boot partition to the second boot partition, including: and when the operating system is restarted, updating the bootloader in the first boot partition to the second boot partition according to the value of the boot update flag bit as a third preset value.
In a second aspect, the present application provides a method for bootloader updating, the method comprising:
sending a system update query request to a server;
in response to receiving a system update upgrade package sent by the server, updating an image file of a bootloader in the system update upgrade package to a target image partition, and restarting an operating system, wherein the target image partition is a first boot image partition or a second boot image partition;
updating the image file in the target image partition to a first boot partition, and starting an upgrading flow corresponding to the system upgrading package according to the updated first boot partition so as to update the operating system;
and if the updating of the operating system is successful, updating the bootloader in the first boot partition to a second boot partition when the operating system is restarted.
In some embodiments, the updating the image file of the bootloader in the system update upgrade package to the target image partition includes: updating the image file of the bootloader in the system updating and upgrading packet to a target image partition corresponding to a target operating system, wherein the target operating system is a first operating system or a second operating system which is not currently operated by the display equipment.
In some embodiments, after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, the method further includes: setting an operating system corresponding to a system start flag bit as the target operating system;
the restarting the operating system includes: restarting from the target operating system.
In some embodiments, after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, the method further includes: setting the value of the boot update flag bit as a first preset value;
the updating the bootloader in the first boot partition according to the image file in the target image partition includes: and updating bootloader in the first boot partition according to the image file in the target image partition by taking the value of the boot update flag bit as a first preset value.
The display device and the boot loader updating method have the beneficial effects that:
according to the method and the device, the first boot partition, the second boot partition and the readable and writable first boot image partition and the second boot image partition are preset in the memory of the display device, when the system update upgrade package is detected, the image files of the bootloader in the system update upgrade package can be updated to one of the boot image partitions, so that when an operating system is restarted, the bootloader in the first boot partition can be quickly updated according to the image files of the bootloader in the boot image partition in a readable and writable mode, and after the operating system is updated successfully, the bootloader in the first boot partition is updated to the second boot partition, and the problem that an intelligent television cannot be updated to the latest operating system in time due to the fact that the bootloader cannot be updated in time is solved; and the bootloader in the first boot partition is backed up through the second boot partition, so that the bootloader in the first boot partition still can enter the operating system through the bootloader in the second boot partition when the bootloader in the first boot partition is damaged, and the successful starting of the operating system is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation in the related art, a brief description will be given below of the drawings required for the embodiments or the related art descriptions, and it is apparent that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings for those of ordinary skill in the art.
A schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments is schematically shown in fig. 1;
a hardware configuration block diagram of the control apparatus 100 according to some embodiments is exemplarily shown in fig. 2;
a hardware configuration block diagram of a display device 200 according to some embodiments is exemplarily shown in fig. 3;
a schematic diagram of the software configuration in a display device 200 according to some embodiments is exemplarily shown in fig. 4;
a schematic diagram of a boot process for an operating system according to some embodiments is shown schematically in fig. 5;
a flow diagram of a bootloader update method according to some embodiments is illustrated in fig. 6;
a system update schematic of a display device according to some embodiments is illustrated in fig. 7;
a flow diagram of a method for a dual system display device to upgrade bootloader according to some embodiments is illustrated in fig. 8;
A flow diagram of a bootloader update method according to some embodiments is illustrated in fig. 9;
a flow diagram of a boot partition initiation method according to some embodiments is illustrated in fig. 10.
Detailed Description
For purposes of clarity and implementation of the present application, the following description will make clear and complete descriptions of exemplary implementations of the present application with reference to the accompanying drawings in which exemplary implementations of the present application are illustrated, it being apparent that the exemplary implementations described are only some, but not all, of the examples of the present application.
It should be noted that the brief description of the terms in the present application is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms "first," second, "" third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for limiting a particular order or sequence, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The display device provided in the embodiment of the application may have various implementation forms, for example, may be a television, an intelligent television, a laser projection device, a display (monitor), an electronic whiteboard (electronic bulletin board), an electronic desktop (electronic table), and the like. Fig. 1 and 2 are specific embodiments of a display device of the present application.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 1, a user may operate the display device 200 through the smart device 300 or the control apparatus 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or bluetooth protocol communication, and other short-range communication modes, and the display device 200 is controlled by a wireless or wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc.
In some embodiments, a smart device 300 (e.g., mobile terminal, tablet, computer, notebook, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on a smart device.
In some embodiments, the display device may receive instructions not using the smart device or control device described above, but rather receive control of the user by touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 device for acquiring voice commands, or the voice command control of the user may be received through a voice control device configured outside the display device 200 device.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be permitted to make communication connections via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200. The server 400 may be a cluster, or may be multiple clusters, and may include one or more types of servers.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 in accordance with an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, and function as an interaction between the user and the display device 200.
As shown in fig. 3, the display apparatus 200 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, a first interface for input/output to an nth interface.
The display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, displaying video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
The display 260 may be a liquid crystal display, an OLED display, a projection device, or a projection screen.
The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
A user interface, which may be used to receive control signals from the control device 100 (e.g., an infrared remote control, etc.).
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for capturing the intensity of ambient light; alternatively, the detector 230 includes an image collector such as a camera, which may be used to collect external environmental scenes, user attributes, or user interaction gestures, or alternatively, the detector 230 includes a sound collector such as a microphone, or the like, which is used to receive external sounds.
The external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, or the like. The input/output interface may be a composite input/output interface formed by a plurality of interfaces.
The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like.
The controller 250 controls the operation of the display device and responds to the user's operations through various software control programs stored on the memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command to select a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments the controller includes at least one of a central processing unit (Central Processing Unit, CPU), video processor, audio processor, graphics processor (Graphics Processing Unit, GPU), RAM (Random Access Memory, RAM), ROM (Read-Only Memory, ROM), first to nth interfaces for input/output, a communication Bus (Bus), etc.
The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
A "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user, which enables conversion between an internal form of information and a user-acceptable form. A commonly used presentation form of the user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
Referring to FIG. 4, in some embodiments, the system is divided into four layers, from top to bottom, an application layer (referred to as an "application layer"), an application framework layer (Application Framework layer) (referred to as a "framework layer"), a An Zhuoyun row (Android run) and a system library layer (referred to as a "system runtime layer"), and a kernel layer, respectively.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, or the like; or may be an application developed by a third party developer. In particular implementations, the application packages in the application layer are not limited to the above examples.
The framework layer provides an application programming interface (application programming interface, API) and programming framework for the application. The application framework layer includes a number of predefined functions. The application framework layer corresponds to a processing center that decides to let the applications in the application layer act. Through the API interface, the application program can access the resources in the system and acquire the services of the system in the execution.
As shown in fig. 4, the application framework layer in the embodiment of the present application includes a manager (manager), a Content Provider (Content Provider), and the like, where the manager includes at least one of the following modules: an Activity Manager (Activity Manager) is used to interact with all activities that are running in the system; a Location Manager (Location Manager) is used to provide system services or applications with access to system Location services; a Package Manager (Package Manager) for retrieving various information about an application Package currently installed on the device; a notification manager (Notification Manager) for controlling the display and clearing of notification messages; a Window Manager (Window Manager) is used to manage bracketing icons, windows, toolbars, wallpaper, and desktop components on the user interface.
In some embodiments, the activity manager is used to manage the lifecycle of the individual applications as well as the usual navigation rollback functions, such as controlling the exit, opening, fallback, etc. of the applications. The window manager is used for managing all window programs, such as obtaining the size of the display screen, judging whether a status bar exists or not, locking the screen, intercepting the screen, controlling the change of the display window (for example, reducing the display window to display, dithering display, distorting display, etc.), etc.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the kernel layer contains at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (e.g., fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply drive, etc.
The hardware or software architecture in some embodiments may be based on the description in the foregoing embodiments, and in some embodiments may be based on other similar hardware or software architectures, which may implement the technical solutions of the present application.
In some embodiments, the operating system running on the display device is an android system, which is a Linux-based embedded system, the start-up procedure of which can be seen in fig. 5.
As shown in fig. 5, during the startup of the operating system, bootloader starts first. After the bootloader is started, initializing hardware equipment of the display equipment, such as a clock, a memory, a hard disk and the like, copying a linux Kernel corresponding to the Kernel image, namely Kernel, into the memory, setting parameters to be transferred to the linux Kernel in a certain fixed address (including a structure of the address and the parameters) of the memory, and then operating the linux Kernel. After the Linux kernel is started, a Linux file system, namely a root file system, is mounted, and then an application program in the file system is started.
Because of the importance of bootloaders, bootloaders often need to be upgraded to ensure proper operation of the operating system. The bootloader can be updated by installing a new bootloader to replace the original bootloader. However, in the running process after the operating system is started, the boot partition for storing the bootloader is in a read-only mode, and it is impossible to install a new bootloader.
To solve the above technical problem, an embodiment of the present application provides a method for updating a boot loader, referring to fig. 6, the method may include the following steps:
Step S101: and sending a system update query request to the server.
In some embodiments, after the display device is powered on, the OTA process may interact with the server to obtain the current upgrade policy. For example, the display device may generate a system update query request that may include a device model number of the display device and a version number of a current system version. The display device sends the system update inquiry request to the server, and the server can feed back the system update upgrade package to the display device according to the system update upgrade package which corresponds to the device model and has a version number higher than that of the current system version.
Step S102: and in response to receiving a system update upgrade package sent by the server, updating an image file of a bootloader in the system update upgrade package to a target image partition, and restarting an operating system, wherein the target image partition is the first boot image partition or the second boot image partition.
In some embodiments, after the display device stores the system update package sent by the server to a preset system update package download path on the memory, the display device obtains bootloader.img from the system update package, that is, an image file of the bootloader, and stores the bootloader.img into the target image partition. The target mirror image partition is a storage partition preset on a memory of the display device and used for storing bootloader.img, two storage partitions used for storing bootloader.img can be preset on the memory, and after one storage partition used for storing bootloader.img is determined as the target mirror image partition by the display device, the bootloader.img is stored in the target mirror image partition.
After the bootloader. Img is stored in the target image partition, the display device can generate an instruction for representing restarting the operating system and updating the operating system, and the operating system is restarted according to the instruction.
Step S103: updating bootloader in the first boot partition according to the image file in the target image partition, and starting an upgrading flow corresponding to the system upgrading package according to the updated first boot partition so as to update the operating system.
In some embodiments, after the display device restarts the operating system according to an instruction that characterizes restarting the operating system and updating the operating system, the first boot partition is started, an image file of the bootloader is read from the target image partition, and the image file is updated to the first boot partition. The memory of the display device is provided with two boot partitions for storing bootloaders, namely a first boot partition and a second boot partition, wherein the first boot partition is a default partition started by an operating system, and the second boot partition is a backup partition for backing up the bootloader. The storage authorities of the first boot partition and the second boot partition in the starting stage of the operating system are readable and writable, so that the image files in the target image partition can be updated to the first boot partition.
After the display device updates the image file in the target image partition to the first boot partition, the first boot partition is restarted, and after the first boot partition is restarted, an upgrade process can be started to update the operating system. The upgrade process may include: and starting a kernel process, an init process, an android system and an application software program in sequence.
Step S104: and if the updating of the operating system is successful, updating the bootloader in the first boot partition to the second boot partition when the operating system is restarted.
In some embodiments, after the first start of the new version of the operating system is successful, the bootloader in the first boot partition is the bootloader of the new version, that is, the bootloader corresponding to the image file of the bootloader in the system update upgrade package, and the bootloader in the second boot partition is still the bootloader of the old version. When the operating system is restarted again, the bootloader in the first boot partition can be updated to the second boot partition, so that the bootloader of the new version is backed up in the second boot partition, and therefore in the starting process of the subsequent display device, if the bootloader in the first boot partition is wrong, the display device can start the operating system through the bootloader in the second boot partition, and the display device is prevented from changing tiles.
According to the embodiment, the first boot partition and the second boot partition, and the first boot image partition and the second boot image partition which can be read and written are preset in the memory of the display device, when the system update upgrade package is detected, the image file of the boot loader in the system update upgrade package can be updated to one of the boot image partitions, so that when the operating system is restarted, the boot loader in the first boot partition can be quickly updated according to the image file of the boot loader in the boot image partition in a readable and writable mode, and the boot loader in the first boot partition can be updated to the second boot partition after the operating system is updated successfully, and the problem that the intelligent television cannot be updated to the latest operating system in time due to the fact that the boot loader cannot be updated in time is solved; and the bootloader in the first boot partition is backed up through the second boot partition, so that the bootloader in the first boot partition still can enter an operating system through the bootloader in the second boot partition when being damaged, and the stable operation of the display equipment is ensured.
In some embodiments, the display device is provided with a dual operating system: both slotA (a system) and slotB (B system), both of which may be started from the first boot partition or the second boot partition. When the operating system currently operated by the display equipment is the A system, the B system can be updated according to the system update and upgrade package, and the display equipment can be started from the B system after the update, so that the new version operating system corresponding to the system update and upgrade package is operated; when the operating system currently operated by the display equipment is the B system, the A system can be updated according to the system update and upgrade package, and the display equipment can be started from the A system after the update, so that the new version operating system corresponding to the system update and upgrade package is operated.
Referring to fig. 7, a system update schematic diagram of a display device according to some embodiments is shown in fig. 6, where the display device is provided with an a-system and a B-system, the B-system is not operated when the a-system is operated, and the a-system is not operated when the B-system is operated. When the display device leaves the factory, the a system and the B system are the same version of the operating system, which may be referred to as an initial version of the operating system.
Both the A-system and the B-system are provided with the following attributes: the method comprises the steps of representing whether an active attribute is in an active state, if the active attribute is in the active state, a partition corresponding to a current system is an active partition, and if the active attribute is in an inactive state, the partition corresponding to the current system is not the active partition; a bootable attribute that characterizes whether the display device is in a bootable state, if so, the display device is bootable from the current system, and if not, the display device is not bootable from the current system; and the successful success attribute is used for representing whether the display equipment can be started successfully from the current system or not, and if the successful success attribute is in a state of being started successfully, the display equipment cannot be started successfully from the current system.
The common scene refers to a scene when the display device starts an operating system and runs, such as a scene that a user is watching media by using the display device. Taking the case that the display device operates in a common scene as an example of a first version of an A system, wherein the first version can be an initial version or a system version of the initial version after a plurality of system upgrades, at this time, the A system is in an active state, can be started and can be started successfully, and the B system is in an inactive state, can be started and can be started successfully, which means that both the A system and the B system can be started successfully, and the A system operates currently. In a common scenario, the currently running system may acquire an upgrade policy from the server.
The scene of starting update refers to a scene of downloading a system update upgrade package after the currently running system acquires the upgrade strategy. When the currently running system is an A system, the system update upgrade package is used for upgrading the B system, so that the A system can set the B system to be not started and not successfully started, and the display equipment is prevented from being started from the B system before the B system starts to be upgraded, so that the B system is failed to upgrade. At this time, the system A is still running on the display device, and the system A is in an active state, can be started and can be started successfully, so that the downloading of the system update upgrade package is ensured.
The scene of setting the start-up parameters refers to the process that after the currently running system downloads the system update package, the A system and the B system are configured so that the display device is ready to start up from the B system for system update. In this scenario, the display device sets the a system to an inactive state, bootable, and able to be successfully started, sets the B system to an active state, bootable, and not successfully started, which means that the B system needs to be started from the active state and bootable when the system is restarted next time, and since the B system is about to run a new system corresponding to the system update upgrade package, the new system is not started yet, and therefore the B system can be set to be not successfully started.
The scene of starting from the new system refers to the process of entering the B system after the display equipment is restarted and carrying out system upgrading on the B system. After the system upgrade of the system B is completed, the display device sets the system B to be in an active state, capable of being started and capable of being started successfully, and sets the system A to be in an inactive state, capable of being started and capable of being started successfully, which means that after the system is restarted, the system is started from the system B to run a new system corresponding to the system upgrade package, wherein the new system is an operating system of a second version, the operating system of the second version is at least one version higher than that of the first version, and the system A is still the system of the first version. And after the system B successfully runs the system, if a new system update package is detected, performing system update on the system A to update the system A into a third version of system, wherein the third version of operating system is at least one version of system higher than the second version of system, and the like, so that alternate update of the system A and the system B is realized.
To illustrate the process of upgrading bootloader of the display device with dual systems, fig. 8 shows a flow chart of a method for upgrading bootloader of the display device with dual systems, and as shown in fig. 8, the method may include the following steps:
step S201: and operating the system A.
In some embodiments, taking the operating system currently running on the display device as the first version of the system a as an example, the display device may acquire an upgrade policy and download a system update upgrade package when running the system a.
Step S202: updating the first boot partition.
In some embodiments, the display device may update the bootloader in the first boot partition according to the bootloader in the system update upgrade package, so as to perform a system update on the B system in the first boot partition based on the new version of bootloader.
Step S203: updating the B system.
In some embodiments, after updating the first boot partition, the display device updates the system of the B system by using the new version bootloader in the first boot partition, so that the system of the B system is updated to a system of a second version.
Step S204: and operating the B system.
In some embodiments, the display device may run the B-system after completing the system update for the B-system, enabling the system update for the display device from the first version to the second version as compared to the a-system that was previously run.
Step S205: updating the second boot partition.
In some embodiments, after the second version is successfully operated by the B system, when the display device is restarted, the second boot partition is updated to be consistent with the first boot partition, so that the first boot partition is backed up, and when a bootloader in the first boot partition is in error, the display device can be started from the second boot partition and enter the B system.
In some embodiments, since the first boot partition and the second boot partition are both in a read-only mode in the running process of the display device after the startup, in order to implement updating of the first boot partition and the second boot partition, the display device may be preset with two storage partitions for storing bootloader. Img: the system comprises a first image partition and a second image partition, wherein the first image partition is a bootloader_a partition, a stored bootloader.img is used for updating the first boot partition, the second image partition is a bootloader_b partition, and a stored bootloader.img is used for updating the second boot partition.
Based on the first image partition and the second image partition, a method for updating bootloader by the display device may refer to fig. 9, which is a schematic flow chart of a boot loader updating method according to some embodiments, as shown in fig. 9, and the method may include the following steps:
Step S301: downloading a system update upgrade package, performing upgrade configuration, and restarting the operating system.
In some embodiments, taking the operating system currently running by the display device as the system a, after the display device obtains the system update package from the server, the display device may perform upgrade configuration based on the system update package, where the configuration content is as follows: updating an image file of a bootloader in a system updating and upgrading packet to a target image partition, wherein when an operating system currently operated by the display equipment is an A system, the target image partition is a bootloader_b partition, and when the operating system currently operated by the display equipment is a B system, the target image partition is a bootloader_a partition; setting the value of a boot update flag bit update_boot as a first preset value, for example, setting the value as 1, wherein the value of the update_boot is a memorable flag bit, and the value of the update_boot is 1 to represent a boot partition needing to be updated currently; the method comprises the steps of configuring a value of a system start flag bit slot_index as slot_b, wherein the value of the system start flag bit is configured as slot_b, representing that a system B needs to be started, and if a target mirror image partition is a bootloader_a partition, configuring the value of the system start flag bit as slot_a; an instruction to restart the operating system is generated, the instruction for restarting the operating system of the display device.
After the upgrade configuration described above, the display device will perform a reboot.
Step S302: and starting the first boot partition, and judging whether a boot update flag bit is 1.
In some embodiments, the display device restarts according to an instruction for restarting the operating system, and starts the first boot partition when restarting, and after the first boot partition is started, the first boot partition determines whether the boot update flag bit is 1, if yes, step S303 is executed, and if not, step S304 is executed.
In the boot loader updating process, the display device needs to restart the first boot partition for multiple times, and when restarting each time, the value of the boot updating flag bit may be 1, or may be other values, and according to the value of the boot updating flag bit, a corresponding subsequent process may be executed.
When step S302 is performed after step S301 is performed, since the value of the boot update flag bit is set to 1 in step S301, in step S302, the first boot partition will detect that the boot update flag bit is 1 after being started, and step S303 is performed according to the boot update flag bit being 1.
Step S303: updating the first boot partition, updating the boot update flag bit, and generating a restart instruction of the first boot partition.
In some embodiments, after detecting that the boot update flag bit is 1 in step S302, the display device reads a system start flag bit slot_index, reads an image file of a bootloader from a bootloader_b partition according to the value of the slot_index being slot_b, and updates data read from the image file to a first boot partition, so as to implement updating of the first boot partition.
After the first boot partition is updated, setting the value of a boot update flag bit to a second preset value, for example, setting the value to 0, wherein the value of update_boot to 0 indicates that the boot partition which is currently started does not need to be updated, and the operating system needs to be updated according to the boot partition which is currently started.
After the value of the boot update flag bit is set to 0, a restart instruction of the first boot partition is generated, and the instruction is used to jump to step S302.
After the step S303 is skipped to the step S302, the step S302 is executed, and the boot update flag bit is not 1, and the step S304 is skipped.
Step S304: and judging whether the boot update flag bit is 0.
In some embodiments, after the step S302 is skipped to the step S304, the step S304 is executed, where the boot update flag bit is 0, which indicates that the system is required to be updated in the current operating system boot, and the first boot partition has completed updating, and the operating system may be started from the first boot partition, and the step S305 is skipped to start the operating system.
Step S305: and executing an upgrade process of the operating system to update the operating system.
In some embodiments, the upgrade procedure of the operating system includes sequentially starting a kernel process and an init process corresponding to the upgrade package of the system, and after the application software program is started successfully, the operating system is updated successfully, and if any one of the starting processes fails, the operating system is updated successfully.
Step S306: and judging whether the operating system is updated successfully.
In some embodiments, if the operating system update is successful, the boot partition that characterizes the current boot can successfully boot the operating system, and step S307 may be performed.
In some embodiments, if the operating system fails to update, it indicates that the bootloader in the first boot partition cannot successfully start the operating system, which may be due to a problem in the image file of the bootloader in the system upgrade package or a problem in other program files in the system upgrade package, and the method may jump to step S302, so as to sequentially execute steps S304, S305, and S306, to restart the operating system, and again determine whether the operating system is updated successfully.
In some embodiments, if the operating system fails to update, the number of failures is accumulated, and the process goes to step S310.
Step S307: updating boot update flag bits.
In some embodiments, if the operating system is updated successfully, the value of the boot update flag bit is updated to a third preset value, for example, updated to 2, which indicates that the system update is required for the current operating system startup, and the currently started boot partition has successfully started the operating system, that is, the system update is successfully completed by the B system.
In some embodiments, after step S307 is performed, the B system has completed system updating based on bootloader in the system upgrade package, the display device may enter a device home page, and the user may immediately input an operation instruction to control the display device to implement a corresponding function, such as playing media resources, experiencing a function of a new version of the operating system, and so on.
When the user uses the display device for a period of time, the display device is turned off, and then the display device is turned on again after a period of time, and the display device will execute step S302 after the display device is turned on.
The display device executes step S302, and may obtain that the boot update flag bit is not 1, jump to step S304, execute step S304, and may obtain that the boot update flag bit is not 0, jump to step S308.
In some embodiments, the display device may also be configured to jump directly to step S302 after step S307 is performed, and jump to step S304 and step S308 sequentially, so as to improve the efficiency of updating the second boot partition.
Step S308: and judging whether the boot update flag bit is 2.
In some embodiments, after the step S308 is skipped from the step S304, step S309 is performed according to the boot update flag bit being 2.
In some embodiments, after the step S304 is skipped to the step S308, whether the boot update flag bit is 3 is determined according to the boot update flag bit not being 2, if yes, it indicates that the system is not required to be updated when the operating system is started this time, and the operating system can be started directly according to the bootloader in the first boot partition.
Step S309: and updating the second boot partition according to the boot update flag bit of 2.
In some embodiments, after the display device jumps to step S308, according to the boot update flag bit being 2, it is characterized that the bootloader in the first boot partition has successfully started the operating system, so in step S309, the data in the first boot partition may be updated to the second boot partition, so as to implement backup for the first boot partition.
In some embodiments, after updating the second boot partition, the value of the boot update flag bit may be updated to a fourth preset value, for example, updated to 3, which indicates that the starting of the operating system does not need to perform a system upgrade, and a kernel, an init process, an android system and an application software program may be sequentially started according to a bootloader in the first boot partition, so as to complete the starting of the operating system, and enter a device home page.
Step S310: and judging whether the update times of the operating system reach the preset times.
In some embodiments, when the number of failures accumulated in step S306 does not reach the preset number of times, for example, 3 times, the process may jump to step S302, so as to sequentially execute step S304, step S305, and step S306, to restart the operating system, and again determine whether the operating system is updated successfully; when the number of failures accumulated in step S306 reaches the preset number, the rollback flag (rollback_flag) may be set to 1 in step S310, and the display device is configured to jump to step S311 according to the value of rollback_flag being 1.
Step S311: and restoring the first boot partition.
In some embodiments, the display device may update bootloader in the second boot partition to the first boot partition, implement restoring the first boot partition, and restart and enter the old version of the operating system according to the restored first boot partition.
When the subsequent display equipment is restarted, the old version of operating system still enters according to the restored first boot partition.
As can be obtained from fig. 9, after the display device obtains the system update upgrade package, the first boot partition is updated according to the system update upgrade package, after the new version of the operating system is started successfully, the second boot partition is updated, so that the consistency of the first boot partition and the second boot partition is ensured, if the operating system fails to be started for many times after the first boot partition is updated, the first boot partition is restored to be consistent with the second boot partition, and the display device is ensured to still normally start the operating system of the current version.
Based on the above embodiments, the update process of the first boot partition, the second boot partition, the bootloader_a partition, and the bootloader_b partition on the display device memory can be seen in table 1:
TABLE 1
As shown in table 1, before the boot loader is upgraded, bootloader stored in the first boot partition and the second boot partition are bootloader of old version, bootloader_a partition and bootloader_b partition are all the image files of bootloader of old version, wherein the image files of old version are the image files of bootloader with version lower than that in the system update upgrade package. The bootloader_a partition and bootloader_b partition store the image files of bootloader, which are both old versions, but may be the same version or different versions. If the bootloader is updated before the display device is shipped, the bootloader_a partition and the bootloader_b partition store the image files of the bootloader of the same version, and if the display device is updated after the display device is shipped, the bootloader_a partition and the bootloader_b partition store the image files of the bootloader of different versions. Bootloader stored in the first boot partition and the second boot partition are bootloader with the same version.
When the boot loader starts to upgrade, the image file of the bootloader of the new version is updated in the bootloader_b partition, and the data in the first boot partition, the second boot partition and the bootloader_a partition remain unchanged.
When the new version operating system is started for the first time, the bootloader of the new version is updated in the first boot partition, and the data in the second boot partition and the bootloader_a partition remain unchanged.
When the new version operating system is restarted, the new version bootloader is updated in the second boot partition, and the data in the bootloader_a partition remains unchanged.
In some embodiments, the display device is further provided with a boot partition start flag bit boot0_ok, where the boot partition start flag bit is used to determine a boot partition started by the display device, see fig. 10, which is a schematic flow chart of a boot partition start method according to some embodiments, as shown in fig. 10, and the method may include the following steps:
step S401: and starting the first boot partition.
In some embodiments, in a non-system upgrade scenario, the display device may start the first boot partition by default after power-on.
Step S402: and judging whether the first boot partition is started successfully or not.
Step S403: if the first boot partition is started successfully, setting the value of the boot partition starting flag bit to be 1.
In some embodiments, if the first boot partition is successfully started, the value of the boot partition start flag bit may be set to 1, where if the last operating system start is through a bootloader in the first boot partition, the value of the boot partition start flag bit is 1, and the current operating system start may set the value of the boot partition start flag bit to 1 again, or does not modify the value of the boot partition start flag bit.
Step S404: if the first boot partition fails to start, the value of the boot partition start flag bit is set to 0.
In some embodiments, if the first boot partition fails to start, the value of the boot partition start flag bit may be set to 0, and the value of the boot partition start flag bit is 0, which characterizes the first boot partition fails to start.
Step S405: and starting a second boot partition.
In some embodiments, the second boot partition may be started according to the boot partition start flag bit value of 0, so that the operating system is started according to the bootloader in the second boot partition, thereby ensuring that the operating system is started successfully.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, characterized by comprising:
a display;
the storage comprises a first boot partition, a second boot partition, a first boot image partition and a second boot image partition, wherein the first boot partition and the second boot partition are used for storing bootloaders, and the first boot image partition and the second boot image partition are readable and writable storage partitions and are used for storing image files of the bootloaders;
a controller coupled to the display, the memory, the controller configured to:
sending a system update query request to a server;
in response to receiving a system update upgrade package sent by the server, updating an image file of a bootloader in the system update upgrade package to a target image partition, and restarting an operating system, wherein the target image partition is the first boot image partition or the second boot image partition;
Updating bootloader in the first boot partition according to the image file in the target image partition, and starting an upgrading flow corresponding to the system upgrading package according to the updated first boot partition so as to update the operating system;
and if the updating of the operating system is successful, updating the bootloader in the first boot partition to the second boot partition when the operating system is restarted.
2. The display device according to claim 1, wherein the controller is provided with a first operating system and a second operating system, the first boot image partition corresponding to the first operating system, the second boot image partition corresponding to the second operating system;
the updating the image file of the bootloader in the system update upgrade package to the target image partition includes: updating the image file of the bootloader in the system updating and upgrading packet to the target image partition corresponding to the target operating system, wherein the target operating system is a first operating system or a second operating system which is not currently operated.
3. The display device of claim 2, wherein after updating the image file of the bootloader in the system update upgrade package to the target image partition, prior to restarting the operating system, the controller is further configured to: setting an operating system corresponding to a system start flag bit as the target operating system;
The restarting the operating system includes: restarting from the target operating system.
4. The display device of claim 2, wherein after updating the image file of the bootloader in the system update upgrade package to the target image partition, prior to restarting the operating system, the controller is further configured to: setting the value of the boot update flag bit as a first preset value;
the updating the bootloader in the first boot partition according to the image file in the target image partition includes: and updating bootloader in the first boot partition according to the image file in the target image partition by taking the value of the boot update flag bit as a first preset value.
5. The display device of claim 4, wherein the starting an upgrade procedure corresponding to the system upgrade package according to the updated first boot partition to update the operating system includes:
setting the value of the boot update flag bit to a second preset value according to the updated first boot partition;
restarting the first boot partition, setting the value of the boot update flag bit to a second preset value, and starting an upgrade flow corresponding to the system update upgrade package to update the operating system.
6. The display device of claim 5, wherein if the operating system update is successful, the controller is further configured to: setting the value of the boot update flag bit to a third preset value;
and when the operating system is restarted, updating the bootloader in the first boot partition to the second boot partition, including: and when the operating system is restarted, updating the bootloader in the first boot partition to the second boot partition according to the value of the boot update flag bit as a third preset value.
7. A method for bootloader updating, comprising:
sending a system update query request to a server;
in response to receiving a system update upgrade package sent by the server, updating an image file of a bootloader in the system update upgrade package to a target image partition, and restarting an operating system, wherein the target image partition is a first boot image partition or a second boot image partition;
updating the image file in the target image partition to a first boot partition, and starting an upgrading flow corresponding to the system upgrading package according to the updated first boot partition so as to update the operating system;
And if the updating of the operating system is successful, updating the bootloader in the first boot partition to a second boot partition when the operating system is restarted.
8. The boot loader updating method according to claim 7, wherein the updating the image file of the bootloader in the system update upgrade package to the target image partition comprises: updating the image file of the bootloader in the system updating and upgrading packet to a target image partition corresponding to a target operating system, wherein the target operating system is a first operating system or a second operating system which is not currently operated by the display equipment.
9. The boot loader updating method according to claim 8, wherein after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, further comprising: setting an operating system corresponding to a system start flag bit as the target operating system;
the restarting the operating system includes: restarting from the target operating system.
10. The boot loader updating method according to claim 8, wherein after updating the image file of the bootloader in the system update upgrade package to the target image partition, before restarting the operating system, further comprising: setting the value of the boot update flag bit as a first preset value;
The updating the bootloader in the first boot partition according to the image file in the target image partition includes: and updating bootloader in the first boot partition according to the image file in the target image partition by taking the value of the boot update flag bit as a first preset value.
CN202311385785.4A 2023-10-24 2023-10-24 Display device and boot loader updating method Pending CN117421020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311385785.4A CN117421020A (en) 2023-10-24 2023-10-24 Display device and boot loader updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311385785.4A CN117421020A (en) 2023-10-24 2023-10-24 Display device and boot loader updating method

Publications (1)

Publication Number Publication Date
CN117421020A true CN117421020A (en) 2024-01-19

Family

ID=89522400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311385785.4A Pending CN117421020A (en) 2023-10-24 2023-10-24 Display device and boot loader updating method

Country Status (1)

Country Link
CN (1) CN117421020A (en)

Similar Documents

Publication Publication Date Title
CN112764627B (en) Upgrade package installation progress display method and display device
CN113064645B (en) Startup interface control method and display device
CN112165642B (en) Display device
CN112612525A (en) Display device and display device starting method
CN111930410A (en) Display device and idle time upgrading method
CN115048073A (en) Application management method and display device
CN112616090B (en) Display equipment system upgrading method and display equipment
CN114173179A (en) Compatible execution method of system upgrading task and video recording task and display equipment
CN117421020A (en) Display device and boot loader updating method
CN112911359B (en) Resource display method, display equipment and remote controller
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN116166291A (en) System upgrading method, display device and server
CN113641423B (en) Display device and system starting method
CN113971049A (en) Background service management method and display device
CN111597021A (en) Method, device and system for realizing application program operation and related equipment
CN117762361A (en) Display equipment and home page loading method
CN111913755B (en) Application scanning method and display device
CN116781978A (en) Intelligent set top box, display equipment and firmware data updating method
CN115344283A (en) Display device, player upgrading method and storage medium
CN117097951A (en) Display equipment, mobile terminal and system upgrading method
WO2024119895A1 (en) Operating system upgrade method, device, and storage medium
CN118227148A (en) Display device and data deployment method
CN116860277A (en) Display equipment and local upgrading method
CN116737449A (en) Display device and method for restoring factory settings
CN116661822A (en) Display device and application program upgrading method

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