Skip to content

subhrendu1987/xv6-public

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ENVIRONMENT PREPARETION

LINUX

  1. sudo apt-get install git wget qemu aqemu
  2. sudo apt-get install libc6-dev:i386 gcc
  3. sudo apt-get install gdb
  4. git clone https://github.com/subhrendu1987/xv6-public/
  5. cd xv6-public && make qemu
  6. If you have 64 bit OS there is a chance Makefile will not be able to find qemu. Check using the command make qemu-nox and see the output. In that case you should edit the Makefile at line 54 and add the following code: QEMU = qemu-system-x86_64
  7. make qemu-gdb
  8. Open new terminal cd xv6-public && gdb ./kernel

BUILDING AND RUNNING XV6

  • To build xv6 on an x86 ELF machine (like Linux or FreeBSD), run "make".

  • On non-x86 or non-ELF machines (like OS X, even on x86), you may need to install a cross-compiler gcc suite capable of producing x86 ELF binaries (see https://pdos.csail.mit.edu/6.828/).

  • Then run "make TOOLPREFIX=i386-jos-elf-". Now install the QEMU PC simulator and run "make qemu".

Packages

No packages published

Languages

  • C 86.0%
  • Assembly 4.0%
  • Makefile 3.6%
  • Shell 2.4%
  • Perl 2.1%
  • Ruby 1.1%
  • Other 0.8%