Skip to content

wangjild/OS_Hacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. 简介/Introduction
    一个基于i386,分页的玩具操作系统

2. 准备工作
    a. Linux 2.6+ 最好是Fedora 13 或者 Ubuntu 10+ 系统
    b. 安装gcc和binutils
        Fedora: sudo yum install gcc binutils -y
        Ubuntu: sudo apt-get install build-essential
    c. 安装grub
        Fedora: sudo yum install grub -y
        Ubuntu: sudo apt-get install grub
    d. 安装基准工具bochs cd ~/you_workspace/tools/ && make && make install
    
3. 编译和安装内核
    make && make install
    该命令会编译内核,并且将kernel.bin 安装到虚拟硬盘文件 disk.img

4. 虚拟机运行
    bochs -f bochsrc