[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Hardware model emulation

From: Priyamvad Acharya
Subject: Re: New Hardware model emulation
Date: Tue, 3 Mar 2020 18:15:07 +0530

Thanks Stefan for explaining the method.
After following above method when I run below command to compile my custom device in Qemu source code , I get the output on terminal which is attached in a file for your reference.

Command:- make -j8 -C build

Most of the lines in attached file indicate that error might be due to helper.c file.

How to resolve it?

My qemu version:4.2.50

Priyamvad Acharya

On Tue, 3 Mar 2020 at 16:16, Stefan Hajnoczi <address@hidden> wrote:
On Tue, Mar 3, 2020 at 7:45 AM Priyamvad Acharya
<address@hidden> wrote:

Please use Reply-All when replying to mailing list emails so that
address@hidden is included in the CC list.  That way the
discussion stays on the mailing list.

> Hi,
> I have written code to emulate a custom PCI device.
> Now I want to run custom device with Qemu, so that user application can perform read/write operation with custom PCI device.
> So what is the method to do it?

1. Add the source file somewhere below hw/.
2. Add a make rule to build the object file in Makefile.objs in the
same directory as the source file.
3. Compile QEMU and run with -device testpci.

> I am new to emulating a custom device model in Qemu, so request you to explain me in that way.

Reading the source code is necessary to understand how things work.
You can find many examples of devices in the hw/ directory.  Using
git-log(1) can be helpful because it shows how new devices were


Attachment: qemu_arm_build_hello_err1.txt
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]