关于在mac上的环境搭建

This commit is contained in:
zhao liu
2021-06-20 22:52:23 +08:00
committed by GitHub
parent d2a355cca4
commit e26f01fed8

View File

@@ -40,7 +40,17 @@
xv6的主分支上已经修复了这个问题。但是2020版的前几个lab没merge这个patch需要自己在.gdbinit.tmpl-riscv里加一行`set riscv use-compressed-breakpoints yes`
关于后面lab的注意事项可以加入[6.S081学习交流群](https://zhuanlan.zhihu.com/p/251366985)了解。
## 关于在mac上的环境搭建
* 大部分参考https://zhayujie.com/mit6828-env.html
* qemu
* 版本为5.1.0 手动make可能需要多次make才会成功
* 下载地址 https://download.qemu.org/
* xv6 需要clone2020课程的仓库但是链接感觉失效了需要自己百度一下clone。
* RISC-V工具链
* 版本9.2.0 不要用brew安装因为会在gdb调试时出问题
* 下载地址第一个链接里给出了用博主给的下载链接自行make
* 注意在make前修改一下源码 在riscv-gdb/readline/rltty.c 和 riscv-gdb/readline/terminal.c 中添加头文件#include<sys/ioctl.h>
* 如果变异中途退出记得多变异几次大概持续30min-60min。
## 非官方资料推荐
1. 强推[肖宏辉大神](https://www.zhihu.com/people/xiao-hong-hui-15)的[课程内容翻译](https://mit-public-courses-cn-translatio.gitbook.io/mit6-s081/)。
@@ -50,4 +60,4 @@
- [MIT 6.828](https://abelay.github.io/6828seminar/index.html) 系统论文阅读研讨会,适合对系统领域的科研感兴趣的同学。
- [System Paper Reading Seminar](https://learn-sys.github.io/cn/reading/):很多同学自己组织的系统论文研讨会,中文资源,有视频。
- [MIT 6.824](https://pdos.csail.mit.edu/6.824/):分布式系统。
- [MIT 6.824](https://pdos.csail.mit.edu/6.824/):分布式系统。