osx - nvram doesn't remember my boot-args settings. How to fix it? -


i'm working on kernel extension - device driver - , rely heavily on diagnostic messages come kprintf().

$ fwkpfv on host machine display log messages kprintf() on target, needs "debug=0x8" in boot-args.

# nvram boot-args="debug=0x14e kdp_match_name=firewire" # nvram -p | grep boot-args boot-args      "debug=0x14e kdp_match_name=firewire" 

(i don't remember whether quotes included.)

if boot after setting boot-args:

# nvram -p | grep boot-args  # 

i eternally in debt.

some folks on darwin-drivers mailing list pointed out me nvram command holds settings in ram until clean shutdown performed. i've been in habit of forcibly powering mac pro off driver panics when it's been installed.

it worked boot recovery mode, set boot-args, shutdown apple menu.

this got firewire logging back.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -