Ubuntu : How to install Qemu , Qemu patch and qemu-system-sparc on ubuntu 12.04

How to install Qemu , Qemu patch and   qemu-system-sparc on ubuntu 12.04

Step : 1
Install required Ubuntu packages for Qemu compilation

kartook@Lap:~/Downloads$sudo apt-get install libncurses5-dev zlib1g-dev libsdl-dev libpcap-dev

Step : 2

Download Qemu Package and install :
kartook@Lap:~/Downloads$wget http://mirror.veriportal.com/savannah/qemu/qemu-0.14.1.tar.gz
kartook@Lap:~/Downloads$tar xvzf qemu-0.14.1.tar.gz
kartook@Lap:~/Downloads$
kartook@Lap:~/Downloads$cd qemu-0.14.1
kartook@Lap:~/Downloads/qemu-0.14.1$./configure –target-list=i386-softmmu
kartook@Lap:~/Downloads/qemu-0.14.1$make
kartook@Lap:~/Downloads/qemu-0.14.1$sudo make install
kartook@Lap:~/Downloads/qemu-0.14.1$
Download the patch from below link . Note : you need to login for 4shared

Download the patch from   http://www.4shared.com/file/STdSHGb4/0018-qemu-0141-mcast-udp.html
Move the file in to following path kartook@Lap:~/Downloads/qemu-0.14.1

kartook@Lap:~/Downloads/qemu-0.14.1$patch -p1 -i qemu-0.11.0-olive.patch kartook@Lap:~/Downloads$

Patch output like this
You should see output like this:

patching file block/raw-win32.c
patching file hw/e1000.c
patching file Makefile.objs
patching file net/udp.c
patching file net/udp.h
patching file net.c
patching file net.h
patching file qemu-options.hx

Check installaiton

Step : 3

kartook@Lap:~/usr/local/bin/qemu –version
QEMU emulator version 0.14.1, Copyright (c) 2003-2008 Fabrice Bellard

Step : 4
Download developement file for qemu-system-sparc

 

kartook@Lap:~/Downloads$sudo apt-get install git

kartook@Lap:~/Downloads$git clone git://git.qemu.org/qemu.git

Compile and install Qemu for sparc architecture
kartook@Lap:~/Downloads$
kartook@Lap:~/Downloads$cd /qemu
kartook@Lap:~/Downloads/qemu$sudo ./configure –target-list=sparc-softmmu
kartook@Lap:~/Downloads/qemu$make
kartook@Lap:~/Downloads/qemu$sudo make install

Step : 5
Check the version with command:

kartook@Lap:~/Downloads$/usr/local/bin/qemu-system-sparc –version
QEMU emulator version 1.0.50, Copyright (c) 2003-2008 Fabrice Bellard
kartook@Lap:~/Downloads$

2 thoughts on “Ubuntu : How to install Qemu , Qemu patch and qemu-system-sparc on ubuntu 12.04

  1. NetworkZeus says:

    Hi great post

    which downloads should I get if I’m using Ubuntu 11.0.4 32 bit.

    When I run “make” and then “make Install”
    I get…

    net/udp.c:80: error: ‘NET_CLIENT_TYPE_UDP’ undeclared here (not in a function)
    net/udp.c:123: note: previous definition of ‘net_init_udp’ was here
    make: *** [net/udp.o] Error 1

    Kind regards

    NetworkZeus

    • kartook says:

      Thanks for your visit and happy to help .

      THis issue is related to Patch file error . Can you download once again and try .

      Dont miss the steps and comments .

      Thanks
      Ka~

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.