CN110045966A - Processing method, device and the equipment of erector - Google Patents

Processing method, device and the equipment of erector Download PDF

Info

Publication number
CN110045966A
CN110045966A CN201910256108.XA CN201910256108A CN110045966A CN 110045966 A CN110045966 A CN 110045966A CN 201910256108 A CN201910256108 A CN 201910256108A CN 110045966 A CN110045966 A CN 110045966A
Authority
CN
China
Prior art keywords
erector
processed
module
target hardware
hardware equipment
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
CN201910256108.XA
Other languages
Chinese (zh)
Inventor
张强
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longxin Zhongke (hefei) Technology Co Ltd
Original Assignee
Longxin Zhongke (hefei) 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 Longxin Zhongke (hefei) Technology Co Ltd filed Critical Longxin Zhongke (hefei) Technology Co Ltd
Priority to CN201910256108.XA priority Critical patent/CN110045966A/en
Publication of CN110045966A publication Critical patent/CN110045966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

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

Abstract

The present embodiment provides a kind of processing method of erector, device and equipment, this method comprises: obtaining erector to be processed, the installation process of the erector to be processed cannot identify target hardware equipment;According to the erector to be processed, the corresponding module of the target hardware equipment is obtained;According to the erector to be processed and the corresponding module of the target hardware equipment, generate treated erector, the installation process for the erector that enables that treated identifies the target hardware equipment, to solve the problems, such as that erector can not identify target hardware equipment, facilitate the installation process of erector.

Description

