TW201118733A - An automatically executing method for operation system kernel - Google Patents

An automatically executing method for operation system kernel Download PDF

Info

Publication number
TW201118733A
TW201118733A TW98140894A TW98140894A TW201118733A TW 201118733 A TW201118733 A TW 201118733A TW 98140894 A TW98140894 A TW 98140894A TW 98140894 A TW98140894 A TW 98140894A TW 201118733 A TW201118733 A TW 201118733A
Authority
TW
Taiwan
Prior art keywords
core
computer
operating system
hardware
hardware information
Prior art date
Application number
TW98140894A
Other languages
Chinese (zh)
Inventor
Tao Chu
Tom Chen
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 TW98140894A priority Critical patent/TW201118733A/en
Publication of TW201118733A publication Critical patent/TW201118733A/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

An automatically executing method for operation system (OS) kernel is adapted to a computer. The automatically installing method includes the steps of starting a basic input/output system (BIOS) of the computer; reading a loader from one of storage medium with a plurality of OS kernel and a hardware-kernel conversion table; and executing the loader to get a selecting kernel. Besides, the loader includes the steps of reading one of hardware information; looking up the hardware-kernel conversion table according to the hardware information to get the selecting kernel; and executing the selecting kernel.

Description

201118733 六、發明說明: [發明所屬之技術領域】 本發明係關於一種自動執行作業系統核心的方法,特別是關 於一種依據計算機硬體自動執行作業系統核心的方法。 【先前技術】 不論是個人電腦、大型伺服器或是筆記型電腦,計算機系統在 提供給使用者之前可能需安裝好作業系統以便使用者使用,或是 提供具有作業彡制導絲碟或賴辆給使用者。傳統的安裝 方法係以人χϋώ指定的作㈣統核心、(kemel)並伽選定的核 心安裝作業系統於所需的計算機系統中。 不同的計算機系統可BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for automatically executing a core of an operating system, and more particularly to a method for automatically executing a core of an operating system in accordance with a computer hardware. [Prior Art] Whether it is a personal computer, a large server or a notebook computer, the computer system may need to be installed with the operating system for the user to use before providing it to the user, or to provide a guide wire disc or a vehicle for operation. user. The traditional installation method is to install the operating system in the desired computer system with the core of the specified (4) system core, (kemel) and gamma. Different computer systems available

...........犯穴为个叫的r夹處理器(CentT........... The acupoint is called a r-clip processor (CentT)

Pr〇cessingUnit,CPU) _或是其他不_硬體規格,硬體的』 異會影響到作㈣統核叫程式翻容。舉例而言,—般的中; 處理益分為32位元缝64位元,為了提供職於%位元或6 2元架構之不_作㈣統核心給多個計算機系統,傳統方法; 能為不同作㈣、難^侧製作絲辅。如此—來,使用者富 按照需求自行選出正確的安裝光碟在進行安裝,不但費工費^ 且成本亦較高。為了節魏本,亦有將多個作㈣統核心同時續 ^同一張辆料做法。但是即屬―張辆片中包含有多個 系統核心’仍需使用者手動選擇適當的核心,十分不便。〜 時間!纽輯機祕時,辦峨多的 ι力乳亦可朗者的疏失而發生諸如選到不適當的抄 201118733 或是執行或者安裝相作_統於計算 、為了解決上述的問題’本發明提供—種自動執行作業系統 杉的方法自動執行作業系統核心的方法適用於一計曾機 内’其方法並包括以下步驟:啟動計.算機的—基本輸入輸:系Pr〇cessingUnit, CPU) _ or other non-hardware specifications, hardware 』 will affect the work (4) the system is called program reversal. For example, the general benefit; processing benefits are divided into 32-bit seam 64-bit, in order to provide a job in the % bit or 62 yuan architecture, the core is given to multiple computer systems, traditional methods; For the different work (four), difficult to make the side of the wire. In this way, the user is able to select the correct installation disc according to the requirements and install it, which not only costs labor but also costs. In order to save the Weiben, there are also a number of (four) unified cores that continue at the same time. However, it is a "core" that contains multiple system cores. It is still very inconvenient for the user to manually select the appropriate core. ~ Time! When the secret is secret, it is also possible to make a lot of mistakes, such as selecting inappropriately copied 201118733 or performing or installing the same _ to solve the above problems. - A method of automatically executing the operating system cedar automatically executes the core of the operating system. The method is applied to a method of the machine and includes the following steps: starting the computer - basic input and output:

