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

[email protected]:~/Downloads$sudo apt-get install libncurses5-dev zlib1g-dev libsdl-dev libpcap-dev

Step : 2

Download Qemu Package and install :
[email protected]:~/Downloads$wget http://mirror.veriportal.com/savannah/qemu/qemu-0.14.1.tar.gz
[email protected]:~/Downloads$tar xvzf qemu-0.14.1.tar.gz
[email protected]:~/Downloads$
[email protected]:~/Downloads$cd qemu-0.14.1
[email protected]:~/Downloads/qemu-0.14.1$./configure –target-list=i386-softmmu
[email protected]:~/Downloads/qemu-0.14.1$make
[email protected]:~/Downloads/qemu-0.14.1$sudo make install
[email protected]:~/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 [email protected]:~/Downloads/qemu-0.14.1

[email protected]:~/Downloads/qemu-0.14.1$patch -p1 -i qemu-0.11.0-olive.patch [email protected]:~/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

[email protected]:~/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

 

[email protected]:~/Downloads$sudo apt-get install git

[email protected]:~/Downloads$git clone git://git.qemu.org/qemu.git

Compile and install Qemu for sparc architecture
[email protected]:~/Downloads$
[email protected]:~/Downloads$cd /qemu
[email protected]:~/Downloads/qemu$sudo ./configure –target-list=sparc-softmmu
[email protected]:~/Downloads/qemu$make
[email protected]:~/Downloads/qemu$sudo make install

Step : 5
Check the version with command:

[email protected]:~/Downloads$/usr/local/bin/qemu-system-sparc –version
QEMU emulator version 1.0.50, Copyright (c) 2003-2008 Fabrice Bellard
[email protected]:~/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.

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