您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: