CN119902809A - A vehicle terminal startup method, device, vehicle terminal and storage medium - Google Patents

A vehicle terminal startup method, device, vehicle terminal and storage medium Download PDF

Info

Publication number
CN119902809A
CN119902809A CN202411988564.0A CN202411988564A CN119902809A CN 119902809 A CN119902809 A CN 119902809A CN 202411988564 A CN202411988564 A CN 202411988564A CN 119902809 A CN119902809 A CN 119902809A
Authority
CN
China
Prior art keywords
data
memory
vehicle
system memory
mounted terminal
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
CN202411988564.0A
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.)
Nanjing North Road Intelligent Control Technology Co ltd
Original Assignee
Nanjing North Road Intelligent Control 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 Nanjing North Road Intelligent Control Technology Co ltd filed Critical Nanjing North Road Intelligent Control Technology Co ltd
Priority to CN202411988564.0A priority Critical patent/CN119902809A/en
Publication of CN119902809A publication Critical patent/CN119902809A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明公开了一种车载终端的启动方法、装置、车载终端及存储介质,其中,车载终端包括系统存储器和逻辑存储器;启动方法包括:车载终端上电,判断系统存储器的数据是否损坏;如果系统存储器的数据损坏,通过逻辑存储器备份的数据启动车载终端的操作系统;将逻辑存储器挂载为只读模式,将系统存储器挂载为可读写模式;对系统存储器进行磁盘修复,并将逻辑存储器备份的数据恢复到系统存储器。本发明有效提高了车载终端的可靠性和稳定性,避免了异常断电导致的车载终端的操作系统异常无法开机或用户数据丢失的问题,保障了驾驶员的安全和用户体验。

The present invention discloses a vehicle-mounted terminal startup method, device, vehicle-mounted terminal and storage medium, wherein the vehicle-mounted terminal includes a system memory and a logic memory; the startup method includes: the vehicle-mounted terminal is powered on, and it is determined whether the data in the system memory is damaged; if the data in the system memory is damaged, the operating system of the vehicle-mounted terminal is started by the data backed up in the logic memory; the logic memory is mounted in read-only mode, and the system memory is mounted in read-write mode; the system memory is disk-repaired, and the data backed up in the logic memory is restored to the system memory. The present invention effectively improves the reliability and stability of the vehicle-mounted terminal, avoids the problem that the operating system of the vehicle-mounted terminal cannot be started abnormally or the user data is lost due to abnormal power failure, and ensures the driver's safety and user experience.

Description