Processing method, device and the equipment of erector
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of processing method of erector, device and set It is standby.
Background technique
Debian is a free operating system, has more than 51000 kinds of different softwares, and each software It is free.Debian is the good integrated level of its software package better than other release versions place.
Debian supports kinds of platform framework, including MIPS framework (Microprocessor without interlocked piped stages architecture).When installing Debian in the terminal of each platform, can use The mode of network installation.Specifically, downloading Debian erector to storage medium (such as USB flash disk) from Debian official server In, using storage medium as starting up's disk of terminal, so that entering the installation that erector carries out Debian after terminal booting.
But in the terminal of MIPS platform, it cannot be used during Debian is installed using Debian erector logical With universal serial bus (Universal Serial Bus, USB) equipment, this brings many inconvenience to the installation process of Debian.
Summary of the invention
The embodiment of the present invention provides processing method, device and the equipment of a kind of erector, is installing to solve erector In the process can not identification division hardware device the problem of.
In a first aspect, the embodiment of the present invention provides a kind of processing method of erector, comprising:
Erector to be processed is obtained, the installation process of the erector to be processed cannot identify target hardware equipment;
According to the erector to be processed, the corresponding module of the target hardware equipment is obtained;
According to the erector to be processed and the corresponding module of the target hardware equipment, the installation that generates that treated The installation process of device, treated the erector can identify the target hardware equipment.
Optionally, described according to the erector to be processed and the corresponding module of the target hardware equipment, at generation Erector after reason, comprising:
The erector to be processed is unziped into temp directory;
Copy the corresponding module of the target hardware equipment to first path, the first path is the temp directory In for storing the path of the corresponding module of hardware device;
According to the temp directory after copy, the erector that generates that treated.
Optionally, the temp directory according to after copy generates treated erector, comprising:
For the temp directory after copy, the dependence between each module is re-established, and to the interim mesh Record is compressed, the erector that obtains that treated.
Optionally, described that the corresponding module of the target hardware equipment is obtained according to the erector to be processed, packet It includes:
Obtain the corresponding kernel version of the erector to be processed;
According to the kernel version, kernel mirror image file corresponding with the kernel version is obtained from server;
The corresponding module of the target hardware equipment is obtained from the kernel mirror image file.
It is optionally, described to obtain erector to be processed, comprising:
Erector is obtained from server;
If the corresponding module of target hardware equipment is not present in the second path of the erector, the erector is made For the erector to be processed, second path is in the erector for storing the road of the corresponding module of hardware device Diameter.
Optionally, the target hardware equipment is general-purpose serial bus USB equipment, and the erector is Debian installation Device.
Optionally, the USB device is at least one of following: the keyboard of USB interface, the mouse of USB interface, USB The storage medium of interface.
Second aspect, the embodiment of the present invention provide a kind of processing unit of erector, comprising:
First obtains module, and for obtaining erector to be processed, the installation process of the erector to be processed cannot Identify target hardware equipment;
Second obtains module, for obtaining the corresponding mould of the target hardware equipment according to the erector to be processed Block;
Generation module, for generating according to the erector to be processed and the corresponding module of the target hardware equipment The installation process of treated erector, treated the erector can identify the target hardware equipment.
Optionally, the generation module is specifically used for:
The erector to be processed is unziped into temp directory;
Copy the corresponding module of the target hardware equipment to first path, the first path is the temp directory In for storing the path of the corresponding module of hardware device;
According to the temp directory after copy, the erector that generates that treated.
Optionally, the generation module is specifically used for: for the temp directory after copy, re-establish each module it Between dependence, and the temp directory is compressed, the erector that obtains that treated.
Optionally, the second acquisition module is specifically used for:
Obtain the corresponding kernel version of the erector to be processed;
According to the kernel version, kernel mirror image file corresponding with the kernel version is obtained from server;
The corresponding module of the target hardware equipment is obtained from the kernel mirror image file.
Optionally, the first acquisition module is specifically used for:
Erector is obtained from server;
If the corresponding module of target hardware equipment is not present in the second path of the erector, the erector is made For the erector to be processed, second path is in the erector for storing the road of the corresponding module of hardware device Diameter.
Optionally, the target hardware equipment is general-purpose serial bus USB equipment, and the erector is Debian installation Device.
Optionally, the USB device is at least one of following: the keyboard of USB interface, the mouse of USB interface, USB The storage medium of interface.
The third aspect, the embodiment of the present invention provide a kind of processing equipment of erector, comprising: memory, processor and Computer program, in the memory, the processor runs the computer program and executes for the computer program storage Such as the described in any item methods of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Matter includes computer program, and such as first aspect described in any item methods are realized when the computer program is executed by processor.
Processing method, device and the equipment of erector provided in this embodiment, this method comprises: obtaining installation to be processed The installation process of device, the erector to be processed cannot identify target hardware equipment;According to the erector to be processed, obtain Take the corresponding module of the target hardware equipment;According to the erector to be processed and the corresponding mould of the target hardware equipment Block generates treated erector, and the installation process of such that treated erector identifies the target hardware equipment, from And solve the problems, such as that erector can not identify target hardware equipment, facilitate the installation process of erector.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the network installation schematic diagram of a scenario for the erector that the embodiment of the present invention is applicable in;
Fig. 2 is the flow diagram of the processing method for the erector that one embodiment of the invention provides;
Fig. 3 be another embodiment of the present invention provides erector processing method flow diagram;
Fig. 4 is the structural schematic diagram of the processing unit for the erector that one embodiment of the invention provides;
Fig. 5 is the hardware structural diagram of the processing equipment for the erector that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
Debian is a free operating system, has more than 51000 kinds of different softwares, and each software It is free.Debian is the good integrated level of its software package better than other release versions place.Deb format is Debian system It unites exclusive installation kit format.Since deb format has the advantages that integrated level is high with respect to rpm format, so that Debian system is more steady It is fixed more strong.
Debian system is a kind of in Linux release.Other opposite Linux releases, such as Fedora, CentOS There is following advantage Deng, Debian system.1) stability is outstanding: as server system, having many bootings throughout the year without restarting Case.The stability of Debian system is mainly attributed to the good integrated level of its software package.2) a variety of frameworks and core are supported: Central processing unit (Central Processing Unit, CPU) framework that Debian is supported at present is a considerable number of, including but not It is limited to: alpha, amd64, armel, hppa, i386, ia64, mips, mipsel, powerpc, s390 and sparc. Debian can also execute Linux with except FreeBSD core on GNU Hurd.3) faster easier memory management: its Perhaps the speed in one or two of field is enough fast for its operating system, but the Debian based on GNU/Linux or GNU/kFreeBSD It is very low to hardware requirement and very average.The Windows software ratio run at GNU/Linux by simulator is in its primitive environment The speed of middle operation is faster.
The various advantages of above-mentioned Debian system are based on, so that Debian systematic difference is very extensive. Debian system is used in the terminal of various CPU architectures.When Debian system is installed at the terminal, network installation is generallyd use Mode.The network installation mode of Debian system is described below with reference to Fig. 1.
Fig. 1 is the network installation schematic diagram of a scenario for the erector that the embodiment of the present invention is applicable in.With the net of Debian erector For network installation scenario, as shown in Figure 1, the scene includes server and terminal.Wherein, terminal is Debian system to be installed Terminal can be specially personal computer (Personal Computer, PC), laptop of various CPU architectures etc..Clothes Being engaged in device can be particularly for the official website server of storage Debian erector.
In conjunction with Fig. 1, terminal is connect with server by internet, and terminal downloads Debian installation from server by network Device is in storage medium (such as USB flash disk).Using storage medium as the boot disk of terminal, enter Debian system after terminal starting booting The installation process of system.
It only include the least software package that can start installation process in erector in above-mentioned network installation mode.? In the installation process of Debian system, to the software package needed for other, then obtained in real time by network from server.Therefore, with Other mounting means are compared, and network installation mode can download less data according to the required amount body of user, so that installation Process is more flexible.
In the installation process of Debian system, user is needed to carry out the configuration of some installation parameters, such as: country, language Speech, subregion, user name, password, needs software to be installed etc. at network.User needs to make when carrying out the configuration of above-mentioned parameter Use keyboard or mouse.
However, inventor has found under study for action, in the terminal of MIPS platform, installed using Debian erector Universal serial bus (Universal Serial Bus, USB) equipment cannot be used during Debian.It is embodied in: It will be loaded under Debian erector in the USB flash disk of USB interface and using USB flash disk as when boot disk, can not identify USB flash disk after terminal booting, So that cannot be introduced into the installation process of Debian system.
Further, even if evading the problem by other means, for example, copying Debian erector to mobile terminal Local disk in, using the local disk as starting up's disk, enable the terminal to the installation process into Debian system.But It is that in the installation process of Debian system, user cannot still use USB mouse and USB keyboard to input configuration parameter, because Debian erector can not recognize USB mouse and USB keyboard.Therefore, user be necessary for terminal connection PS2 interface mouse and Keyboard could complete the installation of Debian system.For the terminal without PS2 interface, then Debian system can not be installed.Thus As it can be seen that Debian erector can not identify that USB device brings many inconvenience to the installation process of Debian system.
At least one in solve the above-mentioned problems, the embodiment of the present invention provide a kind of processing method of erector, lead to It crosses and Debian erector is handled, Debian erector identifies USB device such that treated, thus convenient The installation process of Debian system.
It should be noted that the erector in the present embodiment can be the erector of any operating system.For example, can be The erector of Debian operating system can also be the erector of other releases of Linux, such as: Fedora operating system Erector, the erector etc. of CentOS operating system.It should be understood that the erector of whichever operating system, as long as the peace Fill device during the installation process can not identification division hardware device, then can method through this embodiment to erector at Reason, so that solving the problems, such as can not identification division hardware device.
For convenience, it when being illustrated involved in the embodiment of the present invention, is said by taking Debian erector as an example It is bright.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 2 is the flow diagram of the processing method for the erector that one embodiment of the invention provides.The execution of the present embodiment Main body is the processing unit of erector, which can be specially the form of software and/or hardware.The device both can be set In terminal shown in FIG. 1, it can also be arranged in other electronic equipments.
As shown in Fig. 2, the method for the present embodiment, comprising:
S201: obtaining erector to be processed, and the installation process of the erector to be processed cannot identify target hardware Equipment.
S202: according to the erector to be processed, the corresponding module of the target hardware equipment is obtained.
S203: according to the erector to be processed and the corresponding module of the target hardware equipment, treated for generation The installation process of erector, treated the erector can identify the target hardware equipment.
Wherein, erector can be specially the installation bootstrap of operating system.For convenience, the present embodiment and It is illustrated by taking the erector of Debian operating system as an example in subsequent embodiment.
Wherein, target hardware equipment refers to, in the required hardware device of installation process of erector, erector The hardware device that cannot be identified.It should be understood that target hardware equipment can be one or more in the present embodiment.
It should be understood that the installation process in erector may need to use multiple hardwares equipment, still, erector is being pacified A part in above-mentioned multiple hardwares equipment can only be identified during dress, and can not identify another part.By nothing in the present embodiment The part hardware device of method identification is known as target hardware equipment.Such as: erector, which needs to use hardware during the installation process, to be set Standby 1, hardware device 2, hardware device 3.Assuming that erector can not recognize hardware device 3 during the installation process, then hardware device 3 For target hardware equipment.
For the scene of the Debian system installation under MIPS platform architecture, during the installation process due to Debian erector It can not identify USB device, therefore, the target device under the scene is then USB device.It should be understood that USB device includes but not Be limited to: the keyboard of USB interface, the mouse of USB interface, USB interface storage medium.
Below by taking Debian erector as an example, the installation process of analysis Debian erector can not identify the original of USB device Cause.Obtain the kernel log under following two scene respectively first.
Scene one: using the terminal of MIPS platform, the installation main menu of Debian erector is entered by PS2 keyboard Then debian installer main menu selects Execute a shell by down key on PS2 keyboard, enter The terminal command line mode of Debian erector.Under the scene, it is inserted into USB keyboard, the kernel log captured is as follows:
debian kernel:[276.108000]usb 4-1:new low-speed USB device number 4using ohci-pci
Debian kernel:[276.304000] usb 4-1:New USB device found, idVendor= 1c4f, idProduct=0026, bcdDevice=1.10
Debian kernel:[276.304000] usb 4-1:New USB device strings:Mfr=1, Product=2, SerialNumber=0
debian kernel:[276.304000]usb 4-1:Product:USB Keyboard
debian kernel:[276.304000]usb 4-1:Manufacturer:SIGMACHIP
Scene two: using the terminal of MIPS platform, after installing Debian system by PS2 keyboard, mounted USB keyboard is inserted under Debian environment.It is inserted into USB keyboard, the kernel log captured is as follows:
debian kernel:[276.108000]usb 4-1:new low-speed USB device number 4using ohci-pci
Debian kernel:[276.304000] usb 4-1:New USB device found, idVendor= 1c4f, idProduct=0026, bcdDevice=1.10
Debian kernel:[276.304000] usb 4-1:New USB device strings:Mfr=1, Product=2, SerialNumber=0
debian kernel:[276.304000]usb 4-1:Product:USB Keyboard
debian kernel:[276.304000]usb 4-1:Manufacturer:SIGMACHIP
debian kernel:[276.312000]input:SIGMACHIP USB Keyboard as/devices/ pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0/0003:1C4F:0026.0006/inp ut/input23
debian kernel:[276.372000]hid-generic 0003:1C4F:0026.0006:input, hidraw0:USB HID v1.10Keyboard[SIGMACHIP USB Keyboard]on usb-0000:00:12.1-1/ input0
debian kernel:[276.376000]input:SIGMACHIP USB Keyboard Consumer Control as/devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.1/0003:1C4F: 0026.0007/inp ut/input24
debian kernel:[276.436000]input:SIGMACHIP USB Keyboard System Control as/devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.1/0003:1C4F:0026.0007/ input/input25
debian kernel:[276.436000]hid-generic 0003:1C4F:0026.0007:input, hidraw2:USB HID v1.10Device[SIGMACHIP USB Keyboard]on usb-0000:00:12.1-1/ input1
In scene one, is shown in kernel log and only recognized USB device: USB Keyboard and manufacturer, but It is that there is no the log informations of display load UBS equipment.And in scene two, in kernel log, display has recognized USB device, And also it is loaded with USB device (being detailed in the log informations such as inputmodules and hid-generic).
By comparing discovery to the kernel log under scene one and scene two, after Debian system is installed, It can identify USB device.And in the installation process of Debian system, it can not identify USB device.Due to above-mentioned two field Under scape, Debian erector kernel and the operating system nucleus installed are consistent, and therefore, can be confirmed in operating system Core is to open USB module.Therefore, primarily determine that problem goes out in Debian erector.
It include following erector file: boot.cfg, initrd.gz, vmlinux-*** in Debian erector.
Wherein, initrd.gz file is an initial root being mounted in system before practical root file system is available File system.Initrd.gz is bound together with kernel, and a part as boot kernel process is loaded.Kernel meeting Carry out loading module for initrd.gz file as a part of its two stages bootup process, subsequently into erector interface.
If the corresponding module of target hardware equipment in initrd.gz is lost, also resulting in can not load, identify target Hardware device.The hardware module loaded under above-mentioned two scene is compared again below.
Specifically, the hardware module that terminal has loaded can be obtained by inputting lsmod order in terminal command line. Above-mentioned scene once, input lsmod order using PS2 keyboard, the obtained hardware module of load is listed as follows:
Under above-mentioned scene two, in the terminal for installing Debian system, after being inserted into USB keyboard, input lsmod life It enables, the obtained hardware module of load is listed as follows:
Discovery is compared to the hardware module loaded under above-mentioned two scene, in scene one, Debian erector It is not load hid and usbhid module after starting.And HID module is the corresponding drive module of USB device, that is, It says, without the corresponding drive module of load USB device after the starting of Debian erector in scene one, therefore, it is impossible to identify USB Equipment.
Further, institute's hardware module to be loaded is stored in lib/modules/ to Debian erector during startup Under the path vmlinux-***/kernel/drivers.It is entered by the initrd.gz file in decompression Debian erector Under the path lib/modules/vmlinux-***/kernel/drivers, find there is no hid module under the path.So far, may be used It is due to not including HID mould in Debian erector to determine that Debian erector can not identify USB device during the installation process Caused by block.
Therefore, in the present embodiment, in the case where erector to be processed cannot identify target hardware equipment, the mesh is obtained The corresponding module of marking device.Then, it according to the erector to be processed and the corresponding module of the target hardware equipment, generates Treated erector, thus, treated, and erector can identify target hardware equipment.
Wherein, the corresponding module of target hardware equipment refers to the corresponding driver module of the target device, for pacifying It fills in the installation process of device and loads the target hardware equipment.Illustratively, right when target hardware equipment is USB device The module answered is HID module.
Specifically, by taking above-mentioned Debian erector as an example, available HID corresponding with Debian erector to be processed Module, and HID module is added in the respective path of Debian erector, so that Debian erector can add after actuation HID module is carried, so that Debian erector can identify USB device.
The processing method of erector provided in this embodiment, comprising: obtain erector to be processed, the peace to be processed The installation process of dress device cannot identify target hardware equipment;According to the erector to be processed, obtains the target hardware and set Standby corresponding module;According to the erector to be processed and the corresponding module of the target hardware equipment, treated for generation The installation process of erector, such that treated erector identifies the target hardware equipment, thus solve erector without Method identifies the problem of target hardware equipment, facilitates the installation process of erector.
Fig. 3 be another embodiment of the present invention provides erector processing method flow diagram.The present embodiment is in Fig. 2 It is refined on the basis of illustrated embodiment.
As shown in figure 3, the method for the present embodiment, comprising:
S301: obtaining erector to be processed, and the installation process of the erector to be processed cannot identify target hardware Equipment.
The present embodiment is described by taking following scenes as an example, and erector is Debian erector, target hardware equipment USB Equipment.It should be understood that there may also be other application scenarios for the present embodiment, different one illustrate herein.
Specifically, after Debian server acquisition Debian erector, if the second tunnel of the Debian erector The corresponding module of USB device is not present in diameter, then using the Debian erector as the Debian erector to be processed, Second path is in the Debian erector for storing the path of the corresponding module of hardware device.
Illustratively, Debian erector is obtained from Debian server, the Debian erector can be decompressed Initrd.gz file enters under the path lib/modules/vmlinux-***/kernel/drivers, if under the path not There are HID module, illustrate that the Debian erector can not identify USB device.Using the Debian erector as peace to be processed Device is filled, the process flow of the present embodiment is executed.If illustrating that the Debian erector can identify there are HID module under the path USB device is then not necessarily to execute the process flow of the present embodiment.
S302: it according to the corresponding kernel version of the erector to be processed, is obtained and the kernel version from server Corresponding kernel mirror image file obtains the corresponding module of the target hardware equipment from the kernel mirror image file.
It should be understood that the HID module that the present embodiment obtains must be consistent with erector kernel version.Specifically, can The consistent kernel of kernel version with Debian erector to be processed is obtained from Debian server by network download command Image file image extracts the HID module in image.Illustratively, network download command can be wget.
S303: the erector to be processed is unziped into temp directory.
The initrd.gz file of Debian erector is unziped into temp directory specifically, decompression order can be used Under temp, and the initrd file after decompression is further parsed using resolve command, is carried out with facilitating in step S304 Copy function.Illustratively, decompression order can use gunzip, and resolve command can use cpio.
S304: the corresponding module of the target hardware equipment is copied to first path, the first path is described faces When catalogue in for storing the path of the corresponding module of hardware device.
For Debian erector, the lib/modules/vmlinux-***/kernel/ of initrd.gz file The path drivers is the path for storing the corresponding module of hardware device.Therefore, it is possible to use copy command is by step S302 The HID module of middle extraction copies under the path lib/modules/vmlinux-***/kernel/drivers.Illustratively, it copies Shellfish order can use cp.
S305: for the temp directory after copy, the dependence between each module is re-established.
Specifically, being to be carried out according to the dependence between module to modules in Debian erector start-up course Load.It should be understood that copy before temp directory in there are one or more existing module to be loaded, these are There is module to can be the corresponding driver module of other hardware devices, can also be the function mould for realizing certain functions Block.If only copying HID module to above-mentioned path, the dependence of HID module and other existing intermodules is not re-established If, HID module can not be still loaded in Debian erector start-up course.Therefore, in the present embodiment, by HID module After copying temp directory to, need to re-establish the temp directory after copy the dependence between module, thus, Debian Erector can determine the loading sequence of modules according to dependence during startup.
In a kind of possible application scenarios, if the method for executing the present embodiment is the terminal of Debian system to be installed, After copying HID module to above-mentioned path, depmod-a is executed by terminal and rebuilds dependence between module, so Execute modprobe order load HID module again afterwards, it can normal use USB keyboard.
In alternatively possible application scenarios, if the equipment for executing the present embodiment method is not Debian system to be installed Terminal, then after copying HID module to above-mentioned path, by terminal execute depmod-a rebuild between module according to The relationship of relying.Then it executes S306 and generates treated erector.So as to start in the terminal of Debian system to be installed Treated erector.
It should be noted that before to each remodelling dependence, it is also necessary to obtain root power by permission order Limit, and the passage path change order change path root.Illustratively, permission order can use sudo, path change order Chroot can be used.
S306: compressing the temp directory, the erector that obtains that treated.
Specifically, look-up command can be used searches initrd file, upper one layer of catalogue of this document under specified directory Catalogue as to be compressed, therefore after entrance catalogue to be compressed, the file under the path is compressed using compress order, is obtained Treated the corresponding initrd.gz file of Debian erector.Illustratively, look-up command can use find, compression life Order can use gzip.
The Debian erector that obtains that treated by the above process, can be used for installing Debian system in any terminal System, also, USB device can be identified in Debian system installation process, it offers convenience to the installation process of Debian system.
It should be understood that realizing above-mentioned treatment process by each order line command shown in the present embodiment, only A kind of exemplary description of optional embodiment.It in practical application, can also be realized using various other modes, the present invention is real It applies example and this is not enumerated.
Fig. 4 is the structural schematic diagram of the processing unit for the erector that one embodiment of the invention provides.As shown in figure 4, this reality Apply the processing unit 400 of the erector of example, comprising: first, which obtains module 401, second, obtains module 402 and generation module 403。
Wherein, first module 401 is obtained, for obtaining erector to be processed, the installation of the erector to be processed Process cannot identify target hardware equipment;
Second obtains module 402, for it is corresponding to obtain the target hardware equipment according to the erector to be processed Module;
Generation module 403, for according to the erector to be processed and the corresponding module of the target hardware equipment, life At treated erector, the installation process of treated the erector can identify the target hardware equipment.
Optionally, the generation module 403 is specifically used for:
The erector to be processed is unziped into temp directory;
Copy the corresponding module of the target hardware equipment to first path, the first path is the temp directory In for storing the path of the corresponding module of hardware device;
According to the temp directory after copy, the erector that generates that treated.
Optionally, the generation module 403 is specifically used for: for the temp directory after copy, re-establishing each mould Dependence between block, and the temp directory is compressed, the erector that obtains that treated.
Optionally, the second acquisition module 402 is specifically used for:
Obtain the corresponding kernel version of the erector to be processed;
According to the kernel version, kernel mirror image file corresponding with the kernel version is obtained from server;
The corresponding module of the target hardware equipment is obtained from the kernel mirror image file.
Optionally, the first acquisition module 401 is specifically used for:
Erector is obtained from server;
If the corresponding module of target hardware equipment is not present in the second path of the erector, the erector is made For the erector to be processed, second path is in the erector for storing the road of the corresponding module of hardware device Diameter.
Optionally, the target hardware equipment is general-purpose serial bus USB equipment, and the erector is Debian installation Device.
Optionally, the USB device is at least one of following: the keyboard of USB interface, the mouse of USB interface, USB The storage medium of interface.
The device of the present embodiment can be used for executing the processing method of the erector of any of the above-described embodiment of the method, realize Principle is similar with technical effect, and details are not described herein again.
Fig. 5 is the hardware structural diagram of the processing equipment for the erector that one embodiment of the invention provides.As shown in figure 5, The processing equipment 500 of the erector of the present embodiment, comprising: processor 501 and memory 502;Wherein, memory 502 are used for Store computer program;Processor 501, for executing the computer program of memory storage, to realize in above-described embodiment The processing method of erector.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 502 can also be integrated with processor 501 either independent.
When the memory 502 is independently of the device except processor 501, the processing equipment 500 of the erector It can also include: bus 503, for connecting the memory 502 and processor 501.
The processing equipment of erector provided in this embodiment can be used for executing the technical side in any of the above-described embodiment of the method Case, it is similar that the realization principle and technical effect are similar, and details are not described herein again for the present embodiment.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer readable storage medium includes meter Calculation machine program, the computer program is for realizing the technical solution in either method embodiment as above.
The embodiment of the present invention also provides a kind of chip, comprising: memory, processor and computer program, the calculating Machine program stores in the memory, and the processor runs the computer program and executes in any of the above-described embodiment of the method Technical solution.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or module It connects, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair The part steps of bright each embodiment the method.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter Claim: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, Referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with Shen Please be disclosed method the step of can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft Part block combiner executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in attached drawing of the present invention does not limit only a bus or a type of bus.
Above-mentioned storage medium can be by any kind of volatibility or non-volatile memory device or their combination It realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
A kind of illustrative storage medium is coupled to processor, believes to enable a processor to read from the storage medium Breath, and information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.It processor and deposits Storage media can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC in).Certainly, pocessor and storage media can also be used as discrete assembly and be present in electronic equipment or main control device.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (13)

1. a kind of processing method of erector characterized by comprising
Erector to be processed is obtained, the installation process of the erector to be processed cannot identify target hardware equipment;
According to the erector to be processed, the corresponding module of the target hardware equipment is obtained;
According to the erector to be processed and the corresponding module of the target hardware equipment, generate that treated erector, institute The installation process for erector of stating that treated can identify the target hardware equipment.
2. the method according to claim 1, wherein described according to the erector to be processed and the target The corresponding module of hardware device generates treated erector, comprising:
The erector to be processed is unziped into temp directory;
Copy the corresponding module of the target hardware equipment to first path, the first path is used in the temp directory In the path of the corresponding module of storage hardware device;
According to the temp directory after copy, the erector that generates that treated.
3. according to the method described in claim 2, it is characterized in that, the temp directory according to after copy, at generation Erector after reason, comprising:
For the temp directory after copy, re-establish the dependence between each module, and to the temp directory into Row compression, the erector that obtains that treated.
4. the method according to claim 1, wherein described according to the erector to be processed, described in acquisition The corresponding module of target hardware equipment, comprising:
Obtain the corresponding kernel version of the erector to be processed;
According to the kernel version, kernel mirror image file corresponding with the kernel version is obtained from server;
The corresponding module of the target hardware equipment is obtained from the kernel mirror image file.
5. the method according to claim 1, wherein described obtain erector to be processed, comprising:
Erector is obtained from server;
If the corresponding module of target hardware equipment is not present in the second path of the erector, using the erector as institute Erector to be processed is stated, second path is in the erector for storing the path of the corresponding module of hardware device.
6. method according to any one of claims 1 to 5, which is characterized in that the target hardware equipment is general serial Bus USB device, the erector are Debian erector.
7. a kind of processing unit of erector characterized by comprising
First obtains module, and for obtaining erector to be processed, the installation process of the erector to be processed cannot be identified Target hardware equipment;
Second obtains module, for obtaining the corresponding module of the target hardware equipment according to the erector to be processed;
Generation module, for according to the erector to be processed and the corresponding module of the target hardware equipment, generation processing The installation process of erector afterwards, treated the erector can identify the target hardware equipment.
8. device according to claim 7, which is characterized in that the generation module is specifically used for:
The erector to be processed is unziped into temp directory;
Copy the corresponding module of the target hardware equipment to first path, the first path is used in the temp directory In the path of the corresponding module of storage hardware device;
According to the temp directory after copy, the erector that generates that treated.
9. device according to claim 7, which is characterized in that the second acquisition module is specifically used for:
Obtain the corresponding kernel version of the erector to be processed;
According to the kernel version, kernel mirror image file corresponding with the kernel version is obtained from server;
The corresponding module of the target hardware equipment is obtained from the kernel mirror image file.
10. device according to claim 7, which is characterized in that the first acquisition module is specifically used for:
Erector is obtained from server;
If the corresponding module of target hardware equipment is not present in the second path of the erector, using the erector as institute Erector to be processed is stated, second path is in the erector for storing the path of the corresponding module of hardware device.
11. according to the described in any item devices of claim 7 to 10, which is characterized in that the target hardware equipment is general string Row bus USB device, the erector are Debian erector.
12. a kind of processing equipment of erector characterized by comprising memory, processor and computer program, it is described Computer program stores in the memory, and the processor runs the computer program and executes such as claim 1 to 6 times Method described in one.
13. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes computer journey Sequence realizes such as method as claimed in any one of claims 1 to 6 when the computer program is executed by processor.
CN201910256108.XA 2019-04-01 2019-04-01 Processing method, device and the equipment of erector Pending CN110045966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910256108.XA CN110045966A (en) 2019-04-01 2019-04-01 Processing method, device and the equipment of erector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910256108.XA CN110045966A (en) 2019-04-01 2019-04-01 Processing method, device and the equipment of erector

