CN100552630C - A kind of bootstrap technique of embedded type operating system mapping file and device - Google Patents

A kind of bootstrap technique of embedded type operating system mapping file and device Download PDF

Info

Publication number
CN100552630C
CN100552630C CNB2006100633194A CN200610063319A CN100552630C CN 100552630 C CN100552630 C CN 100552630C CN B2006100633194 A CNB2006100633194 A CN B2006100633194A CN 200610063319 A CN200610063319 A CN 200610063319A CN 100552630 C CN100552630 C CN 100552630C
Authority
CN
China
Prior art keywords
file
embedded
operating system
unit
type operating
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.)
Active
Application number
CNB2006100633194A
Other languages
Chinese (zh)
Other versions
CN101169723A (en
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.)
Shenzhen Niujiuyimao Intelligent IoT Technology Co.,Ltd.
Original Assignee
SHENZHEN EVOC INTELLIGENT 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 SHENZHEN EVOC INTELLIGENT TECHNOLOGY Co Ltd filed Critical SHENZHEN EVOC INTELLIGENT TECHNOLOGY Co Ltd
Priority to CNB2006100633194A 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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of bootstrap technique of embedded type operating system mapping file, comprising: judge whether to start embedded OS, if not, then enter startup normal operations system flow; If, then start the embedded OS guidance unit, enter startup embedded OS flow process; Judge whether to find embedded type operating system mapping file, if not, then enter startup normal operations system flow; If, then load the embedded type operating system mapping file find in Installed System Memory, and this embedded type operating system mapping file that finds that decompresses, embedded OS started.The present invention also discloses a kind of guiding device of embedded type operating system mapping file.The present invention has improved the security to the guiding of embedded type operating system mapping file again in the guiding speed of having accelerated embedded type operating system mapping file.

Description

A kind of bootstrap technique of embedded type operating system mapping file and device
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of bootstrap technique and device of embedded type operating system mapping file.
Background technology
Along with the arrival of the post-PC age, application-centered embedded OS has had widely in all trades and professions to be used.The application and development of embedded OS is subjected to using the constraint with the cost aspect, thus to the exploitation of the software of embedded OS, hardware need according to its reality should be used for determine; Embedded OS is compared with the normal operations system, and the guiding of embedded OS is than the guiding relative complex of normal operations system.
The guiding of operating system need be applied to the guiding of mapping document of operation system, finds the concrete path of operating system by mapping document of operation system, thereby finishes the guiding to operating system.The concrete routing information of the operating system to the effect that mapping document of operation system comprises.In like manner, the main contents that normal operations system image file comprises are exactly the concrete routing information of normal operations system, and the main contents that embedded type operating system mapping file comprises are exactly the concrete routing information of embedded OS.
The bootstrap technique of existing operating system image file mainly contains two kinds:
1, use (boot) program of importing to come load operation system image file: at first to carry out the boot program, search operation system image file then, the mapping document of operation system decompress(ion) that finds contractd to be loaded in the internal memory, gives embedded OS with the control of central processing unit (CPU) at last.This method is directed to disc operating system (DOS) (DOS) earlier with mapping document of operation system, then carries out the boot program under DOS, reloads this mapping document of operation system at last to embedded OS, and guiding speed is slow.
2, come load operation system image file by revising hard disk master boot record: this method code that embedded OS is undetermined is written in the Master boot sector of system disk, to obtain the chance of load operation system image file to embedded OS.The Master boot sector of the system disk that is applied in this method is the object of numerous virus attacks, makes this Master boot sector be vulnerable to destroy and cause system to start.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of bootstrap technique and device of embedded type operating system mapping file, to reach in the guiding speed of having accelerated embedded type operating system mapping file, improved purpose again to the security of the guiding of embedded type operating system mapping file.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A kind of bootstrap technique of embedded type operating system mapping file comprises:
After system powers on, carry out the basic input-output system BIOS program, initiating hardware;
Judge whether the system start-up options that is arranged in the bios program is to start embedded OS,, if not, then enter startup normal operations system flow to judge whether to start embedded OS; If, then start the embedded OS guidance unit, enter startup embedded OS flow process;
The embedded OS guidance unit reads the basic input-output system BIOS program, obtain the boot disk drive, read boot disk drive parameter and boot disk drive file type, and, search embedded type operating system mapping file according to described boot disk drive parameter and boot disk drive file type;
Judge whether to find file kernel file NK.BIN by name,, if not, then enter startup normal operations system flow to judge whether to find embedded type operating system mapping file; If, then load the embedded type operating system mapping file find in Installed System Memory, and the described embedded type operating system mapping file that finds that decompresses, embedded OS started.
Further, the described startup normal operations system flow that enters specifically comprises:
Enter the interrupt service routine of No. 19 interrupt INT 19, enter startup normal operations system flow.
A kind of guiding device of embedded type operating system mapping file comprises: initialization unit, system start-up judging unit, start unit, system bootstrap unit, ff unit, file load unit, file decompression unit;
Described initialization unit is used for after system powers on, and carries out the basic input-output system BIOS program, initiating hardware;
Described system start-up judging unit is used for judging whether the system start-up options that is arranged on bios program is to start embedded OS, to judge whether to start embedded OS;
Described start unit is used for the judged result according to described system start-up judging unit, starts the operating system of required startup;
Described system bootstrap unit is used to read the basic input-output system BIOS program, obtains the boot disk drive, reads boot disk drive parameter and boot disk drive file type;
Described ff unit, be used for according to described boot disk drive parameter and boot disk drive file type, search embedded type operating system mapping file, and judge whether to find file kernel file NK.BIN by name, to judge whether to find embedded type operating system mapping file;
Described file load unit is used for loading embedded type operating system mapping file that described ff unit finds to Installed System Memory;
Described file decompression unit, the described embedded type operating system mapping file that is loaded into Installed System Memory is used for decompressing.
Further, embedded type operating system mapping file is searched by the file of the kernel file NK.BIN by name of locating file on system disk or storer in described ff unit.
As can be seen from the above technical solutions, the present invention has the following advantages:
Because the present invention does not come the load operation system by revising hard disk master boot record, can avoid system to be subjected to the attack of virus, has improved the security to the guiding of mapping document of operation system; The present invention is in the process to the guiding of mapping document of operation system again, directly loads embedded type operating system mapping file and do not load any other mapping document of operation system, accelerated the guiding to mapping document of operation system.
Description of drawings
Fig. 1 is the process flow diagram of the bootstrap technique of embedded type operating system mapping file of the present invention;
Fig. 2 is the structural drawing of the guiding device of embedded type operating system mapping file of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.
Basic ideas of the present invention are: judge whether to start embedded OS, if not, then enter startup normal operations system flow; If, then start the embedded OS guidance unit, enter startup embedded OS flow process; Judge whether to find embedded type operating system mapping file, if not, then enter startup normal operations system flow; If, then load the embedded type operating system mapping file find in Installed System Memory, and this embedded type operating system mapping file that finds that decompresses, start embedded OS, finish the guiding of this embedded type operating system mapping file.
Because the present invention does not come the load operation system by revising hard disk master boot record, can avoid system to be subjected to the attack of virus, has improved the security to the guiding of mapping document of operation system; The present invention is in the process to the guiding of mapping document of operation system again, directly loads embedded type operating system mapping file and do not load any other mapping document of operation system, accelerated the guiding to mapping document of operation system.
Referring to Fig. 1, be the process flow diagram of the bootstrap technique of embedded type operating system mapping file of the present invention:
S1, initiating hardware: after system powers on, carry out Basic Input or Output System (BIOS) (BIOS) program, finish initialization, comprise the establishment interrupt vector, register be set, detect external unit and hardware parameter etc. is set to system hardware.
System can not participate in any work, this moment, bios program all was provided with parameter to the register of system hardware work, inform the work that this hardware is follow-up and how to go to finish this follow-up work, finish initialization, comprise the establishment interrupt vector, register be set, detect external unit and hardware parameter etc. is set system hardware.
S2, judge whether to start embedded OS, if not, then enter S8; If then enter S3.
Wherein, judging whether to start embedded OS is embodied in: be provided with the system start-up options in bios program, this system start-up options is used for the operating system that will start is selected, if select to start the normal operations system, then carry out the interrupt service routine that interrupts (INT19) for No. 19, enter the flow process that starts this normal operations system; If select to start embedded OS, then start the embedded OS guidance unit, enter startup embedded OS flow process.
Wherein, setting to the system start-up options in the bios program is such: in the process that system powers on, press deleted file (DEL) key and enter the interface that is provided with of bios program, being provided with at this has to import an options (Boot wincer) in interface, if this Boot wincer options is set for starting (enable), then selects to start embedded OS; If this Boot wincer options is set, then select to start the normal operations system for not starting (disable).
S3, startup embedded OS guidance unit.
S4, embedded OS guidance unit read bios program, obtain the boot disk drive.
Hard disk in the system generally can be arranged at least two partition holding, if can't know the concrete path of operating system this moment, then need to obtain the boot disk drive, write down the concrete path of operating system in the boot disk drive, obtain the boot disk drive and also just known the concrete path of operating system, can find the concrete path of required operating system easily.
S5, embedded OS guidance unit read this boot disk drive parameter and this boot disk drive file type, search embedded type operating system mapping file according to this boot disk drive parameter and this boot disk drive file type on system disk or other storer.
S6, judge whether to find embedded type operating system mapping file, if then enter S7; If not, then enter S8.
Wherein, judge whether that the foundation that finds embedded type operating system mapping file is: judge whether filename is kernel file (NK.BIN), if, judge that then this document is an embedded type operating system mapping file, illustrate to find embedded type operating system mapping file; If not, judge that then this document is not embedded type operating system mapping file, illustrates not find embedded type operating system mapping file.
S7, this embedded type operating system mapping file is loaded in the Installed System Memory, this embedded type operating system mapping file that decompresses starts embedded OS.
S8, enter the INT19 interrupt service routine, enter and start the normal operations system flow.
Referring to Fig. 2, be the structural drawing of the guiding device of embedded type operating system mapping file of the present invention, the guiding device of this mapping document of operation system comprises:
Initialization unit P1: be used for after system powers on, carry out bios program, finish initialization to system hardware;
System start-up judging unit P2: be used for after the system hardware initialization, judging whether to start embedded OS,, then judge to start the normal operations system if select the system start-up options in the bios program to be startup normal operations system; If the system start-up options in the selection bios program for starting embedded OS, is then judged to start embedded OS;
Start unit P3: be used for judged result, start the operating system of required startup according to system start-up judging unit P2; When the judged result of system start-up judging unit P2 for starting the normal operations system, then enter the flow process that starts the normal operations system, when the judged result of system start-up judging unit P2 for starting embedded OS, then enter the flow process that starts embedded OS, file load unit P6 load document search embedded type operating system mapping file that unit P5 finds in Installed System Memory and file decompression unit P7 decompress after this is loaded into embedded type operating system mapping file in the Installed System Memory, start the embedded OS of required startup;
System bootstrap unit P4: after this system bootstrap unit P4 starts, be used to read bios program, obtain the boot disk drive, and read this boot disk drive parameter of obtaining and this boot disk drive file type;
Ff unit P5: be used for the boot disk drive parameter that reads according to system bootstrap unit P4 and this boot disk drive file type, on system disk or other storer, search embedded type operating system mapping file; And be used to judge whether to find embedded type operating system mapping file;
File load unit P6: be used for ff unit P5 finds embedded type operating system mapping file on system disk or other storer after, loading this embedded type operating system mapping file in Installed System Memory;
File decompression unit P7: being used for decompressing is carried in the embedded type operating system mapping file of Installed System Memory.
Wherein, finish initialization, comprise the establishment interrupt vector, register be set, detect external unit and hardware parameter etc. is set system hardware.
Hard disk in the system generally can be arranged at least two partition holding, if can't know the concrete path of operating system this moment, then need to obtain the boot disk drive, write down the concrete path of operating system in the boot disk drive, obtain the boot disk drive and also just known the concrete path of operating system, can find the concrete path of required operating system easily.
Wherein, the foundation that ff unit P5 finds embedded type operating system mapping file is: if the filename of the file that finds is NK.BIN, illustrate that then this document that finds is an embedded type operating system mapping file; If the filename of the file that finds is not NK.BIN, illustrate that then this document that finds is not embedded type operating system mapping file.
More than the bootstrap technique and the device of a kind of embedded type operating system mapping file provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1, a kind of bootstrap technique of embedded type operating system mapping file is characterized in that, comprising:
After system powers on, carry out the basic input-output system BIOS program, initiating hardware;
Judge whether the system start-up options that is arranged in the bios program is to start embedded OS,, if not, then enter startup normal operations system flow to judge whether to start embedded OS; If, then start the embedded OS guidance unit, enter startup embedded OS flow process;
The embedded OS guidance unit reads the basic input-output system BIOS program, obtain the boot disk drive, read boot disk drive parameter and boot disk drive file type, and, search embedded type operating system mapping file according to described boot disk drive parameter and boot disk drive file type;
Judge whether to find file kernel file NK.BIN by name,, if not, then enter startup normal operations system flow to judge whether to find embedded type operating system mapping file; If, then load the embedded type operating system mapping file find in Installed System Memory, and the described embedded type operating system mapping file that finds that decompresses, embedded OS started.
2, the bootstrap technique of embedded type operating system mapping file as claimed in claim 1 is characterized in that, the described startup normal operations system flow that enters specifically comprises:
Enter the interrupt service routine of No. 19 interrupt INT 19, enter startup normal operations system flow.
3, a kind of guiding device of embedded type operating system mapping file is characterized in that, comprising: initialization unit, system start-up judging unit, start unit, system bootstrap unit, ff unit, file load unit, file decompression unit;
Described initialization unit is used for after system powers on, and carries out the basic input-output system BIOS program, initiating hardware;
Described system start-up judging unit is used for judging whether the system start-up options that is arranged on bios program is to start embedded OS, to judge whether to start embedded OS;
Described start unit is used for the judged result according to described system start-up judging unit, starts the operating system of required startup;
Described system bootstrap unit is used to read the basic input-output system BIOS program, obtains the boot disk drive, reads boot disk drive parameter and boot disk drive file type;
Described ff unit, be used for according to described boot disk drive parameter and boot disk drive file type, search embedded type operating system mapping file, and judge whether to find file kernel file NK.BIN by name, to judge whether to find embedded type operating system mapping file;
Described file load unit is used for loading embedded type operating system mapping file that described ff unit finds to Installed System Memory;
Described file decompression unit, the described embedded type operating system mapping file that is loaded into Installed System Memory is used for decompressing.
4, the guiding device of embedded type operating system mapping file as claimed in claim 3, it is characterized in that, described ff unit is by the file of the kernel file NK.BIN by name of locating file on system disk or storer, to judge whether to find embedded type operating system mapping file.
CNB2006100633194A 2006-10-25 2006-10-25 A kind of bootstrap technique of embedded type operating system mapping file and device Active CN100552630C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100633194A CN100552630C (en) 2006-10-25 2006-10-25 A kind of bootstrap technique of embedded type operating system mapping file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100633194A CN100552630C (en) 2006-10-25 2006-10-25 A kind of bootstrap technique of embedded type operating system mapping file 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
CNB2006100633194A Active CN100552630C (en) 2006-10-25 2006-10-25 A kind of bootstrap technique of embedded type operating system mapping file and device