心而使得操作失敗, 機系統等問題。 【發明内容】 統ln_utput system,職);自—儲存媒體中讀取_ 引^^序(Loader·)’其巾儲存媒射具有多個作κ統核心 (kernel)及-硬體如朗表;以及執行將程序崎到一作 业系统核心。51導程序則包括下列步驟:讀取-硬體資訊;依 據硬體資訊查閱硬體核,靖絲,並制對應於種資訊的選 擇核心,而選擇核心係為這些作業系統核心之一;以及執行選 擇核心。 根據本發明之一實施範例,硬體資訊可讀取自計算機的中 央處理器(Central Processing Unit,CPU)。則硬體資訊可依據 一 CPUID (CPU識別碼)指令來獲取。 根據本發明之另一實施範例,硬體資訊可讀取自計算機的 系統管理基本輸入輸出系統(System Management _ Basic Input/OutputSystem,SMBIOS)。則硬體資訊可為該計算機的產 品名稱、生產序號或是通用唯一識別碼(Universally Unique Identifier,UUID)。也就是說,對於具有相同CPU但不同產品 名稱(或是計算機的機型)、生產序號或是通用唯一識別碼的計 201118733 算機可對應到不同的選擇核心。 綜上所述,根據本發明之實施範例之自動執行作業系統核心 的方法,其藉由齡媒酿供多㈣級㈣心以及销核心對 照表’並自動_作業紐之計算機的硬體資訊,再依據硬體資 訊查對照表以得到合適的作業系統核心。 如此一來’可自賴㈣當的作㈣統核心給具有不同硬體 規格或型號等硬體資朗輯機,Μ需以人I選擇的方式選擇 需要的作鮮、統核心。對毅不同硬體之多個作㈣統核心亦可 與硬體核心對絲被整合於同-個儲存髓(例如同-張DVD) 中。因此不但節省成本,亦便於攜帶或整理。 【實施方式] 以下在實施方式令詳細敘述本發明之詳細特徵以及優點,其 内容足以使任何翻㈣技藝者了解本發明之技術内容並據以實 施’且根據本說明書所揭露之内容、申請專利範圍及圖式,任何 熟習相關技藝者可輕易地理解本發明相關之目的及優點。 本發明提供一種自動執行作業系統核心的方法,其適於一計 算機。請參考「第i圖」,其係為根據本發明一實施範例之計算機 之方塊不意圖。 如「第1圖」所繪示,計算機20包括有一中央處理器(CentralThe heart makes the operation fail, the machine system and other issues. [Summary of the invention] ln_utput system, job); read from the storage medium _ 引 ^ ^ sequence (Loader · '' towel storage media has a number of ke system core (kernel) and - hardware such as the table And execution of the program to the core of an operating system. The 51-lead program includes the following steps: reading-hardware information; accessing the hardware core according to the hardware information, Jingsi, and selecting the core corresponding to the information, and selecting the core system as one of the cores of these operating systems; Execute the selection core. According to an embodiment of the invention, the hardware information can be read from a central processing unit (CPU) of the computer. The hardware information can be obtained according to a CPUID (CPU ID) instruction. According to another embodiment of the present invention, the hardware information can be read from a system management system (Basic Input/Output System, SMBIOS). The hardware information may be the product name, production serial number or Universally Unique Identifier (UUID) of the computer. In other words, for computers with the same CPU but different product names (or computer models), production serial numbers, or universal unique identifiers, the 201118733 computer can correspond to different selection cores. In summary, the method for automatically executing the core of the operating system according to the embodiment of the present invention is to provide the hardware information of the multi-(four) level (four) level and the pin core comparison table by the age medium, and automatically. According to the hardware information check table to get the appropriate operating system core. In this way, the core of the work (4) can be used to provide hardware and hardware with different hardware specifications or models. It is not necessary to select the desired core for the system. The multiple cores of the different hardware (4) can also be integrated with the hardware core pair in the same storage marrow (for example, the same-sheet DVD). Therefore, it not only saves costs, but also is easy to carry or organize. BEST MODE FOR CARRYING OUT THE INVENTION The detailed features and advantages of the present invention are described in detail below, which are sufficient to enable any skilled person to understand the technical contents of the present invention and to implement the invention and claim the contents according to the present specification. The objects and advantages of the present invention are readily understood by those skilled in the art. The present invention provides a method of automatically executing a core of an operating system that is suitable for a computer. Please refer to the "figure i", which is a block diagram of a computer according to an embodiment of the present invention. As shown in "Figure 1," the computer 20 includes a central processing unit (Central).

Processing Unit ’ ά>υ) 22以及一記憶體24。記憶體24内部具有 基本輸入輸出系統(Basic Input/Output System,BIOS ) 26,而 BIOS 26中具有一糸統管理基本輸入輸出系統( 201118733Processing Unit ’ ά>υ) 22 and a memory 24. The memory 24 has a Basic Input/Output System (BIOS) 26 inside, and the BIOS 26 has a system for managing the basic input/output system (201118733).

