in kvm, add another serial connection
in kernel boot parameters, add: console=ttyS1
now, all kernel messages will be redirected to ttyS1
if kgdboc=ttyS0, then run gdb on that port.
that's it!
so, now you can debug kernel on one serial port while get the kernel messages on another serial port.
in kernel boot parameters, add: console=ttyS1
now, all kernel messages will be redirected to ttyS1
if kgdboc=ttyS0, then run gdb on that port.
that's it!
so, now you can debug kernel on one serial port while get the kernel messages on another serial port.
No comments:
Post a Comment