xv6

port of xv6 to x86-64
git clone http://frotz.net/git/xv6.git
Log | Files | Refs | README | LICENSE

README.syslinux (745B)


      1 
      2 # create a 513MB disk with 512MB partition 1
      3 % truncate -s 513M hdd
      4 % fdisk hdd
      5 n / p / 1 / <enter> / <enter>
      6 a / 1
      7 w
      8 
      9 # configure mtools to see the first partition on that image
     10 % cat <<EOF > mtools.rc
     11 drive s:
     12   file="hdd"
     13   offset=1048576
     14   cylinders=512 heads=32 sectors=32
     15   mformat_only
     16 EOF
     17 % export MTOOLSRC=mtools.rc
     18 
     19 % mformat s:
     20 
     21 # install and configure syslinux
     22 % dd if=/usr/lib/syslinux/mbr.bin of=hdd bs=440 count=1 conv=notrunc
     23 % syslinux -t 1048576 -i hdd
     24 % mmd s:syslinux
     25 % mcopy -o /usr/lib/syslinux/mboot.c32 s:syslinux
     26 % echo 'DEFAULT mboot.c32 -aout /kernel.elf' > syslinux.cfg
     27 % mcopy -o syslinux.cfg s:syslinux/syslinux.cfg
     28 
     29 # install xv6 
     30 % mcopy -o out/kernel.elf s:kernel.elf
     31 
     32 # boot
     33 % qemu-system-i386 hdd -net none
     34 
     35