Ubuntu + QEMU + Xv6 environment to build

OS: Ubuntu 16.04 32 bit

Virtual Machines: VMware

Emulator: QEMU

Preceded by a centos 64-bit virtual machine, use the source code installation configuration environment, the number of columns questions, and ultimately the environment have a good job, but also able to run Xv6 on qemu, but want to follow the lab to do experiments, when various compilers internal error, too lazy to toss these, so decided to install a new ubuntu 32-bit virtual machine;

 

The following is the step of recording:

1. Install qemu, in order to facilitate the direct use apt-get install; installation process is relatively slow, but too much time and effort than he compiled;

sudo apt-get install qemu

Installation, running under test;

qemu-system-i386

See the following interface, the installation proved successful;

 

2. Installation git, mounting Vim;

sudo apt-get install git
sudo apt-get install vim

 

3. clone a source Xv6 down;

git clone https://github.com/mit-pdos/xv6-public.git

 

4. Enter xv6 source directory, edit the Makefile Xv6 disposed QEMU;

vim Makefile

The QEMU = qemu-system-i386 line comments removed;

 

5. Compile Xv6 Source:

make

 

6. After no problem, use qemu start Xv6;

make qemu

Below, a successful start;

Try to execute ls;

Guess you like

Origin www.cnblogs.com/wanpengcoder/p/11768500.html