Management Basic lnput/0utput System,SMBI〇s ) 28。計算機 2〇 並與-儲存媒體30相連。儲存媒體3〇具有一引導程序(i〇ader) 32、複數個作#魏核心(kernel) 34以及-硬體核心對照表36。 計算機20可以例如是一電腦主機、祠服器、筆記型電腦或是 小筆電(Netb00k),且計算機2〇可以是使用不同中央處理器r 或不同硬體的產品。依據本發騎提供之自動執行作業系統核心 的方法’ -作業系統被執行於計算機2〇 β,以供使用者便利地操 #作計算機2〇。換句話說,在進行自動執行作業系統核心的方法之 前,計异機20的内部可以無任何作業系統。 中央處理H 22可以是任意廠商的任意產品,例如是英特爾公 司(Intel Corporation)的χ86系列或奔騰(pentium)系列產品, (Advanced Micro Devices « Inc. > AMD) ^ Athlon系列或k系列產品。也就是說,中央處理器22可以採用不 同的CPU架構(例如X86或),亦可使用各種不同的咖 _指令集Set ’例如MMX或SSE3 )。其中需注意的是, 一個中央處理器22可能同時支援多個不同的指令集。 計算機20的中央處理器22與記憶體24電性相連,以執行 BIOS 26等各種程序。較佳的是,記憶體24係為—斷電後也不會 失去貧料内容的記憶裝置,例如唯讀記憶體(Read〇nlyMem^^, ROM) ’或疋唯續的快閃記憶體(公mem〇ry)。記憶體μ中的 SMBIOS 28定義有BIOS 26的資料結構(data structure)及資料的 存取方法(access method),且SMBI0S 28可供使用者或應用程式 201118733 存取與4减2G相關的:#訊。而更多smbi〇s π的_資料可 ’勹刀散式ΐ匕任矛旁編址公司(Distributed Management Task F繼’DMTF)之最新的2·61版本。 儲存媒體3〇係用以儲存弓丨導程序32 '作業系統核心34以及 硬體核吨照表36,賴計算機2()之中央處理器22於安裳作業 系統時㈤取並細-較佳岐,儲存舰%可為-數位多功能光 碟’taHtile Dlsc ’ ,且計算機2〇透過一光碟機讀取 引導程序32、作鮮魏心34以及種核心對絲%。然而儲 存媒體30亦可是任何能供巾央處理器π存取之媒體,例如計算 機2〇内部之硬碟、快閃記憶體(公純m_y)或是透過網路 如網際轉和_)提供贿與麵魏之舰器。 儲存襄置30中具有多個作業系統核心%。其中作業系統核心 34係為作業系統最基本的部分。作業系統核心%提供應用程序存 取計算機2〇之硬體較為簡易的環境,並決定各個程序能在什麼時 候對计算機20的硬體操作多長時間。 計算機2〇由儲存媒體3〇中载入引導程序%並執行,引導程 序32接著依據計算機2〇以及硬體核心對照表%載入適當的作業 系統核心34。接下來料自動選擇作㈣統核心34的步驟。” …請同時參照「第2圖」與「第3圖」,其係為根據本發明一實 她乾例之自純行作業祕核心的方法剌導程序之流程示音 圖。由「第2圖」可以見悉,自動執行作業系統核心的方法可包 括步驟S4〇 ··啟動計算機的腦;步驟_ :自儲存媒體中讀取 201118733 引導程序;以及步驟S60 :執行引導程序,以得到一選擇枝、、。 计异機啟動電源並執行開機自我檢測(p〇Wer Test,POST)後,於步驟S40載入記憶體24中的Bl〇s %,以及 BIOS26中的SMBIOSWBIOS26被載入後,去搜尋紀錄於丑⑽ 26之内的一開機裝置序列(b00tdevicesequence,又稱[) 試圖載入啟動程序,例如電腦的作業系統的核心程式。 BIOS 26依據開機裝置序列找尋到儲存媒體3〇,並谓測到在 • 儲存媒體30内具有能用以載入作業系統核心34的引導程序32。 BIOS 26便於步驟SS0將引導程序%載入至計算機2〇的一隨機存 取記憶體(Random Access Memoiy,RAM),再執行載入後的引 導程序32以得到選擇核心。 由「第3圖」可以見悉,引導程序可包括步驟啦:讀取一硬 體資訊;步驟S64 :依據硬體資訊查閱硬體核心對照表,並得到對 應於硬體資訊的選擇核心;以及步驟S66 :執行選擇核心。 • 引導程序32首先於步驟觀賣取計算機2〇的硬體資訊,以 判斷儲存媒體30中的哪一個作業系統核心%應該被加載於計算 機2〇。根據本發明之一實施範例,硬體資訊可讀取自計算機20 、-^ 时22而硬體資訊可依據一 CPUID (CPU識別碼)指 令’或是中央處理器22的一 cpu架構。 隹咖係為由咖的8〇仙6中央處理器η起,在χ8δ指令 集=新增的—個指令,根據CPU®能鑑別中央處理器22的種類, ^曰、央處理器22的特性。*現在Inte卜AMD或是其他製造 201118733 廠商的中央處理器22大多有支援此一指令。藉由讀取CPUID,能 夠獲&與中央處理器22相關的各種資訊,例如製造廠商的名稱和 支援的指令集等。舉例而言,AMD製造的中央處理器之 的廠商名稱攔位可能顯示為「AutjjenticAMD」。而CPUID内亦有Management Basic lnput/0utput System, SMBI〇s) 28. The computer 2 is connected to the storage medium 30. The storage medium 3 has a boot program (32), a plurality of #魏芯 kernels 34, and a hardware core comparison table 36. The computer 20 can be, for example, a computer main unit, a server, a notebook computer, or a small notebook (Netb00k), and the computer 2 can be a product using a different central processing unit r or a different hardware. The method of automatically executing the core of the operating system provided by the present rider'-the operating system is executed on the computer 2〇β for the user to conveniently operate the computer. In other words, the interior of the metering machine 20 can be free of any operating system prior to performing the method of automatically executing the core of the operating system. The central processing H 22 can be any product of any manufacturer, such as Intel Corporation's χ86 series or Pentium series products (Advanced Micro Devices « Inc. > AMD) ^ Athlon series or k series products. That is, the central processing unit 22 can employ a different CPU architecture (e.g., X86 or), and can also use a variety of different sets of instruction sets, such as MMX or SSE3. It should be noted that a central processor 22 may support multiple different instruction sets simultaneously. The central processing unit 22 of the computer 20 is electrically connected to the memory 24 to execute various programs such as the BIOS 26. Preferably, the memory 24 is a memory device that does not lose the content of the poor material after the power is turned off, such as a read-only memory (Read〇nlyMem^^, ROM)' or a flash memory ( Public mem〇ry). The SMBIOS 28 in the memory μ defines the data structure of the BIOS 26 and the access method of the data, and the SMBI0S 28 can be accessed by the user or the application 201118733 in association with 4 minus 2G: # News. And more smbi〇s π _ data can be 勹 散 散 ΐ匕 ΐ匕 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛 矛The storage medium 3 is used to store the bowing program 32' operating system core 34 and the hardware nuclear tonnage meter 36, and the central processing unit 22 of the computer 2 () is taken and thinned in the Anshang operating system (five).岐, the storage ship % can be a multi-digit versatile disc 'taHtile Dlsc ', and the computer 2 读取 reads the boot program 32, the fresh Weixin 34, and the core core pair % through a CD player. However, the storage medium 30 may also be any medium that can be accessed by the processor π, such as a computer 2 internal hard disk, a flash memory (male pure m_y) or a bribe via the Internet such as Internet and _) The ship with the face Wei. The storage device 30 has a plurality of operating system core %. The operating system core 34 is the most basic part of the operating system. The core of the operating system provides a simpler environment for the application to access the computer, and determines how long each program can operate on the computer 20 for a long time. The computer 2 loads the boot program % from the storage medium 3 and executes it, and the boot program 32 then loads the appropriate operating system core 34 based on the computer 2 and the hardware core comparison table %. Next, it is expected to automatically select the steps of (4) the core 34. "Please refer to "Fig. 2" and "3rd figure" at the same time, which is a flow diagram of the method of the method of the self-practice operation core according to the present invention. It can be seen from "Fig. 2" that the method for automatically executing the core of the operating system may include the step S4: starting the brain of the computer; the step _: reading the 201118733 boot program from the storage medium; and the step S60: executing the boot program, To get a choice branch, . After the power is turned on and the power-on self-test (p〇Wer Test, POST) is executed, the Bl〇s% in the memory 24 is loaded in step S40, and the SMBIOSWBIOS26 in the BIOS 26 is loaded, and the search is recorded in the ugly (10) A boot device sequence within 26 (b00tdevicesequence, also known as [) attempts to load a boot program, such as the core program of a computer's operating system. The BIOS 26 finds the storage medium 3 in accordance with the boot device sequence and detects that there is a boot program 32 in the storage medium 30 that can be loaded into the operating system core 34. The BIOS 26 facilitates step SS0 to load the boot program % into a random access memory (RAM) of the computer 2, and then executes the loaded boot program 32 to obtain the selected core. As can be seen from "Fig. 3", the booting program may include the steps of: reading a piece of hardware information; and step S64: referring to the hardware core comparison table based on the hardware information, and obtaining a selection core corresponding to the hardware information; Step S66: Execute the selection core. • The boot program 32 first sells the hardware information of the computer in step view to determine which operating system core % of the storage medium 30 should be loaded on the computer 2. According to an embodiment of the present invention, the hardware information can be read from the computer 20, the hardware information can be based on a CPUID (CPU identification code) instruction or a CPU architecture of the central processing unit 22.隹 系 为 由 由 由 咖 咖 咖 咖 咖 咖 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 . * Now Inte Bu AMD or other manufacturing CPUs of the 201118733 manufacturers mostly support this instruction. By reading the CPUID, it is possible to obtain various information related to the central processing unit 22, such as the name of the manufacturer and the supported instruction set. For example, the vendor name block of the central processor manufactured by AMD may be displayed as "AutjjenticAMD". And there is also a CPUID