Publications (1)

Publication Number Publication Date
CN110045966A true CN110045966A (en) 2019-07-23

Family

ID=67275720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910256108.XA Pending CN110045966A (en) 2019-04-01 2019-04-01 Processing method, device and the equipment of erector

Country Status (1)

Country Link
CN (1) CN110045966A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515630A (en) * 2019-08-16 2019-11-29 维沃移动通信有限公司 A kind of application installation method and terminal
CN112835596A (en) * 2021-02-03 2021-05-25 广东中兴新支点技术有限公司 Installation method, system, device and storage medium of general operating system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110072879A (en) * 2009-12-23 2011-06-29 삼성전자주식회사 Image forming apparatus, host apparatus and control method thereof
CN103064767A (en) * 2013-01-09 2013-04-24 北京奇虎科技有限公司 Driver backup method, driver backup device, driver restoring method and driver restoring device
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106383703A (en) * 2016-08-30 2017-02-08 浪潮(北京)电子信息产业有限公司 Hard disk driver loading method and apparatus for linux operation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110072879A (en) * 2009-12-23 2011-06-29 삼성전자주식회사 Image forming apparatus, host apparatus and control method thereof
CN103064767A (en) * 2013-01-09 2013-04-24 北京奇虎科技有限公司 Driver backup method, driver backup device, driver restoring method and driver restoring device
CN104881314A (en) * 2015-06-29 2015-09-02 北京金山安全软件有限公司 Method for installing driver and driver installation device
CN106383703A (en) * 2016-08-30 2017-02-08 浪潮(北京)电子信息产业有限公司 Hard disk driver loading method and apparatus for linux operation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RAINYSIA: "linux(debian)安装USB无线网卡(tp-link TL-WN725N rtl8188eu)", 《HTTPS://BLOG.CSDN.NET/RAINYSIA/ARTICLE/DETAILS/17484537》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515630A (en) * 2019-08-16 2019-11-29 维沃移动通信有限公司 A kind of application installation method and terminal
CN110515630B (en) * 2019-08-16 2023-03-24 维沃移动通信有限公司 Application installation method and terminal
CN112835596A (en) * 2021-02-03 2021-05-25 广东中兴新支点技术有限公司 Installation method, system, device and storage medium of general operating system
CN112835596B (en) * 2021-02-03 2023-11-14 广东中兴新支点技术有限公司 Method, system, device and storage medium for installing general operating system

