CN111708548A - Software installation method, device, equipment and storage medium - Google Patents

Software installation method, device, equipment and storage medium Download PDF

Info

Publication number
CN111708548A
CN111708548A CN202010559944.8A CN202010559944A CN111708548A CN 111708548 A CN111708548 A CN 111708548A CN 202010559944 A CN202010559944 A CN 202010559944A CN 111708548 A CN111708548 A CN 111708548A
Authority
CN
China
Prior art keywords
software package
data
test
system software
burned
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
CN202010559944.8A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010559944.8A priority Critical patent/CN111708548A/en
Publication of CN111708548A publication Critical patent/CN111708548A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested

Abstract

The application discloses a software installation method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving data to be burned, wherein the data to be burned comprises a test software package and a system software package; burning the data to be burned to a storage position according to a burning process; when the burning is finished, controlling the test software package to run so as to execute hardware test; and controlling the system software package to be run to install the system software in response to the received triggering restart instruction. According to the scheme, only one burning operation is needed, the test software package can be operated to execute hardware test on the terminal equipment, and then the test software package is automatically switched to the system software package to install the system software in response to a trigger restart instruction, so that the production procedures of the terminal equipment are reduced, the production factory efficiency of the terminal equipment is improved to a great extent, and the production capacity of the terminal equipment is increased.

Description

