使用另一個作業系統啟動作業系統,並應用於 ETH Oberon
摘要
首先啟動一個作業系統。然後,使用在該環境中執行的程式,啟動另一個作業系統。該程式能夠啟動目標作業系統核心,該核心儲存在 DOS 目錄中的檔案中。以這種方式啟動 ETH Oberon 和 Linux 的過程非常相似,因此一切都可以簡化為以下簡單語句:DOS 程式 _noboot.exe_ 對於 ETH Oberon 來說就如同 _loadlin_ 對於 Linux 一樣。這在檢視下面的 CONFIG.SYS 和 AUTOEXEC.BAT 檔案示例時應該會變得很清楚。
對應關係如下(名稱僅作指示,並非強制):
File name ETH Oberon Linux
--------------------------------------------
DOS program noboot.exe loadlin.exe
Kernel in file native.bin zimage
Configuration native.par linux.par
Start program native.bat startlin.bat
甚至不需要在硬碟上擁有一個(最小的)DOS 分割槽。一張 DOS 啟動軟盤就足夠了。
優勢:新增分割槽會修改 MBR 中的分割槽表,但除此之外 MBR 不會被更改。因此,由於向系統新增作業系統(如 ETH Oberon)而導致惡意副作用的風險降到最低。分割槽可以放置在任何位置。
如何從 DOS 啟動 ETH Oberon
以下內容僅在 MS-DOS 上進行了測試,但也適用於 IBM DOS、Caldera DOS 和 IBM DOS 2000。_noboot_ 是一個 DOS 程式,它載入儲存在 DOS 目錄中的 Oberon 核心,該核心通常命名為“native.bin”。載入過程由儲存在同一目錄中的另一個檔案(通常為“native.par”)中包含的配置規範指導。_noboot_ 無縫整合到現有的 DOS 或 Windows 95/98 環境中,並且可以與大多數 啟動管理器 一起使用。
noboot 僅需要一個最基本的 DOS 系統。如果 Oberon 無法啟動,例如在啟動過程的中間掛起,請分析 CONFIG.SYS 和 AUTOEXEC.BAT 檔案,並將與記憶體管理相關的行註釋掉。特別是那些提及 HIGH 的行,或者那些涉及使用 EMS 或 XMS 的行。或者,使用下面提到的 -d 選項強制 Oberon 進入除錯模式。
在 DOS 提示符下執行以下命令來啟動 Oberon
noboot [-dptv] kernel params
-d debug mode. Trace data is then presented on the console
-p don't reset the processor
-t trace mode (no boot)
-v verbose message output
kernel kernel image filename (usually: native.bin)
params parameter filename (usually: native.par)
如何從 Windows 95/98 啟動 Oberon
如果執行的系統是 Windows 95/98,則可以透過以 DOS 模式重新啟動 Windows 或在 Windows 啟動時按 Shift-F5 來啟動 MS-DOS 7.0。_noboot_ 在 DOS 模式下從使用者介面啟動。為此提供了一個特殊的 _native.ico_ 圖示。
無法直接從 Windows NT 切換到 Oberon。在這種情況下,必須透過啟動管理器(例如)啟動一張 DOS 啟動軟盤或一個額外的最小 DOS 分割槽。
使用 DOS/Win9x 啟動選單
用於構建 DOS/Win9x 啟動選單的示例檔案
這些示例文字控制對三個共駐 Oberon 系統的訪問:MS-DOS、Oberon、Linux。
1 - NATIVE\NATIVE.PAR 檔案示例
# Configuration generated by Oberon-0
MT="PS2"
MP="1"
MB="-3"
DMASize="14800H"
Display="S3Trio."
Init="bb0501b8024fcd10"
DWidth="1024"
DHeight="768"
DDepth="8"
2 - CONFIG.SYS 示例
[Menu]
Menuitem=dos, MS-DOS 6.21
Menuitem=native, Oberon in own partition (primary or logical drive)
Menuitem=linux, SuSE Linux 6.1 - using loadlin
Menudefault=dos, 20
[common]
...
[dos]
...
[native]
[linux]
3 - AUTOEXEC.BAT 示例
@echo off
rem Editor for noboot (hold Shift-key or activate ScrollLock)
set editor=c:\dos\edit.com
goto %config%
:dos
...
goto end
:native
cd native
native
:linux
cd loadlin
linux hda6
:end
4 - NATIVE\NATIVE.BAT 示例
@echo off
rem Run this under DOS or in MS-DOS mode under Windows 9x.
rem Does not work under Windows 3.11 or NT.
rem
rem To create an icon for starting Oberon:
rem 1. Create a shortcut to "native.bat" (the icon native.ico is provided).
rem 2. Right-click on the shortcut and select "Properties" from the menu.
rem 3. Click "Program" tab, then "Advanced..." and select "MS-DOS mode".
rem 4. Confirm the setting by clicking on "OK".
if not exist native.par goto usage
rem Show boot status at top left
cls
echo . - ETH Native Oberon booting...
rem DOS commands may be inserted here before Oberon starts.
rem E.g. a command to set the correct display refresh rate.
noboot native.bin native.par
rem We should never get back here
goto end
:usage
echo Please change to the directory containing the installed ETH Native Oberon
:end
如何從 Windows NT/2000 啟動 Oberon
Windows NT 啟動管理器檔案 BOOT.INI 示例
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT=
"Windows NT Workstation Version 4.00"
multi(0)disk(0)rdisk(0)partition(2)\WINNT=
"Windows NT Workstation Version 4.00 [VGA mode]" /basevideo /sos
C:\ = "DOS boot menu"
C:\bootlinx.bin="LILO menu (SuSE Linux 6.1)"
2002 年 11 月 20 日 - 版權所有 © 2002 ETH Zürich。保留所有權利。
電子郵件:oberon-web at inf.ethz.ch
主頁:www.ethoberon.ethz.ch