Similar Documents

Publication Publication Date Title
CN103530156B (en) Dynamic load and the method and device of caller
US9507604B2 (en) Boot method and boot system
CN105302663B (en) A kind of mirror image starting-up method and terminal device
CN111966423B (en) Method and equipment for realizing memory operating system
TW200305807A (en) Basic input/output system (BIOS) shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
US20180052679A1 (en) Method of Bootup and Installation, and Computer System thereof
US20140181493A1 (en) Technique for deploying operating systems in a virtualized environment
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN106126303B (en) Installation method, the apparatus and system of (SuSE) Linux OS
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN112068850A (en) Method and device for creating service product instance and electronic equipment
CN110045966A (en) Processing method, device and the equipment of erector
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN116467015B (en) Mirror image generation method, system start verification method and related equipment
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN111104129B (en) Memory operating system manufacturing method and device, electronic equipment and storage medium
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
US9778936B1 (en) Booting a computing system into a manufacturing mode
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN113419814B (en) Virtual machine creating method, device, equipment and storage medium in cloud platform
US20230031974A1 (en) Enabling spi firmware updates at runtime
CN112463244B (en) CPU starting method and device, electronic equipment and computer readable storage medium
CN110245066B (en) Application operating environment creating method, creating device, electronic equipment and storage medium
CN110532040A (en) Loading method and device, the storage medium and electronic equipment of firmware program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190723