Software installation method, device, equipment and storage medium
Technical Field
The present invention relates generally to the field of electronic technologies, and in particular, to a software installation method, apparatus, device, and storage medium.
Background
With the progress of science and technology and the continuous development of computer technology, intelligent devices such as smart phones and smart televisions have been widely used on a large scale, and in order to put the intelligent devices into use better, system software needs to be installed in the factory production process, so that the factory-delivered intelligent devices are in a user use mode.
At present, software installation of existing intelligent equipment in a production process is completed by using an upgrade software package, the upgrade software package is divided into a factory test software package and a system software package, and in an actual operation process, installation upgrade operations need to be performed twice, for example, a mainboard burning procedure is completed by a mainboard factory based on the factory test software package, and a whole machine software burning procedure is completed by a whole machine factory based on a user software package.
However, the software installation method requires multiple software burning procedures in multiple factories such as a main board factory and a complete machine factory, so that the number of production procedures is increased, the risk of software problems in the installation process is increased, and the production and delivery efficiency of equipment is reduced.
Disclosure of Invention
In view of the above-mentioned defects or shortcomings in the prior art, it is desirable to provide a software installation method, device, equipment and storage medium, which can reduce the production processes of the terminal equipment, improve the production and delivery efficiency of the terminal equipment, and increase the production capacity of the terminal equipment.
In a first aspect, the present application provides a software installation method, including:
receiving data to be burned, wherein the data to be burned comprises a test software package and a system software package;
burning the data to be burned to a storage position according to a burning process;
when the burning is finished, controlling the test software package to run so as to execute hardware test;
and controlling the system software package to be run to install the system software in response to the received triggering restart instruction.
In a second aspect, the present application provides a software installation apparatus, comprising:
the device comprises a receiving module, a recording module and a control module, wherein the receiving module is used for receiving data to be burned, and the data to be burned comprises a test software package and a system software package;
the burning module is used for burning the data to be burned to a storage position according to a burning process;
the test module is used for controlling the test software package to run so as to execute hardware test when the burning is finished;
and the installation module is used for controlling the system software package to be operated to install the system software in response to the received triggering restart instruction.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the software installation method according to the first aspect when executing the program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being used for implementing the software installation method according to the first aspect.
According to the software installation method, the device, the equipment and the storage medium, the data to be burnt is received, the data to be burnt comprises the test software package and the system software package, the data to be burnt is burnt to the storage position according to the burning process, when the burning is completed, the test software package is controlled to be operated to execute the hardware test, and the system software package is controlled to be operated to respond to the received trigger restarting instruction so as to follow the system software. According to the method, only after the data to be burned is received, one burning operation is carried out to burn the data to be burned to the storage position, so that the risk of software problems caused in the process of burning for many times is reduced, and after the test software package is operated to carry out hardware test on the terminal equipment, the system software package is automatically switched to the system software package to install the system software in response to the trigger restart instruction, so that the production procedures of the terminal equipment are reduced, the production delivery efficiency of the terminal equipment is improved to a great extent, and the production capacity of the terminal equipment is increased.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic structural diagram of an application environment of a software installation method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a software installation method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of pre-acquiring data to be burned according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a software installation method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an image file that runs when a restart instruction is triggered to be executed according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a software installation apparatus provided in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a software installation apparatus according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It can be understood that as the degree of intelligence of the terminal increases, the application thereof in the schedule life of people becomes more and more popular. As an intelligent device, in order to guarantee user experience, before the terminal device leaves factory and is put into use, hardware testing and system software installation are required to be carried out in the factory production process, so that the leaving-factory intelligent device is in a user use mode.
At present, the existing software installation method in the factory production process is operated according to the actual processes of different manufacturers, and the software installation process is completed by using an upgrade software package, wherein the upgrade software package comprises: the system comprises a factory test software package and a system software package, wherein the factory test software package is mainly used for testing functions of a hardware mainboard and a whole machine, and the system software package is software which is provided for a user to use finally and is mainly used for system function operation. In the actual factory production process, two software installation processes are required, generally, a mainboard factory completes a mainboard burning process based on a factory test software package, and a complete machine factory completes a complete machine software burning process based on a system software package. However, the method needs a plurality of factories to perform the burning process, so that the production processes are increased, the risk of software problems in the software installation process is increased, and the factory production efficiency of the equipment and the factory production capacity of the equipment are reduced.
Based on the above defects, the present application provides a software installation method, which includes receiving data to be burned, including a test software package and a system software package, and burning the data to be burned to a storage location according to a burning process, controlling to run the test software package to execute a hardware test when burning is completed, and controlling to run the system software package to follow system software in response to a received trigger restart instruction. Compared with the prior art, the method only needs one burning operation to burn the data to be burned to the storage position, reduces the risk of software problems caused in the process of burning for many times, can respond to the triggering restart instruction after the test software package is operated to execute the hardware test on the terminal equipment, automatically switches to the system software package to install the system software, reduces the production procedures of the terminal equipment, improves the production delivery efficiency of the terminal equipment to a great extent, and increases the production capacity of the terminal equipment.
Fig. 1 is a diagram of an implementation environment structure of a software installation method according to an embodiment of the present application. As shown in fig. 1, the implementation environment structure includes: terminal equipment 100 and host computer 200.
The terminal device 100 may include devices such as a smart phone, a tablet computer, a handheld game console, and a smart appliance, such as a smart television, which are equipped with an operating system. The type of the operating system in the embodiment of the present application is not limited, and may include an Android (Android) operating system, a Windows (Windows) operating system, an apple (ios) operating system, and the like.
The upper computer 200 may include a serial interface, and optionally, the serial interface may be one or more. The serial interface can be a Type-C socket and also can be a USB socket. The upper computer 200 can be connected with one end of the data line through the serial interface, and the other end of the data line and the terminal device 100 form a connecting channel, so that communication between the terminal device 100 and the upper computer 200 is realized.
The software installation method provided by the embodiment of the application can be applied to the stages of Engineering Verification Test (EVT), Design Verification Test (DVT), small-batch Process Verification Test (PVT) and the like of the terminal equipment before production and delivery.
For convenience of understanding and explanation, a software installation method, an apparatus, a device, and a storage medium provided by the embodiments of the present application are described in detail below with reference to fig. 2 to 8.
Fig. 2 is a schematic flowchart of a software installation method provided in an embodiment of the present application, where the method is applied to a terminal device, and as shown in fig. 2, the method includes:
s101, receiving data to be burned, wherein the data to be burned comprises a test software package and a system software package.
Specifically, before the burning process is performed on the terminal device, a program developer may compile a test software package in advance according to the hardware test logic and compile a system software package in advance according to the system software logic, where the test software package and the system software package may be compiled machine-recognizable binary files. And merging the test software package and the system software package to obtain an executable burning file, and then performing data compression on the executable burning file to obtain data to be burned. Wherein, the data to be burned is configured with an operation logic for switching to a system software package.
It should be noted that the test software package is mainly used for testing the hardware motherboard and the overall functions of the terminal device, such as testing whether the interface of the terminal device is smooth, the brightness of the screen, and whether the sound module is normal. A system software package, i.e., a volume production software package, is software provided for end-users to use, including the system software of the kernel.
Referring to fig. 3, the version type obtained after the server compiles includes a test software package and a system software package, where the size of the test software package may be 3.2GiB, the size of the system software package may be 2.0GiB, the test software package and the system software package are merged to obtain an executable burning file, the size of which is 5.2GiB, and in order to reduce the size of the software package, the executable burning file is compressed to obtain data to be burned, the size of which is 3 GiB. The Gibibyte (GiB for short) is a unit of information or computer hard disk storage, and 1GiB (1024 × 1024) B (1073741824B).
When the executable burning file is compressed, continuous data with the same numerical value can be searched from the executable burning file, the numerical value and the quantity of the continuous data are determined, and then the continuous data are compressed in a preset format based on the numerical value and the quantity to obtain data to be burned. The preset format may be { value | number }, for example, if there are 100 consecutive identical data in the storage unit being 3, the identical consecutive data is saved as a {3|100} format.
By compressing the data of the executable burning file, the size of the data to be burned is reduced, the burning time is saved, and the burning speed of the data can be greatly improved.
When receiving the data to be burned, the terminal device can decompress the data to be burned to obtain an executable burning file, and analyze the executable burning file to obtain a test software package and a system software package. Optionally, the data to be burned may be analyzed to obtain values and quantities corresponding to the stored table, and data elements included in the data to be burned are read according to the values and data sequences corresponding to the table, and then the executable burning file is determined based on the data elements. For example, the obtained data to be burned includes a data format of {3|100}, a corresponding numerical value of 3 and a quantity of 100 can be determined, and a data element a included in the data to be burned can be determined according to the data sequence and the numerical value, so that an executable burning file can be determined according to the data element a.
S102, burning the data to be burned to a storage position according to a burning process.
The upper computer can be connected with one end of the data line through the serial interface, the other end of the data line is connected with the terminal equipment to form a connecting channel, the upper computer can send a burning request to the terminal equipment through the connecting channel, the burning request comprises data to be burned, the data to be burned comprises a testing software package and a system software package, and the terminal equipment receives and responds to the burning request and burns the data to be burned to the storage position of the terminal equipment according to a burning process. The data to be burned comprises a test software package and a system software package, is configured with an operation logic switched to the system software package, and can also comprise data such as a key corresponding to the system software.
Optionally, the storage location may be in an Embedded MultiMedia controller (EMMC) of the terminal device, where EMMC is a storage device, and refers to a package composed of a flash memory and a flash memory controller integrated on the same silicon chip, and at least includes an MMC (MultiMedia Card) interface, a flash memory device, and a main controller.
And S102, controlling to run the test software package to execute hardware test when the burning is finished.
After data to be burned is burned to a terminal device according to a burning process, a test software package and a system software package are stored in an EMMC (embedded multi-media card) of the terminal device, wherein the test software package can comprise a plurality of test image files, the system software package can comprise a plurality of system image files, different test image files and different system image files are respectively stored in different partitions of the terminal device, when the burning of the data to be burned is completed, the test software package and the system software package are loaded, the test software package is operated to obtain hardware to be tested and test data, and whether the hardware to be tested meets a preset standard or not is detected based on the test data, so that the function test of the hardware device is carried out on the terminal device.
Illustratively, the hardware to be tested can be a wifi module, a usb interface, a bluetooth module, a display module, a sound module, and the like of the terminal device, and the test data can be module parameters corresponding to each module, for example, the test data of the display module can be parameters such as display brightness, contrast, and definition, and the test data is compared with a preset standard value, so as to detect whether the hardware to be tested meets the factory standard. Optionally, the test data may further include a mac address, a key, and the like, and may also be used to test whether the writing of the hardware mac address is correct, whether the writing of the key applied by the system is correct, and the key may include digital rights management (wireless key), high-bandwidth digital content protection (HDCP key), MIRACAST KEY, and the like.
And S103, in response to the received trigger restart instruction, controlling to run the system software package to install the system software.
Specifically, after the terminal device completes a hardware test based on the test software package, the upper computer may send a trigger restart instruction to the terminal device, where the trigger restart instruction may be "switch to user", and the terminal device receives and responds to the trigger restart instruction, and restarts and controls the running of the system software package to install the system software, so that the terminal device enters a user use mode after being started, where the user use mode indicates that a user can operate and use the terminal device after leaving a factory. In the starting-up stage, the terminal equipment deletes the test software package and determines to switch to the system software package, and software installation is carried out on the terminal equipment based on the system software package, so that the terminal equipment presents a complete user use mode after starting-up.
Optionally, as an implementation manner, fig. 4 is a schematic flowchart of a method for installing software on a terminal device according to an embodiment of the present application, and as shown in fig. 4, the method includes:
s201, responding to the received trigger restarting instruction, determining a file reading path and restarting the file reading path.
S202, controlling to delete the test software package corresponding to the current file reading path, and modifying the file reading path into a restart file reading path.
And S203, reading the system software package according to the restart file reading path.
And S204, controlling and operating the system software package to install the system software.
Specifically, a system hard disk is divided into different partitions, each partition is correspondingly provided with a different software package, a test software package and a system software package are respectively stored in different partitions of the system, and after a trigger restart instruction sent by an upper computer is received and responded, a file reading path and a restart file reading path can be determined firstly, wherein the file reading path can be the position of the hard disk partition provided with the test software package, and the restart file reading path is the position of the hard disk partition provided with the system software package. After the file reading path and the restart file reading path are determined, the test software package corresponding to the current file path can be controlled to be deleted, the file reading path is modified into the restart file reading path, the system software package is read according to the restart file reading path, then the system software package is controlled to be operated to install the system software, and the user use mode is presented after the startup is realized.
Referring to fig. 5, the Gemini image to be burned includes a test software package Factory images and a system software package User images, the test software package may include a plurality of test image files, the system software package may include a plurality of system image files, when the data to be burned is burned to the terminal device, the test image files, i.e., the fan _ sub _ image1, the fan _ sub _ image2, and the fan _ sub _ image3 illustrated in the left side of fig. 5, and the User _ sub _ image4, the User _ sub _ image5, and the User _ sub _ image6 in the system image files may be started and run, the test image files are run to execute a hardware test, when the hardware test is executed on the terminal device, an indication that the test is completed is sent to the upper computer, then the upper computer sends a trigger restart command "switch to User" to the terminal device, the terminal device receives the trigger command sent by the upper computer, and the test software package is deleted, and (3) operating the system software package, as shown in the right side of fig. 5, that is, the system image file which starts to operate may be user _ sub _ image1, user _ sub _ image2, user _ sub _ image3, user _ sub _ image4, user _ sub _ image5, or user _ sub _ image 6.
The system software package may include a bootstrap image file and a kernel image file, and in the process of running the system software package to comply with the system software, the bootstrap image file may be controlled to run, the hardware device may be initialized, after the hardware device is initialized, the kernel image file may be controlled to run, the system environment may be initialized, and after the system environment is initialized, the system initialization process may be started to comply with the system software.
It should be noted that the boot image file is a bootloader, a hardware device capable of initializing the terminal device is a section of program that runs before the operating system runs, and is a first program that the device runs, and is used to copy the operating system image file into the DRAM, and then jump to the entry of the image file to execute the file, which may also be referred to as entering a boot load mode. The kernel image file is mainly used for initializing a system environment.
For example, a system software installation process of booting and starting the terminal device is briefly described by taking an Android system as an example, the Android starting process may be divided into two stages, where the first stage is the starting of linux, and the second stage is the starting of Android (may be referred to as an upper-layer booting process).
After the terminal equipment is powered on, the first stage is as follows: and controlling to run a bootstrap image file, starting execution of a bootstrap chip from a preset code of a solidified ROM, and then loading the bootstrap image file into a DRAM for running, wherein the bootstrap image file is mainly used for executing hardware initialization of equipment, and after the initialization of the hardware equipment is completed, a bootloader can guide a kernel image file to be loaded into the DRAM for running continuously, wherein the kernel image file is mainly used for initializing a linux system environment of terminal equipment and is used as equipment for starting an Android virtual machine.
After the system environment is initialized, the second stage is entered, and initialization processes, such as an init process and an Android virtual machine program, may be started, where the init process is responsible for creating several most critical core daemon processes in the system, including but not limited to zygate and service manager. Where zygate is the first Dalvik virtual machine started by Android, and is responsible for starting Java processes. service manager is the basis for Binder communication. The zygate process is a parent process of all java processes, creates a java virtual machine and registers a JNI method for the java virtual machine, for example, a zygate virtual machine promoter process system _ server, creates a server Socket, starts a SystemServer process, starts a Binder thread pool and a SystemServiceManager, and further starts various system services. Meanwhile, the AMS started by the SystemServer process starts Launcher, and after the Launcher is started, shortcut icons of installed applications are displayed on an interface, for example, shortcut icons of a reading application, a wallet application and the like are presented on a terminal interface.
In the software installation method provided by this embodiment, data to be burned is received, where the data to be burned includes a test software package and a system software package, and the data to be burned is burned to a storage location according to a burning process, when the burning is completed, the test software package is controlled to run to execute a hardware test, and the system software package is controlled to run in response to a received trigger restart instruction so as to follow system software. According to the method, only after the data to be burned is received, one burning operation is carried out to burn the data to be burned to the storage position, so that the risk of software problems caused in the process of burning for many times is reduced, and after the test software package is operated to carry out hardware test on the terminal equipment, the system software package is automatically switched to the system software package to install the system software in response to the trigger restart instruction, so that the production procedures of the terminal equipment are reduced, the production delivery efficiency of the terminal equipment is improved to a great extent, and the production capacity of the terminal equipment is increased.
On the other hand, fig. 6 is a schematic structural diagram of a software installation apparatus according to an embodiment of the present application. The apparatus may be an apparatus in a terminal device, as shown in fig. 6, where the apparatus 600 includes:
a receiving module 610, configured to receive data to be burned, where the data to be burned includes a test software package and a system software package;
the burning module 620 is used for burning the data to be burned to the storage position according to the burning process;
the test module 630 is used for controlling the running of the test software package to execute hardware test when the burning is finished;
and the installation module 640 is used for responding to the received triggering restart instruction and controlling the running system software package to install the system software.
Optionally, as shown in fig. 7, the installation module 640 includes:
a determining unit 641, configured to determine a file reading path and a restart file reading path in response to a received trigger restart instruction;
the first processing unit 642 is configured to control to delete the test software package corresponding to the current file reading path, and modify the file reading path to be a restart file reading path;
a reading unit 643, configured to read the system software package according to the restart file reading path;
an installation unit 644 is used for controlling the running system software package to install the system software.
Optionally, the mounting unit 644 is specifically configured to:
controlling to run a bootstrap program mirror image file and initializing hardware equipment;
after the initialization of the hardware equipment is finished, controlling the running of the kernel image file, and initializing a system environment;
and after the initialization system environment is completed, starting a system initialization process and starting to install system software.
Optionally, the testing module 630 includes:
the analysis unit 631 is configured to analyze the test software package to obtain the hardware to be tested and the test data;
the detecting unit 632 is configured to detect whether the hardware to be tested meets a preset standard based on the test data.
Optionally, the receiving module 610 includes:
the decompression unit 611 is configured to decompress the data to be burned to obtain an executable burning file;
the second processing unit 612 is configured to analyze the executable burning file to obtain a test software package and a system software package.
Optionally, the decompression unit 611 is configured to:
analyzing the data to be burned to obtain the numerical values and the quantity corresponding to the storage table;
reading data elements contained in the data to be burned according to the numerical values and the data sequence corresponding to the table;
an executable burn file is determined based on the data elements.
The software installation device provided by the embodiment of the application receives data to be burned through the receiving module, the data to be burned comprises the test software package and the system software package, the data to be burned is burned to the storage position through the burning module according to the burning process, then the test module controls the running of the test software package to execute hardware test after the burning is completed, and the system software package is controlled to run according to the system software by responding to the received trigger restarting instruction according to the module. The device only needs to carry out one-time burning operation to burn the data to be burned to the storage position after receiving the data to be burned, so that the risk of software problems caused in the process of burning for many times is reduced, and after the hardware test of the terminal equipment is completed by operating the test software package, the device responds to the trigger restart instruction and automatically switches to the system software package to install the system software, so that the production process of the terminal equipment is reduced, the production factory efficiency of the terminal equipment is improved to a great extent, and the production capacity of the terminal equipment is increased.
On the other hand, the device provided by the embodiment of the present application includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the software installation method as described above.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a computer system of a terminal device according to an embodiment of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 703 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 703 and/or installed from the removable medium 711. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor, comprising: the device comprises a receiving module, a burning module, a testing module and an installation module. The names of the units or modules do not limit the units or modules, for example, the receiving module may be further described as "receiving data to be burned, which includes a test software package and a system software package".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform the software installation methods described herein:
receiving data to be burned, wherein the data to be burned comprises a test software package and a system software package;
burning the data to be burned to a storage position according to a burning process;
when the burning is finished, controlling the test software package to run so as to execute hardware test;
and controlling the system software package to be run to install the system software in response to the received triggering restart instruction.
To sum up, in the software installation method, the device, the apparatus, and the storage medium provided in the embodiments of the present application, by receiving data to be burned, which includes a test software package and a system software package, and burning the data to be burned to a storage location according to a burning process, when the burning is completed, the test software package is controlled to run to execute a hardware test, and the system software package is controlled to run according to a system software in response to a received trigger restart instruction. According to the method, only after the data to be burned is received, one burning operation is carried out to burn the data to be burned to the storage position, so that the risk of software problems caused in the process of burning for many times is reduced, and after the test software package is operated to carry out hardware test on the terminal equipment, the system software package is automatically switched to the system software package to install the system software in response to the trigger restart instruction, so that the production procedures of the terminal equipment are reduced, the production delivery efficiency of the terminal equipment is improved to a great extent, and the production capacity of the terminal equipment is increased.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method of software installation, the method comprising:
receiving data to be burned, wherein the data to be burned comprises a test software package and a system software package;
burning the data to be burned to a storage position according to a burning process;
when the burning is finished, controlling the test software package to run so as to execute hardware test;
and controlling the system software package to be run to install the system software in response to the received triggering restart instruction.
2. The method of claim 1, wherein controlling the running of the system software package to install system software in response to the received trigger restart instruction comprises:
determining a file reading path and a restarting file reading path in response to the received triggering restarting instruction;
controlling to delete the test software package corresponding to the current file reading path, and modifying the file reading path into a restart file reading path;
reading a system software package according to the restart file reading path;
and controlling the system software package to run so as to install the system software.
3. The method of claim 2, wherein the system software package includes a boot image file and a kernel image file, and controlling the system software package to be run to install the system software includes:
controlling the bootstrap program mirror image file to run, and initializing hardware equipment;
after the initialization of the hardware equipment is finished, controlling the kernel image file to run, and initializing a system environment;
and after the initialization system environment is completed, starting a system initialization process and starting to install system software.
4. The method of claim 1, wherein controlling the running of the test software package to perform hardware testing comprises:
analyzing the test software package to obtain hardware to be tested and test data;
and detecting whether the hardware to be tested meets a preset standard or not based on the test data.
5. The method of claim 1, wherein the receiving data to be burned comprises:
decompressing the data to be burned to obtain an executable burning file;
and analyzing the executable burning file to obtain a test software package and a system software package.
6. The method as claimed in claim 5, wherein decompressing the data to be burned to obtain an executable burning file, comprises:
analyzing the data to be burned to obtain the numerical values and the quantity corresponding to the storage table;
reading data elements contained in the data to be burned according to the numerical values and the data sequence corresponding to the table;
determining the executable burn file based on the data element.
7. A software installation apparatus, characterized in that the apparatus comprises:
the device comprises a receiving module, a recording module and a control module, wherein the receiving module is used for receiving data to be burned, and the data to be burned comprises a test software package and a system software package;
the burning module is used for burning the data to be burned to a storage position according to a burning process;
the test module is used for controlling the test software package to run so as to execute hardware test when the burning is finished;
and the installation module is used for controlling the system software package to be operated to install the system software in response to the received triggering restart instruction.
8. The software installation apparatus of claim 7, wherein the installation module comprises:
the determining unit is used for responding to the received triggering restarting instruction, and determining a file reading path and a restarting file reading path;
the first processing unit is used for controlling to delete the test software package corresponding to the current file reading path and modifying the file reading path into a restarting file reading path;
the reading unit is used for reading the system software package according to the restart file reading path;
and the installation unit is used for controlling the running of the system software package so as to install the system software.
9. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-6 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1-6.
CN202010559944.8A 2020-06-18 2020-06-18 Software installation method, device, equipment and storage medium Pending CN111708548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010559944.8A CN111708548A (en) 2020-06-18 2020-06-18 Software installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010559944.8A CN111708548A (en) 2020-06-18 2020-06-18 Software installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111708548A true CN111708548A (en) 2020-09-25