Vehicle-mounted terminal starting method and device, vehicle-mounted terminal and storage medium
Technical Field
The present invention relates to the field of intelligent traffic technologies, and in particular, to a method and apparatus for starting a vehicle-mounted terminal, and a storage medium.
Background
With the rapid development of intelligent transportation technology, the vehicle-mounted terminal is more and more widely applied to modern vehicles. The vehicle-mounted terminal is not only used for navigation, entertainment and communication, but also bears various functions such as vehicle control and safety monitoring. However, in the actual use process, the vehicle-mounted terminal may encounter various abnormal situations, wherein one of the most common problems is abnormal power failure. Abnormal power failure can cause data damage of a system memory, so that the problems that an operating system of a vehicle-mounted terminal cannot be started or user data is lost and the like are caused, and normal operation and user experience of a vehicle are seriously affected.
In a conventional vehicle-mounted terminal, a single memory is generally used to store system data and user data, and when abnormal power failure occurs, the data in the memory may be destroyed, so that an operating system of the vehicle-mounted terminal cannot be started normally. In order to solve this problem, the existing vehicle-mounted terminal adopts a dual-memory design, namely a main memory and a standby memory, but the recovery mechanism of the existing vehicle-mounted terminal generally needs complex software logic and hardware support, which increases the complexity and cost of the system. Meanwhile, in the process of recovering data, if the vehicle-mounted terminal is powered off again, the spare data of the spare memory can be damaged, so that the two memories cannot work normally, and the reliability of the vehicle-mounted terminal is greatly reduced.
Disclosure of Invention
The invention provides a starting method and device of a vehicle-mounted terminal, the vehicle-mounted terminal and a storage medium, and aims to solve the problems that an existing vehicle-mounted terminal is complex in recovery mechanism and insufficient in reliability.
In a first aspect, the invention provides a starting method of a vehicle-mounted terminal, wherein the vehicle-mounted terminal comprises a system memory and a logic memory, and the starting method comprises the following steps:
The vehicle-mounted terminal is powered on, and whether the data of the system memory are damaged or not is judged;
if the data of the system memory is damaged, starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory;
mounting the logic memory in a read-only mode, and mounting the system memory in a readable and writable mode;
And performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory.
Optionally, after determining whether the data of the system memory is corrupted, the method further includes:
if the data of the system memory is not damaged, the system memory is mounted in a read-only mode, and the logic memory is mounted in a readable and writable mode;
re-backing up data of the system memory to the logic memory;
mounting the system memory into a readable and writable mode, and mounting the logic memory into a read-only mode;
and starting an operating system of the vehicle-mounted terminal through the data of the system memory.
Optionally, after performing the disk repair on the system memory and restoring the data backed up by the logic memory to the system memory, the method further includes:
Maintaining the system memory to be mounted in a readable and writable mode, and maintaining the logic memory to be mounted in a read-only mode;
and controlling the vehicle-mounted terminal to be powered on again.
Optionally, determining whether the data of the system memory is corrupted includes:
and finding out the system memory according to bus matching, finding out other starting data of the system memory according to the starting bit of the address of the rootfs partition of the system memory, and judging whether the other starting data are damaged.
Optionally, the operating system of the vehicle-mounted terminal is started by the data backed up by the logic memory, including:
finding a logic memory backed up with data of the system memory according to bus matching, and mounting the logic memory into a read-only mode;
And starting an operating system of the vehicle-mounted terminal according to the addresses of the rootfs partitions of the logic memory.
In a second aspect, the present invention provides a starting apparatus for a vehicle-mounted terminal, the starting apparatus including:
the first starting module is used for starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory when the data of the system memory is damaged;
the mode mounting module is used for mounting the logic memory into a read-only mode and mounting the system memory into a readable and writable mode;
The repair module is used for repairing the magnetic disk of the system memory;
and the data recovery module is used for recovering the data backed up by the logic memory to the system memory.
Optionally, the mode mounting module is further configured to mount the system memory in a read-only mode and mount the logic memory in a readable and writable mode.
Optionally, the starting device further includes:
The backup module is used for backing up the data of the system memory to the logic memory again;
And the second starting module is used for starting the operating system of the vehicle-mounted terminal through the data of the system memory.
In a third aspect, the present invention provides a vehicle-mounted terminal, where the vehicle-mounted terminal is started by adopting the starting method of the vehicle-mounted terminal provided in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which computer instructions are stored for causing a processor to execute the method for starting the vehicle-mounted terminal provided in the first aspect.
According to the technical scheme, through the double-memory design of the system memory and the logic memory, when the system memory data is damaged due to abnormal power failure, the operating system of the vehicle-mounted terminal can be started from the backup logic memory. After the operating system of the vehicle-mounted terminal is normally started, the processor automatically repairs the damaged system memory, and recovers data from the logic memory to ensure that the system is recovered to normal operation. The processor can complete data recovery of the system memory through simple mounting switching and data copying operation, so that the data recovery flow is simplified, and the recovery efficiency and reliability are improved. Meanwhile, in the process of recovering data, the logic memory of the operating system of the vehicle-mounted terminal can be normally started to be in a read-only state, so that the problem that the two memories cannot work normally due to data damage of the standby logic memory caused by abnormal power failure again in the process of recovering data is avoided. According to the technical scheme, when the vehicle-mounted terminal is abnormally powered off, the operating system of the vehicle-mounted terminal can be started from the standby logic memory, the disk repair and data recovery are carried out on the system memory after the starting is completed, meanwhile, the data consistency in the recovery process is guaranteed, the reliability and stability of the vehicle-mounted terminal are effectively improved, the problem that the operating system of the vehicle-mounted terminal cannot be started abnormally or user data are lost due to abnormal power off is avoided, and the safety and user experience of a driver are guaranteed.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 2 is a flowchart of a method for starting a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 3 is a flowchart of another method for starting up a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 4 is a flowchart of another method for starting up a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 5 is a flowchart of another method for starting up a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a starting device of a vehicle-mounted terminal according to an embodiment of the present invention;
Fig. 7 shows a schematic diagram of an electronic device that may be used to implement an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic structural diagram of a vehicle-mounted terminal according to an embodiment of the present invention, and fig. 2 is a flowchart of a method for starting a vehicle-mounted terminal according to an embodiment of the present invention, where, as shown in fig. 1, the vehicle-mounted terminal 1 includes a system memory 11 and a logic memory 12. As shown in fig. 2, the starting method includes:
and S100, powering on the vehicle-mounted terminal, and judging whether the data of the system memory are damaged.
Specifically, as shown in fig. 1, the in-vehicle terminal 1 may include a motherboard and a logic memory 12, where the motherboard and the logic memory 12 are connected through a serial peripheral interface (SERIAL PERIPHERAL INTERFACE, SPI). The main board is provided with a processor and a system memory 11, i.e. the system memory 11 is connected with a logic memory 12 through an SPI. The logic memory 12 is internally backed up with the same data as the data inside the system memory 11. In the starting process of the operating system of the vehicle-mounted terminal 1, the vehicle-mounted terminal 1 is powered on first, and the processor judges whether the data of the system memory 11 is damaged, wherein the data of the system memory 11 can comprise system data and user data. If the processor determines that the data of the system memory 11 is corrupted, S111 is performed.
S111, starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory.
Specifically, as shown in fig. 1, after the processor determines that the data in the system memory 11 is damaged, at this time, the processor may mount the logic memory 12 in a read-only mode, and start the operating system of the vehicle-mounted terminal 1 through the data which is backed up in the logic memory 12 and is the same as the data in the system memory 11, that is, load necessary system files and configuration files from the logic memory 12, so as to ensure that the operating system of the vehicle-mounted terminal 1 can be started normally. It is ensured that the in-vehicle terminal 1 can be started normally after the data of the system memory 11 is damaged due to abnormal power failure.
S120, mounting the logic memory into a read-only mode and mounting the system memory into a readable and writable mode.
Specifically, as shown in fig. 1, after the vehicle-mounted terminal 1 is normally started, the vehicle-mounted terminal 1 enters a recovery process. At this time, the processor mounts the system memory 11 in a readable and writable mode, so as to ensure that data can be written normally. The processor continues to mount the logic memory 12 in the read-only mode, so that the problem that the data of the logic memory 12 is damaged due to the fact that the vehicle-mounted terminal 1 is powered off again in the recovery process, the system memory 11 and the logic memory 12 cannot work normally, and the problems that the data of the logic memory 12 recovered to the system memory 11 is inconsistent with the backup data and the data recovery is incomplete due to the fact that the logic memory 12 is powered off again are avoided.
S130, performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory.
Specifically, as shown in FIG. 1, the processor begins a disk repair operation on the system memory 11, checking for and repairing a corrupted file system. After the repair is completed, the processor restores the backup data in the logical memory 12 to the system memory 11, and completes the data restoration to the system memory 11. During the recovery process, the system memory 11 maintains a readable and writable state, ensuring that data can be written normally.
According to the technical scheme, through the double-memory design of the system memory and the logic memory, when the system memory data is damaged due to abnormal power failure, the operating system of the vehicle-mounted terminal can be started from the backup logic memory. After the operating system of the vehicle-mounted terminal is normally started, the processor automatically repairs the damaged system memory, and recovers data from the logic memory to ensure that the system is recovered to normal operation. The processor can complete data recovery of the system memory through simple mounting switching and data copying operation, so that the data recovery flow is simplified, and the recovery efficiency and reliability are improved. Meanwhile, in the process of recovering data, the logic memory of the operating system of the vehicle-mounted terminal can be normally started to be in a read-only state, so that the problem that the two memories cannot work normally due to data damage of the standby logic memory caused by abnormal power failure again in the process of recovering data is avoided. According to the technical scheme, when the vehicle-mounted terminal is abnormally powered off, the operating system of the vehicle-mounted terminal can be started from the standby logic memory, the disk repair and data recovery are carried out on the system memory after the starting is completed, meanwhile, the data consistency in the recovery process is guaranteed, the reliability and stability of the vehicle-mounted terminal are effectively improved, the problem that the operating system of the vehicle-mounted terminal cannot be started abnormally or user data are lost due to abnormal power off is avoided, and the safety and user experience of a driver are guaranteed.
Optionally, on the basis of the foregoing embodiments, fig. 3 is a flowchart of another method for starting a vehicle-mounted terminal according to an embodiment of the present invention, where, as shown in fig. 3, the starting method includes:
And S200, powering on the vehicle-mounted terminal, and judging whether the data of the system memory are damaged.
Specifically, as shown in fig. 1, if the processor determines that the data of the system memory 11 is corrupt, S211 is performed, and if the processor determines that the data of the system memory 11 is not corrupt, S212 is performed.
S211, starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory.
S221, mounting the logic memory into a read-only mode and mounting the system memory into a readable and writable mode.
S231, performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory.
Specifically, as shown in fig. 1, after the data recovery of the system memory 11 is completed, the vehicle-mounted terminal 1 may be controlled by a processor or by a person to re-power up, so that the vehicle-mounted terminal 1 enters a normal start-up procedure.
S212, mounting the system memory into a read-only mode and mounting the logic memory into a readable and writable mode.
Specifically, as shown in fig. 1, if the processor determines that the data in the system memory 11 is not damaged, the processor mounts the system memory 11 in a read-only mode, so as to ensure that the data in the system memory 11 cannot be changed, and mounts the logic memory 12 in a readable and writable mode, so as to prepare for data backup.
S222, backing up the data of the system memory to the logic memory again.
Specifically, as shown in fig. 1, the processor backs up critical data in the system memory 11, such as system files and configuration files, into the logic memory 12. After the vehicle-mounted terminal 1 is powered on each time, the processor judges that the data of the system memory 11 are not damaged, and the processor needs to re-backup the key data in the system memory 11 into the logic memory 12, so that the backup data in the logic memory 12 are always consistent with the data of the system memory 11. During the data backup process, the system memory 11 maintains a read-only state, preventing the data of the system memory 11 from being modified accidentally.
S232, mounting the system memory into a readable and writable mode and mounting the logic memory into a read-only mode.
Specifically, as shown in fig. 1, after the data backup is completed, in order to configure the user data after the subsequent startup, the processor mounts the system memory 11 in a readable/writable mode, allowing the normal operation of the system of the vehicle-mounted terminal 1. The processor mounts the logic memory 12 in read-only mode as a spare memory.
S242, starting an operating system of the vehicle-mounted terminal through data of the system memory.
Specifically, as shown in fig. 1, the processor loads necessary system files and configuration files from the system memory 11, so as to ensure that the operating system of the vehicle-mounted terminal 1 can normally operate, and the vehicle-mounted terminal 1 enters a normal working state.
When the existing vehicle-mounted terminal backs up data, if power failure occurs again, data of the main memory and data of the standby memory are possibly inconsistent, namely partial data can be possibly not completely backed up, and therefore the effect of data recovery is affected. In the technical scheme of the embodiment of the invention, the system memory 11 is mounted in a read-only mode during data backup, so that the problem of inconsistent data backup caused by power failure again during data backup is effectively avoided, and the reliability and the data safety of the vehicle-mounted terminal 1 under the abnormal power failure condition are further improved. According to the technical scheme provided by the embodiment of the invention, the memory of the operating system capable of normally starting the vehicle-mounted terminal 1 is in a read-only state in the data backup and data recovery processes, namely, the system memory 11 is ensured to be in the read-only state in the data backup process, the logic memory 12 is ensured to be in the read-only state in the data recovery process, the situation that the two memories cannot normally work due to the fact that the power is cut off again in the data backup and data recovery processes is prevented, meanwhile, the data consistency and the data integrity in the data backup and data recovery processes are ensured, and the reliability and the stability of the vehicle-mounted terminal 1 are improved.
Optionally, on the basis of the foregoing embodiments, fig. 4 is a flowchart of another method for starting a vehicle-mounted terminal according to an embodiment of the present invention, where, as shown in fig. 4, the starting method includes:
And S300, finding out the system memory according to bus matching, finding out other starting data of the system memory according to the starting bit of the address of the rootfs partition of the system memory, and judging whether the other starting data are damaged.
Specifically, as shown in fig. 1, in the boot stage, the code of the system memory 11 defaults to a boot partition, a kernel partition, and a starting flash address of a rootfs partition, and the processor finds other starting data on the system memory 11 according to the matching of the device bus, and determines whether the other starting data is damaged. If the processor determines that other startup data is corrupted, S311 is performed, and if the processor determines that other startup data is not corrupted, S312 is performed.
S311, starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory.
S321, mounting the logic memory into a read-only mode and mounting the system memory into a readable and writable mode.
S331, performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory.
S312, the system memory is mounted in a read-only mode, and the logic memory is mounted in a readable and writable mode.
S322, backing up the data of the system memory to the logic memory again.
S332, mounting the system memory into a readable and writable mode and mounting the logic memory into a read-only mode.
S342, starting an operating system of the vehicle-mounted terminal through data of the system memory.
Optionally, on the basis of the foregoing embodiments, fig. 5 is a flowchart of another method for starting a vehicle-mounted terminal according to an embodiment of the present invention, where, as shown in fig. 5, the starting method includes:
S400, powering on the vehicle-mounted terminal, and judging whether the data of the system memory are damaged.
Specifically, as shown in fig. 1, if the processor determines that the data of the system memory 11 is corrupt, S411 is performed, and if the processor determines that the data of the system memory 11 is not corrupt, S412 is performed.
S411, finding a logic memory backed up with data of the system memory according to bus matching, and mounting the logic memory into a read-only mode.
Specifically, as shown in fig. 1, the processor finds other boot data on the system memory 11 according to the match of the device bus, and the processor determines whether the other boot data is damaged. If the other boot data is corrupted, the processor finds the data backed up logical memory 12 based on the device bus match, mounting the logical memory 12 in read-only mode.
S421, starting an operating system of the vehicle-mounted terminal according to the addresses of the rootfs partitions of the logic memory.
Specifically, as shown in fig. 1, the processor starts to complete the start of the operating system of the vehicle-mounted terminal 1 according to the rootfs partition address on the logical memory 12.
S431, the logic memory is mounted in a read-only mode, and the system memory is mounted in a readable and writable mode.
S441, performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory.
S412, mounting the system memory into a read-only mode and mounting the logic memory into a readable and writable mode.
S422, the data of the system memory is backed up to the logic memory again.
S432, mounting the system memory into a readable and writable mode and mounting the logic memory into a read-only mode.
S442, starting an operating system of the vehicle-mounted terminal through data of the system memory.
Fig. 6 is a schematic structural diagram of a starting device of a vehicle-mounted terminal according to an embodiment of the present invention, where the starting device, as shown in fig. 6, includes a first starting module 21, configured to start an operating system of the vehicle-mounted terminal by data backed up by a logical memory when data in a system memory is damaged. The mode mounting module 22 is configured to mount the logic memory in a read-only mode and mount the system memory in a readable/writable mode. And the repair module 23 is used for performing disk repair on the system memory. And the data recovery module 24 is used for recovering the data backed up by the logic memory to the system memory.
Specifically, referring to fig. 1, in the starting process of the operating system of the vehicle-mounted terminal 1, the vehicle-mounted terminal 1 is powered on first, after the data of the system memory 11 is damaged, the mode mounting module 22 may mount the logic memory 12 in a read-only mode at this time, and the first starting module 21 starts the operating system of the vehicle-mounted terminal 1 through the data, which is backed up in the logic memory 12 and is the same as the data in the system memory 11, that is, loads necessary system files and configuration files from the logic memory 12, so as to ensure that the operating system of the vehicle-mounted terminal 1 can be started normally. It is ensured that the in-vehicle terminal 1 can be started normally after the data of the system memory 11 is damaged due to abnormal power failure.
After the vehicle-mounted terminal 1 is started normally, the vehicle-mounted terminal 1 enters a recovery process. At this time, the mode mounting module 22 mounts the system memory 11 in a readable and writable mode, so as to ensure that data can be written normally. The mode mounting module 22 continues to keep the logic memory 12 mounted in the read-only mode, so that the problem that the data of the logic memory 12 is damaged due to the fact that the vehicle-mounted terminal 1 is powered off again in the recovery process, the system memory 11 and the logic memory 12 cannot work normally, and the problem that the data of the logic memory 12 recovered to the system memory 11 is inconsistent with the backup data and the problem that the data recovery is incomplete due to the fact that the logic memory 12 is powered off again are avoided.
Finally, the repair module 23 starts a disk repair operation on the system memory 11, and checks and repairs the damaged file system. After the repair is completed, the data recovery module 24 recovers the backup data in the logical memory 12 to the system memory 11, and completes the data recovery of the system memory 11. During the recovery process, the system memory 11 maintains a readable and writable state, ensuring that data can be written normally.
According to the technical scheme of the embodiment of the invention, through the double-memory design of the system memory and the logic memory, when the system memory data is damaged due to abnormal power failure, the first starting module 21 can start the operating system of the vehicle-mounted terminal from the backup logic memory. After the operating system of the vehicle-mounted terminal is normally started, the repair module 23 automatically repairs the damaged system memory, and the data recovery module 24 recovers data from the logic memory to ensure that the system recovers to normal operation. The mode mounting module 22 can complete data recovery of the system memory through simple mounting switching and the data recovery module 24 through simple data copying operation, so that the data recovery flow is simplified, and the recovery efficiency and reliability are improved. Meanwhile, in the process of recovering data, the logic memory of the operating system of the vehicle-mounted terminal can be normally started to be in a read-only state, so that the problem that the two memories cannot work normally due to data damage of the standby logic memory caused by abnormal power failure again in the process of recovering data is avoided. According to the technical scheme, when the vehicle-mounted terminal is abnormally powered off, the operating system of the vehicle-mounted terminal can be started from the standby logic memory, the disk repair and data recovery are carried out on the system memory after the starting is completed, meanwhile, the data consistency in the recovery process is guaranteed, the reliability and stability of the vehicle-mounted terminal are effectively improved, the problem that the operating system of the vehicle-mounted terminal cannot be started abnormally or user data are lost due to abnormal power off is avoided, and the safety and user experience of a driver are guaranteed.
Optionally, with continued reference to fig. 6, the mode mounting module 22 is further configured to mount the system memory in a read-only mode and the logic memory in a read-write mode.
Specifically, referring to fig. 1, the mode mounting module 22 may mount the system memory 11 in a read-only mode or a readable/writable mode, or may mount the logic memory 12 in a read-only mode or a readable/writable mode, and the mode mounting module 22 may perform any mounting switching on the system memory 11 and the logic memory 12.
Optionally, with continued reference to FIG. 6, the startup device further includes a backup module 25 for re-backing up the data of the system memory to the logical memory. The second starting module 26 is configured to start the operating system of the vehicle-mounted terminal through the data in the system memory.
Specifically, referring to fig. 1, when the data of the system memory 11 is not damaged, the mode mounting module 22 mounts the system memory 11 in a read-only mode, so as to ensure that the data of the system memory 11 cannot be changed, and the mode mounting module 22 mounts the logic memory 12 in a read-write mode, so as to prepare for data backup.
The backup module 25 backs up critical data in the system memory 11, such as system files and configuration files, etc., to the logical memory 12. After the vehicle-mounted terminal 1 is powered on each time, the data of the system memory 11 are not damaged, and the backup module 25 needs to re-backup the key data in the system memory 11 into the logic memory 12, so that the backup data in the logic memory 12 is always consistent with the data of the system memory 11. During the data backup process, the system memory 11 maintains a read-only state, preventing the data of the system memory 11 from being modified accidentally.
After the data backup is completed, the mode mounting module 22 mounts the system memory 11 in a readable and writable mode for the user data after the subsequent startup, allowing the normal operation of the system of the in-vehicle terminal 1. The mode mount module 22 mounts the logic memory 12 in read-only mode as a spare memory.
The second starting module 26 loads necessary system files and configuration files from the system memory 11, so as to ensure that the operating system of the vehicle-mounted terminal 1 can normally operate, and the vehicle-mounted terminal 1 enters a normal working state.
According to the technical scheme provided by the embodiment of the invention, the mode mounting module 22 mounts the system memory 11 into the read-only mode during data backup, so that the problem of inconsistent data backup caused by power failure again during data backup is effectively avoided, and the reliability and the data safety of the vehicle-mounted terminal 1 under the abnormal power failure condition are further improved. According to the technical scheme provided by the embodiment of the invention, in the data backup and data recovery processes, the memory of the operating system of the vehicle-mounted terminal 1 can be normally started to be in a read-only state, namely, in the data backup process, the mode mounting module 22 ensures that the system memory 11 is in a read-only state, in the data recovery process, the mode mounting module 22 ensures that the logic memory 12 is in a read-only state, so that the two memories cannot normally work due to the fact that the power is cut off again in the data backup and data recovery processes are prevented, meanwhile, the data consistency and integrity in the data backup and data recovery processes are ensured, and the reliability and stability of the vehicle-mounted terminal 1 are improved.
The vehicle-mounted terminal comprises, but is not limited to, a vehicle-mounted terminal of a mining rubber-tyred vehicle, wherein the vehicle-mounted terminal is started by adopting the starting method of any vehicle-mounted terminal provided by any embodiment of the invention, namely, the vehicle-mounted terminal of the mining rubber-tyred vehicle can be started by adopting the starting method of any vehicle-mounted terminal provided by any embodiment of the invention, and the vehicle-mounted terminal provided by the embodiment of the invention has the beneficial effects of the starting method of any vehicle-mounted terminal provided by any embodiment of the invention.
An embodiment of the present invention provides an electronic device, and fig. 7 shows a schematic structural diagram of an electronic device that may be used to implement an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic device 30 may also represent various forms of mobile equipment, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., helmets, eyeglasses, watches, etc.), and other similar computing equipment. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 30 includes at least one processor 31, and a memory communicatively coupled to the at least one processor 31, such as a Read Only Memory (ROM) 32, a Random Access Memory (RAM) 33, etc., and further includes a system memory 11 and a logic memory 12, the system memory 11 and the logic memory 12 being communicatively coupled to the processor 31 via a bus 34. In which a memory stores a computer program executable by at least one processor 31, the processor 31 may perform various suitable actions and processes according to the computer program stored in a Read Only Memory (ROM) 32 or the computer program loaded from a storage unit 38 into a Random Access Memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 may also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other via a bus 34. An input/output (I/O) interface 35 is also connected to bus 34.
Various components in the electronic device 30 are connected to the I/O interface 35, including an input unit 36, such as a keyboard, mouse, etc., an output unit 37, such as various types of displays, speakers, etc., a storage unit 38, such as a magnetic disk, optical disk, etc., and a communication unit 39, such as a network card, modem, wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 31 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 31 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 31 performs the respective methods and processes described above, for example, a start-up method of the in-vehicle terminal.
In some embodiments, the method of starting up the vehicle terminal may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 38. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 30 via the ROM 32 and/or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the above-described start-up method of the in-vehicle terminal may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the method of starting the vehicle-mounted terminal in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor 31, cause the functions/operations specified in the flowchart and/or block diagram to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), a blockchain network, and the Internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1.一种车载终端的启动方法,其特征在于,车载终端包括系统存储器和逻辑存储器;所述启动方法包括:1. A method for starting a vehicle terminal, characterized in that the vehicle terminal includes a system memory and a logic memory; the method for starting includes: 车载终端上电,判断所述系统存储器的数据是否损坏;The vehicle-mounted terminal is powered on to determine whether the data in the system memory is damaged; 如果所述系统存储器的数据损坏,通过所述逻辑存储器备份的数据启动所述车载终端的操作系统;If the data in the system memory is damaged, starting the operating system of the vehicle terminal through the data backed up in the logical memory; 将所述逻辑存储器挂载为只读模式,将所述系统存储器挂载为可读写模式;Mounting the logical memory in read-only mode and mounting the system memory in read-write mode; 对所述系统存储器进行磁盘修复,并将所述逻辑存储器备份的数据恢复到所述系统存储器。Perform disk repair on the system memory, and restore the data backed up by the logical memory to the system memory. 2.根据权利要求1所述的车载终端的启动方法,其特征在于,判断所述系统存储器的数据是否损坏之后,还包括:2. The method for starting a vehicle terminal according to claim 1, characterized in that after determining whether the data in the system memory is damaged, it further comprises: 如果所述系统存储器的数据未损坏,则将所述系统存储器挂载为只读模式,将所述逻辑存储器挂载为可读写模式;If the data in the system memory is not damaged, the system memory is mounted in a read-only mode, and the logical memory is mounted in a read-write mode; 将所述系统存储器的数据重新备份到所述逻辑存储器;Backing up the data of the system memory to the logical memory again; 将所述系统存储器挂载为可读写模式,将所述逻辑存储器挂载为只读模式;Mounting the system memory in a readable and writable mode and mounting the logical memory in a read-only mode; 通过所述系统存储器的数据启动所述车载终端的操作系统。The operating system of the vehicle terminal is started by using the data in the system memory. 3.根据权利要求1所述的车载终端的启动方法,其特征在于,对所述系统存储器进行磁盘修复,并将所述逻辑存储器备份的数据恢复到所述系统存储器之后,还包括:3. The startup method of the vehicle terminal according to claim 1, characterized in that after performing disk repair on the system memory and restoring the data backed up in the logical memory to the system memory, it also includes: 保持所述系统存储器挂载为可读写模式,所述逻辑存储器挂载为只读模式;Keep the system memory mounted in a readable and writable mode and the logical memory mounted in a read-only mode; 控制车载终端重新上电。Control the vehicle terminal to power on again. 4.根据权利要求1所述的车载终端的启动方法,其特征在于,判断所述系统存储器的数据是否损坏,包括:4. The method for starting a vehicle-mounted terminal according to claim 1, wherein determining whether the data in the system memory is damaged comprises: 根据总线匹配找到所述系统存储器,根据所述系统存储器的rootfs分区的地址的开始位找到所述系统存储器的其他启动数据,判断其他启动数据是否损坏。The system memory is found according to bus matching, other startup data of the system memory is found according to the start bit of the address of the rootfs partition of the system memory, and it is determined whether the other startup data is damaged. 5.根据权利要求1所述的车载终端的启动方法,其特征在于,通过所述逻辑存储器备份的数据启动所述车载终端的操作系统,包括:5. The method for starting a vehicle-mounted terminal according to claim 1, characterized in that starting the operating system of the vehicle-mounted terminal by using the data backed up by the logical memory comprises: 根据总线匹配找到备份有所述系统存储器的数据的所述逻辑存储器,并将所述逻辑存储器挂载为只读模式;Find the logical memory having the data of the system memory backed up according to bus matching, and mount the logical memory in read-only mode; 根据所述逻辑存储器的rootfs分区的地址启动所述车载终端的操作系统。The operating system of the vehicle terminal is started according to the address of the rootfs partition of the logical memory. 6.一种车载终端的启动装置,其特征在于,包括:6. A starting device for a vehicle-mounted terminal, characterized by comprising: 第一启动模块,用于在系统存储器的数据损坏时,通过逻辑存储器备份的数据启动所述车载终端的操作系统;A first startup module, used to start the operating system of the vehicle terminal through the data backed up in the logical memory when the data in the system memory is damaged; 模式挂载模块,用于将所述逻辑存储器挂载为只读模式,将所述系统存储器挂载为可读写模式;A mode mounting module, used for mounting the logic memory in a read-only mode and mounting the system memory in a read-write mode; 修复模块,用于对所述系统存储器进行磁盘修复;A repair module, used for performing disk repair on the system memory; 数据恢复模块,用于将所述逻辑存储器备份的数据恢复到所述系统存储器。The data recovery module is used to restore the data backed up in the logical memory to the system memory. 7.根据权利要求6所述的车载终端的启动装置,其特征在于,所述模式挂载模块还用于将所述系统存储器挂载为只读模式,将所述逻辑存储器挂载为可读写模式。7 . The starting device of the vehicle terminal according to claim 6 , wherein the mode mounting module is further used to mount the system memory in a read-only mode and to mount the logic memory in a read-write mode. 8.根据权利要求6所述的车载终端的启动装置,其特征在于,还包括:8. The starting device of the vehicle terminal according to claim 6, characterized in that it also includes: 备份模块,用于将所述系统存储器的数据重新备份到所述逻辑存储器;A backup module, used for backing up the data of the system memory to the logical memory; 第二启动模块,用于通过所述系统存储器的数据启动所述车载终端的操作系统。The second startup module is used to start the operating system of the vehicle terminal through the data in the system memory. 9.一种车载终端,其特征在于,所述车载终端采用权利要求1-5任一项所述的车载终端的启动方法进行启动。9. A vehicle-mounted terminal, characterized in that the vehicle-mounted terminal is started by using the vehicle-mounted terminal starting method according to any one of claims 1 to 5. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行权利要求1-5任一项所述的车载终端的启动方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute the startup method of the vehicle-mounted terminal according to any one of claims 1 to 5.
CN202411988564.0A 2024-12-31 2024-12-31 A vehicle terminal startup method, device, vehicle terminal and storage medium Pending CN119902809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411988564.0A CN119902809A (en) 2024-12-31 2024-12-31 A vehicle terminal startup method, device, vehicle terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411988564.0A CN119902809A (en) 2024-12-31 2024-12-31 A vehicle terminal startup method, device, vehicle terminal and storage medium

Publications (1)

Publication Number Publication Date
CN119902809A true CN119902809A (en) 2025-04-29

Family

ID=95464530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411988564.0A Pending CN119902809A (en) 2024-12-31 2024-12-31 A vehicle terminal startup method, device, vehicle terminal and storage medium

Country Status (1)

Country Link
CN (1) CN119902809A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262543A (en) * 2010-05-25 2011-11-30 上海中标软件有限公司 Power-failure resistant method for starting Linux system
CN106033362A (en) * 2015-03-13 2016-10-19 北京视联动力国际信息技术有限公司 Method and device for processing flash memory partition
CN113189907A (en) * 2021-04-28 2021-07-30 前海七剑科技(深圳)有限公司 Vehicle-mounted system recovery method and device
CN114238225A (en) * 2021-12-22 2022-03-25 武汉噢易云计算股份有限公司 File system protection method, device, equipment and readable storage medium
CN115878377A (en) * 2022-11-17 2023-03-31 湖南华诺星空电子技术有限公司 Power failure protection method and device for embedded Linux system and computer equipment
WO2023103755A1 (en) * 2021-12-10 2023-06-15 中兴通讯股份有限公司 Terminal starting method, electronic device, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262543A (en) * 2010-05-25 2011-11-30 上海中标软件有限公司 Power-failure resistant method for starting Linux system
CN106033362A (en) * 2015-03-13 2016-10-19 北京视联动力国际信息技术有限公司 Method and device for processing flash memory partition
CN113189907A (en) * 2021-04-28 2021-07-30 前海七剑科技(深圳)有限公司 Vehicle-mounted system recovery method and device
WO2023103755A1 (en) * 2021-12-10 2023-06-15 中兴通讯股份有限公司 Terminal starting method, electronic device, and computer-readable storage medium
CN114238225A (en) * 2021-12-22 2022-03-25 武汉噢易云计算股份有限公司 File system protection method, device, equipment and readable storage medium
CN115878377A (en) * 2022-11-17 2023-03-31 湖南华诺星空电子技术有限公司 Power failure protection method and device for embedded Linux system and computer equipment

