[fedora-arm] Debugging our kernels under qemu + gdb

Richard W.M. Jones rjones at redhat.com
Fri May 11 20:27:31 UTC 2012


... and setting the right emulated -cpu, it boots!

For reference (mainly mine), here is the qemu command line that works:

kernel=3.3.4-4.fc17.armv7hl

QEMUDIR=$HOME/d/qemu

exec \
$QEMUDIR/arm-softmmu/qemu-system-arm \
-s \
-M versatilepb \
-cpu arm926 \
-nodefaults \
-nographic \
-serial stdio \
-m 256 \
-kernel /boot/vmlinuz-$kernel \
-initrd /boot/initramfs-$kernel.img \
-append 'console=ttyAMA0'

Note that I built this qemu from today's upstream qemu.git, because
the one we currently have compiled in Fedora fails early with this
error:

/builddir/build/BUILD/qemu-kvm-1.0/tcg/arm/tcg-target.c:891: tcg fatal error

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora


More information about the arm mailing list