Family

ID=72541527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010559944.8A Pending CN111708548A (en) 2020-06-18 2020-06-18 Software installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111708548A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363950A (en) * 2020-11-30 2021-02-12 杭州海康汽车软件有限公司 Application program debugging method and device
CN113885899A (en) * 2021-10-25 2022-01-04 苏州浪潮智能科技有限公司 Solid state disk firmware burning method, device, equipment and storage medium
CN114781567A (en) * 2022-06-21 2022-07-22 深圳市信润富联数字科技有限公司 Detection equipment installation method and device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004690A (en) * 2007-01-09 2007-07-25 京信通信技术(广州)有限公司 Integrative method for updating load program and application program in embedded type system
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN103218280A (en) * 2013-04-15 2013-07-24 飞天诚信科技股份有限公司 Hardware general testing method of USB (Universal Serial Bus) equipment
CN104765697A (en) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 Embedded device interaction method and system
WO2016197883A1 (en) * 2015-06-11 2016-12-15 中兴通讯股份有限公司 Method and system for updating program of microcontroller online
CN108804264A (en) * 2018-05-15 2018-11-13 上海金脉电子科技有限公司 The method that microcontroller is tested based on FCT test programs

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004690A (en) * 2007-01-09 2007-07-25 京信通信技术(广州)有限公司 Integrative method for updating load program and application program in embedded type system
CN103064715A (en) * 2013-01-09 2013-04-24 上海大唐移动通信设备有限公司 Remote upgrade method and system for automatic drive test systems
CN103218280A (en) * 2013-04-15 2013-07-24 飞天诚信科技股份有限公司 Hardware general testing method of USB (Universal Serial Bus) equipment
CN104765697A (en) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 Embedded device interaction method and system
WO2016197883A1 (en) * 2015-06-11 2016-12-15 中兴通讯股份有限公司 Method and system for updating program of microcontroller online
CN108804264A (en) * 2018-05-15 2018-11-13 上海金脉电子科技有限公司 The method that microcontroller is tested based on FCT test programs

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363950A (en) * 2020-11-30 2021-02-12 杭州海康汽车软件有限公司 Application program debugging method and device
CN113885899A (en) * 2021-10-25 2022-01-04 苏州浪潮智能科技有限公司 Solid state disk firmware burning method, device, equipment and storage medium
CN113885899B (en) * 2021-10-25 2024-01-12 苏州浪潮智能科技有限公司 Solid state disk firmware burning method, device, equipment and storage medium
CN114781567A (en) * 2022-06-21 2022-07-22 深圳市信润富联数字科技有限公司 Detection equipment installation method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US20210358192A1 (en) Rendering method and apparatus
US10007530B2 (en) Electronic device having an external memory and method for operating the same
CN111708548A (en) Software installation method, device, equipment and storage medium
US8914785B2 (en) Providing virtual appliance system firmware images
US11847469B2 (en) Intelligent device and method for controlling boot screen of the intelligent device
CN109905770B (en) Terminal starting method and device and terminal
CN104978231A (en) Multisystem device based on internal storage partitions and loading and switching method thereof
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US10209915B2 (en) Electronic device and file read and write method thereof
US20130179670A1 (en) Booting method of multimedia device and multimedia device
CN110046094B (en) Operating environment switching method and operating environment switching device
CN111427596A (en) Software upgrading method and device and terminal equipment
US6961848B2 (en) System and method for supporting legacy operating system booting in a legacy-free system
CN107577472B (en) Software installation method and device and computer readable storage medium
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN104050001A (en) Resource processing method, device and equipment based on Android system
CN102135923A (en) Method for integrating operating system into BIOS (Basic Input/Output System) chip and method for starting operating system
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
US10552135B1 (en) Reducing a size of an application package
US6604152B1 (en) Executing program installed in computer slot in one of plural environments comprising a main operating system or small operating system or no operating system
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN111399926A (en) Method and device for downloading starting program
CN115827035A (en) Equipment upgrading method and device, storage medium and electronic 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