GithubHelp home page GithubHelp logo

jos_lab_mit_2017's Introduction

jos-lab


The official website

本仓库的代码为mit的

本仓库的过程记录为mit+sjtu的

lab tools guide

计算机汇编语言

课程参考

强烈建议用虚拟机完成lab[sjtu有提供配置好了的vm 方法见SJTUREADME.md] 下面讲手工配置

下载ubuntu 32位 桌面版并用虚拟机安装 注意一定要是32位

sjtu的同学可以使用wget http://ftp.sjtu.edu.cn/ubuntu-cd/16.04.2/ubuntu-16.04.2-desktop-i386.iso进行下载

警告 我有尝试64位的ubuntu16.10,配了我40+小时没有配好[虽然有人说mit已经把lab从32位移植到64位上了],所以如果没有闲情逸致,请勿尝试64位或其它版本,我测试可用的是32位ubuntu16.04.2

我有尝试下载ubuntu server版,然后用ssh连接,之后的configure里加上选项--disable-kvm,并将make qemu全部换为make qemu-nox,一旦运行崩了,通过另一个ssh 去kill 进程,再reset之前的ssh连接的窗口,这样也是可以玩的:-), desktop大小可是server的两倍多哦

当然你如果不够熟练不用鼠标,也没有这般闲情逸致的话,建议还是下载有图形的ubuntu桌面版本,[当然桌面版也可以这样用ssh玩

依赖安装 (安装前注意换源(sudo apt edit-sources),sjtu有ubuntu内源哦 亲测≈10MB/s)

  • sudo apt-get update && sudo apt-get install git gcc-multilib build-essential python libsdl1.2-dev libtool-bin libglib2.0-dev libz-dev libpixman-1-dev -y
  • sjtu 的虚拟机,源要换成deb http://archive.debian.org/debian squeeze main

QEMU

获取 三种方法 任选一种

  • [方法一 mit的qemu2.3.0] git clone http://web.mit.edu/ccutler/www/qemu.git mitqemu -b 6.828-2.3.0 && cd mitqemu
  • [方法二 github的qemu2.7] 从github获取qemu : git clone -b stable-2.7 --single-branch --depth=1 https://github.com/qemu/qemu.git qemu-2.7 && cd qemu-2.7
  • [方法三 sjtu的qemu1.5.2] 下载并解压 :wget http://ipads.se.sjtu.edu.cn/courses/os/2015/tools/qemu-1.5.2.tar.bz2 && tar xf qemu-1.5.2.tar.bz2 && mv qemu-1.5.2 sjtuqemu && cd sjtuqemu

配置

  • mit在./configure时有使用--disable-kvm选项
  • 绝对路径 建议使用形如/path_to_your_lab_dir/qemu_dir_name/dist的,例如我使用的/home/yexiaorain/Android/Documents/os/qemu-2.7/dist
  • 请修改命令中prefix的路径指向绝对路径 ./configure --prefix=CHANGE_THE_PATH_TO_ABSOLUTE_DIR --target-list="i386-softmmu" && make && make install

lab 代码

下载代码git clone https://github.com/YeXiaoRain/JOS_LAB_MIT_2017.git

分支结构git log --graph --decorate --all --oneline

jos_lab_mit_2017's People

Contributors

cromarmot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.