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

相关推荐
论迹复利9 小时前
设计 RISC-V PLIC 中断嵌套:threshold 一个寄存器当“优先级闸门“
risc-v·freertos 移植
右耳朵猫AI2 天前
Python周刊2026W36 | Python 3.15候选版、RISC-V获CPython支持、PEP 843、asyncio修复
python·sqlite·risc-v
hongmai6668886 天前
ESP32-WROVER-IE-N4R8:外接天线+8MB内存,专治信号焦虑
笔记·单片机·嵌入式硬件·microsoft·risc-v
花 满 楼7 天前
RISC-V APLIC 中断模块总结——第二篇
单片机·嵌入式硬件·mcu·risc-v
论迹复利8 天前
FreeRTOS 在 RISC-V 上是如何“点火“的 —— 从 main() 到第一个任务的完整链路
java·开发语言·risc-v
花 满 楼8 天前
RISC-V APLIC 中断模块总结——第一篇
mcu·risc-v·中断·aplic
国科安芯9 天前
小卫星综合电子系统中功能安全与抗辐射加固的协同设计研究
嵌入式硬件·安全·架构·risc-v·抗辐射·小卫星·综合电子系统
国科安芯14 天前
小卫星综合电子系统中RISC-V抗辐射MCU的功能安全与多接口集成架构分析
单片机·嵌入式硬件·安全·fpga开发·架构·risc-v
论迹复利14 天前
PendSV与RISC-V trap——上下文切换的两种设计哲学
内核·freertos·risc-v
hongmai66688816 天前
竖插专用:ESP8684-WROOM-07-H2X模组上手记录
笔记·单片机·嵌入式硬件·物联网·risc-v