thinkpad x280 安装macos和win双系统

thinkpad x280 安装macos和win双系统

需要的系统有macos(用来制作macos启动盘;也可以自行找镜像,用windows制作),windows(用来制作win启动盘,winpe启动盘)

1、安装windows

一开始安装的时候,需要注意的坑,efi分区windows只有100m,不够存储的,所以要先划分一个足够大的区分比如500m,在windows安装的分区前面(也即不要选全盘安装)。

用windows安装程序,分出3个分区,第一个分区500m用来扩展efi分区,第二个分区100g以上,用来安装windows,第三个分区50g以上,用来安装macos。

然后选择安装到第二个分区,Windows安装文件会自动把第二个分区切成3个分区(efi分区,mbr分区等),直接下一步即可

2、扩展efi分区

这里采用的是pe修改的方法,深度pe不行,老毛桃的还可以,就是下载慢一些。主要是用到了diskpart组件;

首先用disk genius来备份efi分区里面的efi文件夹。

然后删除efi分区:

进入命令行,

#请先用list disk 查看磁盘编号 假定是0
select disk 0
select partition 0
delete partition override
然后新建大的EFI分区,之后用disk genius将刚才的efi文件夹拷贝到新的efi分区里面。
select disk 0
create partition efi
#不用加size参数,即可直接占据未分配的空间
format quick fs=fat32 label="EFI"
#一定要加format,其他地方无法格式化efi分区

3、双系统引导

这里采用的是扩大efi分区的方式,然后用refind来进行引导;也可以才用一个硬盘双efi分区的方式,原则上refind也能识别。

不要用oc来引导windows,因为oc的acpi文件会影响windows的启动,可以编辑efi里面的acpi文件夹下面的aml文件来适配多系统,但是太麻烦了,还是建议用refind来引导。

4、准备macos安装盘

可以用macos的u盘制作工具来制作u盘。然后用opencore configurator来挂载efi分区(通知栏的图标点击);然后用finder来编辑efi文件夹。

参见https://zhuanlan.zhihu.com/p/681793562

oc驱动只更新到了macos13,如果升14,至少需要换intel的wifi驱动到最新版。

用这个里面的EFI/BOOT文件夹,编辑loader部分,指向实际的efi文件

loader EFI\OC\OpenCore.efi

https://github.com/waldir-xam/x280-Hackintosh/

用这个里面的EFI/OC文件夹

https://github.com/0x8008/x280-hackintosh

用步骤2里面的Microsoft文件夹,放到EFI/Microsoft里面

5、安装macos

需要配置bios,参见https://github.com/0x8008/x280-hackintosh或者下面的文字摘抄。

然后引导到4步的安装盘即可,然后安装到macos分区即可。

The bios must be properly configured prior to installing macOS. In Security menu, set the following settings:
Security > Security Chip: must be Disabled
Memory Protection > Execution Prevention: must be Enabled
Virtualization > Intel Virtualization Technology: must be Enabled
Virtualization > Intel VT-d Feature: must be Enabled
Anti-Theft > Computrace -> Current Setting: must be Disabled
Secure Boot > Secure Boot: must be Disabled
Intel SGX -> Intel SGX Control: must be Disabled
Device Guard: must be Disabled
In Startup menu, set the following options:
UEFI/Legacy Boot: UEFI Only
CSM Support: No
In Thunderbolt menu, set the following options:
Thunderbolt BIOS Assist Mode: Disabled. Do NOT set this to anything else, as it is known to cause potential bricks on the X280, which you won't be able to fix at home!
Wake by Thunderbolt(TM) 3: No
Security Level: No
Support in Pre Boot Environment > Thunderbolt(TM) device: No

6、安装后工作

安装好macOS之后,可以直接用OpenCore Configurator来挂载主机的efi分区,然后把u盘的efi文件夹拷贝进去即可。原文采用了Windows方式,需要装winpe。

https://github.com/benbaker76/Hackintool/releases

Hackintool可以查看驱动情况,然后点击工具部分,下面有一个可以生成windows utc时间同步的注册表,这样双系统就不会有时间差了。

0x8008的oc驱动还是比较全的,不支持4k外接显示屏。

7、蓝牙驱动(不需要打这个蓝牙驱动)

遇到一个奇怪的bug,蓝牙连鼠标可以稳定运行,但是AirPods不行,连接AirPods会导致蓝牙直接关闭。
做了两件事,一个是更新kext驱动,参见,一个是下面的,修改Config.plist文件,目前看还好。(更新一下,应该是睡眠唤醒后,蓝牙驱动会异常,可以关闭蓝牙状态栏和设置里面都关掉,然后都开启,就好了)
https://www.reddit.com/r/hackintosh/comments/13wsrk0/bluetooth_not_working_intel/
https://github.com/valnoxy/t480-oc/issues/104
Add the following keys under NVRAM > Add > 7C436110-AB2A-4BBB-A880-FE41995C9F82:
 <key>bluetoothInternalControllerInfo</key>
 <data>AAAAAAAAAAAAAAAAAAA=</data>
 <key>bluetoothExternalDongleFailed</key>
 <data>AA==</data>

更新一下,应该是睡眠唤醒后,蓝牙驱动会异常,可以关闭蓝牙状态栏和设置里面都关掉,然后都开启,就好了。有一个自动化启停的脚本,我懒得试了。手工启停还行。

解决-黑苹果-睡眠唤醒-蓝牙不正常工作、睡死 – MrSu – 博客园

Leave a Reply

Your email address will not be published. Required fields are marked *