Methods for dynamically selecting a booting operating system and apparatuses using the same
First Claim
Patent Images
1. A method for dynamically selecting a booting OS (Operating System), executed by a micro-controller of an apparatus, comprising:
- detecting a selection signal output from a selection unit;
determining which one of a first ROM (Read-Only Memory) and a second ROM is to be activated according to the selection signal, wherein the first ROM stores first firmware corresponding to a first OS, and the second ROM stores second firmware corresponding to a second OS having configurations different from those of the first OS;
asserting a CS (Chip Select) signal of the determined ROM by the micro-controller, wherein the asserted CS signal is one of a first CS signal of the first ROM and a second CS signal of the second ROM;
loading and executing a firmware stored in the determined ROM via a shared data line between the first ROM and the second ROM based on the asserted CS signal, wherein the first ROM and the second ROM are connected to the micro-controller via the shared data line;
initiating hardware of the apparatus by the first firmware or the second firmware corresponding to the determined ROM; and
loading and executing the first OS or the second OS corresponding to the executed firmware in response to the hardware of the apparatus having been initiated by the first firmware or the second firmware, wherein the first OS and the second OS are stored in a storage device,wherein the selection signal is indicated by a logic level or a toggling,wherein the ROM other than the determined ROM is disabled, and data of the ROM other than the determined ROM cannot be accessed.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention introduces a method for dynamically selecting a booting OS (Operating System), executed by a micro-controller of an apparatus, which contains at least the following steps. The micro-controller detects a selection signal output from a selection unit, and determines which one of two ROMs (Read-Only Memories) is to be activated accordingly. After a CS (Chip Select) signal of the determined ROM is asserted, a firmware stored in the determined ROM is loaded and executed, and an OS corresponding to the firmware, which is stored in a storage device, is loaded and executed.
5 Citations
8 Claims
-
1. A method for dynamically selecting a booting OS (Operating System), executed by a micro-controller of an apparatus, comprising:
-
detecting a selection signal output from a selection unit; determining which one of a first ROM (Read-Only Memory) and a second ROM is to be activated according to the selection signal, wherein the first ROM stores first firmware corresponding to a first OS, and the second ROM stores second firmware corresponding to a second OS having configurations different from those of the first OS; asserting a CS (Chip Select) signal of the determined ROM by the micro-controller, wherein the asserted CS signal is one of a first CS signal of the first ROM and a second CS signal of the second ROM; loading and executing a firmware stored in the determined ROM via a shared data line between the first ROM and the second ROM based on the asserted CS signal, wherein the first ROM and the second ROM are connected to the micro-controller via the shared data line; initiating hardware of the apparatus by the first firmware or the second firmware corresponding to the determined ROM; and loading and executing the first OS or the second OS corresponding to the executed firmware in response to the hardware of the apparatus having been initiated by the first firmware or the second firmware, wherein the first OS and the second OS are stored in a storage device, wherein the selection signal is indicated by a logic level or a toggling, wherein the ROM other than the determined ROM is disabled, and data of the ROM other than the determined ROM cannot be accessed. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus for dynamically selecting a booting OS (Operating System), comprising:
-
a strapping pin; and a micro-controller, coupled to the strapping pin, and configured for; detecting a selection signal output from the strapping pin; determining which one of a first ROM (Read-Only Memory) and a second ROM is to be activated according to the selection signal, wherein the first ROM stores first firmware corresponding to a first OS, and the second ROM stores second firmware corresponding to a second OS having configurations different from those of the first OS; asserting a CS (Chip Select) signal of the determined ROM, wherein the asserted CS signal is one of a first CS signal of the first ROM and a second CS signal of the second ROM; loading and executing a firmware stored in the determined ROM via a shared data line between the first ROM and the second ROM based on the asserted CS signal, wherein the first ROM and the second ROM are connected to the micro-controller via the shared data line; initiating hardware of the apparatus by the first firmware or the second firmware corresponding to the determined ROM; and loading and executing the first OS or the second OS corresponding to the executed firmware in response to the hardware of the apparatus having been initiated by the first firmware or the second firmware, wherein the first OS and the second OS are stored in a storage device, wherein the ROM other than the determined ROM is disabled, and data of the ROM other than the determined ROM cannot be accessed. - View Dependent Claims (7)
-
-
8. An apparatus for dynamically selecting a booting OS (Operating System), comprising:
-
a selection unit comprising a first button and a second button; and a micro-controller, coupled to the selection unit, and configured for; detecting a selection signal output from the selection unit; determining which one of a first ROM (Read-Only Memory) and a second ROM is to be activated according to the selection signal, wherein the first ROM stores first firmware corresponding to a first OS, and the second ROM stores second firmware corresponding to a second OS having configurations different from those of the first OS; asserting a CS (Chip Select) signal of the determined ROM, wherein the asserted CS signal is one of a first CS signal of the first ROM and a second CS signal of the second ROM; loading and executing a firmware stored in the determined ROM via a shared data line between the first ROM and the second ROM based on the asserted CS signal, wherein the first ROM and the second ROM are connected to the micro-controller via the shared data line; initiating hardware of the apparatus by the first firmware or the second firmware corresponding to the determined ROM; and loading and executing a first OS or a second OS corresponding to the executed firmware in response to the hardware of the apparatus having been initiated by the first firmware or the second firmware wherein the first OS and the second OS are stored in a storage device, wherein the micro-controller, during a detection time period, when detecting the selection signal corresponding to the first button comprises a toggling, determines to activate the first ROM; and
when detecting the selection signal corresponding to the second button comprises a toggling, determines to activate the second ROM,wherein the ROM other than the determined ROM is disappeared from a system, and data of the ROM other than the determined ROM cannot be accessed.
-
Specification