NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵

Posted 鑿滈笩鎼炴満

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵相关的知识,希望对你有一定的参考价值。


鏂?/ 鑿滈笩鎼炴満 路 鍚冪摐甯傛皯鐜嬪厛鐢?/span>

Hello 澶у濂斤紝

杩欐槸涓€绡囧叧浜嶯VRAM鐨勫熀纭€鏁欑▼銆?/span>


鍏堟潵绠€鍗曡亰鑱奛VRAM銆傪煠?/span>


NVRAM鏄竴绉嶉殢鏈哄瓨鍙栧瓨鍌ㄥ櫒锛屽湪鐢垫簮鍏抽棴鏃朵細淇濈暀鍏朵俊鎭?鍏峰闈炴槗澶辨€?銆傝繖涓庡姩鎬侀殢鏈哄瓨鍙栧瓨鍌ㄥ櫒鍜岄潤鎬侀殢鏈哄瓨鍙栧瓨鍌ㄥ櫒褰㈡垚瀵规瘮锛屽悗鑰呬粎鍦ㄩ€氱數鏃舵墠淇濇寔鏁版嵁銆?/span>NVRAM閫氬父浠ヤ竴鍧楄姱鐗囩殑褰㈠紡瀛樺湪锛屾墍浠ョ郴缁熸槸鍚︽敮鎸丯VRAM锛?/span>鍙栧喅浜庝富鏉?/span>銆?/span>


NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵


NVRAM鍦ㄩ粦鑻规灉涓湁鐫€ 鍙婂叾閲嶈 鐨勪綔鐢紝绗竴锛屽畠鏄敤浜庨噸鍚悗淇濆瓨涓庤摑鐗欍€佸睆骞曚寒搴︺€佺郴缁熼煶閲忋€乮Message銆丗aceTime绛夌浉鍏冲弬鏁帮紱绗簩锛孋lover鍜孫penCore闇€瑕丯VRAM鏀寔鎵嶈兘鏀寔绯荤粺鍚姩纾佺洏璁剧疆(渚嬪Bootcamp鍔熻兘)锛涚涓夛紝鐢ㄤ簬鏀寔NVIDIA Web Driver Manager绛夌浉鍏冲姛鑳姐€?/span>

閰嶇疆鍔熻兘瀹屽杽鐨凬VRAM锛屼細璁╀綘鐨勯粦鑻规灉绯荤粺鏇村姞瀹屽杽锛岀浉杈冧簬鐧借嫻鏋滄潵璁蹭笂杩板姛鑳藉嚑涔庢病鏈変粈涔堝尯鍒€?/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


02. 閲嶅埗NVRAM

  • Clover鐢ㄦ埛鍙湪寮曞閫夋嫨绯荤粺鐣岄潰鎸変笅F11閲嶇疆NVRAM(濡傛灉浣犱娇鐢ㄧ殑鏄ā鎷燂紝娓呯┖鐨勫彧鏄ā鎷熺殑NVRAM)锛?/span>

  • OpenCore鐢ㄦ埛鍦?/span>寮曞鑿滃崟涓€夋嫨Reset NVRAM鍗冲彲銆?/span>


PS. OpenCore鐨勯噸缃甆VRAM鍔熻兘闈炲父褰诲簳锛屽彲鑳戒細鎶婁綘宸叉湁鐨勫紩瀵奸」涓€璧烽噸缃秷澶辨帀锛涘鏋滀綘澶勫湪Clover杞崲鍒癘penCore闃舵鏃讹紝閲嶇疆鍚庡啀娆′娇鐢–lover鍙兘浼氭彁绀衡€滄偍鐨勭數鑴戝洜涓哄嚭鐜伴棶棰樿€岄噸鍚€濓紝鍔濇柊鎵嬭皑鎱庝娇鐢ㄣ€?/span>


濡傛灉鎯宠鍒犻櫎鎸囧畾鍐呭锛屼緥濡傝鍒犻櫎姣忔寮€鏈哄嚭鐜扮殑鈥滄偍鐨勭數鑴戝洜涓哄嚭鐜伴棶棰樿€岄噸鍚€濈殑淇℃伅锛?/span>

sudo nvram -d aapl,panic-info


03. NVRAM娓呯┖閿欒瑙e喅鏂规硶

濡傛灉娓呯┖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>



04. NVRAM鏀寔鎯呭喌

宸茬煡鐨?/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>



05. 浣跨敤SSDT琛ヤ竵寮€鍚疦VRAM


璇ユ暀绋嬬瑪鑰呭凡缁忓仛鎴恮ord锛屽ぇ瀹惰嚜琛屽皾璇曫煈囷細


https://wws.lanz ous.com/isIiOkxhkrc


鍐欏湪鏈€鍚?/span>

浠ヤ笂锛屽氨鏄湰娆℃兂鍜屼綘鍒嗕韩鐨勫唴瀹广€?br>

濡傛灉鏈夊府鍒颁綘锛屼綘鍙互鐐瑰嚮 銆屽湪鐪嬨€?/span> 鎴?/span> 杞彂鍒嗕韩 锛岃繖浼氬鎴戜滑鏈夊緢澶х殑甯姪銆?/span>

鍠滄涓€閿笁杩?/span> (麓鈻絗蕛鈾∑?

以上是关于NVRAM鏄粈涔堬紵瀵归粦鑻规灉閲嶈鍚楋紵的主要内容,如果未能解决你的问题,请参考以下文章

fastjson鍒板簳鍋氶敊浜嗕粈涔堬紵涓轰粈涔堜細琚绻佺垎鍑烘紡娲烇紵

Vue3.0 鏉ヤ簡锛屾槑骞寸殑闈㈣瘯闂粈涔堬紵

瓒呰缁嗛粦鑻规灉瀹夎鏁欑▼锛屽皬鐧藉彲鐢紒

涓嬪懆涓夛綔鏈嶅姟绔郴缁熸€ц兘娴嬭瘯

1000浠介粦鑻规灉EFI鍏嶈垂棰嗗彇锛?1

鎶樿吘骞剁簿褰╃潃涓ㄩ粦鑻规灉鏍″洯鍏泭澶т娇鎷涘嫙