Similar Documents

Publication Publication Date Title
US9015458B2 (en) Computer system and method for updating basic input/output system by switching between local mode and bypass mode through baseboard management controller
CN114116280B (en) Interactive BMC self-recovery method, system, terminal and storage medium
CN113515291A (en) Equipment online upgrade method and device
CN111722960A (en) A boot method, system, device and medium under abnormal CMOS information
CN111124728A (en) Automatic service recovery method, system, readable storage medium and server
CN108737153B (en) Blockchain disaster recovery system, method, server and computer-readable storage medium
CN118349290B (en) Dual storage chip startup upgrade system, method, device, medium and product
TW202131170A (en) Firmware corruption recovery
CN113849432B (en) Server firmware data storage method, startup method, device, equipment and medium
CN114860322A (en) A baseboard management controller, control method and electronic device
CN115509821A (en) A system exception handling method, device, equipment and storage medium
CN110308935B (en) Electronic device and operation method thereof
CN112035171B (en) Factory setting restoration method and system based on UEFI firmware
CN115562593A (en) Abnormal RAID member disk processing method, device and medium
CN119902809A (en) A vehicle terminal startup method, device, vehicle terminal and storage medium
CN118445818B (en) System updating method and device based on multi-system isolation
JP3231561B2 (en) Backup memory control method
CN101546281A (en) Method and device for improving reliability of embedded system
CN117421156A (en) Firmware management method, device, equipment and machine-readable storage medium
CN116737185A (en) Mirror image loading method, device, equipment and medium
CN114721871A (en) Data backup method and device and electronic equipment
CN113467848A (en) Multi-system startup method, device, storage medium, and program product
CN115454515A (en) System processing method, device, electronic device
CN115167895A (en) Basic input output system updating method, device, equipment and storage medium
JP3448197B2 (en) Information processing 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