Thread (9 messages) 9 messages, 4 authors, 2017-09-22

Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

From: Saket Sinha <hidden>
Date: 2017-09-22 06:09:46

Hi,
I have seen this solution during searching answers. But without "-S"
(-S stalls QEMU CPU at startup), the kernel will not stop util it reaches
busybox command line.
In other word, you have no method to debug the Linux early boot process.

The early boot process is highly architecture dependent.
You can emulate a virtual device close to what you have as a real
device and write drivers for that.

Please follow the below link as to how Android emulator(which uses
qemu at backend) does it -
https://android.googlesource.com/platform/external/qemu/+/master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT


Regards,
Saket Sinha
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help