Qemu-system-ppc -enable-kvm -nographic -m 512 -M ppce500 -kernel uImage -initrd -append "root=/dev/ram rw loglevel=7 console=ttyS0,115200" -serial tcp::4444,server,telnet -net nic -SĪfter guest bootuping, you can quit qemu monitor by input 'q' letter.ĭo not start CPU at startup (you must type 'c' in the monitor). KVM support for PowerPC E500MC/E5500/E6500 processors Host kernel accelerator for virtio net (EXPERIMENTAL) At that point, you can debug the program in GDB pretty much just as if you were running it on the host machine. Please refer to the following regarding qemu guest setting up and gdb debug. Specifically, QEMU supports remote debugging from GDB - you can run QEMU with the appropriate command-line options and it will export an interface that a copy of GDB (running on the host machine) can connect to. Note: If this post answers your question, please click the Correct Answer button. (gdb) target remote gdbserver_ip:gdbserver_portĮpapr_ev_idle_start () at arch/powerpc/kernel/epapr_hcalls.S:36ģ6 arch/powerpc/kernel/epapr_hcalls.S: No such file or directory. When you finish gdb test, input 'q' letter to quit from monitor. Waiting for gdb connection on device 'tcp::1234' Qemu-system-ppc -enable-kvm -nographic -m 512 -M ppce500 -kernel uImage -initrd -append "root=/dev/ram rw loglevel=7 console=ttyS0,115200" -serial tcp::4444,server,telnet -net nic While GDB can only access QEMUs memory by virtual address, its often useful to be able to inspect physical memory while setting up virtual memory. Startup first guest kernel on first console: The cross gdb should be included in your cross toolchain, we use cross gdb to link with gdbserver (through qemu stub).ġ. Reading symbols from /home/root/vmlinux.done.īreakpoint 1 at 0xc002ce60: file arch/powerpc/kvm/./././virt/kvm/kvm_main.c, line 1963.Ĭannot access memory at address 0xc002ce60īut I don't understand what "0x00000000 in ? ()" & "Cannot access memory at address 0xc002ce60" implies to?įor setting up a debug stub to debug a guest OS, please refer to the following.įirst vmlinux needs to be built with the same code of guest uImage including gdb information(CONFIG_DEBUG_INFO). This GDB was configured as "powerpc-fsl-linux".įor bug reporting instructions, please see: There is NO WARRANTY, to the extent permitted by law. This is free software: you are free to change and redistribute it. License GPLv3+: GNU GPL version 3 or later I have launched QEMU on p4080 with below qemu-system-ppc -s -S -enable-kvm -nographic -m 512 -M ppce500 -cpu e500mc -kernel uImage -initrd -append "root=/dev/ram rw console=ttyS0,115200"īut don't see kernel come up with it and in order to debug it further, I have attached gdb gdb vmlinux -ex 'target remote localhost:1234'Ĭopyright (C) 2013 Free Software Foundation, Inc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |