CN103019833A - Terminal equipment and method for enabling same to support quick switching of operating systems - Google Patents

Terminal equipment and method for enabling same to support quick switching of operating systems Download PDF

Info

Publication number
CN103019833A
CN103019833A CN2011102808599A CN201110280859A CN103019833A CN 103019833 A CN103019833 A CN 103019833A CN 2011102808599 A CN2011102808599 A CN 2011102808599A CN 201110280859 A CN201110280859 A CN 201110280859A CN 103019833 A CN103019833 A CN 103019833A
Authority
CN
China
Prior art keywords
operating system
firmware
storage area
load
loads
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
CN2011102808599A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN2011102808599A priority Critical patent/CN103019833A/en
Publication of CN103019833A publication Critical patent/CN103019833A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for enabling terminal equipment to support quick switching of operating systems and the terminal equipment. The terminal equipment comprises a first storage unit and a second storage unit, wherein the first storage unit is used for storing a first firmware, a second firmware, a third firmware, a first operating system and a second operating system; the access speed of the second storage unit is higher than that of the first storage unit. The method comprises the following steps of: responding a preset starting command, and carrying out initialization on the second storage unit on the basis of the first firmware; and dividing the second storage unit into a first storage area and a second storage area, and selecting to load one of the second firmware and the third firmware.

Description

Terminal device and the method that terminal device support operating system is switched fast
Technical field
The present invention relates to a kind of terminal device and make terminal device support the method that operating system is switched fast.
Background technology
Current, for the terminal device such as smart mobile phone or panel computer, exist several operation systems (as, android or Win 8 etc.) can for install and.Because these operating systems are usually incompatible, therefore for the terminal device that multiple mutually incompatible operating system is installed, the startup of the several operation systems of installing at terminal device and switch normally inconvenience and very consuming time.For example, if use the user of android operating system to wish to switch to Win 8, he usually has to again to start shooting and selects the operating system of its desired use.
Summary of the invention
In order to solve above-mentioned technical matters of the prior art, according to an aspect of the present invention, provide a kind of terminal device that makes to support the method that operating system is switched fast, this terminal device comprises the first storage unit for storage the first firmware, the second firmware, the 3rd firmware, the first operating system and the second operating system; And second storage unit, the access speed of the second storage unit is greater than the access speed of described the first storage unit; The method comprises: in response to default startup command, based on the first firmware the second storage unit is carried out initialization; The second storage unit is divided into the first storage area and the second storage area; The first operating system is imported in described the first storage area; The second operating system is imported in described the second storage area; Select to load one of the second firmware and the 3rd firmware.
According to another embodiment of the invention, described method further comprises: if select to load described the second firmware, then based on described the second firmware that loads described the first operating system is imported to described the first storage area, and load described the first operating system from described the first storage area; If perhaps select to load described the 3rd firmware, then based on described the 3rd firmware that loads described the second operating system imported to described the second storage area, and load described the second operating system from described the second storage area.
According to another embodiment of the invention, described method further comprises: after the second storage unit is divided into the first storage area and the second storage area, based on the first firmware described the first operating system is imported in described the first storage area and with described the second operating system and to import in described the second storage area; If select to load the second firmware, then load the first operating system based on the second firmware that loads from the first storage area; If perhaps select to load the 3rd firmware, then load described the second operating system based on the 3rd firmware that loads from the second storage area.
According to another embodiment of the invention, wherein the second firmware to limit the second storage area invisible for the first operating system; And the 3rd firmware to limit the first storage area invisible for the second operating system.
According to another embodiment of the invention, after described method further is included in the first os starting, in response to default switching command, preserves current first state of described processing unit, and the first operating system is switched to the second operating system; Perhaps behind the second os starting, in response to default switching command, preserve current second state of processing unit, and the second operating system is switched to the first operating system.
In addition, according to a further aspect in the invention, provide a kind of terminal device, comprising: the first storage unit, the first firmware, the second firmware, the 3rd firmware, the first operating system and the second operating system are stored in configuration; The second storage unit, wherein the access speed of the second storage unit is greater than the access speed of the first storage unit; And processing unit, configuration loads the first operating system or the second moral conduct system, wherein in response to default startup command, processing unit carries out initialization based on the first firmware to the second storage unit, and the second storage unit is divided into the first storage area and the second storage area; And processing unit selects to load the second firmware or the 3rd firmware based on the first firmware.
According to another embodiment of the invention, if wherein processing unit selects to load described the second firmware, then based on described the second firmware that loads described the first operating system is imported to described the first storage area, and load described the first operating system from described the first storage area; If perhaps processing unit is selected to load described the 3rd firmware, then based on described the 3rd firmware that loads described the second operating system is imported to described the second storage area, and load described the second operating system from described the second storage area.
According to another embodiment of the invention, wherein after the second storage unit was divided into the first storage area and the second storage area, processing unit imported to described the first operating system in described the first storage area and with described the second operating system based on the first firmware and imports in described the second storage area; If processing unit is selected to load described the second firmware, then processing unit loads the first operating system based on the second firmware that loads from the first storage area; If perhaps processing unit is selected to load the 3rd firmware, then processing unit loads the second operating system based on the 3rd firmware that loads from the second storage area.
According to another embodiment of the invention, wherein the second firmware to limit the second storage area invisible for the first operating system; And the 3rd firmware to limit the first storage area invisible for the second operating system.
According to another embodiment of the invention, wherein behind the first os starting, in response to default switching command, processing unit is preserved its first current state, and the first operating system is switched to the second operating system; Perhaps behind the second os starting, in response to default switching command, processing unit is preserved its second current state, and the second operating system is switched to described the first operating system.
By above-mentioned configuration, by the first firmware the first operating system and the second operating system are imported in the second storage unit (internal memory) in advance, then start the first operating system and the second operating system based on the second firmware corresponding with the first operating system and the second operating system and the 3rd firmware, can make terminal device support neatly multiple incompatible operating system.In addition, because the first operating system and the second operating system have resided in the second storage unit (internal memory), therefore in the process of switching operating system, save the process that loads another operating system, shortened thus the required time of switching operating system.
Description of drawings
Fig. 1 is that diagram is according to the block scheme of the structure of the terminal device of the embodiment of the invention; And
Fig. 2 is that diagram is supported the process flow diagram of the method that operating system is switched fast according to the terminal device that makes of the embodiment of the invention.
Embodiment
Describe in detail with reference to the accompanying drawings according to each embodiment of the present invention.Here, it should be noted that in the accompanying drawings, identical Reference numeral is given basically had ingredient identical or similar structures and function, and will omit being repeated in this description about them.
Below, with reference to Fig. 1 according to an embodiment of the invention terminal device is described.Fig. 1 is the according to an embodiment of the invention synoptic diagram of the structure of terminal device of diagram.
As shown in Figure 1, according to the terminal device of present embodiment (as, smart mobile phone, notebook and panel computer etc.) can comprise storer 11, internal memory 12 and processor 13.
Storer 11 can be realized by flash memory arbitrarily, and can store the various data that comprise operating system, user data and so on.According to embodiments of the invention, storer 11 storage the first firmware, the second firmware, the 3rd firmware, the first operating system (as, android) and the second operating system (as, Win 8) etc.
Here, the first firmware can to a part of element of terminal device (as, processor 13, internal memory 12 etc.) carry out initialization, and after the initialization of internal memory 12 is finished, the first operating system and the second operating system are imported in the internal memory 12.
In addition, the second firmware can be corresponding with the first operating system, and be used for loading the first operating system.For example, be in the situation of android in the first operating system, the second firmware can be the bootloader firmware.The 3rd firmware can be corresponding with the second operating system, and be used for loading the second operating system.For example, be in the situation of Win 8 in the second operating system, the second firmware can be the UEFI firmware.Here, the bootloader firmware that the second firmware and the 3rd firmware are not limited to exemplify (being used for android) and UEFI firmware (being used for Win 8) can also be other the firmwares that is used for mutually incompatible operating system.
Internal memory 12 can be realized by the RAM assembly of any type, and can be when powering up a part of data in the memory 11.Here, the access speed of obvious internal memory 12 is greater than the access speed of storer 11.
Processor 13 can be by realizations such as the processing unit of any type, microprocessing units.According to present embodiment, in the start-up course of the terminal device such as notebook, panel computer or smart mobile phone, in response to startup command (as, the user presses key or terminal device is restarted in selection), processor 13 at first carries out initialization based on the first firmware to the second storage unit.Then processor 13 is divided into the first storage area and the second storage area based on the first firmware with internal memory 12.Then processor 13 imports to the first operating system in the first storage area of internal memory 12, and the second operating system is imported in the second storage area of internal memory 12.Then, processor 13 loads one of the second firmware and the 3rd firmware to start the first or second corresponding operating system based on predetermined setting or input selection.
The below will describe the operation of carrying out according to the terminal device of the embodiment of the invention in detail.
For example, press after key or selection restart terminal device the user, processor 13 receives predetermined start-up command.After receiving start-up command, processor 13 begin to load the first firmware and based on this first firmware to a part of hardware of terminal device carry out initialization (as, processor 13 and internal memory 12).Here, because the initialization of internal memory 12 and processor 13 is known to those skilled in the art, therefore omitted the detailed description about aforesaid operations here.After based on the first firmware internal memory 12 being carried out initialization, can be from storer 11 to internal memory a part of data of 12 storages.According to embodiments of the invention, at this moment, processor 13 is divided into the first storage area and the second storage area based on the first firmware with internal memory 12.For example, the size of supposing internal memory 12 is 512MB, and processor 13 can be divided into internal memory 12 based on the first firmware two storage areas (the first storage area and the second storage area) of 256MB.In addition, the invention is not restricted to this, can as the case may be internal memory 12 be divided into unequal two storage areas.For example, if the first operating system takies more memory headroom, and the second operating system committed memory space is less, distribute more storage area as the first storage area then can for the first operating system, and distribute less storage area as the second storage area can for the second operating system.
Then, according to one embodiment of present invention, processor 13 can be based on the instruction in the first firmware, the first operating system is imported (writing) in the presumptive area of the first storage area of internal memory 12, and the second operating system is imported (writing) in the presumptive area of the second storage area of internal memory 12.For example, processor 13 can import to the first operating system in the first storage area in the zone that first address begins, and the second operating system can be imported in the second storage area in the zone that first address begins.Obviously, the first operating system and the second operating system can also be imported to respectively on any storage space in the first storage area and the second storage area.In addition, the residual memory space in the first storage area and the second storage area can use when the first operating system or the second operating system execution preset program.
The first operating system is being imported (writing) to the first storage area of internal memory 12, and the second operating system is imported (writing) after the second storage area of internal memory 12, and processor 13 can select to load the second firmware or the 3rd firmware based on the first firmware.For example, can dispose the parameter (for example, 0 corresponding to the first operating system, and 1 corresponding to the second operating system) of the first firmware so that processor 13 can determine to need to load the second firmware or the 3rd firmware.In addition, the first firmware can also be further carries out initialization to the display unit (not shown) of terminal device so that can be on terminal device demonstration information.In this case, processor 13 can show that at display unit choice menus is for user selection the first operating system or the second operating system based on the instruction of the first firmware.At this moment, processor 13 can determine user selection which firmware (or operating system) based on user's input.
If based on predetermined setting or user's input selection load in the situation of the second firmware, processor 13 loads these second firmwares, and loads the first operating system based on this second firmware.For example, be android in the first operating system, and the second firmware is in the situation of bootloader, if based on predetermined setting or user's input selection load in the situation of bootloader firmware, processor 13 loads the bootloader firmware, and loads android operating system based on the bootloader firmware.Here, the process that loads android operating system based on the bootloader firmware is known to those skilled in the art, has therefore omitted its detailed description here.
Here, it should be noted that the second firmware need to limit the second storage area.For example at processor 13 during based on the second firmware loads the first operating system, the second firmware defines the memory space that the first operating system can be used to the first operating system.In this case, it is invisible for the first operating system that the second firmware need to limit this second storage area, that is to say that the first operating system can not use the second storage area in the internal memory 12, and it only can use the first storage area in the internal memory 12.This is because if the second storage area for the first operating system visible, when then moving some program in the first operating system, may cover the data of the second operating system in the second storage area, may cause unusual appearance thus.Here, can notify the information of the distribution of relevant internal memory 12 to the second firmware by the first firmware, perhaps can in the second firmware, set in advance the information relevant with the scope of the first storage area.
In addition, if based on predetermined setting or user's input selection load in the situation of the 3rd firmware, processor 13 loads the 3rd firmware, and loads the second operating system based on the 3rd firmware.For example, be Win 8 in the second operating system, and the second firmware is in the situation of UEFI, if based on predetermined setting or user's input selection load in the situation of UEFI firmware, processor 13 loads this UEFI firmware, and loads Win 8 operating systems based on the UEFI firmware.
Similarly, the 3rd firmware need to limit the first storage area.For example at processor 13 during based on the 3rd firmware loads the second operating system, the 3rd firmware defines the memory space that the second operating system can be used to the second operating system.In this case, it is invisible for the second operating system that the 3rd firmware need to limit this first storage area, that is to say that the second operating system can not use the first storage area in the internal memory 12, and it only can use the second storage area in the internal memory 12.Here, can notify the information of the distribution of relevant internal memory 12 to the 3rd firmware by the first firmware, perhaps can in the 3rd firmware, set in advance the information relevant with the scope of the second storage area.
At processor 13 based on the second firmware loads the first operating system, or based on after the 3rd firmware loads the second operating system.Processor 13 this first operating system of operation or the second operating systems are so that the function that the user can provide based on the first operating system or the second operating system or the program of installing are thereon carried out predetermined task.
In addition, the embodiment that describes before the invention is not restricted to for example, can also replace the first firmware to finish the processing that loads the first operating system and the second operating system by the second firmware and the 3rd firmware.
Particularly, can in the second firmware (rather than first firmware), be provided for loading the instruction that the first operating system is imported to the presumptive area of the first storage area, and in the 3rd firmware (rather than first firmware), be provided for loading the instruction that the first operating system is imported to the presumptive area of the first storage area.
In this case, after processor 13 is divided into the first storage area and the second storage area based on the first firmware with internal memory 12,
In this case, if processor 13 based on the first firmware (as, with reference to predetermined setting or user's input) selected to load the second firmware, then processor 13 loads this second firmware, based on the second firmware that loads with the first operating system (as, android) import to the first storage area of internal memory 12, then load this first operating system from the first storage area, in order to start this first operating system.In addition, if processor 13 based on the first firmware (as, the setting that reference is predetermined or user's input) selection loading the 3rd firmware, then processor 13 based on the 3rd firmware that loads with the second operating system (as, Win 8) import to the second storage area of internal memory 12, then load this second operating system from the second storage area, in order to start this first operating system.。
Next, will the process of the operating system of switching terminal equipment be described.
For example, the first operating system (as, android) start after, the user may wish to use another operating system (as, Win 8).At this moment, in response to default switching command, processor 13 is preserved the current processor state of the first operating system, then the first operating system is switched to the second operating system.
Particularly, for example, default switching command can be the switching command in the menu that the first operating system provides, and perhaps can predetermined physics or virtual key be set at terminal device, and after the user presses this button, produce the operating system switching command and send to processor 13.Then, processor 13 in response to the switching command of operating system preserve processor 13 the current processor state (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.).Here, current processor state can be stored in the storer 11.Then, preserve before whether processor 13 inspection exists with another operating system (as, Win 8) the relevant data of processor state.If there is no such data represent that then another operating system does not also start.At this moment, need to start another operating system (that is, the second operating system).In this case, processor 13 can start by three firmware corresponding with the second operating system this second operating system (as, Win 8).Here, because the second operating system has resided in the internal memory 12, therefore save the process that the second operating system is imported to internal memory 12, reduced thus the required time of switching of operating system.
In addition, if preserve before existing with another operating system (as, Win 8) the relevant data of processor state.Represent that then another operating system starts and moved.At this moment, do not need to restart another operating system (that is, the second operating system).In this case, the data that the processor state with another operating system (the second operating system) of preserving before processor 13 can read is relevant (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.), and based on these data recover the before processor state when the second operating system is switched to the first operating system.Therefore, can when the first operating system is switched to the second operating system, recover original task or the program of in the second operating system, carrying out, terminal device is reduced to the state when the second operating system is switched.In this case, because therefore the relevant data of the processor state with another operating system (the second operating system) of preserving before only needing to read have greatly reduced the required time of switching operating system.
Similarly, the second operating system (as, Win 8) start after, and the user wish to use another operating system (as, android) time, in response to default switching command, processor 13 is preserved the current processor state of the second operating system, then the second operating system is switched to the first operating system.
Particularly, processor 13 in response to the switching command of operating system preserve processor 13 the current processor state (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.).Then, the relevant data of the processor state with another operating system (the first operating system) of preservation before whether processor 13 checks and exist.If there is no such data represent that then another operating system does not also start.At this moment, need to start another operating system (that is, the first operating system).In this case, processor 13 can start by second firmware corresponding with the first operating system this first operating system (as, android).Here, because the first operating system has resided in the internal memory 12, therefore save the process that the first operating system is imported to internal memory 12, reduced thus the required time of switching of operating system.
In addition, if the relevant data of the processor state with another operating system (the first operating system) of preserving before existing.Represent that then another operating system starts and moved.At this moment, do not need to restart another operating system (the first operating system).In this case, the data that the processor state with another operating system (the first operating system) of preserving before processor 13 can read is relevant (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.), and based on these data recover the before processor state when the first operating system is switched to the second operating system.Therefore, can when the second operating system is switched to the first operating system, recover original task or the program of in the first operating system, carrying out, terminal device is reduced to the state when the first operating system is switched.In this case, because the relevant data of the processor state with another operating system (the first operating system) of preserving before only needing to read, and do not need to restart the first operating system, therefore greatly reduced the required time of switching operating system.
Next, support the method that operating system is switched fast with reference to Fig. 2 description according to the terminal device that makes of the embodiment of the invention.Fig. 2 is that diagram is supported the process flow diagram of the method that operating system is switched fast according to the terminal device that makes of the embodiment of the invention.
As shown in Figure 2, at step S201, the startup command in response to default internally deposits into capable initialization based on the first firmware.
Particularly, after receiving predetermined startup command, processor 13 begin to load the first firmware and based on this first firmware to a part of hardware of terminal device carry out initialization (as, processor 13 and internal memory 12).
At step S202, internal memory is divided into the first storage area and the second storage area.
Particularly, after based on the first firmware internal memory 12 being carried out initialization, processor 13 is divided into the first storage area and the second storage area based on the first firmware with internal memory 12.For example, the size of supposing internal memory 12 is 512MB, and processor 13 can be divided into internal memory 12 based on the first firmware two storage areas (the first storage area and the second storage area) of 256MB.In addition, the invention is not restricted to this, can as the case may be internal memory 12 be divided into unequal two storage areas.For example, if the first operating system takies more memory headroom, and the second operating system committed memory space is less, distribute more storage area as the first storage area then can for the first operating system, and distribute less storage area as the second storage area can for the second operating system.
At step S203, the first operating system is imported in the first storage area, and the second operating system is imported in the second storage area.
Particularly, processor 13 can be based on the instruction in the first firmware, the first operating system is imported (writing) in the presumptive area of the first storage area of internal memory 12, and the second operating system is imported (writing) in the presumptive area of the second storage area of internal memory 12.For example, processor 13 can import to the first operating system in the first storage area in the zone that first address begins, and the second operating system can be imported in the second storage area in the zone that first address begins.Obviously, the first operating system and the second operating system can also be imported to respectively on any storage space in the first storage area and the second storage area.
At step S204, select to load one of the second firmware and the 3rd firmware.
Particularly, the first operating system is being imported (writing) to the first storage area of internal memory 12, and the second operating system is imported (writing) after the second storage area of internal memory 12, and processor 13 can select to load the second firmware or the 3rd firmware based on the first firmware.For example, can dispose the parameter (for example, 0 corresponding to the first operating system, and 1 corresponding to the second operating system) of the first firmware so that processor 13 can determine to need to load the second firmware or the 3rd firmware.In addition, the first firmware can also be further carries out initialization to the display unit (not shown) of terminal device so that can be on terminal device demonstration information.In this case, processor 13 can show that at display unit choice menus is for user selection the first operating system or the second operating system based on the instruction of the first firmware.At this moment, processor 13 can determine user selection which firmware (or operating system) based on user's input.
In addition, according to another embodiment of the invention, select to load the second firmware if method shown in Figure 2 can further include, then load the first operating system based on the second firmware from the first storage area; If perhaps select to load the 3rd firmware, then load the step of the second operating system based on the 3rd firmware from the second storage area.
Particularly, if based on predetermined setting or user's input selection load in the situation of the second firmware, processor 13 loads these second firmwares, and loads the first operating system based on this second firmware.For example, be android in the first operating system, and the second firmware is in the situation of bootloader, if based on predetermined setting or user's input selection load in the situation of bootloader firmware, processor 13 loads the bootloader firmware, and loads android operating system based on the bootloader firmware.
Here, during based on the second firmware loads the first operating system, the second firmware defines the memory space that the first operating system can be used to the first operating system at processor 13.In this case, it is invisible for the first operating system that the second firmware need to limit this second storage area, that is to say that the first operating system can not use the second storage area in the internal memory 12, and it only can use the first storage area in the internal memory 12.Here, can notify the information of the distribution of relevant internal memory 12 to the second firmware by the first firmware, perhaps can in the second firmware, set in advance the information relevant with the scope of the first storage area.
In addition, if based on predetermined setting or user's input selection load in the situation of the 3rd firmware, processor 13 loads the 3rd firmware, and loads the second operating system based on the 3rd firmware.For example, be Win 8 in the second operating system, and the second firmware is in the situation of UEFI, if based on predetermined setting or user's input selection load in the situation of UEFI firmware, processor 13 loads this UEFI firmware, and loads Win 8 operating systems based on the UEFI firmware.
Similarly, during based on the 3rd firmware loads the second operating system, the 3rd firmware defines the memory space that the second operating system can be used to the second operating system at processor 13.In this case, it is invisible for the second operating system that the 3rd firmware need to limit this first storage area.Here, can notify the information of the distribution of relevant internal memory 12 to the 3rd firmware by the first firmware, perhaps can in the 3rd firmware, set in advance the information relevant with the scope of the second storage area.
In addition, according to another embodiment of the invention, method shown in Figure 2 can further include the step of switching between the first operating system and the second operating system.
For example, behind the first os starting, in response to default switching command, processor 13 is preserved its current processor state, and the first operating system is switched to described the second operating system
Particularly, during terminal device moves the first operating system, processor 13 in response to the switching command of operating system preserve processor 13 the current processor state (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.).Then, the relevant data of the processor state with another operating system (the second operating system) of preservation before whether processor 13 checks and exist.If there is no such data represent that then another operating system does not also start.At this moment, need to start another operating system (the second operating system).In this case, processor 13 can start by three firmware corresponding with the second operating system this second operating system (as, Win 8).Here, because the second operating system has resided in the internal memory 12, therefore save the process that the second operating system is imported to internal memory 12, reduced thus the required time of switching of operating system.
In addition, if the relevant data of the processor state with another operating system (the second operating system) of preserving before existing.Represent that then another operating system starts and moved.At this moment, do not need to restart another operating system (the second operating system).In this case, the data that the processor state with another operating system (the second operating system) of preserving before processor 13 can read is relevant (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.), and based on these data recover the before processor state when the second operating system is switched to the first operating system.Therefore, can when the first operating system is switched to the second operating system, recover original task or the program of in the second operating system, carrying out, terminal device is reduced to the state when the second operating system is switched.
Similarly, behind the second os starting, in response to default switching command, processor 13 is preserved its current processor state, and the second operating system is switched to the first operating system.
Particularly, during terminal device moves the first operating system, processor 13 in response to the switching command of operating system preserve processor 13 the current processor state (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.).Then, the relevant data of the processor state with another operating system (the first operating system) of preservation before whether processor 13 checks and exist.If there is no such data represent that then another operating system does not also start.At this moment, need to start another operating system (that is, the first operating system).In this case, processor 13 can start by second firmware corresponding with the first operating system this first operating system (as, android).Here, because the first operating system has resided in the internal memory 12, therefore save the process that the first operating system is imported to internal memory 12, reduced thus the required time of switching of operating system.
In addition, if the relevant data of the processor state with another operating system (the first operating system) of preserving before existing.Represent that then another operating system starts and moved.At this moment, do not need to restart another operating system (the first operating system).In this case, the data that the processor state with another operating system (the first operating system) of preserving before processor 13 can read is relevant (as, the data of each register in the processor, breakpoint of current process etc., memory address of process transfer data etc.), and based on these data recover the before processor state when the first operating system is switched to the second operating system.Therefore, can when the second operating system is switched to the first operating system, recover original task or the program of in the first operating system, carrying out, terminal device is reduced to the state when the first operating system is switched.In this case, because the relevant data of the processor state with another operating system (the first operating system) of preserving before only needing to read, and do not need to restart the first operating system, therefore greatly reduced the required time of switching operating system.
In addition, the invention is not restricted to the order that Fig. 2 describes, for example, step S204 can be before step S203.In this case, can be replaced by the second firmware and the 3rd firmware the processing of the first firmware completing steps S203.Namely, carry out respectively the processing that loads the first operating system and the second operating system by the second firmware and the 3rd firmware.
Particularly, can in the second firmware (rather than first firmware), be provided for loading the instruction that the first operating system is imported to the presumptive area of the first storage area, and in the 3rd firmware (rather than first firmware), be provided for loading the instruction that the first operating system is imported to the presumptive area of the first storage area.
In this case, based on the first firmware internal memory 12 is divided into the first storage area and the second storage area (step S202) afterwards at processor 13, processor selects to need to load the second firmware or the 3rd firmware (step S204) based on the first firmware.If processor 13 based on the first firmware (as, with reference to predetermined setting or user's input) selected to load the second firmware, then processor 13 loads this second firmware, based on the second firmware that loads with the first operating system (as, android) import to the first storage area of internal memory 12, then load this first operating system from the first storage area, in order to start this first operating system.In addition, if processor 13 based on the first firmware (as, the setting that reference is predetermined or user's input) selection loading the 3rd firmware, then processor 13 based on the 3rd firmware that loads with the second operating system (as, Win 8) import to the second storage area of internal memory 12, then load this second operating system from the second storage area, in order to start this first operating system.
By above-mentioned configuration, by the first firmware the first operating system and the second operating system are imported in the second storage unit (internal memory) in advance, then start the first operating system and the second operating system based on the second firmware corresponding with the first operating system and the second operating system and the 3rd firmware, can make terminal device support neatly multiple incompatible operating system.In addition, because the first operating system and the second operating system have resided in the second storage unit (internal memory), therefore in the process of switching operating system, save the process that loads another operating system, shortened thus the required time of switching operating system.
Describe each embodiment of the present invention in the above in detail.Yet, it should be appreciated by those skilled in the art that without departing from the principles and spirit of the present invention, can carry out various modifications to these embodiment, combination or sub-portfolio, and such modification should fall within the scope of the present invention.

