[Qemu-devel] adaptation of emu

2014-01-21 Thread Herbei Dacian
hi All,
would anyone be interested to adapt qemu to show some information visually as 
the operating system on top runs?
The run must be completely emulated.
of coursed I don't expect it for free.
regards,
dacian





On Tuesday, 14 January 2014, 15:34, Herbei Dacian dacian_her...@yahoo.fr 
wrote:
 

Hi Lluis,
thank you.
Do you know in what state is. compilable, running, testing?
best wishes,
dacian





On Tuesday, 14 January 2014, 14:42, Lluís Vilanova vilan...@ac.upc.edu wrote:
 
Herbei Dacian dacian_her...@yahoo.fr wrote:
 Hi,
 I would like to implement a hardware that is able to keep track of memory
 accesses as the code gets executed.
 I'm not interested in the speed of execution this can be as slow as it can get
 but I have to be able to read from where each instruction in the memory is
 loaded how many bytes, if it reads what is the address and how many bytes and 
 if
 it writes the address or register and how many bytes.
 Is this possible to implement in qemu?

I suppose this could work for you:

  https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki


Lluis

-- 
And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer.
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth

[Qemu-devel] edit qemu with eclipse

2014-01-15 Thread Herbei Dacian
Hi,
Is there any way to edit qemu sources as eclipse projects?
I could also edit in another IDE but I'm familiar only with eclipse.
Any suggestions?
best regards,
dacian

Re: [Qemu-devel] edit qemu with eclipse

2014-01-15 Thread Herbei Dacian
thank you Stefan!






On Thursday, 16 January 2014, 7:39, Stefan Hajnoczi stefa...@gmail.com wrote:
 
On Wed, Jan 15, 2014 at 10:17:52PM +, Herbei Dacian wrote:

 Is there any way to edit qemu sources as eclipse projects?
 I could also edit in another IDE but I'm familiar only with eclipse.

I'm sure it's possible but most developers use the shell (bash, zsh,
etc) and text editor (vim, emacs, etc) of their choice instead.

I don't use Eclipse but in general:
1. Run cd qemu  ./configure from a shell to prepare for building
   QEMU
2. Import the QEMU source tree into Eclipse so the .c and .h files are
   in your project.  Now you can browse/edit the code.
3. Configure the project build settings to invoke make.  Don't try to
   use the IDE's build support because QEMU has a custom build system
   and it probably won't work.

You may also be able to set up git integration in the IDE but I don't
know how that works.

Stefan

[Qemu-devel] multiple chip simulation

2014-01-14 Thread Herbei Dacian

Hi,
I would like to implement a hardware that is able to keep track of memory 
accesses as the code gets executed.
I'm not interested in the speed of execution this can be as slow as it can get 
but I have to be able to read from where each instruction in the memory is 
loaded how many bytes, if it reads what is the address and how many bytes and 
if it writes the address or register and how many bytes.
Is this possible to implement in qemu?
best regards,
dacian

Re: [Qemu-devel] multiple chip simulation

2014-01-14 Thread Herbei Dacian
thank you Antony!
dacian





On Tuesday, 14 January 2014, 10:29, Antony Pavlov antonynpav...@gmail.com 
wrote:
 
On Tue, 14 Jan 2014 09:20:04 + (GMT)

Herbei Dacian dacian_her...@yahoo.fr wrote:

 
 Hi,
 I would like to implement a hardware that is able to keep track of memory 
 accesses as the code gets executed.
 I'm not interested in the speed of execution this can be as slow as it can 
 get but I have to be able to read from where each instruction in the memory 
 is loaded how many bytes, if it reads what is the address and how many bytes 
 and if it writes the address or register and how many bytes.
 Is this possible to implement in qemu?

See this very experimental work: 
  http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg00923.html

-- 
Best regards,
  Antony Pavlov

Re: [Qemu-devel] multiple chip simulation

2014-01-14 Thread Herbei Dacian

Hi Lluis,
thank you.
Do you know in what state is. compilable, running, testing?
best wishes,
dacian





On Tuesday, 14 January 2014, 14:42, Lluís Vilanova vilan...@ac.upc.edu wrote:
 
Herbei Dacian dacian_her...@yahoo.fr wrote:
 Hi,
 I would like to implement a hardware that is able to keep track of memory
 accesses as the code gets executed.
 I'm not interested in the speed of execution this can be as slow as it can get
 but I have to be able to read from where each instruction in the memory is
 loaded how many bytes, if it reads what is the address and how many bytes and 
 if
 it writes the address or register and how many bytes.
 Is this possible to implement in qemu?

I suppose this could work for you:

  https://projects.gso.ac.upc.edu/projects/qemu-dbi/wiki


Lluis

-- 
And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer.
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-18 Thread Herbei Dacian

good to know.
I was working back in 2005-2006 with a company that had a 4MB kernel.
At that time I was too inexperienced to work at that level but I thought now I 
could reproduce their work with some help.
Anyhow for the moment I'll go for 256 MB of ram board just so that I don't 
worry too much about things that are not yet relevant for me.
But thanks again for the warning.
But since you helped me soo much I have another question.
Is it fisible to change the emulator so that I may visualize the following 
aspects:
_ address of the currently executed instruction from the guest system
_ if this instruction is a form of jump like call return conditional jump.
_ the address or range of addresses read by this instruction
_ the address or range of addresses written by this instruction

I read some things about the emulator and if I understood it correctly the 
emulator breaks the instructions of the gurest platform in micro ops which are 
then executed on the host operation system.
So I'm asking the question above in the idea that maybe there is also somekind 
of reordering of these micro instructions.
best regards,
dacian





 From: Rob Landley r...@landley.net
To: Herbei Dacian dacian_her...@yahoo.fr 
Cc: Peter Maydell peter.mayd...@linaro.org; QEmu Devel 
qemu-devel@nongnu.org 
Sent: Sunday, 18 August 2013, 8:00
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 08/16/2013 11:17:06 AM, Herbei Dacian wrote:
 my system should run in far less memory. something like 2-4MB.
 but first I need to have a system running so that I can monitor with  
 qemu the addresses accessed for read execute and write by the code  
 run by the emulator.
 if I reach that is a real big deal.
 dacian

Linux 2.6 and later won't run in 2 megs at all. You can trim it down to  
4 megs on a nommu system (the page tables take up too much ram  
otherwise), but won't be able to do much.

Really, things like kobjects in the modern kernel take up too much  
space. Getting anything to work in 4 megs requires diabling all the  
printk strings at compile time. (The last time I saw somebody do a 4  
meg system was CELF in 2006. 32 bit x86.)

Look at the uClinux project. Or try to bolt your app onto uboot and run  
it on the bare metal.

Rob

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-16 Thread Herbei Dacian
Thanks Rob I think that should do it for me.






 From: Rob Landley r...@landley.net
To: Andreas Färber afaer...@suse.de 
Cc: Herbei Dacian dacian_her...@yahoo.fr; QEmu Devel qemu-devel@nongnu.org 
Sent: Friday, 16 August 2013, 17:59
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 08/15/2013 06:53:30 AM, Andreas Färber wrote:
 Hi,
 
 Am 15.08.2013 10:57, schrieb Herbei Dacian:
 
  please, can anyone recommend me a distribution that offers a  
 barebone
  linux kernel.
  minimum that I need on that image are:
  _ the kernel
  _ the compiler and development infrastructure to build it
 
 Aboriginal Linux.
 
 Andreas

Aboriginal actually comes with qemu launch scripts for each target.  
./run-emulator.sh is just the qemu command line, ./dev-environment.sh  
is a wrappe around that providing a better development enviornment  
(more memory and disk space). It's all described at  
http://landley.net/aboriginal/about.html

Try this:

   wget http://landley.net/aboriginal/bin/system-image-armv5l.tar.bz2
   tar xvjf system-image-armv5l.tar.bz2
   cd system-image.armv5l
   ./run-emulator.sh

   gcc /usr/src/thread-hello2.c -lpthread
   ./a.out
   exit

Thanks,

Rob

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-16 Thread Herbei Dacian
my system should run in far less memory. something like 2-4MB.
but first I need to have a system running so that I can monitor with qemu the 
addresses accessed for read execute and write by the code run by the emulator.
if I reach that is a real big deal.
dacian





 From: Rob Landley r...@landley.net
To: Herbei Dacian dacian_her...@yahoo.fr 
Cc: Peter Maydell peter.mayd...@linaro.org; QEmu Devel 
qemu-devel@nongnu.org 
Sent: Friday, 16 August 2013, 18:05
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 08/15/2013 09:01:19 AM, Herbei Dacian wrote:
 
 yes but which binary do I use to call to run an emulated arm image?
 
 is there an actual binary that can emulate an existing arm board,  
 anyboard?
 qemu?
 if not which is the emulator that works with arm?
 If not where is the project that I can tweak to build such a binary.

