MIT 6.828 JOS 环境配置
2016-02-26 08:46
816 查看
MIT 6.828 JOS Lab1 记录
这学期刚好在学操作系统课程,课余时间也比较充足,所以着手开始做鼎鼎大名的MIT 6.828 操作系统课程的Lab。It must be a long journey, and it just started!
环境搭建
GIT from MIT
由于是第一个Lab,我们还是先要提前准备一些东西的。这门课程的资料可以通过Git获得,具体方法如下:athena% mkdir ~/6.828 athena% cd ~/6.828 athena% add git athena% git clone https://pdos.csail.mit.edu/6.828/2014/jos.git lab Cloning into lab... athena% cd lab
上面的
athena是MIT内部用的环境,不用担心,我们也能下载到。
Tips:如果你和我一样出现了git失败的情况如下:
tommy@ubuntu:~$ git clone https://pdos.csail.mit.edu/6.828/2014/jos.git lab Cloning into 'lab'... fatal: unable to access 'https://pdos.csail.mit.edu/6.828/2014/jos.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
那么是遇到了证书问题【1】,原因是你的电脑不信任你要Git的服务器。( The basic reason is that your computer doesn’t trust the certificate authority that signed the certificate used on the Gitlab server. )加一个环境变量,执行一下 :
$ export GIT_SSL_NO_VERIFY=1
就可以了 :-D。
INSTALL QEMU
这个实验要用的是MIT打过补丁的QEMU,不然(据说)没法调试一些东西。官方给出的指导如下:git clone https://github.com/geofft/qemu.git -b 6.828-1.7.0
On Linux, you may need to install the SDL development libraries to get a graphical VGA window. On Debian/Ubuntu, this is the libsdl1.2-dev package.
Linux: ./configure –disable-kvm [–prefix=PFX] [–target-list=”i386-softmmu x86_64-softmmu”]
OS X: ./configure –disable-kvm –disable-sdl [–prefix=PFX] [–target-list=”i386-softmmu x86_64-softmmu”]
Tips:The prefix argument specifies where to install QEMU; without it QEMU will install to /usr/local by default. The target-list argument simply slims down the architectures QEMU will build support for.
make,then make install
BUT!实际情况你需要提前装一大堆东西,这个链接一定能帮助你,请务必一步一步按照链接全部配置。并且首先把Linux源换成官方源/(ㄒoㄒ)/~~,不要问我为什么,血的教训。
然后lab1所需要的所有资源就准备好了:-D相关文章推荐
- Fragment初学8——Fragment在Android开发中的应用2
- 电子技术普及贴
- 【AJAX】XMLHttpRequest对象的使用
- 1、点击改变
- 软件测试结果分析和质量报告
- ajax(2)
- Git学习图
- DrawerLayoutACtionBar
- 光模块SFP+与SFP、XFP、QSFP、QSFP+的区别
- 开源大数据查询分析引擎现状201506
- angular-flot学习总结
- ok6410驱动usb摄像头
- 彻底理解js中this
- JAVA学习20160226
- 1054. The Dominant Color (20)
- angular-flot学习总结
- easyui 自动动态合并单元格
- 解决VS2010链接错误:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- Runtime学习--转载自http://www.saitjr.com/ios/objc-runtime.html
- Linux学习图