多個旗標以表示中央處理器22是否支援MMX、SSE3或EM64T 等才曰,集。且根據本發明之一實施範例,可依據cpuiD指令獲得 CPU架構。 中央處理器22依據製造廠商以及型號,可能具有32位元或 疋64位元4不同的cpu架構。舉例而言,cpu架構依型號來分 可例如有x86、AMD64或是IA64。而依運作方式來分則可能有單 核^架構、雙核心架構、超純量(亭:scale)架構、&位元架構、 # ® ^ ( Reduced Instruction Set Computing » RISC ) * ^ # (Complex Instruetion Set Computer,CISC)架構等各 種區別。其中X86係為32位元的CPU架構,而AMD64以及IA64 係為64位元的CPU架構。 八不同的CPU架構之裝央處理器22自然使用不_ CPU指 7 ’或是支援不同的指令集,使是同—個應雌序,亦須經過 2的編譯H/組譯H處職產生對應於中央處理器Μ之機械碼 μ被執行目此為了在多個使用不同架構之中央處理器U的計 算機2〇中安裝同樣的作業系統,亦可能需要有多個對應的作業系 統核心34。 根據本發明之另一實施範例’硬體資訊可讀取自計算機㈤的 201118733 SMBIOS28。職體魏可為計算機μ的-產品名稱、—生產序 號或疋通用唯-識別石馬(Uni簡吻Unique w咖fier,如仍)。 由SMBI〇S 28中可讀取計算機2〇相關的資訊。例如當叶曾 機2〇是筆記型電腦時,可藉由謂I〇S 28得知筆記型電腦的^ 號(即產品名稱)、出_所被分配_流水號(即生產序號)。 而UUID係由-串16位元_ 16進位數字所構成,可分配給每 -個計算機2G作為難於生產序號的用途。 • 於步驟S62讀取上述硬體資訊後,引導程序32於步驟柳依 據硬體資訊查辭嫌核心對照表36,並自動選出—個對應於硬體 資訊的作綠_心34作為選擇核心以執行此選擇核心硬體核 心對照表36侧出儲存媒體3G具有的作難統核心%,以及對 應這些作業系統核心、34的自動機2〇所具有的硬體資訊。 硬體核心對照表36的内容可舉例如下: 作業系統核心34 CPU架構 ------ 產品名稱 作業系統核心34a x86 ΝβΪ 作業系統核心34b --- AMD64 ~'—--- ΝΒ2 1夕1J如富女哀忭系糸統時欲依櫨 豕wu不餅适伴作某系統杉 34 ’且引導程序32於中央處理器22讀取到中央處理器u的〔 架構為X86時’便根據硬體核心對照表36將作業系統核心地 為選擇批。又例如製造廠商欲在不同筆記靠品中執七 同的導航程式’則當弓丨導程序%於SMBI〇s 28讀取到此筆气 電腦的產品名稱為NB2時’根據硬體核心、對照表%將作^ 11 201118733 核心34b作為選擇核心。 計算機20之硬體架構可能同時符合硬_心對照表弘中的 數個項目’ S要以哪-項硬體資訊作為選擇選擇核心的依據則可 依實際需求而定。此外,除了上述之CPUID、cpu架構、產品名 稱、生產序號以及UUID之外’引導程序32亦可於步驟s62讀取 計算機2〇的其他硬體資訊並於步驟S64中查閱硬體核心對照表 36,以用來在多個作㈣統核心、34中選擇適合的選擇核心。 引導程序32於步驟S66將選定之選擇核心载入隨機存取記憶 體’並將計算機20:的控制權交給選擇核心以執行卿核心。根據 本發明之-實施_,驗可將選擇如對顧絲環境或 航環境啟動。 綜上所述,根據本發明之實施範例之自動執行作業系統核心 的方法提供多個作業系統核心於單一儲存媒體中,並自動偵 算機的硬體資訊,依據硬體魏轉適合的作業錢核心 執行於計算機中。 〃 如此一來,可㈣地自動提供適當的«系統核心給且有不 同硬體規格(如CPU架構)的計算機,而不f以人H、 動執行健系聰卻雜亦可根據產品賴等硬體資訊 =規嶋細㈣爛物 啟動。此外,對應於不同硬體之多個作㈣統核心亦可 心對照表被整合於同-靖存媒體(例如同_張難)二Z 不但節省成本,亦便於攜帶或整理。 匕A plurality of flags are used to indicate whether the central processing unit 22 supports MMX, SSE3, or EM64T. According to an embodiment of the present invention, the CPU architecture can be obtained according to the cpuiD instruction. The central processing unit 22 may have a 32-bit or 疋64-bit 4 different cpu architecture depending on the manufacturer and model. For example, the cpu architecture can be divided into models according to the model, for example, x86, AMD64 or IA64. According to the operation mode, there may be a single core architecture, a dual core architecture, a super pure volume (scale) architecture, a & bit architecture, # ® ^ ( Reduced Instruction Set Computing » RISC ) * ^ # (Complex Instruetion Set Computer, CISC) architecture and other differences. Among them, X86 is a 32-bit CPU architecture, while AMD64 and IA64 are 64-bit CPU architectures. Eight different CPU architectures are not used naturally. CPU refers to 7' or supports different instruction sets. Therefore, it is the same as the female sequence, and it must be compiled by H/group H. The mechanical code μ corresponding to the central processing unit is executed. In order to install the same operating system in a plurality of computers 2 使用 using a different architecture of the central processing unit U, a plurality of corresponding operating system cores 34 may also be required. According to another embodiment of the present invention, the hardware information can be read from the computer (5) 201118733 SMBIOS 28. The professional body Wei can be the computer μ-product name, production serial number or 疋 universal only-identification stone horse (Uni Jane kiss Unique w coffee fier, as still). The computer 2 〇 related information can be read by SMBI〇S 28. For example, when Ye Zengji 2 is a notebook computer, the number of the notebook computer (ie, the product name) and the number of the _ serial number (ie, the production serial number) can be known by the name I〇S 28. The UUID is composed of a -string 16-bit_16 carry digit, and can be assigned to each computer 2G as a use number that is difficult to produce. After the hardware information is read in step S62, the booting program 32 searches the core comparison table 36 according to the hardware information in the step, and automatically selects a green_heart 34 corresponding to the hardware information as the selection core. Performing this selection, the core hardware core comparison table 36 side stores the hard-working core % of the storage medium 3G, and the hardware information of the automatic machine 2 corresponding to the operating system cores, 34. The contents of the hardware core comparison table 36 can be exemplified as follows: Operating System Core 34 CPU Architecture ------ Product Name Operating System Core 34a x86 ΝβΪ Operating System Core 34b --- AMD64 ~'---- ΝΒ2 1 夕1J If the rich woman mourns the system, she wants to rely on the wu not cake to accompany a certain system of cedar 34' and the boot program 32 is read by the central processing unit 22 to the central processor u [the architecture is X86] The body core comparison table 36 centers the operating system as a selection batch. For example, if the manufacturer wants to execute the same navigation program in different notes, then when the product name of the computer is NB2, the product name is NB2. % will be made as ^11 201118733 core 34b as the core of choice. The hardware architecture of the computer 20 may also conform to several items in the hard-core comparison table. The basis for which the hardware information is selected as the core of the choice may be determined according to actual needs. In addition, in addition to the above-mentioned CPUID, cpu architecture, product name, production serial number, and UUID, the boot program 32 may also read other hardware information of the computer 2 at step s62 and refer to the hardware core comparison table 36 in step S64. In order to select a suitable selection core in a plurality of (four) system cores, 34. The boot program 32 loads the selected selection core into the random access memory ' at step S66 and hands the control of the computer 20: to the selection core to execute the core. According to the invention - the implementation, the selection can be initiated, for example, in the environment of the silk or the environment. In summary, the method for automatically executing the core of the operating system according to the embodiment of the present invention provides a plurality of operating system cores in a single storage medium, and automatically detects the hardware information of the computer, according to the hardware and the appropriate operating money. The core is executed in a computer.如此 In this way, you can (4) automatically provide the appropriate «system core to the computer with different hardware specifications (such as CPU architecture), but not the human H, the implementation of the health system, but also according to the product, etc. Hardware information = fine (4) rotten start. In addition, a plurality of cores corresponding to different hardware can also be integrated into the same-Jingshang media (for example, the same _ Zhang Difficulty) 2Z, which not only saves cost, but also is easy to carry or organize. dagger

201118733 —雖穌發日㈣前述之較佳實施_露如上,然其並非用以限 〜&本發明’任何熟習相像技藝者,在不麟本發明之精神和範圍 ,θ ®可作料之更動與卿,目此本發明之專利賴範圍須視 本說明書所附之申請專利範圍所界定者為準。 【圖式簡單說明】 =1圖係為根據本發明—實施範例之計算機之方塊示意圖; 第2圖係為根據本發明—實施範例之自動執行作業系統核心 的方法之流程示意圖;以及 第3圖係為根據本發明一實施範例之引導程序之流程示意圖。 【主要元件符號說明】201118733—Although the above-mentioned preferred implementation of the above-mentioned (4) is not disclosed above, it is not intended to limit the invention to any of the skilled artisans, and the θ® can be modified by the spirit and scope of the present invention. The scope of the patents of the present invention is subject to the definition of the scope of the patent application attached to this specification. BRIEF DESCRIPTION OF THE DRAWINGS [FIG. 2 is a block diagram of a computer according to an embodiment of the present invention; and FIG. 2 is a flow chart of a method for automatically executing a core of an operating system according to an embodiment of the present invention; and FIG. It is a schematic flowchart of a booting program according to an embodiment of the present invention. [Main component symbol description]

20 計算機 22 中央處理器(CPU) 24 記憶體 26 基本輸入輸出系統(BI〇s) 28 系統管理基本輸入輪出系統 30 儲存媒體 32 引導程序 34, 34a, 34b, 34c 作業系統核心 36 硬體核心對照表 (SMBIOS ) 1320 Computer 22 Central Processing Unit (CPU) 24 Memory 26 Basic Input Output System (BI〇s) 28 System Management Basic Input Rounding System 30 Storage Media 32 Bootstrap 34, 34a, 34b, 34c Operating System Core 36 Hardware Core Comparison Table (SMBIOS) 13

Claims (1)

201118733 七、申請專利範圍: 1. 一種自動執行作業系統核心的方法, 啟動該計算機的-基本輸入輪適用於一計算機,包括: 自-儲存媒體中讀取1 系統核心及-硬體核心對照表.、序,該儲存媒體具有多個作業 ’以及 執行該引導程序,包括: 讀取一硬體資訊; 硬體核心對照表,並得到對應於 該選擇核心係為該些作業系統 依據該硬體資訊查閱該 該硬體資訊的一選擇核, 核心之一;以及 執行該選擇核心 2.如申糊卿丨顧此自崎觸難心的方法, 其中該執行該引導程序的步驟之後,另包括: 依該選擇核〜’將安裝該選擇核心所支援的作業系统安裝 於該計算機中,或者啟動該選擇核心的-導航環境。、 1如申請專利範圍第1項所述之自動執行作業系統核心、的方法, 其中該硬體資訊係讀取自該計算機的一中央處理器(Central Processing Unit,CPU) 〇 4_如申請專利範圍第3項所述之自動執行作業系統核心、的方法, 其中該硬體資訊係減-CPU識綱指令或是該巾央處理器 的一 CPU架構。 5.如申請專利範圍第1項所述之自動執行作業系統核心的方法, 201118733 其找硬體資訊係讀取自断算機的—錢雜基本輪入 系統。 • 6.如”專利_第5項所述之自動執行作業系統核心的方法, 其中該硬體資訊係為該計算機的—產品名稱、一生產序號或是 一通用唯一識別碼。 申月專概圍第1項所述之自動執行作業系統核心的方法, .、中該健存媒體係為—數位多功能光碟。 φ 巾^專利範圍第1項所述之自動執行作業系統核心的方法, 八。一计算機系統核心係對應於複數個cpu指令集。201118733 VII. Patent application scope: 1. A method for automatically executing the core of the operating system, starting the computer - the basic input wheel is suitable for a computer, including: reading from the storage medium 1 system core and - hardware core comparison table , the sequence, the storage medium has a plurality of jobs 'and executing the boot program, comprising: reading a hardware information; a hardware core comparison table, and obtaining corresponding to the selection core system for the operating systems according to the hardware Information on the selection core of the hardware information, one of the cores; and the implementation of the selection core 2. For example, the application of the bootstrapping method, such as the step of performing the boot procedure, includes : According to the selection core ~ 'Install the operating system supported by the selection core to install in the computer, or start the selection of the core - navigation environment. 1. The method of automatically executing an operating system core according to claim 1, wherein the hardware information is read from a central processing unit (CPU) of the computer. The method of automatically executing the operating system core according to the third aspect, wherein the hardware information is a CPU-instruction command or a CPU architecture of the towel processor. 5. As for the method of automatically executing the core of the operating system as described in item 1 of the patent application, 201118733. The hardware information system is read from the computer-based basic wheeling system. 6. The method of automatically executing the core of the operating system as described in the patent of claim 5, wherein the hardware information is a product name, a production serial number or a universal unique identification code of the computer. The method for automatically executing the core of the operating system according to the first item, wherein the storage medium is a digital versatile optical disc. The method of automatically executing the operating system core according to the first aspect of the patent scope, VIII A computer system core corresponds to a plurality of cpu instruction sets. 1515
TW98140894A 2009-11-30 2009-11-30 An automatically executing method for operation system kernel TW201118733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98140894A TW201118733A (en) 2009-11-30 2009-11-30 An automatically executing method for operation system kernel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98140894A TW201118733A (en) 2009-11-30 2009-11-30 An automatically executing method for operation system kernel

Publications (1)

Publication Number Publication Date
TW201118733A true TW201118733A (en) 2011-06-01

Family

ID=44935821

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98140894A TW201118733A (en) 2009-11-30 2009-11-30 An automatically executing method for operation system kernel

Country Status (1)

Country Link
TW (1) TW201118733A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI507991B (en) * 2013-02-27 2015-11-11 Rdc Semiconductor Co Ltd Multi-core cpu and associated control method and computer system
US9250922B2 (en) 2013-02-28 2016-02-02 Qualcomm Incorporated Method and apparatus for prefetching peripheral device drivers for smart phones and other connected devices prior to HLOS boot

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI507991B (en) * 2013-02-27 2015-11-11 Rdc Semiconductor Co Ltd Multi-core cpu and associated control method and computer system
US9250922B2 (en) 2013-02-28 2016-02-02 Qualcomm Incorporated Method and apparatus for prefetching peripheral device drivers for smart phones and other connected devices prior to HLOS boot

Similar Documents

Publication Publication Date Title
US8688968B2 (en) Preloading an application while an operating system loads
CN101421701B (en) Direct boot arrangement using a nand flash memory
JP5916881B2 (en) Method and PCD for showing a peripheral component interface express (PCIE) coupling device to an operating system operable on a portable computing device (PCD)
KR100673681B1 (en) Method for executing instant on function in personal computer
US20170046151A1 (en) System and method for adding and storing groups of firmware default settings
US9395919B1 (en) Memory configuration operations for a computing device
JP2016058083A (en) System and method for managing plurality of bios default setting
CN104572161B (en) A kind of UEFI firmware implementation methods based on Godson portable computer
US7673126B2 (en) Methods and apparatus to self-initialize a processor
WO2004053688A2 (en) Decoupled hardware configuration manager
US20210124847A1 (en) Embedded system and method
US11288078B1 (en) Providing firmware specific information via ACPI tables
US20080162916A1 (en) Portable Multi-Platform Booting
WO2022066301A1 (en) Phased boot process to dynamically initialize devices in a verified environment
TW201118733A (en) An automatically executing method for operation system kernel
JP2008538834A5 (en)
TW200931313A (en) Setting methods and motherboard for display parameters
CN115840618B (en) Access method and device for virtual machine simulation equipment register in hypervisor
US8510543B1 (en) Firmware supporting multiple boot paths
CN100492291C (en) Computer system with instant opening-up function and processing method thereof
US20040220959A1 (en) Methods and apparatus to enable system configuration during operating system runtime
US10628309B1 (en) Loading a serial presence detect table according to jumper settings
TW201734800A (en) Method for setting redundant array of independent disks
KR20090097171A (en) Portable multi-platform booting systems and architectures
TWI435270B (en) A computer system using a disk-bios and the method thereof