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

相关推荐
蓝速科技1 天前
蓝速科技 RISC-V+ 鸿蒙终端:一机多场景信创改造实效评测
科技·harmonyos·risc-v
MounRiver_Studio3 天前
RISC-V IDE MRS2调试秘籍(三):通过栈帧可视化模块定位栈溢出、栈内存非法篡改等运行时错误
mcu·risc-v·代码调试
MounRiver_Studio3 天前
RISC-V IDE MRS2调试秘籍(一):通过Memory内存导出对比,锁定隐性内存异常代码
mcu·调试技巧·risc-v·代码调试
蓝速科技7 天前
蓝速科技 RISC-V 鸿蒙信创终端全场景落地方案
科技·harmonyos·risc-v
国科安芯7 天前
ASC4T245S分组双向控制架构深度解析:独立DIR/OE控制、QFN16封装与混合方向总线桥接
单片机·嵌入式硬件·物联网·fpga开发·架构·risc-v
蓝速科技8 天前
蓝速科技 RISC-V 鸿蒙信创工控终端深度评测
科技·harmonyos·risc-v
tianyuanwo25 天前
深入解析 RISC-V 虚拟化中的 UEFI 固件配置:从 XML 到 NVRAM 的生命周期管理
xml·linux·risc-v
国科安芯1 个月前
基于AS32S601ZIT2型抗辐照MCU的商业航天卫星姿态确定与控制系统研究
单片机·嵌入式硬件·安全·fpga开发·架构·risc-v
高新打工人1 个月前
RISC-V(五):xceptions, Traps, and Interrupts介绍
risc-v
m0_747124531 个月前
RISC-V 基础知识扫盲
risc-v