Friday, August 12, 2011

OSDEV Series - Episode 1.4 - Windows trouble



Section 1: Introduction
Episode 4: Windows trouble

Project files: http://dl.dropbox.com/u/24832466/OSDEV/MyOS-1.4.zip

Covered topics:
In this episode, we create a proper environment to create operating systems, on Windows.
* Using Virtual Floppy Drive (to replace mount)
* Creating a GRUB floppy image
* Building GCC and Binutils
* Building the kernel created in the previous episode, on a Windows computer.

Special credits:
http://wiki.osdev.org for the building GCC tutorial.

6 comments:

  1. Gintautas@Gintautas-PC /usr/src/build-gcc
    $ make all-gcc
    make: *** No rule to make target `all-gcc'. Stop.

    what is wrong? Please answer with solution.

    ReplyDelete
    Replies
    1. I think it's because of this:
      Gintautas@Gintautas-PC /usr/src/build-gcc
      $ ../gcc-4.7.2/configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without headers
      configure: error: unrecognized option: `--without'
      Try `../gcc-4.7.2/configure --help' for more information.

      any solution?

      Delete
  2. Fixed the make all-gcc error, but:

    Gintautas@Gintautas-PC /cygdrive/c/Users/Gintautas/De­sktop/MyOS
    $ ./build.sh
    Building...
    ===========
    cp: cannot create regular file `/mnt/floppy/kernel.bin': Permission denied

    please help, I can't find the solution.

    ReplyDelete
  3. Okay, maybe the last error:
    Gintautas@Gintautas-PC /cygdrive/c/Users/Gintautas/Desktop/MyOS
    $ ./build.sh
    Building...
    ===========
    mount: warning: couldn't determine mount type.


    any solution?

    ReplyDelete
    Replies
    1. EDIT: everything works totally fine, but I get this error, why?

      Delete