NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵
Posted 鑿滈笩鎼炴満
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵相关的知识,希望对你有一定的参考价值。
Hello 澶у濂斤紝
杩欐槸涓€绡囧叧浜嶯VRAM鐨勫熀纭€鏁欑▼銆?/span>
鍏堟潵绠€鍗曡亰鑱奛VRAM銆傪煠?/span>
NVRAM鏄竴绉嶉殢鏈哄瓨鍙栧瓨鍌ㄥ櫒锛屽湪鐢垫簮鍏抽棴鏃朵細淇濈暀鍏朵俊鎭?鍏峰闈炴槗澶辨€?銆傝繖涓庡姩鎬侀殢鏈哄瓨鍙栧瓨鍌ㄥ櫒鍜岄潤鎬侀殢鏈哄瓨鍙栧瓨鍌ㄥ櫒褰㈡垚瀵规瘮锛屽悗鑰呬粎鍦ㄩ€氱數鏃舵墠淇濇寔鏁版嵁銆?/span>NVRAM閫氬父浠ヤ竴鍧楄姱鐗囩殑褰㈠紡瀛樺湪锛屾墍浠ョ郴缁熸槸鍚︽敮鎸丯VRAM锛?/span>鍙栧喅浜庝富鏉?/span>銆?/span>
01. NVRAM鏀寔 娴嬭瘯
杩愯缁堢杩涜浠ヤ笅娴嬭瘯锛屾柟鍙煡閬撹嚜宸辩殑涓绘澘鏄惁鏀寔NVRAM锛?/span>
sudo -s
杩欎竴姝ユ槸鑾峰彇root鏉冮檺锛?/span>鎺ヤ笅鏉?/span>杈撳叆锛?/span>
sudo nvram -c
杩欎竴姝ユ槸娓呯┖NVRAM锛?/span>闇€瑕佸叧闂璖IP銆?/span>
鍏蜂綋濡備綍鍏抽棴SIP璇峰弬闃?/span>馃憠锛?br>
濡傛灉浣犲崱鍦ㄤ簡娓呯┖NVRAM锛岃鏄庡綋鍓嶇殑NVRAM璁剧疆鏄湁闂鐨勩€?/span>
濡傛灉姝e父锛岃緭鍏ヤ互涓嬪懡浠わ紝鎵ц鍚庨噸鍚細
sudo nvram TestVar=RandomString
閲嶅惎鍚庯紝缁堢鎵ц浠ヤ笅鍛戒护锛?/span>
sudo nvram -p | grep 'TestVar'
濡傛灉缁堢杈撳嚭浜?/span>鍖呭惈鈥淭estVar RandomString鈥?/strong>鐨勭粨鏋滐紝鍒欒〃绀篘VRAM姝e湪姝e父杩愯銆?/span>
濡傛灉娌℃湁锛屽垯NVRAM闇€瑕佹墦琛ヤ竵淇锛?/span>涓嶄慨澶嶄細瀵艰嚧iMessage鍙兘鏃犳硶姝e父宸ヤ綔銆?/span>
娴嬭瘯瀹屾垚鍚庯紝鍙互杩愯浠ヤ笅鍛戒护娓呴櫎浜х敓鐨勫瀮鍦句唬鐮侊細
sudo nvram -d TestVar
Clover鐢ㄦ埛鍙湪寮曞閫夋嫨绯荤粺鐣岄潰鎸変笅F11閲嶇疆NVRAM(濡傛灉浣犱娇鐢ㄧ殑鏄ā鎷燂紝娓呯┖鐨勫彧鏄ā鎷熺殑NVRAM)锛?/span>
OpenCore鐢ㄦ埛鍦?/span>寮曞鑿滃崟涓€夋嫨Reset NVRAM鍗冲彲銆?/span>
PS. OpenCore鐨勯噸缃甆VRAM鍔熻兘闈炲父褰诲簳锛屽彲鑳戒細鎶婁綘宸叉湁鐨勫紩瀵奸」涓€璧烽噸缃秷澶辨帀锛涘鏋滀綘澶勫湪Clover杞崲鍒癘penCore闃舵鏃讹紝閲嶇疆鍚庡啀娆′娇鐢–lover鍙兘浼氭彁绀衡€滄偍鐨勭數鑴戝洜涓哄嚭鐜伴棶棰樿€岄噸鍚€濓紝鍔濇柊鎵嬭皑鎱庝娇鐢ㄣ€?/span>
濡傛灉鎯宠鍒犻櫎鎸囧畾鍐呭锛屼緥濡傝鍒犻櫎姣忔寮€鏈哄嚭鐜扮殑鈥滄偍鐨勭數鑴戝洜涓哄嚭鐜伴棶棰樿€岄噸鍚€濈殑淇℃伅锛?/span>
sudo nvram -d aapl,panic-info
濡傛灉娓呯┖NVRAM鍑虹幇浠ヤ笅鎻愮ず锛?/span>
nvram: Error clearing firmware variables: (iokit/common) not permitted
鍏堢‘璁や綘鏄惁鍏抽棴浜哠IP(绯荤粺瀹屾暣鎬т繚鎶?锛屽啀娆″皾璇曟竻绌哄懡浠ゃ€?/span>
濡傛灉鏄疧penCore鐢ㄦ埛锛岃妫€鏌ヰ煈囷細
Booter鈫扱uirks鈫扗isableVariableWrite
璁剧疆涓篘O(涓嶅嬀閫?銆?/span>
浣跨敤OcQuirks.efi鐨凜lover鐢ㄦ埛涔熸敞鎰忚椤?/span>璁剧疆涓篎alse銆?/span>
Clover鐢ㄦ埛鍒犻櫎EFI/Clover/drivers64UEFI鐩綍浠ュ強鐩綍涓嬬殑鎵€鏈夋枃浠?鍒犻櫎鏂囦欢鍓嶏紝鍔″繀鍋氬ソ澶囦唤)銆?/span>
鍦‥FI/Clover/Drivers/UEFI鐩綍锛?/span>
apfs.efi鏇挎崲涓吼煈?/span>
ApfsDriverLoader.efi锛?/span>
濡傛灉涓や釜閮芥湁锛屽垹闄pfs.efi銆?/span>
鍐呭瓨淇椹卞姩锛?/span>
OsxAptioFixDrv.efi/OsxAptioFix2Drv.efi/OsxAptioFix3Drv.efi
鏇挎崲涓篈ptioMemoryFix.efi锛屾垨浣跨敤OcQuirks.efi鏇夸唬銆?/span>
濡傛灉浣犵殑涓绘澘EFI浣跨敤鐨勬槸馃憞锛?/span>
AptioMemoryFix.efi
鍒欏彲浠ヤ笉璁$畻slide姝e父宸ヤ綔(鍏蜂綋琛ㄧ幇鏄惎鍔ㄦ椂涓嶅崱+鍙?锛?/span>
杩欐槸鏈€鐞嗘兂鐨勬儏鍐碉紝濡傛灉鍗″湪+鍙峰彲浠ヨ瘯璇曟坊鍔犲紩瀵煎弬鏁皊lide=0(鍙兘褰卞搷浼戠湢)锛屾垨璁$畻slide鍊笺€?/span>
涓嶆帹鑽愪娇鐢煈囷細
OsxAptioFix2Drv-free2000.efi
鍥犱负鍒朵綔璇ラ┍鍔ㄧ殑浣滆€呰杩欎釜椹卞姩鍙兘浼氭崯鍧忎富鏉裤€?/span>
鍒犻櫎EmuVariableUEFI.efi銆?/span>
EmuVariableUEFI.efi鏄敤浜庢ā鎷烴VRAM鐨別fi椹卞姩锛屽鏋滃垹闄ゅ彲鑳藉鑷磇Message鏃犳硶鐧婚檰鎴栧紓甯搞€?/span>
鍒犻櫎鍚凟FI鍒嗗尯涓嬬殑nvram.plist鏂囦欢锛屽鏋滀綘浣跨敤杩嘋lover鐨凴C鑴氭湰锛岃繕闇€鍒犻櫎浠ヤ笅鏂囦欢銆?/span>
瀹屾垚鍚庨噸鍚郴缁?鍒犻櫎鎴栨浛鎹㈡枃浠跺墠锛屽姟蹇呭仛濂芥枃浠跺浠?銆?/span>
/etc/rc.clover.lib/etc/rc.boot.d/10.save_and_rotate_boot_log.local
/etc/rc.boot.d/20.mount_ESP.local
/etc/rc.boot.d/70.disable_sleep_proxy_client.local.disabled
/etc/rc.shutdown.d/80.save_nvram_plist.local
灏咵FI/Clover/kexts/other鐩綍涓嬬殑馃憞锛?/span>
FakeSMC.kext鍙婂叾浼犳劅鍣ㄩ┍鍔ㄥ叏閮ㄥ垹闄わ紝
鏇挎崲涓篤irtualSMC.kext鍙婂叾浼犳劅鍣ㄩ┍鍔紝
骞跺垹闄FI/Clover/Drivers/UEFI鐩綍涓嬬殑Smchelper.efi锛?/span>
鍔犲叆Virtualsmc.efi鍚庨噸鍚€?/span>
閲嶅惎濂藉悗锛屽湪Clover绯荤粺閫夋嫨鐣岄潰鎸変笅F11锛岃繖鏄疌lover閲嶇疆NVRAM鐨勬搷浣?姝ゆ椂绯荤粺鍙兘浼氬啀娆¢噸鍚?銆?/span>
濡傛灉浠ヤ笂鏂规硶鍧囨棤鏁堬紝鍙板紡鏈鸿鎷旀帀鐢垫簮锛屽苟鍙栦笅涓绘澘涓婄殑绾芥墸鐢垫睜锛岄潤缃?鍒嗛挓锛岀劧鍚庨噸鏂拌鍥炵數姹犲啀璇曘€?/span>
鍒拌繖閲岋紝缁濆ぇ閮ㄥ垎鐨勪富鏉?/strong>搴旇宸茬粡瑙e喅闂(閮ㄥ垎涓绘澘鍙兘杩橀渶瑕佹坊鍔燬SDT)銆?/span>
瀵逛簬鎷ユ湁鍘熺敓NVRAM鐨勪富鏉匡紝浠ヤ笂鏄闂鐨勬墍鏈夊父鐢ㄥ鐞嗗姙娉曘€?/span>
杩欎釜鏃跺€欙紝鍙互鍥炲埌绗竴姝ワ紝鍦ㄧ粓绔緭鍏ワ細
sudo nvram TestVar=RandomString
閲嶅惎锛岀粓绔緭鍏ワ細
sudo nvram -p | grep 'TestVar'
濡傛灉缁堢杈撳嚭浜?/span>鍖呭惈鈥淭estVar RandomString鈥?/strong>鐨勭粨鏋滐紝杈撳叆(杩欎竴姝ユ槸鍒犻櫎杩欎釜鍊?锛?/span>
sudo nvram -d TestVar
鎴栬€咃細
sudo nvram -c
鍐嶆閲嶅惎锛岃緭鍏ワ細
sudo nvram -p | grep 'TestVar'
濡傛灉缁堢鎻愮ず閿欒锛屾病鏈夎緭鍑?/span>鍖呭惈鈥淭estVar RandomString鈥?/span>鐨勭粨鏋滐紝浠h〃NVRAM宸茬粡宸ヤ綔姝e父锛屽彲蹇界暐閿欒鎻愮ず銆?/span>
宸茬煡鐨?/span>鍘熺敓鏀寔NVRAM涓绘澘锛?/span>
鎶€鍢?銆?銆?銆?銆?绯伙紱
鍗庢搸8绯伙紱
寰槦9绯伙紱
鍗庣8绯伙紝100绯?鏃╂湡BIOS鐗堟湰)锛?/span>
鑻辩壒灏?绯伙紱
Z370锛?/span>
缁濆ぇ澶氭暟Z370閮藉叿澶囧師鐢烴VRAM锛?/strong>
浠呴渶瑕丄ptioMemoryFix.efi鍗冲彲銆?/span>
鎴栦娇鐢煈囷細
OsxAptioFix2Drv.efi/OsxAptioFix3Drv.efi閰嶅悎slide鍊艰绠椼€?/span>
PS. 鏂版墜寮虹儓涓嶆帹鑽愯嚜琛岃绠楋紝鐩存帴璇曚竴涓媠lide=0杩欎釜寮曞鍙傛暟銆?/span>
宸茬煡娌℃湁鍘熺敓NVRAM鐨勪富鏉?/strong>锛?/span>
鎶€鍢?00绯伙紱
鍗庣100绯?杈冩柊BIOS鐗堟湰)锛?/span>
宸茬煡閮ㄥ垎X99銆乆299閰嶅鐨凬VRAM鍜宮acOS涓嶅吋瀹癸紱
99%鐨凚360銆丅365銆丠310銆丠370銆乑390鈥滀笉鍏峰鈥濆師鐢烴VRAM锛?/span>
瀵逛簬娌℃湁NVRAM鏀寔鐨勪富鏉匡紝涓嬮潰鎺ㄨ崘2绉嶈В鍐冲姙娉?/span>锛岀涓€绉嶆槸浣跨敤SSDT琛ヤ竵寮€鍚師鐢熸敮鎸侊紝涓昏閽堝300绯讳富鏉匡紱濡傛灉浣犵殑涓绘澘鏃犳硶浣跨敤SSDT鏂规锛屽弬鑰冪浜岀鍔炴硶锛屼娇鐢ㄦā鎷?璇ユ暀绋嬪悗缁細鍑猴紝鏁鏈熷緟)銆?/span>
璇ユ暀绋嬬瑪鑰呭凡缁忓仛鎴恮ord锛屽ぇ瀹惰嚜琛屽皾璇曫煈囷細
以上是关于NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵的主要内容,如果未能解决你的问题,请参考以下文章