TWI248024B - Multi-key booting system and method in an environment with multiple operation systems - Google Patents

Multi-key booting system and method in an environment with multiple operation systems Download PDF

Info

Publication number
TWI248024B
TWI248024B TW92137811A TW92137811A TWI248024B TW I248024 B TWI248024 B TW I248024B TW 92137811 A TW92137811 A TW 92137811A TW 92137811 A TW92137811 A TW 92137811A TW I248024 B TWI248024 B TW I248024B
Authority
TW
Taiwan
Prior art keywords
mbr
operating system
boot
key
identification information
Prior art date
Application number
TW92137811A
Other languages
Chinese (zh)
Other versions
TW200521849A (en
Inventor
Chaucer Chiu
Amos Huang
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW92137811A priority Critical patent/TWI248024B/en
Publication of TW200521849A publication Critical patent/TW200521849A/en
Application granted granted Critical
Publication of TWI248024B publication Critical patent/TWI248024B/en

Links

Abstract

A multi-key booting system and method in an environment with multiple operation systems contain a booting key logic unit, an EC chip and a RAM thereof, a look-up module, and a loading module. First, provide plural booting keys connected with the EC chip, and customize plural MBRs. Then, detect the corresponding electrical signal change of the EC chip resulted from pushing a specific key, and write the corresponding identification information into the RAM of the EC chip. Next seek and load in the corresponding MBR according to the identification information. Finally, boot the corresponding operation system according to the loaded MBR. The present invention can reduce the occupation of system resources, elevate the booting speed, and reduce user's interference with system.

Description

1248024 五、發明說明(1) 【發明所屬之技術領域】 本發明是關於一種電腦作業系統的開機引導系統及方 法,特別是關於一種具有多重作業系統之電腦的多開機按 鍵引導系統及方法。 【先前技術】 啟動一台電腦和載入作業系統的過程通常被叫 做’’bootstrap process"或簡單地叫’’booting”。各種不同 的作業系統啟動流程不盡相同,請參考第1圖,為 W i η 9 X / D 0 S的啟動流程示意圖,在第一階段,系統加電自 檢 POST過程(步驟 101) ,POST是 Power On Self Test的 縮寫,也就是加電自檢的意思,微機執行記憶體F F F F 0 H處 的程式(這裏是一段固化的ROM程式),對系統的硬體 (包括記憶體)進行檢查; 第二階段,讀取分區記錄和引導記錄(步驟1 〇 2) 〇 當微機檢查到硬體正常並與CMOS設置相符後,按照CMOS設 置從相應設備啟動(這裏假設從硬碟啟動),讀取硬碟的 分區記錄(DPT)和主引導記錄(MBR); 第三階段,讀取DOS引導記錄(步驟1 〇3)。微機正確 讀取分區記錄和主引導記錄後,如果主引導記錄和分區表 校驗正確,則執行主引導記錄並進一步讀取D〇s引導記錄 (位於每一個主分區的第一個磁區),然後執行該D°〇s引、 導冗錄; 第四階段,裝載系統隱含文件(步驟1〇4)。將D〇s李 統的隱含文件Ι〇· SYS入記憶體,载入基本的文件系統’、BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to a booting system and method for a computer operating system, and more particularly to a multi-boot button guiding system and method for a computer having multiple operating systems. [Prior Art] The process of starting a computer and loading the operating system is usually called ''bootstrap process' or simply ''booting'. The startup process of different operating systems is different, please refer to Figure 1, for W i η 9 X / D 0 S start-up flow diagram, in the first stage, the system power-on self-test POST process (step 101), POST is the abbreviation of Power On Self Test, that is, the meaning of power-on self-test, microcomputer Execute the program at memory FFFF 0 H (here is a solidified ROM program) to check the hardware (including memory) of the system; the second stage, read the partition record and boot record (step 1 〇 2) 〇 When the microcomputer checks that the hardware is normal and matches the CMOS settings, it starts from the corresponding device according to the CMOS settings (here, it is assumed to boot from the hard disk), and reads the partition record (DPT) and the master boot record (MBR) of the hard disk; Stage, read the DOS boot record (step 1 〇 3). After the microcomputer reads the partition record and the master boot record correctly, if the master boot record and the partition table check are correct, execute the master boot record and Read the D〇s boot record in one step (located in the first magnetic area of each primary partition), and then execute the D°〇s guide and guide the redundancy; In the fourth stage, load the system hidden file (step 1〇4) Put the hidden file of D〇s Li Tong into the memory and load the basic file system',

1248024 五、發明說明(2) " FAT這時候般會出現Starting Windows 9x···的標 言态’ 10· SYS將MS. SYS讀入記憶體,並處理system, dat和1248024 V. Invention description (2) " FAT will appear as the starting state of Starting Windows 9x.] 10 SYS reads MS. SYS into memory and processes system, dat and

User.dat文件,載入磁片壓縮程式; 第五階段’實D0^式配置(步驟1 05)。系統隱含文 件裝載完成[微機將執行系統隱含文件,並執行系統配置 文件(Config.sys) ’栽入c〇nfig SyS中定義的各種驅動 程式; 第/、p白#又’调入命令解釋程式(c〇mmand com)(步驟 Π)、'产統褒載命令管理程式,以便對系統的各種操作 π :進仃協调管理(我們所使用的D丨『、c〇py等内部命令 就疋由Command· com提供的); 第:#又執行批次檔案(Autoexec.bat)(步驟 第八阡广,細恭將一步一步地執行批次檔案中的各條命令; wi /又/认載入Wln.C〇m(步驟108) 。Win.cora負責將 此啟動完畢。 動知式和啟動執行文件加以執行,至 用戶通過以後,硬碟被重定,應將根據 從硬磾啟動2從軟碟、硬碟或光碟機進行啟動。以 狀態導:rBR,然後檢查分區表,的 給活動分區的引導程i,ϊί導二,引導記錄將控制權交 〇, side 0, =。f '軌他面1磁區(…―冗 ’匕括硬碟主引導記錄MBR ( MainUser.dat file, load the disk compression program; Stage 5 'real D0^ configuration (step 1 05). The system implicit file loading is completed [the microcomputer will execute the system implicit file and execute the system configuration file (Config.sys) 'planted into the various drivers defined in c〇nfig SyS; the /, p white #又' call command Interpretation program (c〇mmand com) (step Π), 'production system command management program, in order to perform various operations on the system π: coordinated management (we use internal commands such as D丨, c〇py, etc.)疋 Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Command Wl.C〇m is loaded (step 108). Win.cora is responsible for starting this. The function and startup executable file are executed. After the user passes, the hard disk is reset and should be started according to the hard drive. Boot from a floppy disk, hard drive or CD player. In the state guide: rBR, then check the partition table, the boot path i to the active partition, ϊ 导 guide 2, the boot record will transfer control, side 0, =.f 'Track his face 1 magnetic zone (... "Quiet') including the hard disk master boot record MBR (Main

1248024 五、發明說明(3)1248024 V. Description of invention (3)

Boot Record)和分區表 DPT( Disk Partition Table), 大小為512位元組,其中,〇1? 446位元組(0 0 0 0[1--01601〇,0?了64位元組(〇16£--01卩1)),結束標誌2位元 組(55 AA)。主引導記錄的作用就是檢查分區表是否正 確以及確定哪個分區為引導分區,並在程式結束時把該分 區的啟動程式(例如DOS的10· SYS)調入記憶體交予控制 權。分區表以80H或00H為開始標誌,以55AAH為結束標 誌,共6 4位元組,位於本磁區的最末端。 主引導磁區結構如下: 0 0 0H--08AH MBR啟動程式(尋找開機分區) 08BH--0D9H MBM 動字串 0DAH--1BCH 保留(π 0’1 ) 1ΒΕΗ--1FDH硬碟分區表 1FEH--1FFH 結束標誌(55ΑΑ) 硬碟分區表〇?1\總共64位元組(016£_-01?〇),每個 分區占1 6個位元組,所以可以表示四個分區,這也就是為 什麼一個磁片的主分區和擴展分區之和總共只能有四個的 原因。每個分區内部結構定義如下表所示。Boot Record) and the partition table DPT (Disk Partition Table), the size is 512 bytes, of which 〇1? 446 bytes (0 0 0 0[1--01601〇, 0? 64-bit tuple (〇 16£--01卩1)), the end mark is 2 bytes (55 AA). The role of the master boot record is to check that the partition table is correct and to determine which partition is the boot partition, and at the end of the program, the partition's boot program (such as DOS's 10 SYS) is transferred to the memory for control. The partition table starts with 80H or 00H and ends with 55AAH. A total of 64 bytes are located at the end of the magnetic zone. The main boot magnetic domain structure is as follows: 0 0 0H--08AH MBR startup program (look for boot partition) 08BH--0D9H MBM dynamic string 0DAH--1BCH reserved (π 0'1) 1ΒΕΗ--1FDH hard disk partition table 1FEH- -1FFH End Flag (55ΑΑ) Hard Disk Partition Table? 1\Total 64-bit tuples (016£_-01?〇), each partition occupies 16 bytes, so it can represent four partitions, which also That is why there are only four reasons for the sum of the primary and extended partitions of a disk. The internal structure of each partition is defined as shown in the following table.

第7頁Page 7

1248024 五、發明說明(4)1248024 V. Description of invention (4)

而作業系統引導磁區0BR 位於硬碟的〇磁軌1柱面1磁區 那些以多重引導方式啟動的系 展分區的第一個磁區),是作 (OS Boot Record) (這是對於DOS來說的,對於 統則位於相應的主分區/擴 業系統可直接訪問的第一個The operating system boot sector 0BR is located on the hard disk's 〇 track 1 cylinder 1 magnetic area of the first magnetic area of the extended partition that is booted in multiple boot mode), is OS Boot Record (this is for DOS) In other words, the first one is directly accessible to the corresponding primary partition/expansion system.

Offset Length(bytes) 1 ) Q v· l ΤΛ 十 1 〇 n Oh 1 -—---------- Cb u I 1 p L 丄 U li t區類型:〇 〇表示非活動分 區’80表示活動分區;其他 無效分區。 lh 3 分區的起始位址(面/磁區/ 磁轨),通常第一分區的起始 位址開始於1面0道1磁 區’因此這三個位元組應爲 〜_ 010100 〇 4h 1 的作業系統的類型 _ 5h 3 結束地址(面/扇/道) 8h 4 _ 分區起始邏輯磁區 及 Ch - 4 __^區佔用的總磁區數(¾¾Offset Length(bytes) 1 ) Q v· l ΤΛ Ten 1 〇n Oh 1 -—---------- Cb u I 1 p L 丄U li t Area type: 〇〇 indicates inactive partition' 80 represents the active partition; other invalid partitions. Lh 3 The starting address of the partition (face/magnetic area/track), usually the starting address of the first partition starts at 1 side 0 track 1 magnetic area 'so these three bytes should be ~_ 010100 〇 Type of operating system 4h 1 _ 5h 3 End address (face/fan/lane) 8h 4 _ Partition start logical magnetic area and total magnetic area occupied by Ch - 4 __^ area (3⁄43⁄4

磁區,它也包括一個引導程式和一個被稱為BPB ( BIOS Parameter Block)的本分區參數記錄表。其實每個邏輯 分區都有一個0BR,其參數視分區的大小、作業系統的類 別而有所不同。引導程式的主要任務是判斷本分區根目錄 前兩個文件是否為作業系統的引導文件(例如MSD0S或者 起源於 MSD0S的 Win9x/Me的 10. SY% MSDOS· SYS)。如是,The magnetic zone, which also includes a bootloader and a partition parameter record table called BPB (BIOS Parameter Block). In fact, each logical partition has a 0BR, and its parameters vary depending on the size of the partition and the type of the operating system. The main task of the boot program is to determine whether the first two files in the root directory of the partition are the boot files of the operating system (for example, MSD0S or 10.SY% MSDOS·SYS of Win9x/Me originating from MSD0S). If so,

1248024 五、發明說明(5) 就把第一個文件讀入記憶體,並把控制權交予該文 件。BPB參數塊記錄著本分區的起始磁區、結束磁區、文 件存儲格式、硬碟介質描述符、根目錄大小、fat個數、 分配單元(A1 location Uni t,以前也稱之為簇)的大小 等重要參數。0BR由高級格式化程式產生(例如DOS的 Format.com) 〇 而另一方面’現有的電腦作業系統功能已遠遠超出了 其概念本身,其已經成為一個大雜燴,融合了許多模組、 元件、應用程式等等。功能強大了所帶來的必然結果就是 針對性不強、效率降低,不論要做什么工作,每次必須啟 動整個作業系統,相對來 ,. ^ β ^ ,戶/t佔用 糸綠二欠、店“上w 來成,啟動速度就會減慢 ,功耗相應增 0而 法進行 的系統貝源也相對增加 加,假若開為了某此不…一負擔加重 且,針ff久# Α π ‘ 女全的服務就容易受到攻擊 且针對各種功能必猪 正常的工作。對用卢办、文羞特定的軟體,否則就無 備一定電腦專業知來說,要操控整個作業系統就必顽/、 這從作業系統的載於推廣使用。 沾善出, 例如,即便用戶尸Β 所需時間就可以很明顯的看 仍然也要經過芦4 =想打開電腦看看電影,聽聽音樂,但 多功能是用戶用不到=間來等待系統啟動,而所載入的許 針對上述問題,S ‘ 載程式引導多個作紫別比較常見的解決方式是用引導裝 接通電源,在程式^ 、、先,也就是說,通過一個開機松紐 選擇介面,讓用=導過程中,出現一個多重作業系統的 用戶遣行選擇,以支援多重啟動功能,開發 1248024 五、發明說明(6) 人員的工作量僅僅集中在定制特定功能的作業系統、相關 元件和應用程式上,針對特定功能可以將作業系統做的更 專更強。其實這也就是作業系統發展的兩個方向,分別向 廣度和深度去著眼。 但上述多重引導的方式,其仍要經過一定的等待時 間,才能出現選擇介面,對於使用者而言,還是不能直達 所需的作業系統,必須經過選擇才能啟動所需的功能,如 此,雖然定制了作業系統,但系統啟動的速度並為切實得 到提高,而且還引入了手工介入的步驟,限制了運行效 率,增加了使用難度以及出錯機率。 【發明内容】 本發明乃為解決上述問題而提供一種多重作業系統之 多鍵引導系統及方法,透過按下特定開機按鍵而啟動特定 作業系統,以減少系統資源的佔用,提高啟動速度,並減 少用戶對系統的干預。 本發明提供一種多重作業系統之多鍵引導系統,透過 設置多個開機按鍵,按下不同的按鍵載入不同的定制MBR (主引導記錄)而引導不同的作業系統,該引導系統包 括:開機按鍵邏輯單元,用以提供多個開機按鍵並在一按 鍵按下後產生相應的電信號;EC晶片及其RAM,與該邏輯 單元相連,用以回應該電信號而產生相應中斷處理,並針 對不同的開機按鍵在該EC RAM中寫入相應的標識資訊;查 詢模組,用以根據該EC RAM中的標識資訊查找相應的定制 MBR ;載入模組,用以根據該查詢情況而載入相應的MBR。1248024 V. INSTRUCTIONS (5) Read the first document into memory and give control to the file. The BPB parameter block records the starting magnetic area, the ending magnetic area, the file storage format, the hard disk medium descriptor, the root directory size, the number of fats, and the allocation unit (A1 location Uni t, formerly referred to as a cluster) of the partition. Important parameters such as size. 0BR is generated by advanced formatting programs (such as DOS Format.com). On the other hand, the existing computer operating system functions have gone far beyond the concept itself. It has become a hodgepodge, combining many modules, components, Apps and more. The inevitable result of powerful function is that the pertinence is not strong and the efficiency is reduced. No matter what work is to be done, the entire operating system must be started each time. Relatively, ^ β ^ , household / t occupy 糸 green owe, shop "On the w, the startup speed will slow down, the power consumption will increase by 0, and the system source will increase relative to the law. If it is opened for a certain one, the burden will increase and the needle ff is long # Α π ' The whole service is vulnerable to attack and the normal work of the pigs for various functions. For the software that uses Lu, the text is shy, otherwise there is no need for a certain computer professional knowledge, it is necessary to control the entire operating system. This is from the use of the operating system in the promotion. Smell out, for example, even if the time required by the user's corpse can be clearly seen still through the re 4 = want to open the computer to watch movies, listen to music, but multi-functional It is the user who can't wait for the system to start, and the loaded version is for the above problem. The more common solution for the S' program to boot multiple purples is to use the bootloader to turn on the power, in the program ^, First, also That is to say, through a boot-down selection interface, in the process of using the guide, a multi-operation system user selection option is displayed to support the multi-start function, and the development is 1248024. 5. The invention description (6) The workload of the personnel is only concentrated. In the customization of specific function operating systems, related components and applications, the operating system can be made more specialized and specific for specific functions. In fact, this is the two directions of the development of the operating system, focusing on breadth and depth. In the above multi-boot mode, it still has to wait for a certain amount of time before the selection interface appears. For the user, it is still not possible to directly reach the required operating system, and must be selected to start the required function, thus, although customized The operating system, but the speed of the system startup is actually improved, and the steps of manual intervention are introduced, which limits the operating efficiency, increases the difficulty of use and the probability of error. The present invention provides a solution to the above problems. Multi-key guidance system and method for multiple operating systems, by pressing The specific operating system is activated by a specific boot button to reduce the occupation of system resources, increase the startup speed, and reduce the user's intervention in the system. The present invention provides a multi-key guidance system for multiple operating systems, which is pressed by setting a plurality of power-on buttons. Different buttons load different custom MBRs (main boot records) to guide different operating systems. The boot system includes: a power-on button logic unit for providing a plurality of power-on buttons and generating corresponding electrical signals after a button is pressed. The EC chip and its RAM are connected to the logic unit for responding to the electrical signal to generate corresponding interrupt processing, and corresponding identification information is written in the EC RAM for different power-on buttons; the query module is configured to The identification information in the EC RAM is searched for a corresponding customized MBR; a loading module is configured to load the corresponding MBR according to the query condition.

第10頁 1248024Page 10 1248024

五、發明說明(7) 本發明進而提供一種多重作業系統之多鍵引導系統, 透過設置多個開機按鍵,按下不同的按鍵載入不同的定制 MBR (主引導記錄)而引導不同的作業系統,該引導方法 首先&仏夕個開機按鍵並與E c晶片相連,並根據作掌系统 數量相應定制多個MBR,接著偵測因按下特定按鍵而引起 的EC曰曰片電仏號的相應變化,根據該電信號而在晶片 RAM中寫入相應的標識資訊,然後根據該標識資訊查找與 其對應的定制MBR,根據該查詢情況載入相應的MBR,最後 根據該載入的MBR引導相應的作業系統。V. INSTRUCTION DESCRIPTION (7) The present invention further provides a multi-key guidance system for a multi-operation system, which guides different operating systems by setting a plurality of power-on buttons and pressing different buttons to load different custom MBRs (master boot records). The boot method first & 仏 个 a boot button and connected to the E c chip, and correspondingly customize a plurality of MBR according to the number of palm systems, and then detect the EC 仏 仏 引起 caused by pressing a specific button Correspondingly changing, writing corresponding identification information in the wafer RAM according to the electrical signal, and then searching for the corresponding customized MBR according to the identification information, loading the corresponding MBR according to the query condition, and finally guiding according to the loaded MBR Operating system.

本發明針對特定功能設置特定按鍵,做到使用的傻瓜 ^快方便用戶選擇,針對特定功能定制作業系統,啟動速 =佔用系統資源小,功耗降低,而且服務範圍和安全 -¾ ijk * 〜散爭先疋制於作業系統内,減少用戶對系統的設 也安全性提高,受到攻擊的機會減小。 【實施方式】 二打開電腦電源後,cpu就獲得了控制權。CM立刻 爷L订存儲力士 α 基本於 反上的 Β I OS ( Bas i c I nput Output SystemThe invention sets a specific button for a specific function, and the fool is used to quickly and conveniently select the user, and the operating system is customized for a specific function, the startup speed is small, the system resources are small, the power consumption is reduced, and the service range and security are -3 ijk * 散It is arbitrarily controlled in the operating system, reducing the user's security of the system and increasing the chance of attack. [Embodiment] Second, after turning on the computer power, the cpu gains control. CM immediately, the Lord L, the storage of the Lux, the basics of the reverse, the Β I OS ( Bas i c I nput Output System

^^ t輸出系統)中的指令。在BI OS指令的最後部 碟中^ 7啟動常式。該常式的任務是讀取位於第一個硬 中,包含固磁區中的主引導記錄(MBR)。在主引導記錄 表。L 主弓丨導程式和描述磁片分區情況的磁片分區 導程i/行主引導程式,以繼續完成引導過程。主引 主分區 乃刀區表,以獲仔活動分區。如果只有一個 、居’那麼就將裝入該分區的作業系統並啟動。^^ t Output system) instructions. In the last part of the BI OS command, ^ 7 starts the routine. The task of this routine is to read the master boot record (MBR) located in the first hard, containing the solid magnetic region. In the master boot record table. L main bow guide and disk partition describing the partition of the disk lead i / line master boot program to continue the boot process. The main lead is the knives table to get the active partition. If there is only one, then the operating system of the partition will be loaded and started.

1248024 五、發明說明(8) 如果一個硬碟中包含了多個主分區,每個可啟動的分 區(比如每個分區都包含了一個作業系統)的第一個磁區 都包含了自己的引導記錄(boot record)。該引導記錄 包含了啟動該分區中作業系統的啟動程式。在查詢到活動 分區後,主引導記錄運行分區的引導程式。引導程式裝人 作業系統文件並運行作業系統。 大多數作業系統,包括 DOS、Windows3.x、 Windows95/98、Windows NT從硬碟啟動的時候,需要從^ 活動分區啟動。但是不同的作業系統用不同的方式彳足活_ 分區上啟動,例如:1248024 V. Description of the invention (8) If a hard disk contains multiple primary partitions, the first partition of each bootable partition (for example, each partition contains an operating system) contains its own boot. Boot record. This boot record contains the launcher that starts the operating system in the partition. After the active partition is queried, the master boot record runs the boot program for the partition. The bootloader loads the operating system files and runs the operating system. Most operating systems, including DOS, Windows 3.x, Windows 95/98, and Windows NT, need to be booted from the ^ active partition when booting from a hard drive. However, different operating systems start up in different ways in the _ partition, for example:

DOS、Window3.x、Windows95/98 必需從第__ 石更% 上的的活動分區啟動。 μDOS, Window3.x, and Windows 95/98 must be started from the active partition on the __ stone%. μ

