Re: Debuggin XNU build
Re: Debuggin XNU build
- Subject: Re: Debuggin XNU build
- From: Brian Bechtel <email@hidden>
- Date: Tue, 07 Apr 2015 09:22:41 -0700
VMware maintains the nvram variables in the virtual machine bundle, in the *nvram file inside the bundle. Running in the vm, you can set the boot-args in a working partition and then boot to your test partition, or boot single user and set the nvram values there. The typical value would be
sudo nvram boot-args="debug=0x146"
Also, I found this little shell script somewhere on the Intarweb which sends an NMI to your VM. Keep a copy inside the vmwarevm bundle.
#!/bin/bash
DIR=$(dirname $0)
/Applications/VMware\ Fusion.app/Contents/Library/vmrun suspend $DIR/*.vmx
perl -i -pe 's/(?<=pendingNMI\x00{4})\x00/\x01/' *.vmss
/Applications/VMware\ Fusion.app/Contents/Library/vmrun start $DIR/*.vmx
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden