CN100552630C - Embedded type operating system mapping file guiding method and device - Google Patents

Embedded type operating system mapping file guiding method and device Download PDF

Info

Publication number
CN100552630C
CN100552630C CN 200610063319 CN200610063319A CN100552630C CN 100552630 C CN100552630 C CN 100552630C CN 200610063319 CN200610063319 CN 200610063319 CN 200610063319 A CN200610063319 A CN 200610063319A CN 100552630 C CN100552630 C CN 100552630C
Authority
CN
China
Prior art keywords
operating system
file
system
embedded operating
boot
Prior art date
Application number
CN 200610063319
Other languages
Chinese (zh)
Other versions
CN101169723A (en
Inventor
饶 富
Original Assignee
深圳市研祥智能科技股份有限公司
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 深圳市研祥智能科技股份有限公司 filed Critical 深圳市研祥智能科技股份有限公司
Priority to CN 200610063319 priority Critical patent/CN100552630C/en
Publication of CN101169723A publication Critical patent/CN101169723A/en
Application granted granted Critical
Publication of CN100552630C publication Critical patent/CN100552630C/en

Links

Abstract

本发明公开一种嵌入式操作系统映像文件的引导方法,包括:判断是否启动嵌入式操作系统,如果否,则进入启动普通操作系统流程;如果是,则启动嵌入式操作系统引导单元,进入启动嵌入式操作系统流程;判断是否查找到嵌入式操作系统映像文件,如果否,则进入启动普通操作系统流程;如果是,则加载查找到的嵌入式操作系统映像文件到系统内存中,并解压缩该查找到的嵌入式操作系统映像文件,启动嵌入式操作系统。 The present invention discloses a method of embedded operating system boot image file, comprising: determining whether to start the embedded operating system, and if not, the process proceeds to start the normal operating system process; if so, start the embedded operating system guide unit, enter the boot embedded operating system processes; determine whether the find embedded operating system image, if not, then enter the normal operating system boot process; if so, find the embedded operating system image file is loaded into system memory, and unzip the embedded operating system to find the image file, start the embedded operating system. 本发明还公开一种嵌入式操作系统映像文件的引导装置。 The present invention also discloses a device embedded operating system boot image file. 本发明在加快了对嵌入式操作系统映像文件的引导速度的同时,又提高了对嵌入式操作系统映像文件的引导的安全性。 The invention accelerates the speed of the embedded operating system boot image file at the same time, but also improves the security of the embedded operating system boot image file.

Description

一种嵌入式操作系统映像文件的引导方法及装置 A method and apparatus for guiding an embedded operating system image file

技术领域 FIELD

本发明涉及计算机技术领域,尤其涉及一种嵌入式操作系统映像文件的引导方法及装置。 The present invention relates to computer technology, and in particular relates to a method and apparatus for guiding an embedded operating system image file.

背景技术 Background technique

随着后个人电脑时代的到来,以应用为中心的嵌入式操作系统在各行各业有了更广泛的应用。 With the advent of the personal computer era, application-centric embedded operating system in all walks of life have a wider range of applications. 嵌入式操作系统的应用开发受到应用和成本方面的约束, Embedded operating system application development is constrained applications and cost,

从而对嵌入式操作系统的软件、硬件的开发需要根据其实际的应用来确定;嵌入式操作系统与普通操作系统相比,嵌入式'操作系统的引导比普通操作系统的引导相对复杂。 Thus embedded operating system software and hardware development needs to be determined depending on the actual application; embedded operating system compared with the conventional operating system, the embedded 'boot the operating system is relatively complex than the normal operating system boot.

操作系统的引导需要应用到操作系统映像文件的引导,通过操作系统映像文件找到操作系统的具体路径,从而完成对操作系统的引导。 Boot the operating system needs to be applied to the operating system boot image file, the operating system to find the path through the specific operating system image file, thereby completing the boot of the operating system. 操作系统映像文件包含的主要内容是操作系统的具体路径信息。 The main contents of the operating system image file contains the specific path information of the operating system. 同理,普通操作系统映像文件包含的主要内容就是普通操作系统的具体路径信息,嵌入式操作系统映像文件包含的主要内容就是嵌入式操作系统的具体路径信息。 Similarly, the main content of the specific path common operating system image file is included in the general operating system specific path information, the main contents of the embedded operating system image files contain information that is embedded operating system.

现有的操作系统映像文件的引导方法主要有两种: Method existing operating system boot image file There are two main:

1、 使用导入(boot)程序来加载操作系统映像文件:首先执行boot程序, 然后查找操作系统映像文件,将查找到的操作系统映像文件解压缩并装载到内存中,最后将中央处理器(CPU)的控制权交给嵌入式操作系统。 1, using the introduced (boot) the program to load the operating system image file: a boot program executed first, and then look for the operating system image file, the operating system will look to the image file is decompressed and loaded into memory, and finally the central processing unit (CPU ) of the control to the embedded operating system. 该方法将操作系统映像文件先引导到磁盘操作系统(DOS),接着在DOS下执行boot程序, 最后再加载该操作系统映像文件到嵌入式操作系统,引导速度慢。 The method will first boot the operating system image file to a disk operating system (DOS), and then execute the boot program in DOS, and finally loading the operating system image file to the embedded operating system, boot slow.

2、 通过修改硬盘主引导记录来加载操作系统映像文件:该方法将嵌入式操作系统待定的代码写入到系统硬盘的主引导扇区中,以获取加载操作系统映像文件到嵌入式操作系统的机会。 2, the hard disk by modifying the master boot record to load the operating system image file: the method the embedded operating system code is written to the pending master boot sector of the hard disk system, to obtain the image file to load the operating system embedded operating system opportunity. 该方法中应用到的系统硬盘的主引导扇区是众多病毒攻击的对象,使该主引导扇区易受到破坏而导致系统无法启动。 This method is applied to the system hard disk master boot sector is the object of many virus attacks, so the master boot sector is vulnerable to damage and cause the system to fail to start. 发明内容 SUMMARY

本发明要解决的技术问题是提供一种嵌入式操作系统映像文件的引导方法及装置,以达到在加快了对嵌入式操作系统映像文件的引导速度的同时,又提高了对嵌入式操作系统映像文件的引导的安全性的目的。 The present invention to solve the technical problem of providing an embedded operating system image file boot method and apparatus, in order to achieve accelerated the speed of the embedded operating system boot image file at the same time, but also improves the image of the embedded operating system the purpose of the safety boot files.

为解决上述技术问题,本发明提供如下技术方案: 一种嵌入式操作系统映像文件的引导方法,包括: 在系统上电后,执行基本输入输出系统BIOS程序,初始化硬件; 判断设置在BIOS程序中的系统启动选择项是否为启动嵌入式操作系统, To solve the above problems, the present invention provides the following technical solutions: A method for embedded operating system boot image file, comprising: a system power on, performs basic input output system BIOS program initializes the hardware; Analyzing disposed in the BIOS program whether the system startup option to start the embedded operating system,

以判断是否启动嵌入式才喿作系统,如果否,则进入启动普通#:作系统流程;如 To determine whether to activate the embedded system only for Qiao, if not, then enter # ordinary start: as system processes; such as

果是,则启动嵌入式操作系统引导单元,进入启动嵌入式操作系统流程; If it is, the embedded operating system to start the guide unit, into the embedded operating system boot process;

嵌入式操作系统? Embedded operating system? 1导单元读取基本输入输出系统BIOS程序,获取5 j导盘 A guide unit reads a basic input output system BIOS program guide plate 5 j obtain

盘符,读取引导盘盘符参数和引导盘盘符文件类型,并根据所述引导盘盘符参 Letter, reads the boot disk drive parameters and boot file type disk drive, and guide plate according to the reference letter

数和引导盘盘符文件类型,查找嵌入式操作系统映像文件; The number and type of boot disk drive file, find the embedded operating system image file;

判断是否查找到文件名为内核文件NK.BIN,以判断是否查找到嵌入式操 Determine whether to look for a file named kernel file NK.BIN, to determine whether to find embedded operating

作系统映像文件,如果否,则进入启动普通操作系统流程;如果是,则加载查 System image file, and if not, then enter the normal operating system boot process; if so, the load check

找到的嵌入式操作系统映像文件到系统内存中,并解压缩所述查找到的嵌入式 Find embedded operating system image file into system memory, and unzip the found embedded

操作系统映像文件,启动嵌入式操作系统。 Operating system image file, start the embedded operating system.

进一步的,所述进入启动普通操作系统流程具体包括: Further, the operating system enters the normal boot process comprises:

进入第19号中断INT19的中断服务程序,进入启动普通操作系统流程。 No. 19 into the interrupt INT19 interrupt service routine, general start to enter the operating system processes.

一种嵌入式4喿作系统映像文件的引导装置,包括:初始化单元、系统启动 Qiao guiding device 4 embedded file system image, comprising: an initialization unit, the system starts

判断单元、启动单元、系统引导单元、文件查找单元、文件加载单元、文件解 Determination means, a starting unit, the guide unit system, the file searching unit, the file loading unit, document solution

压缩单元; A compression unit;

所述初始化单元,用于在系统上电后,执行基本输入输出系统BIOS程序, 初始化;更件; The initialization unit, for after system power-up, basic input output system BIOS program initialization; more member;

所述系统启动判断单元,用于判断设置在BIOS程序中的系统启动选择项是否为启动嵌入式操作系统,以判断是否启动嵌入式操作系统; The system start determination means for determining system settings in the BIOS boot program selection whether to start the embedded operating system, to determine whether to start the embedded operating system;

所述启动单元,用于根据所述系统启动判断单元的判断结果,启动所需启动的操作系统; The starting unit configured to start determining means determines the result based on the system is required to start the operating system boot;

所述系统引导单元,用于读取基本输入输出系统BIOS程序,获取引导盘 The system guiding means, for reading the basic input output system BIOS program, obtaining boot disk

5盘符,读取引导盘盘符参数和引导盘盘符文件类型; 5 letter, read the boot disk drive parameters and boot file type disk drive;

所述文件查找单元,用于根据所述引导盘盘符参数和引导盘盘符文件类型, The file searching unit, the parameters for the disk drive and the disk drive boot file type based on the guide,

查找嵌入式操作系统映像文件,并判断是否查找到文件名为内核文件NK.BIN, 以判断是否查找到嵌入式操作系统映像文件; Find Embedded operating system image file, and determine whether to look for a file named kernel file NK.BIN, to determine whether to find an embedded operating system image file;

所述文件加载单元,用于加载所述文件查找单元查找到的嵌入式操作系统映像文件到系统内存中; The document loading unit for loading the file search unit searches the embedded operating system image file to the system memory;

所述文件解压缩单元,用于解压缩所述加载到系统内存中的嵌入式操作系统映〗象文件。 The file decompressing means for decompressing the loaded into the system memory as an embedded operating system file〗 enantiomers.

进一步的,所述文件查找单元通过在系统硬盘或存储器上查找文件名为内核文件NK.BIN的文件,查找嵌入式操作系统映i"象文件。 由以上技术方案可以看出,本发明具有以下优点: Further, the file searching unit through the file search file named kernel file system on a hard disk or memory NK.BIN look embedded operating system mapping i "image file. It can be seen from the above technical solutions, the present invention has the following advantage:

由于本发明不通过修改硬盘主引导记录来加载操作系统,可以避免系统受病毒的攻击,提高了对操作系统映像文件的引导的安全性;又本发明在对操作系统映像文件的引导的过程中,直接加载嵌入式操作系统映像文件而不加载任何其它操作系统映像文件,加快了对操作系统映像文件的引导。 Since the present invention is not to load the operating system boot record, the system can be avoided by viruses, to improve the security of the operating system boot image file by modifying the primary hard disk; and in the process of the present invention, the operating system boot image file in loaded directly embedded operating system image file without loading any other operating system image files, to speed up the boot of the operating system image files. 附图说明 BRIEF DESCRIPTION

图1是本发明的嵌入式操作系统映像文件的引导方法的流程图;图2是本发明的嵌入式操作系统映像文件的引导装置的结构图。 1 is a flowchart of a method embedded operating system boot image file according to the present invention; FIG. 2 is a configuration view of the guide means embedded operating system image file of the present invention. 具体实施方式 Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail.

本发明的基本思路是:判断是否启动嵌入式操作系统,如果否,则进入启动普通操作系统流程;如果是,则启动嵌入式操作系统引导单元,进入启动嵌入式操作系统流程;判断是否查找到嵌入式操作系统映像文件,如果否,则进入启动普通操作系统流程;如果是,则加载查找到的嵌入式操作系统映像文件到系统内存中,并解压缩该查找到的嵌入式操作系统映像文件,启动嵌入式操作系统,完成该嵌入式操作系统映像文件的引导。 The basic idea of ​​the invention is: determining whether to start the embedded operating system, and if not, the process proceeds to start the normal operating system process; if so, start the embedded operating system guide unit, into the embedded operating system boot process; determining whether to look embedded operating system image file, and if not, then enter the normal operating system boot process; if so, find the embedded operating system image file is loaded into system memory, to find and extract the embedded operating system image file , boot embedded operating systems, embedded operating system to complete the image file.

由于本发明不通过修改硬盘主引导记录来加载操作系统,可以避免系统受病毒的攻击,提高了对操作系统映像文件的引导的安全性;又本发明在对操作系统映像文件的引导的过程中,直接加载嵌入式操作系统映像文件而不加载任何其它操作系统映像文件,加快了对操作系统映像文件的引导。 Since the present invention is not to load the operating system boot record, the system can be avoided by viruses, to improve the security of the operating system boot image file by modifying the primary hard disk; and in the process of the present invention, the operating system boot image file in loaded directly embedded operating system image file without loading any other operating system image files, to speed up the boot of the operating system image files.

参见图1,为本发明的嵌入式操作系统映像文件的引导方法的流程图: 1, the present invention embedded operating system boot image file of a method flowchart of FIG:

51、 初始化硬件:系统上电后,执行基本输入输出系统(BIOS)程序,完成对系统硬件的初始化,包括创建中断向量、设置寄存器、检测外部设备和设置硬件参数等。 51, initializes the hardware: the system power, performing basic input output system (BIOS) program, complete the initialization of system hardware, including creating an interrupt vector, setting a register, detecting an external hardware device and setting parameters.

系统在上电的时候是不会参与任何工作的,此时BIOS程序把系统硬件工作的寄存器都设置上参数,告知该硬件后续的工作以及如何去完成该后续的工作,完成对系统硬件的初始化,包括创建中断向量、设置寄存器、检测外部设备和设置硬件参数等。 When the electric system is not involved in any work, in which case the system hardware BIOS program to work on the parameters of the registers are set to inform the hardware and how to follow-up work to complete the follow-up work to complete the initialization of the system hardware , including creating the interrupt vector, setting a register, detecting an external hardware device and setting parameters.

52、 判断是否启动嵌入式操作系统,如果否,则进入S8;如果是,则进入S3。 52, to determine whether to activate the embedded operating system, and if not, proceed to S8; if yes, go to S3.

其中,判断是否启动嵌入式操作系统具体表现为:在BIOS程序中设置有系统启动选择项,该系统启动选择项用于对要启动的操作系统进行选择,如果选择启动普通操作系统,则执行第19号中断(INT19)的中断服务程序,进入启动该普通操作系统的流程;如果选择启动嵌入式才喿作系统,则启动嵌入式操作系统引导单元,进入启动嵌入式冲喿作系统流程。 The determining whether to start the embedded operating system specific performance: to set a system boot options in the BIOS, the system startup option for the operating system you want to start the selection, if you choose to start an ordinary operating system, the implementation of 19 interrupt (INT19) the interrupt service routine, start the ordinary into the operating system processes; If you choose to start the embedded system only for Qiao, start the embedded operating system boot unit, start the embedded into the red Qiao for system processes.

其中,对BIOS程序中的系统启动选择项的设置是这样的:在系统上电的过程中,按下删除文件(DEL)键进入BIOS程序的设置界面,在该设置界面中有一个导入选l奪项(Boot wincer),如果i殳置该Boot wincer i急4奪项为启动(enable ),贝'J选才奪启动嵌入式才喿作系统;如果i更置该Boot wincer 选择项为不启动(disable),则选择启动普通操作系统。 Wherein the system BIOS boot program option setting is such that: during system powerup, press delete files (DEL) to enter the BIOS setup screen, has a lead-l is selected from the setting interface wins item (boot wincer), if the counter i Shu boot wincer i wins term acute 4 to start (enable), Tony 'J CAPTURE promoter was selected as the embedded system only Qiao; If i is more opposing the option of not boot wincer start (disable), then select start ordinary operating system.

53、 启动嵌入式操作系统引导单元。 53, start the embedded operating system boot unit.

54、 嵌入式操作系统引导单元读取BIOS程序,取得引导盘盘符。 54, the embedded operating system reads the BIOS program guide unit acquires the boot disk drive.

系统中的硬盘一般会设置成至少两个的存储分区,如果此时无法知晓操作系统的具体路径,则需要取得引导盘盘符,引导盘盘符中记录了操作系统的具体路径,取得了引导盘盘符也就知晓了操作系统的具体路径,可以很方便地查找到所需的操作系统的具体路径。 The hard disk system usually provided in at least two memory divisions, at this time can not be known if the specific path the operating system, it is necessary to obtain the boot disk drive, the boot disk drive records the specific path the operating system, a boot made disk drive will know the specific path of the operating system, you can easily find the specific path to the desired operating system.

55、 嵌入式才喿作系统引导单元读取该引导盘盘符参数和该引导盘盘符文件类型,根据该引导盘盘符参数和该引导盘盘符文件类型在系统硬盘或其它存储器上查找嵌入式操作系统映像文件。 55, the embedded system boots as it Qiao the guide disk drive unit reads the parameter file and the guide disk drive type, look at the system's hard disk or other storage disk drive according to the guide and the guide disk drive parameters file type embedded operating system image file.

56、 判断是否查找到嵌入式操作系统映像文件,如果是,则进入S7;如果否,则进入S8。 56, to determine whether to look for an embedded operating system image file, if so, proceed to S7; if not, proceed to S8.

其中,.判断是否查找到嵌入式操作系统映像文件的依据是:判断文件名是否是内核文件(NK.BIN),如果是,则判定该文件为嵌入式操作系统映像文件, 说明查找到嵌入式操作系统映像文件;如果否,则判定该文件不为嵌入式操作系统映像文件,说明没有查找到嵌入式操作系统映像文件。 Among them, determine whether the find based embedded operating system image file is: to determine whether the file name is a kernel file (NK.BIN), if it is, it is determined that the file is embedded operating system image file, find embedded instructions operating system image file; if not, it is determined that the file is not embedded operating system image file, does not find the instructions embedded operating system image file.

57、 将该嵌入式操作系统映像文件加载到系统内存中,解压缩该嵌入式操作系统映像文件,启动嵌入式操作系统。 57, the embedded operating system image file loaded into the system memory, decompress the image file embedded operating system, start the embedded operating system.

58、 进入INT19中断服务程序,进入启动普通操作系统流程。 58, into the INT19 interrupt service routine, into the general operating system to start the process.

参见图2,为本发明的嵌入式操作系统映像文件的引导装置的结构图,该操作系统映像文件的引导装置包括: Referring to Figure 2, the present invention embedded operating system configuration diagram of the image file guide means, the guide means of the operating system image file comprises:

初始化单元P1:用于在系统上电后,执行BIOS程序,完成对系统硬件的初始化; Initialization unit P1: for after system power-up, the BIOS program to complete initialization of the system hardware;

系统启动判断单元P2:用于在系统硬件初始化之后,判断是否启动嵌入式 System start determination unit P2: After the system hardware for initialization, determines whether to activate embedded

8操作系统,如果选择BIOS程序中的系统启动选择项为启动普通操作系统,则判断启动普通操作系统;如果选择BIOS程序中的系统启动选择项为启动嵌入式操作系统,则判断启动嵌入式操作系统; 8 operating system, if the selected system BIOS boot program selection system to start normal operation, the operating system determines normal starting; if you select the system BIOS boot program selection embedded operating system to boot, it is determined that the operation start embedded system;

启动单元P3:用于根据系统启动判断单元P2的判断结果,启动所需启动的操作系统;当系统启动判断单元P2的判断结果为启动普通操作系统,则进入启动普通才喿作系统的流程,当系统启动判断单元P2的判断结果为启动嵌入式操作系统,则进入启动嵌入式才喿作系统的流程,在文件加载单元P6加载文件查找单元P5查找到的嵌入式操作系统映像文件到系统内存中且文件解压缩单元P7 解压缩该加载到系统内存中的嵌入式操作系统映像文件后,启动所需启动的嵌入式操作系统; Starting unit P3: starting system according to the determination result of determination unit P2 is required to start the operating system boot; when the system is started the determination result of determination unit to start P2 common operating systems, the process proceeds to normal startup process for the system was Qiao, when the system starts the judgment result of the judgment unit P2 to start the embedded operating system, start the embedded into the workflow system was Qiao, loading unit P6 load the file in the file search unit P5 find embedded operating system image file into system memory solution of P7 unit and decompressing the compressed file which is loaded into the operating system image file embedded in the system memory is required to start the embedded operating system boot;

系统引导单元P4:在该系统《1导单元P4启动之后,用于读取BIOS程序, 获取引导盘盘符,以及读取该获取的引导盘盘符参数和该引导盘盘符文件类型; System guide unit P4: after the system "P4 promoter guide unit 1, for reading the BIOS program, acquires the boot disk drive, and disk drive to read the boot disk drive parameter and the guide of the acquired file type;

文件查找单元P5:用于根据系统引导单元P4读取的引导盘盘符参数和该引导盘盘符文件类型,在系统硬盘或其它存储器上查找嵌入式操作系统映像文件;以及用于判断是否查找到嵌入式操作系统映像文件; File searching unit P5: according to parameters of the system boot disk drive and a guide unit P4 reads the boot disk drive file types, find the embedded operating system image file on a hard disk or other storage system; and means for determining whether to find the embedded operating system image file;

文件加载单元P6:用于在文件查找单元P5在系统硬盘或其它存储器上查找到嵌入式操作系统映像文件之后,加载该嵌入式操作系统映像文件到系统内存中; File loading unit P6: After the file searching unit P5 to find the embedded operating system image file on a hard disk or other memory system for the embedded operating system is loaded into system memory image file;

文件解压缩单元P7:用于解压缩加载在系统内存中的嵌入式操作系统映像文件。 File decompression unit P7: load for decompression system memory embedded operating system image file.

其中,完成对系统硬件的初始化,包括创建中断向量、设置寄存器、检测外部设备和设置硬件参数等。 Wherein, to complete the initialization of system hardware, including creating an interrupt vector, setting a register, detecting an external hardware device and setting parameters.

系统中的硬盘一般会设置成至少两个的存储分区,如果此时无法知晓操作系统的具体路径,则需要取得引导盘盘符,引导盘盘符中记录了操作系统的具体路径,取得了引导盘盘符也就知晓了操作系统的具体路径,可以很方便地查」找到所需的操作系统的具体^各径。 The hard disk system usually provided in at least two memory divisions, at this time can not be known if the specific path the operating system, it is necessary to obtain the boot disk drive, the boot disk drive records the specific path the operating system, a boot made disk drive will know the specific path of the operating system, you can easily check the specific "to find the desired operating system ^ each path.

其中,文件查找单元P5查找到嵌入式操作系统映像文件的依据是:如果查4戈到的文件的文件名是NK.BIN,则说明查找到的该文件为嵌入式操作系统映〃像文件;如果查找到的文件的文件名不是NK.BIN,则说明查找到的该文件不为嵌入式操作系统映像文件。 Among them, P5 find file search unit based embedded operating system image file is: Ge 4 if the investigation file name of the file to be NK.BIN, it indicates that the file is found embedded operating system mapping 〃 image file; If the file name of the file is not found NK.BIN, it indicates that the file is not found for the embedded operating system image file.

以上对本发明所提供的一种嵌入式操作系统映像文件的引导方法及装置进 Into the above method and apparatus for guiding an embedded operating system image file provided by the present invention

以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The above described embodiments are only used to help understand the method and core idea of ​​the present invention; the same time, for those of ordinary skill in the art, according to the idea of ​​the present invention, in the specific embodiments and application scope of the change, Therefore, the specification shall not be construed as limiting the present invention.

Claims (4)

1、一种嵌入式操作系统映像文件的引导方法,其特征在于,包括: 在系统上电后,执行基本输入输出系统BIOS程序,初始化硬件; 判断设置在BIOS程序中的系统启动选择项是否为启动嵌入式操作系统,以判断是否启动嵌入式操作系统,如果否,则进入启动普通操作系统流程;如果是,则启动嵌入式操作系统引导单元,进入启动嵌入式操作系统流程; 嵌入式操作系统引导单元读取基本输入输出系统BIOS程序,获取引导盘盘符,读取引导盘盘符参数和引导盘盘符文件类型,并根据所述引导盘盘符参数和引导盘盘符文件类型,查找嵌入式操作系统映像文件; 判断是否查找到文件名为内核文件NK.BIN,以判断是否查找到嵌入式操作系统映像文件,如果否,则进入启动普通操作系统流程;如果是,则加载查找到的嵌入式操作系统映像文件到系统内存中,并解压 1, the guide method of embedded operating system image file, wherein, comprising: a system power on, performs basic input output system BIOS program initializes the hardware; Analyzing system startup in the selection of whether the BIOS program start embedded operating system, to determine whether to start the embedded operating system, and if not, the process proceeds to start the normal operating system process; if so, start the embedded operating system guide unit, into the embedded operating system boot process; embedded operating system the guide unit reads a basic input output system BIOS program, acquires the boot disk drive, disk drive to read the boot and the boot disk drive parameters file type, and parameters according to the guide plate and the guide disk drive letter file type, to find embedded operating system image file; determining whether to look for a file named kernel file NK.BIN, to determine whether to find an embedded operating system image file, and if not, then enter the normal operating system boot process; and if so, find loaded embedded operating system image file into system memory, and extract 所述查找到的嵌入式操作系统映像文件,启动嵌入式操作系统。 The embedded operating system to find the image file, start the embedded operating system.
2、 如权利要求1所述的嵌入式操作系统映像文件的引导方法,其特征在于,所述进入启动普通操作系统流程具体包括:进入第19号中断INT19的中断服务程序,进入启动普通操作系统流程。 2. The guiding method according to claim 1 embedded operating system image file, characterized in that the operating system into the normal starting process comprises: in the No. 19 interrupt INT19 interrupt service routine, the operating system into the normal start Process.
3、 一种嵌入式才喿作系统映像文件的引导装置,其特征在于,包括:初始化单元、系统启动判断单元、启动单元、系统引导单元、文件查找单元、文件加载单元、文件解压缩单元;所述初始化单元,用于在系统上电后,执行基本输入输出系统BIOS程序,初始化》更件;所述系统启动判断单元,用于判断设置在BIOS程序中的系统启动选择项是否为启动嵌入式操作系统,以判断是否启动嵌入式操作系统;所述启动单元,用于根据所述系统启动判断单元的判断结果,启动所需启动的操作系统;所述系统引导单元,用于读取基本输入输出系统BIOS程序,获取引导盘盘符,读取引导盘盘符参数和引导盘盘符文件类型;所述文件查找单元,用于根据所述引导盘盘符参^:和引导盘盘符文件类型,查找嵌入式操作系统映像丈件,并判断是否查找到文件名为内核文件NL BIN 3, an embedded system only Qiao guidance device for image files, characterized by comprising: an initialization unit, the system start determination means, the starting unit, the guide unit system, the file searching unit, the file loading unit, the file decompression unit; the initialization unit, for after system power-up, basic input output system BIOS program initialization "more member; said system start determination means provided for determining the system BIOS boot program selection whether to start embedded operating system, to determine whether to start the embedded operating system; the starting unit, according to the system for starting judgment unit judges that, starting an operating system required for starting; guide unit of the system for reading the substantial input output system BIOS program, acquires the boot disk drive, disk drive to read the boot and the boot disk drive parameters file type; the file searching unit, for the guide ^ disk drive according to the reference: and the guide disk drive file type, find embedded operating system image husband pieces, and determines whether to look for a file named kernel file NL BIN ,以判断是否查找到嵌入式操作系统映像文件;所述文件加载单元,用于加载所述文件查找单元查找到的嵌入式才喿作系统映4象文件到系统内存中;所述文件解压缩单元,用于解压缩所述加载到系统内存中的嵌入式操作系统映^象文孑牛。 To determine if the embedded operating system to find the image file; the file loading unit for loading the file search unit searches for the embedded system only Zao Ying 4 image file to the system memory; the decompressed file means for decompressing said loaded into the system memory as an embedded operating system mapped text larvae ^ cattle.
4、如权利要求3所述的嵌入式操作系统映像文件的引导装置,其特征在于,所述文件查找单元通过在系统硬盘或存储器上查找文件名为内核文件NK.BIN的文件,以判断是否查找到嵌入式操作系统映像文件。 4. The guide device claimed in claim 3 embedded operating system image file, characterized in that, the file searching unit through the file search file named kernel file system on the hard disk or memory NK.BIN to determine whether find embedded operating system image file.
CN 200610063319 2006-10-25 2006-10-25 Embedded type operating system mapping file guiding method and device CN100552630C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610063319 CN100552630C (en) 2006-10-25 2006-10-25 Embedded type operating system mapping file guiding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610063319 CN100552630C (en) 2006-10-25 2006-10-25 Embedded type operating system mapping file guiding method and device

Publications (2)

Publication Number Publication Date
CN101169723A CN101169723A (en) 2008-04-30
CN100552630C true CN100552630C (en) 2009-10-21

Family

ID=39390362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610063319 CN100552630C (en) 2006-10-25 2006-10-25 Embedded type operating system mapping file guiding method and device

Country Status (1)

Country Link
CN (1) CN100552630C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999725B (en) * 2012-12-13 2016-01-06 北京奇虎科技有限公司 Malicious code processing method and system
CN103077350B (en) * 2012-12-13 2016-04-20 北京奇虎科技有限公司 Killing method and system for malicious code
CN106406909A (en) * 2016-10-14 2017-02-15 重庆金美通信有限责任公司 Method for optimizing VxWorks startup process by using ARJ compressed file

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570868A (en) 2003-03-18 2005-01-26 微软公司 Method and system for deployment of operating system
CN1818869A (en) 2006-03-15 2006-08-16 浙江大学 Mirror starting optimization of built-in operation system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570868A (en) 2003-03-18 2005-01-26 微软公司 Method and system for deployment of operating system
CN1818869A (en) 2006-03-15 2006-08-16 浙江大学 Mirror starting optimization of built-in operation system

Also Published As

Publication number Publication date
CN101169723A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
US7017037B2 (en) Apparatus and method to decrease boot time and hibernate awaken time of a computer system utilizing disk spin-up-time
US6434696B1 (en) Method for quickly booting a computer system
US8407476B2 (en) Method and apparatus for loading a trustable operating system
US10146938B2 (en) Method, apparatus and virtual machine for detecting malicious program
US7793286B2 (en) Methods and systems to manage machine state in virtual machine operations
US20010039612A1 (en) Apparatus and method for fast booting
US7409537B2 (en) Fast booting an operating system from an off state
US8479199B2 (en) Nested virtualization performance in a computer system
US8443211B2 (en) Hibernation or suspend using a non-volatile-memory device
US8677345B2 (en) System for creating virtual application, method for installing virtual application, method for calling native API and method for executing virtual application
US7716638B2 (en) Methods for describing processor features
US20060242398A1 (en) Booting from non-volatile memory
US8984244B2 (en) Concurrent virtual machine snapshots and restore
US7257842B2 (en) Pre-approval of computer files during a malware detection
US8443358B1 (en) Hot pluggable virtual machine
US7797507B2 (en) Virtual machine system and operating method thereof
US20040172578A1 (en) Method and system of operating system recovery
US20030233534A1 (en) Enhanced computer start-up methods
JP5911892B2 (en) Multi-stage resume from Haibaneito
CN103460179B (en) A method for transparently to the application equipment and instrumented
JP5934344B2 (en) Virtual memory disk technology
CN1809813A (en) Method for firmware variable storage with eager compression, fail-safe extraction and restart time compression scan
US20070162736A1 (en) Electronic device with accelerated boot process and method for the same
CN1679001A (en) Control over faults occurring during the operation of guest software in the virtual-machine architecture
CN1692332A (en) Handling faults associated with operation of guest software in the virtual-machine architecture

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C56 Change in the name or address of the patentee

Owner name: YANXIANG INTELLIGENT TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENGZHEN EVOC INTELLIGENT TECHNOLOGY CO., LTD.