I'd like to check the option to debug my kernel driver installed over remote physical machine (since I don't have firewire cables). Reading the relevant documentation, I haven't seen any limitation about remote physical debugging medium, so I deduced both firewire cables and ip over wireless network should work.
I thought that lldb remote connection using kdp-remote <machine-ip>
would do the trick, but I don't get any response.
From remote VM however, it succeed even though the VM can be located on remote physical machine.
My boot-args configuration are keepsyms=1 debug=0x144 -v
We figured out the problem in the comments (item 2 below), but for posterity, here's a list of things to check if xnu kernel debugging isn't working:
nc
(netcat) tool while the machine is not crashed.) arp <target ip>
should yield the target interface's MAC address.boot-args
? They only take effect on a fresh boot.nvram
variables from the recovery environment from OS X/macOS 10.11 onwards. You can run nvram boot-args
to verify that the settings stuck.My personal recommendation is to use FireWire for kernel debugging if possible, it seems to be the fastest and most reliable in my experience.