Country Status (1)

Country Link
CN (1) CN100552630C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077350B (en) * 2012-12-13 2016-04-20 北京奇虎科技有限公司 A kind of checking and killing method of malicious code and system
CN102999725B (en) * 2012-12-13 2016-01-06 北京奇虎科技有限公司 Malevolence code processing method and system
CN106406909A (en) * 2016-10-14 2017-02-15 重庆金美通信有限责任公司 Method for optimizing VxWorks startup process by using ARJ compressed file
CN111966051A (en) * 2020-07-02 2020-11-20 佛山科学技术学院 Rapid loading method and system for industrial operating system

Also Published As

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

Similar Documents

Publication Publication Date Title
US10073703B2 (en) Booting an operating system of a system using a read ahead technique
US7788665B2 (en) Migrating a virtual machine that owns a resource such as a hardware device
KR101292429B1 (en) Fast booting an operating system from an off state
US20100058076A1 (en) Method and apparatus for loading a trustable operating system
US9047491B2 (en) Encryption acceleration
CN101650660A (en) Booting a computer system from central storage
US20170103206A1 (en) Method and apparatus for capturing operation in a container-based virtualization system
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
JP2004334486A (en) Starting system using boot code and starting method
KR101478619B1 (en) Method and Apparatus of Inputting/Outputting Data Using Virtualization Technique
CN103207970A (en) Virus file scanning method and device
CN100552630C (en) A kind of bootstrap technique of embedded type operating system mapping file and device
US11416614B2 (en) Statistical detection of firmware-level compromises
WO2021126417A1 (en) Layered composite boot device and file system for operating system booting in file system virtualization environments
US20160026474A1 (en) Caching based operating system installation
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
WO2013136457A1 (en) Virtual computer system, information storage processing program and information storage processing method
JP5489278B2 (en) Information processing apparatus and activation method thereof
US9383796B2 (en) Management of the interaction between security and operating system power management unit
KR20140046702A (en) Main memory system storing operating system program and computer system including the same
JP2004287618A (en) Starting control method of operating system, program making computer execute its method, and starting control device of operating system
US20240095375A1 (en) Mechanism To Secure An Execution Environment In Processor Cores
CN117931282A (en) Function entry determining method, computing device and storage medium
CN118152014A (en) Bootloader system, solid-state memory and computing device for SSD mass production
TWI427536B (en) System and apparatus for deleting and writing data of dmi in the linux operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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.

CP03 Change of name, title or address

Address after: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee after: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 518040 Guangdong city of Shenzhen province Che Kung Temple Tianan Digital City Tienhsiang building 10B

Patentee before: SHENZHEN EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract

Assignee: Xi'an EVOC Xingye Electronic Technology Co.,Ltd.

Assignor: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Contract record no.: 2011610000196

Denomination of invention: Embedded type operating system mapping file guiding method and device

Granted publication date: 20091021

License type: Common License

Open date: 20080430

Record date: 20111021

TR01 Transfer of patent right

Effective date of registration: 20230717

Address after: 518000 B2, 20/F, Yanxiang Science and Technology Building, No. 31, High-tech Fourth Road, Maling Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Niujiuyimao Intelligent IoT Technology Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
DD01 Delivery of document by public notice

Addressee: Li Qin

Document name: Notification of Qualified Procedures

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Li Qin

Document name: Modification and Correction Notice

DD01 Delivery of document by public notice