Windows NT可以從邏輯分區上啟動,但是其引導。 式必需放在第一個硬碟的活動分區上。 OS/2可以從邏輯分區上啟動。但是包含邏輯分區、 擴展分區必需在硬碟的前 2GB内。 θ a #Windows NT can boot from a logical partition, but it boots. Must be placed on the active partition of the first hard drive. OS/2 can be started from a logical partition. However, the logical partition and the extended partition must be within the first 2 GB of the hard disk. θ a #

Linux可以從邏輯分區上啟動,也可以從主八 動。 刀區上啟 值得注意的是,MBR是由分區程式(例如DQg的Linux can be started from a logical partition or from the main. The knife area is up. It is worth noting that the MBR is a partitioning program (such as DQg

Fdisk. exe)產生的’不同的作業系統可能這個磁區b 盡相同,也可以由用戶自由編寫,只要它能完成前疋不 務即可,這也是為什麼能實現多系統啟動的原因別述的任 ,也就必須要等執行到载入MBR時,用戶才能選 受擇所需 支援多重啟動的方法也都是對MBR進行定制的編寫,現有的 此 ^ ’因The different operating systems generated by Fdisk. exe may have the same magnetic domain b, and can be freely written by the user, as long as it can complete the front and the end, which is why the multi-system startup can be realized. Anyway, it must be executed until the MBR is loaded, the user can choose the method that supports the multiple startups, and the MBR is customized. The existing one is

1248024 五、發明說明(9) 要的作業系統來載入。 針對這種情況,本發明提出一種多鍵引導方法,利用 多個開機按鍵’不同的按鍵對應開啟不同的作業系統。 如第2圖所示’為本發明之多重作業系統之多鍵引導 系統架構圖’包括:C P U 2 0 1、晶片組2 0 2、系統R A Μ 2 0 3、 BIOS 204、查詢模組2041、載入模組2042、EC晶片205、 EC晶片RAM20 6以及開機按鍵邏輯單元207。 其中,開機按鍵邏輯單元2 0 7用以提供多個開機按鍵 並在一按鍵按下後產生相應的電信號,E C晶片2 0 5及其 RAM20 6與該邏輯單元20 7相連,用以回應該電信號而產生 相應中斷處理,並針對不同的開機按鍵在該EC RAM2 0 6中 寫入相應的標識資訊,查詢模組204 1用以根據該EC RAM中 的標識資訊查找相應的定制MBR,載入模組2 0 4 2用以根據 該查詢情況而載入相應的MBR。 該多按鍵邏輯單元2 0 7包括多個開機按鍵,每個按鍵 相應的用於開啟特定的作業系統。 請參閱第3圖,為本發明之多重作業系統之多鍵引導 方法流程圖,首先,提供多個開機按鍵並與“晶片相連 (步驟301),並根據作業系統數量相應定制多個MBR (步 驟3 0 2),這樣就可以偵測因按下特定按鍵而引起的^晶 =電信號的相應變化(步驟3〇3),根據該電信號而在Ec 晶片RAM中寫入相應的標識資訊(步驟3〇4),然後根據該 標識資訊查找與其對應的定制MBR (步驟3〇5),根據該查 詢情況載入相應的MBR(步驟3〇6),最後根據該載入的1248024 V. Description of invention (9) The operating system to be loaded. In response to this situation, the present invention proposes a multi-key guidance method in which different operating systems are opened by using different keys of a plurality of power-on buttons. As shown in FIG. 2, the 'multi-key boot system architecture diagram of the multiple operating system of the present invention' includes: CPU 203, chipset 2 0, system RA Μ 2 0 3, BIOS 204, query module 2041. The loading module 2042, the EC chip 205, the EC wafer RAM 20 6 and the power-on button logic unit 207. The power-on button logic unit 207 is configured to provide a plurality of power-on buttons and generate a corresponding electrical signal after a button is pressed. The EC chip 205 and its RAM 205 are connected to the logic unit 207 to respond. Corresponding interrupt processing is generated by the electrical signal, and corresponding identification information is written in the EC RAM 206 for different power-on buttons. The query module 204 1 is configured to find a corresponding customized MBR according to the identification information in the EC RAM. The input module 2 0 4 2 is used to load the corresponding MBR according to the query condition. The multi-button logic unit 207 includes a plurality of power-on buttons, each of which is associated with a particular operating system. Please refer to FIG. 3, which is a flowchart of a multi-key guiding method for a multiple operating system according to the present invention. First, a plurality of power-on buttons are provided and connected to a "wafer (step 301), and a plurality of MBRs are customized according to the number of operating systems. 3 0 2), so that it can detect the corresponding change of the ^ crystal = electrical signal caused by pressing a specific button (step 3 〇 3), according to the electrical signal, write corresponding identification information in the Ec wafer RAM ( Step 3〇4), and then searching for the customized MBR corresponding thereto according to the identification information (step 3〇5), loading the corresponding MBR according to the query condition (step 3〇6), and finally loading according to the

第13頁 1248024 五、發明說明(10) MBR引導相應的作業系統(步驟3〇7)。Page 13 1248024 V. INSTRUCTIONS (10) The MBR guides the corresponding operating system (steps 3〇7).

實現本發明的關鍵技術環節在於引導過程,即如何區 分不同的硬體信號來引導相應作業系統。這是因為,當電 腦加電後,8 0 5 1核心的嵌入式晶片(Embedded Chip) EC 中的勃體(Fi reware)代碼即進行初始化,無需啟動系 統’這就為多個開機按鍵的區分提供了必要條件。EC具有 多個〇?1〇(〇61^1^卜卩11。03 6 1111)111;/〇111:1)1^,通用輸入輸 出),可由設計者定義其功能,有效的GPI輸入將引起EC 中斷’相應的中斷服務程式隨即調入。 現有的BIOS是通過中斷1 9H直接將主引導磁區的MBR載 入至記憶體0 ·· 7 C 0 0 Η處,而本發明如果只使用原有的一個 MBR顯然是不夠的’應該是一個作業系統對應一個獨立的 MBR。如第4圖所示,為本發明之載入MBR過程之示意圖, 當BIOS要載入MBR時,比原來多了一步判斷的過程,它是 根據EC Firmware寫入RAM的標識值來載入相應的定制主引 導記錄。定制的作業系統及其主引導記錄分別用數位i、 2、3來區別。假設三個作業系統的標識值也分別為1、2、 3,那麼當輸入標識值為2時,BIOS就載入MBR2,判斷它是 否存在’若存在則將DPT附在其後引導0S2 ;若不存在,出 於保護的目的將載入MBR和DPT,按原有模式由用戶選擇引 導0S。判斷定制的主引導記錄存在與否的方法可以通過預 先在定制的主引導記錄特定位置寫入唯一的標識字串,然 後再拿他比較來實現。例如,定制為Game Station的作業 系統所對應的主引導記錄中可以加入” game,,這一關鍵字The key technical aspect of implementing the present invention is the boot process, which is how to distinguish different hardware signals to guide the corresponding operating system. This is because, when the computer is powered up, the Fi reware code in the Embedded Chip EC of the 805 core is initialized without starting the system. This is the distinction between multiple boot buttons. The necessary conditions are provided. The EC has multiple 〇?1〇(〇61^1^卜卩11.03 6 1111)111;/〇111:1)1^, general-purpose input and output), the function can be defined by the designer, and the effective GPI input will be Causes an EC interrupt' The corresponding interrupt service routine is loaded. The existing BIOS directly loads the MBR of the main boot sector into the memory 0·· 7 C 0 0 通过 by interrupting 19H, and the present invention is obviously insufficient if only one original MBR is used. The operating system corresponds to a separate MBR. As shown in FIG. 4, it is a schematic diagram of the MBR process of the present invention. When the BIOS is to be loaded into the MBR, the process of determining one step is more than the original. It is loaded according to the identifier value written by the EC Firmware into the RAM. Custom master boot record. The customized operating system and its master boot record are distinguished by digits i, 2, and 3, respectively. Assuming that the identification values of the three operating systems are also 1, 2, and 3, respectively, when the input identification value is 2, the BIOS loads MBR2 to determine whether it exists. If it exists, the DPT is attached to it and then boots 0S2; Does not exist, the MBR and DPT will be loaded for protection purposes, and the user selects the boot OS in the original mode. The method of judging whether a customized master boot record exists or not can be achieved by previously writing a unique identification string at a specific location of the customized master boot record and then comparing it. For example, you can add "game" to the master boot record corresponding to the Game Station's operating system.

第14頁 1248024 五、發明說明(11) 串’通過搜尋這一字串便可知是否存在該MBR。 因此,本發明首先需要在機構部分增加多個特定功 的開機按鍵及相應電路的位置,在硬體部分,將按鍵電 號與相應的EC GPI相連,以便Ec獲得相應開機信號。5 然後修改EC Firmware程式,在中斷服務程式中針 =同的開機按鍵在EC的RAM襄寫入相應的標識資訊,以 行進I步處理。標識值應事先約定,唯-的標識值 對應唯一的特定功能即唯一的開機按鍵。 EC二丄麗程式也要進行修改,在開機自檢後根據 ⑽開機按鍵標示資訊以判斷所使用的開機按鍵,J :,相應的主引導記錄。對從非_區 2 = ”判斷’如果該主引導記錄存在則將_中的 錄之後,_目應的作業 用戶選擇;;導不 況下的保護措施。 、疋㈣對特定功能os出錯情 另外,也要定制MBR主引骞#彼 /4. ^ 定的位署r如自Π 錄’使其駐留在硬碟特 部分置= 職以外的作業系統未定義的 位”’分區表資訊是共用的,無需K錄,大小為… 虽然,作業系統内核、模紐及 應的組合調整,使其2 & ι?Λ層應用程式也需做相 按…開機時,引起與之相連力:程圖,當特定 〜M Pin電信號變 1248024 五、發明說明(12) 化Page 14 1248024 V. INSTRUCTIONS (11) String 'After searching for this string, it is known whether the MBR exists. Therefore, the present invention firstly needs to increase the position of the power-on button and the corresponding circuit of the plurality of specific functions in the mechanism portion, and connect the button signal to the corresponding EC GPI in the hardware portion, so that the Ec obtains the corresponding power-on signal. 5 Then modify the EC Firmware program, in the interrupt service program pin = the same power button to write the corresponding identification information in the EC's RAM, to travel in step I. The identification value should be agreed in advance, and the only identification value corresponds to the unique specific function, that is, the unique power-on button. The EC 丄 丄 程式 program should also be modified. After the power-on self-test, according to the (10) power-on button marking information to determine the power-on button used, J:, the corresponding master boot record. Judging from non-Zone 2 = "If the main boot record exists, then the user in the _ is recorded, the user of the job should be selected;; the protective measures under the circumstance. 疋 (4) The os error for the specific function os , also to customize the MBR main 骞 彼 彼 彼 彼 彼 彼 彼 彼 4 4 4 4 4 4 4 4 4 4 4 彼 彼 彼 彼 彼 4 4 4 4 4 4 4 4 4 4 彼 4 4 4 4 4 4 彼 4 4 彼 4 No need to record K, the size is... Although, the operating system kernel, the module and the combination of the adjustments, so that the 2 & ι? layer application also needs to do the press... when booting, causing the connection with it: Figure, when the specific ~M Pin electrical signal becomes 1248024 V. Invention description (12)

觸發相應中斷(步驟501) ,EC Firmware中斷服務程 式對標識字(位於EC RAM中)進行賦值,每一個特定按鍵 都對應唯一的標識值(步驟502) ,BIO S在P〇ST(Power 0NTrigger the corresponding interrupt (step 501), the EC Firmware interrupt service mode assigns the identification word (located in the EC RAM), each specific button corresponds to a unique identification value (step 502), and the BIO S is in P〇ST (Power 0N).

Self-test)過程結束後根據EC RAM中的標識值調入非MBR 區域的定制主引導記錄,其事先駐留在硬碟特定的位置 (如第一磁執除了 MBR以外的作業系統未定義的部分) (步驟=3),然後判斷定制主引導記錄是否存在(步驟 ’若不存在則讀入MBR和DPT中的資料(步驟5〇〇 , :弓! ΐ i: m磁區中的硬碟分區表資訊附加在定制的 錄和:碟ϊΐί弓25°6),最後根據當前的主引導記 ::: 引導作業系統(步驟50Ό。 非用來限定i ί明:j t ?:其中的較佳實施例而已,並 圍所作的均等變π H:乾圍,即凡依本創作申請專利範 4變化與修飾’皆為本創作專利範圍所涵蓋。Self-test) After the process is completed, the customized master boot record of the non-MBR area is transferred according to the identification value in the EC RAM, which resides in a specific location of the hard disk (such as the undefined part of the operating system other than the MBR of the first magnetic switch). (Step = 3), and then judge whether the custom master boot record exists (step 'If it does not exist, read the data in MBR and DPT (step 5〇〇, : bow! ΐ i: hard disk partition in m magnetic area) The table information is attached to the customized record and: disc ϊΐ 弓 bow 25°6), and finally according to the current master guide::: Guide the operating system (step 50 非. Not used to limit i ί: jt ?: the preferred implementation For example, the equivalent change of π H: dry circumference, that is, the change and modification of patent application 4 according to this creation is covered by the scope of the original creation patent.

第16頁 1248024 圖式簡單說明 第1圖為Win9x/D0S的啟動流程示意圖; 第2圖為本發明之多重作業系統之多鍵引導系統架構圖; 第3圖為本發明之多重作業系統之多鍵引導方法流程圖; 第4圖為本發明之載入MBR過程之示意圖;及 第5圖為本發明的功能實施流程圖。 【圖式符號說明】 201 CPU 2 0 2 晶片組Page 16 1248024 Brief Description of the Drawings Figure 1 is a schematic diagram of the startup process of Win9x/D0S; Figure 2 is a multi-key guidance system architecture diagram of the multiple operating system of the present invention; Figure 3 is a multi-operational system of the present invention. The key guiding method flowchart is shown in FIG. 4; FIG. 4 is a schematic diagram of the loading MBR process of the present invention; and FIG. 5 is a functional implementation flowchart of the present invention. [schema description] 201 CPU 2 0 2 chipset

2 0 3 系統RAM2 0 3 system RAM

204 BIOS 2 04 1 查詢模組 2 0 42 載入模組 205 EC晶片204 BIOS 2 04 1 Query Module 2 0 42 Load Module 205 EC Chip

206 EC 晶片 RAM 2 0 7 開機按鍵邏輯單元206 EC chip RAM 2 0 7 Power button logic unit

第17頁Page 17

Claims (1)

1248024 六、申請專利範圍 1、 一種多重作業系統之多鍵引導系統,透過設置多個開 機按鍵,按下不同的按鍵載入不同的定制MBR (主引導記 錄)而引導不同的作業系統,該引導系統包括: 一開機按鍵邏輯單元,用以提供多個開機按鍵並在一按鍵 按下後產生相應的電信號; 一 EC晶片及其RAM,與該邏輯單元相連,用以回應該電信 號而產生相應中斷處理,並針對不同的開機按鍵在該EC RAM中寫入相應的標識資訊; 一查詢模組,用以根據該EC RAM中的標識資訊查找相應的 定制MBR;及 一載入模組,用以根據該查詢情況而載入相應的MBR。 2、 如申請專利範圍第1項所述之多重作業系統之多鍵引導 系統,其中該多按鍵邏輯單元包括多個開機按鍵,每個按 鍵相應的用於開啟特定的作業系統。 3、 如申請專利範圍第1項所述之多重作業系統之多鍵引導 系統,其中該標識資訊唯一的對應於某一個開機按鍵。 4、 如申請專利範圍第1項所述之多重作業系統之多鍵引導 系統,其中該與唯一標識資訊對應的定制MBR中包含有該 唯一標識資訊字串。 5、 一種多重作業系統之多鍵引導方法,透過設置多個開 機按鍵,按下不同的按鍵載入不同的定制MBR (主引導記 錄)而引導不同的作業系統,該引導方法包括: 提供多個開機按鍵並與EC晶片相連; 根據作業系統數量相應定制多個MBR ;1248024 VI. Patent Application Scope 1. A multi-key guidance system for multiple operating systems, which guides different operating systems by setting multiple boot buttons and pressing different buttons to load different custom MBRs (master boot records). The system comprises: a power-on button logic unit for providing a plurality of power-on buttons and generating a corresponding electrical signal after a button is pressed; an EC chip and its RAM are connected to the logic unit for generating an electrical signal Corresponding interrupt processing, and writing corresponding identification information in the EC RAM for different power-on buttons; a query module for finding a corresponding customized MBR according to the identification information in the EC RAM; and a loading module, Used to load the corresponding MBR according to the query. 2. The multi-key guidance system of the multiple operating system of claim 1, wherein the multi-button logic unit comprises a plurality of power-on buttons, each of which is corresponding to a specific operating system. 3. The multi-key guidance system of the multiple operating system described in claim 1, wherein the identification information uniquely corresponds to a certain power-on button. 4. The multi-key guidance system of the multiple operating system of claim 1, wherein the unique identification information string is included in the customized MBR corresponding to the unique identification information. 5, a multi-key system multi-key guidance method, by setting a plurality of boot buttons, press different buttons to load different custom MBR (master boot record) to guide different operating systems, the boot method includes: providing multiple Boot button and connect with EC chip; customize multiple MBR according to the number of operating systems; 第18頁 1248024 六、申請專利範圍 偵測因按下特定按鍵而引起的EC晶片電信號的相應變化; 根據該電信號而在EC晶片RAM中寫入相應的標識資訊; 根據該標識資訊查找與其對應的定制MBR ; 根據該查詢情況載入相應的Μ B R ;及 根據該載入的MBR引導相應的作業系統。 6、 如申請專利範圍第5項所述之多重作業系統之多鍵引導 方法,其中該每一個開機按鍵都對應唯一的標識資訊。 7、 如申請專利範圍第5項所述之多重作業系統之多鍵引導 方法,其中該多個定制MBR事先駐留於硬碟特定的位置。 8、 如申請專利範圍第5項所述之多重作業系統之多鍵引導 方法,其中該查詢相應的MBR之步驟是透過在各個定制MBR 中查詢該唯一的標識資訊來獲知該相應的MBR是否存在。 9、 如申請專利範圍第5項所述之多重作業系統之多鍵引導 方法,其中該根據查詢情況載入相應的MBR之步驟,如果 找到對應的Μ B R ’則將磁片分區表附在定制Μ B R之後引導相 應的作業系統。 1 〇、如申請專利範圍第5項所述之多重作業系統之多鍵引 導方法,其中該根據查詢情況載入相應的MBR之步驟,如 果找不到對應的MBR,則載入主引導磁區資料。Page 18 1248024 VI. The patent application scope detects the corresponding change of the EC chip electrical signal caused by pressing a specific button; according to the electrical signal, the corresponding identification information is written in the EC wafer RAM; Corresponding custom MBR; load corresponding Μ BR according to the query condition; and guide the corresponding operating system according to the loaded MBR. 6. The multi-key guiding method of the multiple operating system described in claim 5, wherein each of the power-on buttons corresponds to unique identification information. 7. The multi-key boot method of the multiple operating system of claim 5, wherein the plurality of custom MBRs reside in advance at a specific location of the hard disk. 8. The multi-key guiding method of the multiple operating system according to claim 5, wherein the step of querying the corresponding MBR is to obtain whether the corresponding MBR exists by querying the unique identification information in each customized MBR. . 9. The multi-key guiding method of the multiple operating system described in claim 5, wherein the step of loading the corresponding MBR according to the query condition, if the corresponding Μ BR ' is found, attaching the disk partition table to the customization Μ BR to guide the corresponding operating system. 1 〇, as in the multi-key guidance method of the multiple operating system described in claim 5, wherein the step of loading the corresponding MBR according to the query condition, if the corresponding MBR is not found, loading the main boot magnetic domain data. 第19頁Page 19
TW92137811A 2003-12-31 2003-12-31 Multi-key booting system and method in an environment with multiple operation systems TWI248024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW92137811A TWI248024B (en) 2003-12-31 2003-12-31 Multi-key booting system and method in an environment with multiple operation systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW92137811A TWI248024B (en) 2003-12-31 2003-12-31 Multi-key booting system and method in an environment with multiple operation systems

Publications (2)

Publication Number Publication Date
TW200521849A TW200521849A (en) 2005-07-01
TWI248024B true TWI248024B (en) 2006-01-21

Family

ID=37400715

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92137811A TWI248024B (en) 2003-12-31 2003-12-31 Multi-key booting system and method in an environment with multiple operation systems

Country Status (1)

Country Link
TW (1) TWI248024B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI381313B (en) * 2009-04-14 2013-01-01 Inventec Corp Multi operating system boot method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016069011A1 (en) 2014-10-31 2016-05-06 Hewlett Packard Enterprise Development Lp Management controller
CN108345906B (en) * 2018-02-09 2022-02-22 无锡英臻科技有限公司 Non-invasive electrical appliance identification method based on Boost model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI381313B (en) * 2009-04-14 2013-01-01 Inventec Corp Multi operating system boot method

Also Published As

Publication number Publication date
TW200521849A (en) 2005-07-01

Similar Documents

Publication Publication Date Title
JP5284946B2 (en) Direct boot configuration using NAND flash memory
US6505278B1 (en) Method for flashing ESCD and variables into a ROM
TW200917123A (en) USB flash disk for computer boot up and method of loading programs in the USB flash disk
US7496744B2 (en) Method for booting computer multimedia system with high speed data storage
US7234055B2 (en) Computer operating booting system making use of multi-buttons
JPH04233624A (en) Apparatus for protecting system utility in personal computer system
WO2016074127A1 (en) Computer device and memory starting method for computer device
WO2003023610A1 (en) Method of computer rapid start-up
KR20050095685A (en) Method for executing instant on function in personal computer
JP2000514935A (en) Keyboard audio control for integrated CD-ROM players
CN101299189A (en) DOS method of one of self-startup and multiple operating systems
TWI248024B (en) Multi-key booting system and method in an environment with multiple operation systems
TW202307671A (en) Storage device
TWI559227B (en) Computer system having two built-in operating devices that can be dynamically powered on or powered off
CN1317616C (en) Multi-key bootstrap system and method for multi operating system
US20090070491A1 (en) Method for executing target programs with compound quick keys
JP5489278B2 (en) Information processing apparatus and activation method thereof
US20050172789A1 (en) Device for playing music on booting a motherboard
CN101114230A (en) Method for reading and electing read only memory program code on self-storing mechanism
TW201734800A (en) Method for setting redundant array of independent disks
KR101249831B1 (en) Computer system and method for booting the same
CN1952894A (en) Computer system with function of immediate unlock and processing method thereof
KR100631966B1 (en) Computer device and peripheral device with multi-booting power button and method for booting the same
JP2003114800A (en) Boot mediating program, booting method, and storage device
JP5723554B2 (en) Multi-boot manager method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees