es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: QEMU

Captura de E/S semi-hospedada en QEMU

Con fines de pruebas unitarias, quiero poder ejecutar un binario de sistema operativo puro con qemu y capturar su salida. Archivo de ejemplo: #include <stdio.h> #include <stdint.h> static void qemu_exit() { register uint32_t r0 asm(“r0”); r0 = 0x18; register uint32_t r1 asm(“r1”); r1 = 0x20026; asm volatile(“bkpt #0xAB”); } int . . . Read more

Agregando un segundo dispositivo mmcblk.

Tengo un arm vexpress-a9 construido con buildroot con un rootfs en mmcblk0 con la siguiente línea de comandos: exec qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel zImage -dtb vexpress-v2p-ca9.dtb -drive file=rootfs.ext4,if=sd,format=raw -append “console=ttyAMA0,115200 rootwait root=/dev/mmcblk0” -net nic,model=lan9118 -net user ${EXTRA_ARGS} Necesito agregar otro dispositivo mmcblk con 7 particiones. Creé . . . Read more

El tipo de máquina no admite si=flash, bus=0, unidad=0.

Estoy utilizando Qemu-system-arm para simular un entorno Arm y probar algunos códigos de ensamblador. Este es mi archivo main.S: .text ldr r0,=0x22000000 mov r1,#1 str r1,[r0] Este es mi makefile: TOOLCHAIN=arm-none-eabi Assembler=${TOOLCHAIN}-as Linker=${TOOLCHAIN}-ld Objcpy=${TOOLCHAIN}-objcopy Compile_Options= -g Link_Options=-Tmain.lds .PHONY : clean .PRECIOUS : %.bin %.elf %.o all : create create : . . . Read more