The arm versatilepb emulation can accept a range of processors (I've  
tried armv4, armv4t, armv5, armv6, and armv7), provides a PCI bus with  
a virtual hard drive controller and network card, and can accept 256  
megs of ram. (In theory it can accept more but I have to get the  
discontiguous memory stuff to work, haven't done that yet.)

That's the one I used in Aboriginal Linux arm images.

Rob

[Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Herbei Dacian

hi,
please, can anyone recommend me a distribution that offers a barebone linux 
kernel.
minimum that I need on that image are:
_ the kernel
_ the compiler and development infrastructure to build it
regards,
dacian

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Herbei Dacian

In the end I went for debian cause it is widely used.

So I'm using the following command to install linux:
qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-armel-CD-1.iso -boot d

And I get this error:
Kernel image must be specified

In the documentation is mentioned that i don't need a bzImage if the CD is 
bootable.
any suggestions?

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Herbei Dacian

OK but which command should I use if that is broken and where I can find some 
documentation that is actually up to date?




 From: Peter Maydell peter.mayd...@linaro.org
To: Herbei Dacian dacian_her...@yahoo.fr 
Cc: QEmu Devel qemu-devel@nongnu.org 
Sent: Thursday, 15 August 2013, 15:31
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 15 August 2013 14:22, Herbei Dacian dacian_her...@yahoo.fr wrote:

 In the end I went for debian cause it is widely used.

 So I'm using the following command to install linux:
 qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-armel-CD-1.iso
 -boot d

This command line is totally broken. You're running
(by default) an emulation of the 'integratorcp' board (which is
pretty much obsolete and a bad choice), and you're trying to
pass it a CDROM image, when the board doesn't have a CDROM
drive. You need to specify the right board to emulate (with
'-M something' and also pass a kernel and an initrd to load
(with -kernel and -initrd).

-- PMM

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Herbei Dacian

yes but which binary do I use to call to run an emulated arm image?

is there an actual binary that can emulate an existing arm board, anyboard?
qemu?
if not which is the emulator that works with arm?
If not where is the project that I can tweak to build such a binary.


I can search for the board that is not a problem and then I can tweak the 
project but I need to know where can I find this.
I couldn't find any documentation in this direction.




 From: Peter Maydell peter.mayd...@linaro.org
To: Herbei Dacian dacian_her...@yahoo.fr 
Cc: QEmu Devel qemu-devel@nongnu.org 
Sent: Thursday, 15 August 2013, 15:48
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 15 August 2013 14:46, Herbei Dacian dacian_her...@yahoo.fr wrote:
 OK but which command should I use if that is broken and where I can find
 some documentation that is actually up to date?

You need to start by finding out which of the boards QEMU
models your distribution actually supports, and the expected
install method for them. ARM is *not* like x86 here -- all x86
systems are basically identical, but all ARM boards are
different and you need the correct kernel for the board you're
running, whether that board is real hardware or emulated.

-- PMM

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Herbei Dacian

but you said that qemu-system-arm is not maintained and it doesn't work.

The link below contains only links to kernel images that don't work.
Anyway I'll figure it somehow cause this doesn't help me.




 From: Peter Maydell peter.mayd...@linaro.org
To: Herbei Dacian dacian_her...@yahoo.fr 
Cc: QEmu Devel qemu-devel@nongnu.org 
Sent: Thursday, 15 August 2013, 16:05
Subject: Re: [Qemu-devel] minimal linux distribution for qemu
 

On 15 August 2013 15:01, Herbei Dacian dacian_her...@yahoo.fr wrote:
 yes but which binary do I use to call to run an emulated arm image?

qemu-system-arm.

 is there an actual binary that can emulate an existing arm board, anyboard?

qemu-system-arm -M help lists the boards we support.

http://www.aurel32.net/info/debian_arm_qemu.php is a good howto
type document.

-- PMM

[Qemu-devel] memory reads and writes

2013-08-14 Thread Herbei Dacian


Hello all,
my name is Dacian and I'm new on this mailing list.
I would like to visualize during execution the addresses of the instruction 
currently been executed, the address of the memory being read and being written 
by the same execution if it applies.
has anyone tried this before maybe is already implemented.
best regards,
dacian