Saturday, 10 October 2015

How to Run Barrelfish operating system on Ubuntu

How to Run Barrelfish operating system on Ubuntu:


Barrelfish is not an operating system like any other linux and windows.It doesn't have any fancy GUI as of now.
The Barrelfish packages are unpacked in Ubuntu and the application programs are run in terminal like  any other  programs.


The instructions given below will help you to clone it.


Thank you Lokesh for providing this information.


Prerequisites:
1)Ubuntu operating system
2)Internet


The very Important step to begin is to update the packages present in ubuntu so to do that ,copy and paste it in terminal


$sudo apt-get update


How to Install Barrelfish:-   


Step-1.To get a full build environment of barrelfish on Ubuntu by running the following command::(For more information:wiki.barrelfish.org/Getting_Started)


     $sudo apt-get install build-essential bison flex cmake gcc-multilib qemu-system-x86 qemu-system-arm ghc libghc-ghc-paths-dev libghc-parsec3-dev libghc-random-dev gcc-arm-linux-gnueabi g++-arm-linux-gnueabi


Step-2.Get the latest version of Barrelfish from the mercurial repository::


      $git clone git://git.barrelfish.org/git/barrelfish


*CHECK: check whether the barrelfish files are installed or not.


Step-3.Once you have cloned the repository, cd into it, create a build directory, and enter it::


     $cd barrelfish
     $mkdir build
     $cd build


Step-4.Run ``hake.sh``, giving it the path to the source directory and target architecture(s)::
          Paste the command below as it is in the terminal.
  
     $ ../hake/hake.sh -s ../ -a x86_64


Note:
     This will configure the build directory and use GHC to compile and then run hake, a tool used to generate the ``Makefile``.
     you will receive an acknowledgement message saying-
*CHECK:"DONE!"   "Generated Makefile"
         Tip:If you get any error(ghc command not found gcc paths are not created)build environment is not  installed properly goto step-1 and install again


Step-5.If everything worked Run make, and wait ::
     $make


Note:  *If you get any error(defs.h files are not available)It means while cloning the barrelfish the packages are not  unpacked properly.
One of the ways to solve this error is copy x86_64 folder from a properly installed system.
(path for x86_64 folder:./barrelfish/build)
IT WILL TAKE A MINIMUM OF 15 MINUTES WHEN YOU ARE "MAKE"ing FOR THE FIRST TIME.SO BE PATIENT


Step-6.If everything worked, you should now be able to run Barrelfish inside QEMU ::
  
     $ make sim


Done … :)


Please drop a comment below if this works for you/if you have any errors regarding this.


Thank you.












8 comments:

  1. In Step4, the command gives an error while configuring the build directory.
    It gives the following error:
    Building hake...
    : cannot satisfy -package ghc-mtl
    Please help. Thanks in advance.

    ReplyDelete
    Replies
    1. Surya Vamshi,Third year CSE:

      sorry for late reply
      Actually barrelfish is working properly in my system .I can give you the whole folder of barrelfish directory so you can just run step-4 and everything works fine.

      Because this problem arises when all files are not properly downloaded

      Delete
  2. i am also getting a similar error
    cannot satisfy -package bytestring-trie
    plz comment asap.
    thank u

    ReplyDelete
    Replies
    1. That happens when all files of not downloaded properly
      Whole Barrelfish folder has 2BG size and in my system barrelfish is working properly.
      I can give you the folder if you all want

      Delete
  3. I am getting this error.
    The targets 'sim' and 'simulate' have removed.
    Type 'make help-boot' for a list of simulation targets.
    when i typed "make help boot",
    Boot instructions supported by this Makefile. Use 'make ':
    (these are the targets available with your architecture choices)

    qemu_x86_64:
    Boot QEMU in 64-bit x86 mode emulating a PC
    qemu_x86_64_debug:
    Boot QEMU under GDB in 64-bit x86 mode emulating a PC
    what should be my next step?

    ReplyDelete
  4. Guys
    http://wiki.barrelfish.org/Getting_Started

    The above link useful for installing it(Ofcourse we made this documentation with this help)

    You can actually run a hello world program which was already present in barrelfish folder after installing the os properly

    http://wiki.barrelfish.org/Programming_for_Barrelfish

    If you still have doubts i can explain you how to run any program on barrelfish.

    ReplyDelete