highlightos
v0.3.4
X86_64 OS(內核)在彙編和鏽蝕中完全從頭開始
要求:
步驟:
rustup : rustup --versiongit clone [email protected]:adamperkowski/highlightos.git && cd highlightoscd進入kernel/目錄: cd kernelcargo bootimage --release此命令將創建
target/target/release目錄,您將在其中找到bootimage-hlkernel.bin二進製文件。
要求:
步驟:
git clone [email protected]:adamperkowski/highlightos.git && cd highlightoscd進入asm/目錄: cd asmnasm -f bin boot.asm -o boot.bin此命令將生成並將
boot.bin文件放置在當前目錄的內部。
要求:
步驟:
cd進入包含二進制的目錄。qemu-system-x86_64 -drive format=raw,file= < your_binary_filename > .bin重要的
用您下載/構建的二進製文件的實際名稱替換<your_binary_filename> 。
您還可以將二進製圖像刷到USB棒上,然後將其引導到真實的機器上。
您可以通過運行以下命令來刷新它:
dd if= < your_binary_filename > .bin of=/dev/sdX && sync重要的
確保用下載/編譯的二進制名稱替換<your_binary_filename>.bin ,並確保用USB的實際分區編號替換/dev/sdX 。上面的任何數據都將丟失!
筆記
您可以從BIOS引導菜單中選擇要啟動的設備(通過按F8或F12訪問)。
雙重檢查您的主板能夠啟動傳統媒體,因為亮點還不兼容uefi。
您知道我們有IRC頻道嗎?這是#highlightos 。
內置命令和功能列表可在此處找到。
為了獲取有關《光明節》的更多信息,我們邀請您訪問Wiki。
不建議使用回購代碼部分中的預編譯二進製文件。
非常感謝每個人的貢獻:
代碼的某些部分受Blog_os的啟發。偉大的項目!
Copyright © 2024 Adam Perkowski
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.