WWDC2011后去下载了Mac OS X Lion Develop Preview 4. Mount上DMG文件直接安装后发现不行。于是上网发现很多2011款的用户都不能正常的来安装这个版本,其原因主要是由于WIFI驱动的问题。知道原因的所在,下面就有了方法可以来walk-around这个问题了。
1.使用Disk Utility割一个小分区出来,用于作为安装盘。再割一个分区出来用于安装Lion DP4.
2.首先在现有系统中打开Lion DP4的安装盘,然后打开Finder选中刚才加载的镜像。
3.将安装盘根目录下的BaseSystem.dmg(隐藏文件)复制到桌面。可以用chflags nohidden 修改文件属性。
4.在Disk Utility中,将桌面上的BaseSystem.dmg恢复到步骤1中的安装盘分区。
5.再将安装盘根目录下的所有文件 复制到 步骤一创建的安装盘分区的根目录下。
6.将安装盘中的Packages目录复制到安装盘分区的/System/Installation下。
7.删除安装盘分区中的System/Library/Extentions/IO80211Family.kext
到这里,我们从这个新建的安装盘分区重启电脑就可以正常开始安装了。这样子装完之后是没有wifi的。要使wifi可以使用,需要下载2个东西: kext helper b7和10.6.7的IO80211Family.kext(这个如果你原本是10.6.7系统可以从自己/System/Library/Extensions下复制)。建议可以在安装前就将这些文件准备好。
The procedure to fix the failure when installing Mac OSX Lion Develop Preview 4 on the latest 2011 MBP:
1. Create two additional partitions, one for the lion dp4 installer and one for the real lion dp4(you can also create this one during the installation process if you like)
2.Mount your lion dp4 dmg file which you downloaded from apple developer site or maybe somewhere else.:) Assume that your dmg file is mounted at /Volumes/Lion_Installer, the real situation would definitely be different cos Apple uses another long name I can’t remember at this time when I am writing this blog. It seems something like “Mac OS X Install ESD” but I am not sure about it.
3. Copy BaseSystem.dmg from /Volumes/Lion_Installer/ to ~/Desktop/
cp /Volumes/Lion_Installer/BaseSystem.dmg ~/Desktop/
chflags nohidden ~/Desktop/BaseSystem.dmg
4. Open Disk Utility, restore ~/Desktop/BaseSystem.dmg to your first partition you created at Step 1.
5. Copy all the files at the root of /Volume/Lion_Installer to the root of the first partition you created at Step 1.
cp /Volumes/Lion_Installer/* /Volumes/BaseSystem/
6. Copy the Package directory from /Volumes/Lion_Installer to /Volumes/BaseSystem/System/Installation/
7. rm -rf /Volumes/BaseSystem/System/Library/Extensions/IO80211Family.kext
Now you can reboot from the lion dp4 installer volume and start your lion dp4 installation with no problem.
After the installation, you will find that wifi would not work. that’s because the file we deleted at step 7 is just the driver for wifi function. you can’t use that file for the latest 2011 mbp. For now we can just use the file in 10.6.7. So just dump the file in 10.6.7 located at /System/Library/Extensions/IO80211Family.kext and install it in Lion with kext helper b7. Then everything goes OK. Enjoy~