Skip to content
/ xv7 Public

A teaching operating system repository

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

hitsz-ids/xv7

Repository files navigation

安装过程

1、准备基础环境

准备1台安装有ubuntu 20.04的机器,可以安装在物理机上,也可以安装在虚拟机中。

X86版ubuntu在这里下载

ARM版ubuntu在这里下载 ARM版ubuntu需要安装桌面

sudo apt-get install ubuntu-desktop

以下步骤在ubuntu 20.04中操作

2、下载操作系统xv7代码

git clone https://github.com/hitsz-ids/xv7.git

3、安装rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust.sh
sh rust.sh

提示

Current installation options:


   default host triple: aarch64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>

选择1即可

导入环境变量

source "$HOME/.cargo/env"

4、安装gcc

安装gcc

sudo apt-get install gcc

5、安装qemu

安装qemu-system-x86,操作系统编译完成后将使用qemu启动

sudo apt-get install qemu-system-x86

6、安装cargo-make

xv7采用cargo-make作为编译命令

cargo install cargo-make

7、安装cargo-xbuild

cargo install cargo-xbuild

8、安装nightly版本的rustc

安装并切换nightly版本

rustup install nightly-2021-04-25
rustup default nightly-2021-04-25
rustup override set nightly-2021-04-25
rustup component add rust-src

9、编译

cargo make qemu

此时应能正常启动xv7系统

有问题请联系:[email protected]

xv7操作系统原始链接

https://github.com/imtsuki/xv7

About

A teaching operating system repository

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages