Skip to content

aristotle0x01/6.828

Repository files navigation

6.828

6.828 based on https://pdos.csail.mit.edu/6.828/2018/schedule.html

env setup

basic dependencies

uname -r
cat /etc/lsb-release

Guest Additions (shared folder issue)

https://askubuntu.com/questions/655262/ubuntu-14-04-vbox-guest-additions-problem-installing

https://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm

ssh

ssh_port

[How to enable ssh root access ubuntu 16.04 duplicate]

********on guest********
// change root passwd
passwd root

// install openssh-server
apt-get install openssh-server
service ssh enable

// enable root access
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
servie ssh restart

********on host********
ssh-copy-id -p 2222 -i ~/.ssh/id_rsa.pub root@localhost
ssh -p '2222' 'root@localhost'

user & key

jos: 123456

6.828 compile & dev env

Tools Used in 6.828

qemu compile

// make sure qemu source is not in vbox shared folder, would complain ln error

apt-get upgrade
apt-get update

apt-get install pkg-config libsdl1.2-dev libtool-bin libglib2.0-dev libz-dev libpixman-1-dev
./configure --disable-kvm --enable-debug --target-list="i386-softmmu x86_64-softmmu"
make && make install

// disable warning as error
config-host.mak # rm QEMU_CFLAGS: -Werror
// undefined reference to major
add "#include <sys/sysmacros.h>" to "qga/commands-posix.c"

Labs

lab1.md

booting

lab2.md

jos paging

lab3.md

u/k space

lab4.md

jos stack view

lab5.md

jos file system

lab6.md

mapping

hw.md

cpu alarm