Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile and run xv6 on windows?

We are being taught xv6 in our course. Currently we use to login to linux server of our school using putty in windows.

There we make changes in source of xv6 (using vim), then compile and run it in qemu simply

make clean
make
make qemu-nox

It is not always possible to connect to their servers therefore I want to be able to compile and run xv6 withing windows (in some emulator obviously).

What emulator I can use for above kind work? (edit code, compile and run) and how?

like image 457
SMUsamaShah Avatar asked Sep 23 '11 17:09

SMUsamaShah


People also ask

How do I run a xv6 program?

Getting xv6 runningIn the newly created xv6 directory, run make . Boot xv6 in an emulator using one of the following methods: To boot the OS in an emulator with a graphical user interface, run make qemu . To boot the OS in an emulator without a graphical user interface, run make qemu-nox .

How do you terminate the QEMU console and the xv6 running under it?

Note, if you need to exit GDB you can press Ctrl-C and then Ctrl-D. To exit xv6 running under QEMU you can terminate it with Ctrl-A X.


1 Answers

Well, there are reasonable instructions on how to construct environment for building and using XV6 under Windows in the site http://www.cs.mta.ac.il/~carmi/Teaching/OS.xv6/index.html. The emulator they are using for actually running it is Bochs.

like image 118
Morass Avatar answered Sep 24 '22 13:09

Morass