Tag: 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
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
Estoy ejecutando CI con QEMU. Antes de comenzar a ejecutar las pruebas, copio los archivos en QEMU iniciándolo, esperando a que termine de arrancar, copiando los archivos desde el HOST a la imagen de QEMU, y luego cerrando la sesión (y los archivos estarán en la imagen). Después de eso, . . . Read more
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
Hola, estoy tratando de escribir un script de bash para iniciar QEMU en segundo plano y esperar a que el usuario presione una tecla para continuar con el script. Esto es lo que tengo actualmente: setup<em>for</em>greengrass # estas son funciones run<em>qemu & # función fork y tratar de ejecutar en . . . Read more