Claims (10)

1. one kind makes terminal device support the method that operating system is switched fast, and described terminal device comprises the first storage unit for storage the first firmware, the second firmware, the 3rd firmware, the first operating system and the second operating system; And second storage unit, the access speed of described the second storage unit is greater than the access speed of described the first storage unit, and described the second storage unit comprises the first storage area and the second storage area; Described method comprises:
In response to default startup command, based on described the first firmware the second storage unit is carried out initialization;
Select to load one of described the second firmware and the 3rd firmware.
2. the method for claim 1 further comprises:
If select to load described the second firmware, then based on described the second firmware that loads described the first operating system imported to described the first storage area, and load described the first operating system from described the first storage area; Perhaps
If select to load described the 3rd firmware, then based on described the 3rd firmware that loads described the second operating system imported to described the second storage area, and load described the second operating system from described the second storage area.
3. the method for claim 1, further comprise: after the second storage unit is divided into the first storage area and the second storage area, based on the first firmware described the first operating system is imported in described the first storage area and with described the second operating system and to import in described the second storage area; And
If select to load described the second firmware, then load described the first operating system based on described the second firmware that loads from described the first storage area; Perhaps
If select to load described the 3rd firmware, then load described the second operating system based on described the 3rd firmware that loads from described the second storage area.
4. method as claimed in claim 3, wherein
It is invisible for described the first operating system that described the second firmware limits described the second storage area; And
It is invisible for described the second operating system that described the 3rd firmware limits described the first storage area.
5. the method for claim 1 further comprises:
Behind described the first os starting, in response to default switching command, preserve current first state of described processing unit, and described the first operating system is switched to described the second operating system; Perhaps
Behind described the second os starting, in response to default switching command, preserve current second state of described processing unit, and described the second operating system is switched to described the first operating system.
6. terminal device comprises:
The first storage unit, the first firmware, the second firmware, the 3rd firmware, the first operating system and the second operating system are stored in configuration;
The second storage unit, the access speed of wherein said the second storage unit is greater than the access speed of described the first storage unit; And
Processing unit, configuration loads described the first operating system or described the second moral conduct system,
Wherein in response to default startup command, described processing unit carries out initialization based on described the first firmware to the second storage unit, described the second storage unit is divided into the first storage area and the second storage area, and described processing unit selects to load described the second firmware or the 3rd firmware based on described the first firmware.
7. terminal device as claimed in claim 6, wherein
If select to load described the second firmware, then based on described the second firmware that loads described the first operating system imported to described the first storage area, and load described the first operating system from described the first storage area; Perhaps
If select to load described the 3rd firmware, then based on described the 3rd firmware that loads described the second operating system imported to described the second storage area, and load described the second operating system from described the second storage area.
8. terminal device as claimed in claim 6, wherein
After the second storage unit is divided into the first storage area and the second storage area, based on the first firmware described the first operating system is imported in described the first storage area and with described the second operating system and to import in described the second storage area;
If described processing unit is selected to load described the second firmware, then described processing unit loads described the first operating system based on described the second firmware that loads from described the first storage area; Perhaps
If described processing unit is selected to load described the 3rd firmware, then described processing unit loads described the second operating system based on described the 3rd firmware that loads from described the second storage area.
9. terminal device as claimed in claim 8, wherein
It is invisible for described the first operating system that described the second firmware limits described the second storage area; And
It is invisible for described the second operating system that described the 3rd firmware limits described the first storage area.
10. terminal device as claimed in claim 6, wherein
Behind described the first os starting, in response to default switching command, described processing unit is preserved its first current state, and described the first operating system is switched to described the second operating system; Perhaps
Behind described the second os starting, in response to default switching command, described processing unit is preserved its second current state, and described the second operating system is switched to described the first operating system.
CN2011102808599A 2011-09-20 2011-09-20 Terminal equipment and method for enabling same to support quick switching of operating systems Pending CN103019833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102808599A CN103019833A (en) 2011-09-20 2011-09-20 Terminal equipment and method for enabling same to support quick switching of operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102808599A CN103019833A (en) 2011-09-20 2011-09-20 Terminal equipment and method for enabling same to support quick switching of operating systems

Publications (1)

Publication Number Publication Date
CN103019833A true CN103019833A (en) 2013-04-03

Family

ID=47968464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102808599A Pending CN103019833A (en) 2011-09-20 2011-09-20 Terminal equipment and method for enabling same to support quick switching of operating systems

Country Status (1)

Country Link
CN (1) CN103019833A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978231A (en) * 2015-07-10 2015-10-14 上海斐讯数据通信技术有限公司 Multisystem device based on internal storage partitions and loading and switching method thereof
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
WO2016074616A1 (en) * 2014-11-13 2016-05-19 Mediatek Inc. Dual-system architecture with fast recovery and switching of operating system
WO2016101712A1 (en) * 2014-12-22 2016-06-30 小米科技有限责任公司 Firmware recovery method, device and terminal
WO2016106934A1 (en) * 2014-12-29 2016-07-07 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for switching operating system
CN110309018A (en) * 2019-07-02 2019-10-08 深圳市小兔充充科技有限公司 Charging equipment system switching method, charging equipment and readable storage medium storing program for executing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287187A (en) * 2007-04-12 2008-10-15 奥科无线通信技术(深圳)有限公司 Intelligent mobile phone and operating method of the operation system
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
US20110018717A1 (en) * 2009-07-23 2011-01-27 Casio Computer Co., Ltd. Animal emotion display system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287187A (en) * 2007-04-12 2008-10-15 奥科无线通信技术(深圳)有限公司 Intelligent mobile phone and operating method of the operation system
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
US20110018717A1 (en) * 2009-07-23 2011-01-27 Casio Computer Co., Ltd. Animal emotion display system and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
WO2016074616A1 (en) * 2014-11-13 2016-05-19 Mediatek Inc. Dual-system architecture with fast recovery and switching of operating system
WO2016101712A1 (en) * 2014-12-22 2016-06-30 小米科技有限责任公司 Firmware recovery method, device and terminal
US10528434B2 (en) 2014-12-22 2020-01-07 Xiaomi Inc. Method, device and terminal for restoring firmware program
WO2016106934A1 (en) * 2014-12-29 2016-07-07 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for switching operating system
CN104978231A (en) * 2015-07-10 2015-10-14 上海斐讯数据通信技术有限公司 Multisystem device based on internal storage partitions and loading and switching method thereof
CN110309018A (en) * 2019-07-02 2019-10-08 深圳市小兔充充科技有限公司 Charging equipment system switching method, charging equipment and readable storage medium storing program for executing
CN110309018B (en) * 2019-07-02 2022-03-01 深圳市小兔充充科技有限公司 Charging equipment system switching method, charging equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN103019833A (en) Terminal equipment and method for enabling same to support quick switching of operating systems
US20120096256A1 (en) Mobile device and method for supporting hibernation function
CN109905770B (en) Terminal starting method and device and terminal
US20130282676A1 (en) Garbage collection-driven block thinning
CN102750174A (en) Method and device for loading file
CN102831173A (en) Memory expanding method, device and terminal based on Android system
US8285978B2 (en) Storage medium storing master boot record, computer system having the same and booting method of the computer system
CN103793256A (en) Method for management of memory cards, and electronic device
CN103809871A (en) Processing method and mobile terminal for icon of application program
CN105335178B (en) Starting control method and device
CN102238265A (en) Mobile phone and method for realizing double-system mobile phone
CN105874428A (en) Technologies for operating system transitions in multiple-operating-system environments
US20140115308A1 (en) Control method, control device and computer system
CN103984565A (en) Method and electronic device of file system prefetching and boot-up method
CN102693144A (en) Method for upgrading capacitive screen firmware used for Android mobile terminal
CN102880477A (en) Method for realizing computer start and computer
CN105224402A (en) A kind of multisystem fast switch over method and system
CN103870298A (en) Switching method and electronic device
CN102508596A (en) Method for carrying out rapid Internet operation on mobile equipment
US8892856B2 (en) Firmware flashing method and related computer system
CN105389105A (en) Method and system for moving application function interface, and mobile device
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN102664990A (en) Installation and display method of dynamic wallpaper of Android mobile phone
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
US20140006728A1 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20130403