2,575
questions
0
votes
0
answers
27
views
Trying to bring up Android cuttlefish on my Jetson nano
I'm trying an experiment that no one tried yet : trying to booting up Android cuttlefish on my Jetson nano 4 GB,where I have installed Ubuntu 22.04 and the kernel 4.9. At the beginning the default ...
0
votes
1
answer
16
views
No FDT bootparam in aarch64 virt
I run
qemu-system-aarch64 -s -S \
-machine virt,gic_version=2,virtualization=on,secure=off \
-cpu cortex-a72 \
-m 2G \
-kernel mykernel.elf \
\
-chardev stdio,mux=on,id=...
0
votes
0
answers
21
views
Troubleshooting Data Abort Error While Debugging U-Boot on mcimx6ul-evk in QEMU
I am trying to debug U-Boot code in Ubuntu 18.04 using the mcimx6ul-evk board in QEMU. I have successfully compiled QEMU (./configure --prefix=/home/book/qemu/qemu-7.2.0_build --target-list=arm-...
1
vote
1
answer
89
views
Encountered a problem when enabling paging mode
I am learning to create an x86 protected mode program. Currently, the GDT is enabled, but I’m not sure if it is set up correctly. The issue I’m facing is that the CR3 register, regardless of what I do,...
0
votes
0
answers
14
views
Does Android Emulator gRPC host support access over network?
If you ever run the emulator.exe from Android Studio using command line arguments, this emulator (qemu) seems to be a gRPC service running on port 8554 :
?
Does that mean that it can be configured to ...
0
votes
1
answer
180
views
how to run android on qemu
I successfully compiled android12 using aosp, but I don’t know how to run it using qemu
qemu-system-x86_64 -enable-kvm -m 2048 -smp 4 -kernel out/target/product/generic_x86_64/kernel-5.10 -initrd out/...
0
votes
1
answer
54
views
QEMU with .wic Image: Unable to Detect Partitions in U-Boot on SABRE Lite
I'm currently working on emulating the SABRE Lite machine using QEMU, and I'm having trouble getting U-Boot to recognize the partitions within my .wic image.
I'm launching QEMU with the following ...
0
votes
0
answers
41
views
Qemu qcow2 image not recognized after copy from macOS to Windows for s390x (works with riscv64 and ppc64)
Using qemu 9.0.2 on macOS (arm64), I have 3 working VM's using riscv64, ppc64 and s390x architectures. Each of the 3 VM's uses one disk image in qcow2 format. I copy all files and scripts on a Windows ...
0
votes
0
answers
17
views
Why qbox gives meson setup fail issues when writing make in build
While building qbox on my system in facing the issues
github link for qbox: https://github.com/quic/qbox
Error :
../../../../libqemu-src/ui/meson.build:176:22: ERROR: Subproject exists but has no ...
0
votes
1
answer
47
views
riscv stack pointer initialization
I am using https://www.qemu.org/docs/master/system/riscv/virt.html to compile some code that prints 'U' out the uart.
My question is about stack initialization. I am assuming I can do this various ...
0
votes
0
answers
46
views
How can I load an ARMv8 based kernel into Qemu using a given fsbl and ssbl?
From what I have read, I know that using the -kernel option is geared toward emulating Linux kernel based software unless the file passed into that option is an ARM elf file. I have a custom aarch64 ...
0
votes
0
answers
40
views
Can we emulate / virtualize Android 14 by KostaKANG with AVD or qemu-system-arm on X64 ? Is there some difference?
Recently I've bought the RaspBerry Pi 4 and I've installed Android 14 AOSP by KostaKANG on it. It works well. But this has been only an intermediate step to reach another goal : try to emulate / ...
0
votes
0
answers
42
views
How to passthrough USB in Android Studio emulator
I really, really would like to use and test my USB device through the emulator on android studio, and not have to resort to pluging it into a physical device.
There has to be a way to do this, I just ...
0
votes
0
answers
9
views
CMD android emulator creation - memory argument not being read
I have a script used to create android emulators for automated testing purposes, which looks more or less as follows:
ANDROID_API_LEVEL=${1:-34}
DEVICE_NAME=${2:-TestEmulator}
SDK_NAME="system-...
0
votes
0
answers
33
views
Booting Cross compiled RISCV binaries on Qemu
I was able to cross compile binaries for RISCV ie., for Andes tech,
I have kernel Image file, fw_dynamic.elf and u-boot.img and initramfs.devnodes files.
I followed the instruction provided by ...
0
votes
1
answer
94
views
emulate UART with QEMU aarch64 for raspberry pi 4
I followed https://github.com/s-matyukevich/raspberry-pi-os/blob/master/docs/lesson01/rpi-os.md to run my first kernel for aarch64 for raspberry pi. I built it and put kernel8.img into image taken ...
1
vote
2
answers
107
views
How can I print a string on the Qemu screen when writing a simple OS?
I'm writing a simple OS. I'm having trouble with the output string in qemu screen, the output of the kernel.c file doesn't show on the qemu screen):
I have the following code:
bootloader.asm
BITS 16
...
1
vote
0
answers
37
views
Is there any way to add Ubuntu and Debian official cloud repository to virt-builder config file?
I want to obtain cloud images directly from these repositories instead of using this source: http://builder.libguestfs.org/. The Debian and Ubuntu images provided there are outdated. How can I add ...
0
votes
0
answers
19
views
QEMU compilation hanging unexpectedly
I'm using QEMU 8.1.2 and I've done some modifications to the code. When I compile, it does not show any errors, but hangs at a certain instance without completing the compilation.
SS of compilation ...
0
votes
1
answer
53
views
dracut Warning: Duplicate address detected for 10.0.2.15 while doing dhcp. retrying
I'm trying to boot Linux from Google Drive as mentioned in the blog. so for that, I've compiled dracut and created initramfs in form of efi image as mentioned in the blog.
./dracut.sh --kver 6.9.6-...
0
votes
0
answers
34
views
format of RISCV instruction encoding in Spike?
In QEMU RISCV instruction sub encoded according to RISCV spec,
where dots represent variable bits, which encode 2 source and 1 destination register indices.
sub 0100000 ..... ..... 000 ..... ...
0
votes
0
answers
169
views
Failed to create domain from /etc/libvirt/qemu/vps.xml error: internal error: Failed to start QEMU : libvirt kvm: Exec format error
Had This error:
Failed to create domain from /etc/libvirt/qemu/vps.xml error: internal error: Failed to start QEMU : libvirt kvm: Exec format error
The fix for me was to reinstall:
apt-get reinstall ...
0
votes
0
answers
24
views
How to use libpixman-1.so instead of libpixman-1.so.0 when building qemu-system-x86_64?
I added libqemu-system-x86_64.so to my Android app and this happened:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libpixman-1.so.0" not found: needed by /data/app/~~...
1
vote
0
answers
30
views
Read from disk using C kernel ATA Qemu
I am making a simple OS, and I want to read letters from disk in C kernel and display them on screen, I am using x86 SeaBIOS on Qemu emulator on M1 Mac. I save data using ata_write(1, 1, data) and ...
0
votes
0
answers
42
views
llama run on qemu-riscv64 with and without vector extension
I want to run llama with and without vector extension on qemu in ubuntu. i have the latest riscv toolchain and qemu. when i run the code
$ qemu-riscv64 -L /path/to/sysroot/ -cpu rv64,v=true,vlen=...
0
votes
0
answers
95
views
Running Android emulators using QEMU on top of Dockers based on Ubuntu OS
We are currently trying to run Android mobile automation scripts on top of dockers with ubuntu as base image , so i created a dockerfile with the below configurations :
Android Studio: Android Studio ...
0
votes
0
answers
37
views
Restoring riscv64 machine using a full backup
I have a cluster of riscv machines (LicheePI 4A) whom I want to back up in case something goes terribly wrong and I need to restore them up from scratch but keeping changes made. I am using a hard ...
0
votes
0
answers
54
views
Cannot stepi into ecall in xv6
I am on the traps lecture of the 2023 version of the course. Following the instructions here tell me that I can stepi into the ecall instruction and see the jump to trapframe.
This does not seem to ...
3
votes
1
answer
50
views
Why are multiple B.Cond statements always resolving only one way for variable input?
Utilizing arm64, on qemu.
I want to check whether a user inputted value is negative, positive, or zero. I have a SUBS instruction, followed by three B.Cond instructions. I'm using scanf with a %d ...
0
votes
0
answers
24
views
Decision of emulation type for Cortex A | QEMU vs Fast-modle
I hope you'll be able to throw in some words to help me decide what best suits me.
I work on a bring up of a CPU, consiting of ARM Cortex-A, supporting the newest (or almost the newest) ARMv9+.
I am ...
0
votes
1
answer
126
views
Writing to qemu RISCV UART using c
I made a helloworld program on RISC-V qemu using the UART using https://popovicu.com/posts/bare-metal-programming-risc-v/ Uros Popovicu's guide in RISC-V assembly. I was wondering how I could write to ...
0
votes
0
answers
37
views
How can i debug qemu with gdb to find out what the problem with one vector instruction implement in rvv isa
sa the title said, we just costome a qemu target on rvv isa , but here is a problem that in the vector instruction implement a err happened "[ERROR] sew:32 != index width:64
Segmentation fault (...
0
votes
0
answers
39
views
How would i create a QEMU Machine that accepts multiple CPU options
I am working with the arm embedded toolchain and have chosen to use QEMU as my simulated CPUs.
I use the -machine option currently to select from a for a family of arm processors on custom pcb boards,...
0
votes
0
answers
68
views
VESA 24bpp using QEMU from WSL (blue channel not working)
I am currently struggling with VESA graphics.
I am switching to VESA using this assembly code below
Note: At this point I am still in 16 bit real-mode
Note 2: video_info is a label in the 32 bit area ...
0
votes
1
answer
32
views
Hardware breakpoint not hint when set specify load addresses for sections
I'm using lldb connect QEMU to debug linux kernel. The linux kernel been load to 0x40200000, So I have to use target modules load to defining load addresses for sections. But when set this, the ...
0
votes
0
answers
22
views
Meaning of the npages member in the struct kvm_memory_slot
Recently, I've been working on live migration of virtual machines. I'm curious about the calculations of member npages in the kvm_memory_slot struct of kvm. The npages are initialized in the ...
0
votes
0
answers
84
views
How to display a 3.5 TFT LCD with rpi3 using Busybox/Linux built with Buildroot?
I'm trying to display a 3.5 TFT LCD on rpi3 (Raspberry Pi 3 Model B v1.2 - Raspberry Pi 2015) built with buildroot+busybox, but sources like this repo from lcdwiki uses debian-based distro tooling for ...
0
votes
1
answer
94
views
QEMU: How come ARM ISO image need pflash/bios, but not X86 ISO image
I am trying to create two VMs from alpine Linux image in QEMU. One for X86 and for ARM64.
For X86
qemu-system-x86_64 \
-m 512 \
-hda alpine_x86.qcow2 \
-cdrom path/to/img.iso \
-boot d
For ARM64
qemu-...
0
votes
1
answer
122
views
UEFI Shell Is Unresponsive
I'm emulating an OS on QEMU with Arm64 architecture. I'm trying to add UEFI firmware to the emulation. To do this, I added these lines to my QEMU command:
-drive if=pflash,format=raw,unit=0,file=...
1
vote
0
answers
53
views
How do I solve the booting issue with qemu vexpress-a9 zImage?
I'm studying about the boot loader.
I aim to build the Linux kernel and boot the zImage on qemu-system-arm. First, I installed a cross-compiler for vexpress-a9. Using crosstool-ng, I installed arm-...
0
votes
1
answer
84
views
Problem with booting own operating system [32-bits]
Hey I have a problem when loading kernel, bootloader and protected mode works fine but when I try to call KERNEL_OFFSET there are glitches or loading problems and I can't figure it out.
Problem with ...
0
votes
0
answers
32
views
Can setpci in combination with udev change USB bus assignment
On intel machine all the USB2 device are assigned to a single XHCI bus, even if they are connected to a hub attached to the USBC port. This is unfortunate if I need to passthough the corresponding ...
1
vote
0
answers
81
views
Unable to boot in QEMU the raspberrypi3-64 image built in Yocto
I'm trying to boot raspberrypi image using QEMU, but I need my custom Image.
I followed all instructions in Yocto (scarthgap) (I've been using Yocto for some time so let's say I know what I'm doing) ...
0
votes
0
answers
111
views
How to set MMC number in QEMU raspi4b
I have a task relate to u-boot and have to simulate raspberry pi 4 when I am working remotely.
I got the image here(the rasberrypi4-64 one).
Because the QEMU use mmc 1 but image has some hardcoded ...
0
votes
1
answer
113
views
How can I update the baking file of qcow2 snapshot after the files have already been moved?
I am running Kubuntu (Ubuntu + KDE) with libvirt/qemu/kvm to run VMs.
I have a Windows 11 VM. When I created it, it created a .qcow2 and now I have a snapshot file.
The original file paths were:
/var/...
0
votes
1
answer
114
views
Qemu does not emulate ast2600-evb from binary file: failed to read the initial flash content
I have to emulate IPMI system for super server SYS-110P-WTR. To reach this target, I tried to repeat experience of these people. I installed qemu-9.0.0, and tried to do this command:
qemu-system-arm -...
0
votes
0
answers
63
views
unable to connect to ports exposed in qemu-arm
qemu-system-arm
-cpu arm1176
-m 256
-net nic
-nic user,hostfwd=tcp::${SSH_PORT}-:22
-nic user,hostfwd=tcp::${EXTRA_PORT}-:4444
-kernel kernel-qemu-4.4.34-jessie
-M versatilepb
-no-reboot
-...
0
votes
0
answers
37
views
Using CAN FD interface from WSL in QEMU image
I would like to use a CAN FD network interface from my host in QEMU.
Setup
I have a CAN FD network device (can0) in my WSL2, which I can use to communicate with the CAN2USB adapter connected to my ...
1
vote
1
answer
87
views
How do you `docker buildx build` for ARM v6 on QEMU emulated platforms that present as arm7l to the build container?
When you build a Docker image with docker buildx build and specify '--platform=linux/arm/v6', the build container runs as arm7l rather than the expected arm6l, which creates issues if the build ...
0
votes
0
answers
65
views
Right metric for CPU usage VM qemu-kvm
I am using qemu-kvm (libvirt) on Ubuntu 20.04. I've created virtual machine with 8 CPU and installed node-exporter on vm and libvirt-exporter on hv.
Node exporter on virtual machine says that CPU ...