How QEMU works – Chapter 1

Posted: maggio 20th, 2013 | Author: | Filed under: English, Guide, QEMU, Virtualizzazione | Tags: , , , , , | No Comments »

I’ve worked a lot with QEMU some months ago and I’ve learned some tricks that maybe can be useful for someone. Before starting this is the list of the arguments which will be treated in the future articles

  1. QEMU introduction
  2. TCG helpers
    TCG variables
    TCG caches
  3. QEMU parameters
    QEMU RAM functions
  4. ARM semihosting Read the rest of this entry »

OMG I’ve deleted a system directory! How do I recover it?

Posted: febbraio 20th, 2013 | Author: | Filed under: English, Guide, Howto | Tags: , , , , , , , , , , | No Comments »

Ok, a little introduction first. I was working on an uninstall target of a Makefile for a system library. For a very unlucky case (or maybe for my stupidity) I’ve deleted (fortunately not all) my /usr directory :)

And now?

As I said before not every files and binaries were deleted because I realized quickly what I was doing and I pressed ctrl-c to stop it before it was late.

Let’s start with the trick.
Read the rest of this entry »

How to automatically execute a VIM command only for some file types

Posted: maggio 21st, 2012 | Author: | Filed under: English, Guide, Howto | Tags: , , , , , , | No Comments »

I want to set the maximum line length to a certain value, only for tex files.

VIM has a command to force line length. It’s:

set tw=120

To automatically execute this command only for tex files, you have to edit your vimrc file (~/.vimrc or /etc/vim/vimrc) adding the following lines:

if has("autocmd")
autocmd BufRead,BufNewFile *.tex set tw=120

Now VIM will execute this command every time that you will open a tex file.

Read and write RAM physical addresses from Linux user space

Posted: aprile 22nd, 2012 | Author: | Filed under: ARM, C/C++, English, Linux, Programmazione | Tags: , , , , , | No Comments »

Ok, this is another trick I learned working on my project.

I’ve a QEMU arm machine and a simulation outside them. QEMU shares his RAM (in the future I’ll write about this) with the simulator so I want to unlock the simulation (that is waiting for a 1 at the address 0x0FF8000) writing the specified value on that address using an application in user space inside the VM.

Read the rest of this entry »

C++ library in a C application

Posted: aprile 10th, 2012 | Author: | Filed under: C/C++, English, Guide, Programmazione | Tags: , , , , , , , , | No Comments »

This is the second part of the integration of a SystemC module into Qemu. SystemC is C++ so I’ve had lots of problems trying to link my library (that is a multiprocessor simulator written in SystemC) with Qemu, because this is written in pure C. Read the rest of this entry »

  • Articoli Recenti:

  • Tag

  • Categorie

  • Meta

  • Licenza Creative Commons

    Copyright © 2020, | – Blog is proudly powered by WordPress All rights Reserved | Theme by Ryan McNair modified By Francesco Apollonio

    Smilla Magazine Il Bloggatore Feedelissimo - tecnologia WebShake - tecnologia