qemu

What is a structure of u-boot flash file? ( ARM versatile pb )

戏子无情 提交于 2019-12-23 23:21:05
问题 I'm working on creating file that I can load with -kernel option of qemu. I mostly mind here u-boot config file that I have found information should be placed somewhere in file. That file have to contain u-boot binary, freebsd kernel and RTOS to run ( so i can choose which kernel to load or do some experimental developement in loading 2 OS at same time - eg. FreeBSD is loaded by u-boot and then FreeBSD loads FreeRTOS on 2nd core - so called ASMP ). It seems there is no tools around to do that

gdb ignores breakpoint in Qemu bootloader

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 16:16:50
问题 I am trying to step through the simple bootloader shown in this tutorial: http://mikeos.berlios.de/write-your-own-os.html - so I can use the Qemu monitor to inspect the general registers for educational purposes. Eventhough I am able to connect Qemu and gdb and the breakpoint is set at the beginning of the bootloader (0x7c0), after hitting "c" on gdb the code just runs all the way till the end. I have read kvm may "confuse" gbd with virtual memory addresses, so I disabled it. This didn't work

Debug init on Qemu using gdb

假装没事ソ 提交于 2019-12-23 13:12:48
问题 i am trying to emulate cavium octeon's mips64 linux kernel on Qemu.I am currently having some issues with use mode init code and want to debug init.i am starting the Qemu using -s -S option in the command line and running the gdb using command ddd --debugger /OCTEON-SDK/tools/bin/mips64-octeon-linux-gnu-gdb /OCTEON-SDK/linux/kernel_2.6/linux/vmlinux and then attaching the gdb with command target remote localhost:1234 The gdb is currently showing only the instructions running in kernel space.

Using qemu monitor with the android emulator

大兔子大兔子 提交于 2019-12-23 12:49:49
问题 I m trying to get a memory dump from a Android system using the pmemsave command from qemu, but I have some problems with accessing the qemu monitor interface. I start the emulator with the following command: $./emulator -avd test -verbose -qemu -monitor telnet:127.0.0.1:1234,server,nowait The emulator starts up just fine, but when I telnet to the port I am not greeted with a banner, and no input seems to have any effect. I have also tried to set -monitor to stdio without success. 回答1: Same

Convert from qcow2 to raw with Python

懵懂的女人 提交于 2019-12-23 05:38:07
问题 How can I use Python to convert a qcow2 image file into a raw image file? I know of qemu-img , but I'm curious about any Python libraries that might allow me to avoid asking my users to install that tool. It's not packaged with a default Fedora install, and that's what I'm developing for. If there are no other options however, I'll use qemu-img . 回答1: It seems that qemu-img is a necessity for converting qcow2 image files to raw images. I did not find a solution that avoided calling on this

QEMU

自闭症网瘾萝莉.ら 提交于 2019-12-23 02:30:44
yum install qemu-kvm 镜像格式 For best performance, use raw or qcow2 image formats. KVM The main parts of KVM are two loadable kernel modules, named kvm.ko , which provides the main virtualization functionality, and a second kernel module that is processor specific, kvm-intel.ko and kvm-amd.ko for both main CPU vendors. 来源: CSDN 作者: 一嵩寒溪 链接: https://blog.csdn.net/qq_33745102/article/details/103657229

How to emulate a SATA disk drive in QEMU

 ̄綄美尐妖づ 提交于 2019-12-22 11:15:37
问题 I want to emulate a SATA disk drive in QEMU to check a device driver I'm trying to develop. How can this be done? Would greatly appreciate your help. 回答1: The Gentoo Wiki offers these parameters: -drive id=disk,file=IMAGE.img,if=none \ -device ahci,id=ahci \ -device ide-drive,drive=disk,bus=ahci.0 Set emulation layer for an ICH-9 AHCI controller (not yet stable ) and use the specified image file for it. The AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at

How to emulate TrustZone in QEMU?

拥有回忆 提交于 2019-12-22 06:45:47
问题 I'm trying to emulate TrustZone features in Qemu. I've found two links that seems explain this process. The First Reference doesn't attach the image kernel that supports TrustZone (where can I find it?) The Second Reference explains how can I compile a kernel but it doesn't start with the command line written in the first website which is as follows ./arm-softmmu/qemu-system-arm -kernel $PATH_TO_KERNEL/zImage -M vexpress-a15 -cpu cortex-a15 -dtb PATH_TO_DTB/vexpress-v2p-ca15-tc1.dtb -m 1024

Android SDK 14 - Can't Create GTV device

大憨熊 提交于 2019-12-22 04:03:07
问题 I'm a Google TV developer, and today, shortly after the android sdk 14 was released, I updated everything, from the android sdk to the eclipse ADT. Since then, I can't create a Google TV virtual device. I came to the point where I completely deleted everything and tried to do a fresh install. Here is what happens: With a fresh download of the android sdk with only Android 3.1 and the Google TV add-on: $ android list targets Available Android targets: ---------- id: 1 or "android-12" Name:

how to build grub2 bootloader from it's source and test it with qemu emulator

你。 提交于 2019-12-21 05:46:11
问题 I want to know how to build grub 2 bootloader from it's source in ubuntu and test it with qemu emulator. I would also like to change the default background image of grub2 bootloader in the new build? Is this possible? If yes, how ? 回答1: Of course you can. As shown on the GRUB website, the grub source code is available via git from git.savannah.gnu.org. Then it is theoretically just a question of $ ./autogen.sh $ ./configure $ make $ sudo make install However, depending on your platform, grub