MIT 6.1810 开发环境搭建(Xv6)

开发环境搭建

https://pdos.csail.mit.edu/6.828/2025/tools.html 来操作

见其中的Installing on Windows这一节

安装WSL2.0并升级到Ubuntu 24.04

国内版本无法直接从Microsoft Store下载安装Ubuntu 24.04,但是可以手动下载并安装,

https://blog.csdn.net/lichengyu/article/details/161369193?spm=1001.2014.3001.5502

在Ubuntu 24.04中安装工具链

在wsl中启动Ubuntu 24.04:

点击 "开始" -> "Ubuntu 24.04 LTS",

To install all the software you need for this class, run:

shell 复制代码
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu

下载Xv6源代码

参考: https://pdos.csail.mit.edu/6.828/2025/xv6.html

The latest xv6 source and text are available at https://github.com/mit-pdos/xv6-riscv and https://github.com/mit-pdos/xv6-riscv-book respectively. Run

复制代码
git clone https://github.com/mit-pdos/xv6-riscv.git
git clone https://github.com/mit-pdos/xv6-riscv-book.git

编译并运行Xv6

参考:

https://github.com/mit-pdos/xv6-riscv

https://pdos.csail.mit.edu/6.828/2025/labs/util.html

直接执行make qemu即可

参考资料

https://pdos.csail.mit.edu/6.828/2025/tools.html

https://blog.csdn.net/lichengyu/article/details/161369193?spm=1001.2014.3001.5502

https://pdos.csail.mit.edu/6.828/2025/xv6.html

https://github.com/mit-pdos/xv6-riscv

https://pdos.csail.mit.edu/6.828/2025/labs/util.html

相关推荐
tianyuanwo4 天前
深入解析 RISC-V 虚拟化中的 UEFI 固件配置:从 XML 到 NVRAM 的生命周期管理
xml·linux·risc-v
国科安芯6 天前
基于AS32S601ZIT2型抗辐照MCU的商业航天卫星姿态确定与控制系统研究
单片机·嵌入式硬件·安全·fpga开发·架构·risc-v
高新打工人7 天前
RISC-V(五):xceptions, Traps, and Interrupts介绍
risc-v
m0_7471245310 天前
RISC-V 基础知识扫盲
risc-v
W_LuYi18511 天前
手撸极简zkEVM验证器:RISC-V电路实践
java·risc-v
nvd1121 天前
绝地求生:如何在 2026 年把 OpenAI Codex 强行交叉编译到 RISC-V 架构
架构·risc-v
Eloudy22 天前
可在开源 RISC-V 上的裸机操作系统
开源·risc-v
hai31524754322 天前
RISC-V核E203核前向旁路的架构性顽疾
驱动开发·架构·硬件架构·硬件工程·risc-v
时光飞逝的日子22 天前
基于 RISC-V 架构的边缘 AI 推理引擎优化设计
risc-v·模型量化·推理引擎·边缘 ai·向量扩展·低功耗优化