Questions tagged [qemu-device]
17 questions
2
votes
0 answers
How do I write a bare-metal RISC-V program to go from boot to writing to the UART0 on QEMU's `sifive_e` machine?
Background
I'm trying to understand the boot process for a simple RISC-V computer in detail.
I'm not interested in getting all the way to an operating system: I just want to know what happens between poweron and running a bare-metal program to write…

statusfailed
- 738
- 4
- 15
2
votes
1 answer
Possible ways to communicate between Guest to Host OS using Qemu?
What other possible ways exists to send data from Guest OS to Host Machines ?
I have tried in Qemu:
(1)using vhost-vsock, but it lags in performance.
(2)MMIO callbacks, but it also lags in performance.
Is there any other mechanism by which we can…

Animesh Kumar Sinha
- 29
- 2
0
votes
0 answers
pthread_mutex_init return EOPNOTSUPP(95) with qemu aarch64
I have tried to run with qemu-aarch64 process. And I see that the pthread_mutex_init return EOPNOTSUPP(95)
Maybe qemu-aarch64 makes a problem and I should debug that process into real aarch64 machine?(how can I do that?)

Polo1990
- 89
- 3
0
votes
1 answer
QEMU GPIO connect
i have been studying some QEMU source code, in particular bcm2835_gpio.c, where it uses a qdev_init_gpio_out function to initialize some output GPIOs, and then store the qemu_irq in an array. Then, in gpclr and gpset func it uses…

Angel Ruiz
- 39
- 5
0
votes
0 answers
How can I properly add a new custom device to QEMU?
I have to write and add a custom device to QEMU, it's a crypto accelerator core. The device is then to be simulated for Linux using the RISC-V ISA.
I have implemented the cryptographic algorithm inside a custom QEMU device in C using the QEMU object…

Shahab
- 1
- 2
0
votes
0 answers
Sources about device emulation in QEMU
Currently im wrinting a summary doc about how does QEMU work, mainly i explain concepts and only explain the most important features. Currently i have explained how CPU emulation is made with TCG, as its the default acelerator in QEMU, but im having…

Angel Ruiz
- 39
- 5
0
votes
0 answers
qemu-kvm -- some questions and doubts
I'm trying to setup a qemu-kvm VM following this guide as a reference. The only change I did was install DHCP and git as additional target packages while configuring buildroot.
This is how I invoke qemu:
sudo modprobe kvm-intel && sudo…

AjB
- 890
- 13
- 34
0
votes
0 answers
how to access local network from avd?
Is it possible to access a device (e.g. a Sonos box) from an emulated android phone via network bridge?
added tap0 and br0 to my Network configuration
from here:
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen…

Willi
- 1
- 2
0
votes
0 answers
Error while running emulator. Cant find executable
2023-01-02 00:30:42,727 [ 57060] INFO - Emulator: Pixel 6 Pro API 31 - Android emulator version 31.3.14.0 (build_id 9322596) (CL:N/A)
2023-01-02 00:30:42,728 [ 57061] INFO - Emulator: Pixel 6 Pro API 31 - emulator: INFO: Found systemPath…

EntryCoder
- 1
- 1
0
votes
0 answers
qemu simulate x86_64 can't use "virtio-gpu-gl"
my qemu version is 7.1.0.
my qemu configure: --enable-sdl --enable-opengl --enable-virglrenderer
When I use qemu-system-x86_64 -machine q35, it can run with a device virtio-gpu. But, when I use the device virtio-gpu-gl, qemu tells me ERROR:…

little_sand
- 11
- 1
0
votes
1 answer
qemu simulate xlnx-zcu102 report No 'PCI' bus found
qemu version is 7.1.0
I use qemu to simulate xlnx-zcu102. my qemu command is below, it can run OK:
./qemu-system-aarch64 -M xlnx-zcu102 -smp 4 -m 4G ......
but, when I add -device virtio-gpu or -device virtio-gpu-device,
(I added only one device:…

little_sand
- 11
- 1
0
votes
1 answer
Emulate ARM Cortex-M7 with qemu-system-arm.exe
I'm using Eclipse based CubeIDE and QEMU debugging plugin.
I'm working in assembler and can debug simple project (adding two numbers in registers) on STM32 Cortex M7 board (STM32H750DK). Now I'd like to do the same using QEMU and have problems,…

bully44
- 51
- 4
0
votes
2 answers
Android Emulator connect external storage Device while running
I have an App that needs to detect, if a USB Storage device is getting mounted. Can i simulate the mounting of an USB Storage Device while the Emulator is already running? This way i can debug the behavior of my app.
As i know, for registering the…

snux_cs
- 63
- 7
0
votes
0 answers
How to run qemu inside docker with networkmode bridged
I have a qemu-aarch64 commandline that uses a network in bridged mode like this.
qemu-system-aarch64 -nographic -machine virt -m 1G -smp 4 \
-cpu cortex-a53 \
-kernel ${illumos_dir}/usr/src/psm/stand/boot/aarch64/virt/inetboot.bin \
…

Toasterson
- 115
- 1
- 2
- 11
0
votes
2 answers
Run Sparc v9 64-bit executable on bare metal QEMU
I tried this recipe : How to run a bare metal ELF file on QEMU? to run bare metal AArch64 executables on QEMU (and it worked). I'd like to do the same for 64-bit SPARCv9 executables (preferably starting from C/C++, not assembly) - I tried the…

ihi
- 107
- 1
- 9