Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,271 posts in this topic

Recommended Posts

I made some heavy modifications to the ThinkPad Clover theme:

FxBM8jR.jpg

 

  • Changed the font to Helvetica Neue
  • Made most icons flat
  • Changed the ThinkPad logo
  • Removed dots from the background

It's mostly meant for personal usage, so I did not test if all icons look correctly.

 

Download mirror: https://jii.moe/4JkQA-lkl.zip

 

You can either just overwrite the ThinkPad folder in EFI/CLOVER/themes, or rename it to something else, then make the renamed theme default.

ThinkPad.zip

  • Like 1
Link to comment
Share on other sites

@Ezhik - very nice. will give it a whirl.

 

@paolo.marco

 

-- please provide a bit more details on how you built the USB? and what happens when you try to use it.

-- did you copy zip into the EFI partition of the USB and then rename the config files?

 

but in the meantime, run these 2 command against your usb - i presume you built the USB on a mac? assuming your USB is disk1

diskutil list disk1
sudo gpt -r show disk1 

the output should look something like this:

 

/dev/disk5 (external, physical):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *15.6 GB    disk5

   1:                        EFI EFI                     209.7 MB   disk5s1

   2:                  Apple_HFS Install-10.10.5         7.8 GB     disk5s2

 

 

 

tluck@Toms-Mac ~

$ sudo gpt -r show disk5

     start      size  index  contents

         0         1         PMBR

         1         1         Pri GPT header

         2        32         Pri GPT table

        34         6         

        40    409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640  15240576      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  30218968    262151         

  30481119        32         Sec GPT table

  30481151         1         Sec GPT header

  • Like 1
Link to comment
Share on other sites

I made it with my macbook 10.10

 

I followed by heart all your guide !

 

- did you copy zip into the EFI partition of the USB and then rename the config files?

 

 

Yes, sure !

 

I'm checking if I did something wrong with bios setup

 

Thanks a lot !

 

 diskutil list disk2

/dev/disk2

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *15.6 GB    disk2

   1:                        EFI EFI                     209.7 MB   disk2s1

   2:                  Apple_HFS Install OS X Yosemite   15.2 GB    disk2s2

 
sudo gpt -r show disk2

 

     start      size  index  contents

         0         1         PMBR

         1         1         Pri GPT header

         2        32         Pri GPT table

        34         6         

        40    409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640  29704112      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  30113752    262151         

  30375903        32         Sec GPT table

  30375935         1         Sec GPT header

Edited by paolo.marco
Link to comment
Share on other sites

@all - i just upgraded the zip to latest Clover and new IntelBacklight.kext from RehabMan - replaces ACPIBacklight.kext.

 

@paolo -- 

 

well I think it was already mentioned?... from the guide:

 

BIOS settings:

- Recommend update to BIOS v1.46

- Recommend reset to defaults. Most defaults settings will work but check settings these:

Set Config / Serial ATA (SATA) / SATA = AHCI 

Set Security / Memory Protection / Execution Prevention = Enabled

- Disable Discrete Nvidia/Optimus (use integrated HD 3000 only - unless you really know what you are doing!)

  • Like 1
Link to comment
Share on other sites

 

 

b ) REPLACE the ESP (EFI folders) contents with the exact CLOVER folder as used in the setup on USB from steps above. If not still automatically mounted by the installer pkg, manually mount the ESP of your HD on say /Volumes/ESP. Then copy and replace the folders /Volume/ESP/EFI/CLOVER and BOOT from the USB installer you just built and used.

 

Note: Yosemite likes to make a logical volume and this may confuse the Clover Installer looking for the ESP. So I recommend revert your root partition to a regular volume. Run: sudo diskutil corestorage revert /

 

I don't understand what you mean 

 

In the sense that:

 

I replace che ESP contents of the installed HD with the one i downloaded from here? (approx 6 MB)

 

Because, after installing CLOVER, from the link you have given, if I do, on the T420 that now boots with OS X:

sudo mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP

I get no folder called CLOVER in the path but instead there is only

/Volumes/ESP/EFI/APPLE

Should I suppose that CLOVER failed to install Itself on the HD ?

 

 

 

REALLY FORGIVE ME ! I'M A NEWBIE 

Link to comment
Share on other sites

yes unzip the bundle and copy the EFI folder which has CLOVER and BOOT stuff to your HD EFI folder (same stuff you put on the USB) to your HD /Volumes/ESP/EFI/

which means you will have 3 directories  CLOVER BOOT and APPLE  in  EFI 

  • Like 1
Link to comment
Share on other sites

well you must have missed a step.

 

what version of OS X?

after you installed it?

 

can you boot it from the USB?

 

 

did you revert the logical volume of HD ? (sudo diskutil corestorage revert /)

did you rename the config files on the ESP HD?

did you install the kexts on the HD?

Link to comment
Share on other sites

@tluck - I'm back with an interesting one. Finally got hold of a compatible WiFi card for my T420, installed it and got the error about the whitelist. So I got the modded BIOS for 1.46 for the T420. Reinstalled the WiFi card but now I get a kernel panic at boot.

 

Put my USB installer in to see if I could boot from that but I get the same kernel panic for the same reasons.

 

Photo - http://imgur.com/8RVZVj3

 

If I remove the network card it boots into OS X and the installer just fine with no problems.

 

UPDATE: So I did some more research and it seems I need to install the kexts for it to work - HEADACHE lol.

Edited by aetherTom
Link to comment
Share on other sites

Thanks tluck for the last pack :)

----

 

diskutil list

/dev/disk0 (internal, physical):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *500.1 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:                  Apple_HFS Power                   423.2 GB   disk0s2

   3:                  Apple_HFS Recovery HD             650.0 MB   disk0s3

   4:         Microsoft Reserved                         134.2 MB   disk0s4

   5:       Microsoft Basic Data WIN                     68.9 GB    disk0s5

   6:       Microsoft Basic Data Win_Recovery            6.9 GB     disk0s6

/dev/disk1 (external, physical):

 
sudo gpt -r show disk0

 

      start       size  index  contents

          0          1         PMBR

          1          1         Pri GPT header

          2         32         Pri GPT table

         34          6         

         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

     409640  826575376      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  826985016     262144         

  827247160    1269536      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  828516696       1704         

  828518400     262144      4  GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE

  828780544  134582272      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  963362816   13408256      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7  why this data are the same than the previous line?

  976771072       2063         

  976773135         32         Sec GPT table

  976773167          1         Sec GPT header

 

I think i found why my win recovery is not working anymore

 

can someone please give me an advice ? gdisk seems to be ko on El capitan

 https://forums.developer.apple.com/thread/13142

Link to comment
Share on other sites

@tetonne -

 

maybe you need change your partition 6 type from 

 

EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

to 

DE94BBA4-06D1-4D40-A16A-BFD50179D6AC

 

here is what my disk looks like with installation of OS X. And then i installed W10 - it made 3 partitions and then i made the last one.

 

partition 6 is the MSR partition 

partition 7 is NTFS

partition 8 is Win Recovery

partition 9 is formatted ExFAT

 

tluck@Toms-Dell ~

$ diskutil list

/dev/disk0

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *1.0 TB     disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:                  Apple_HFS OSX-D                   628.8 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:                                                    1.0 MB     disk0s4

   5:         Microsoft Reserved                         134.2 MB   disk0s5

   6:       Microsoft Basic Data                         99.3 GB    disk0s6

   7: DE94BBA4-06D1-4D40-A16A-BFD50179D6AC               471.9 MB   disk0s7

   8:       Microsoft Basic Data Space                   270.7 GB   disk0s8

 

tluck@Toms-Dell ~

$ sudo gpt -r show disk0

       start        size  index  contents

           0           1         PMBR

           1           1         Pri GPT header

           2          32         Pri GPT table

          34           6         

          40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

      409640  1228027288      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  1228436928     1269544      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

  1229706472        2048      4  

  1229708520      262144      5  GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE

  1229970664   193933312      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  1423903976      921600      7  GPT part - DE94BBA4-06D1-4D40-A16A-BFD50179D6AC

  1424825576   528699557      8  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  1953525133           2         

  1953525135          32         Sec GPT table

  1953525167           1         Sec GPT header

  • Like 1
Link to comment
Share on other sites

@tluck

 

well you must have missed a step.

 

what version of OS X?

after you installed it?

 

can you boot it from the USB?

 

 

did you revert the logical volume of HD ? (sudo diskutil corestorage revert /)

did you rename the config files on the ESP HD?

did you install the kexts on the HD?

 

 

The OS X version is 10.10

I could boot from USB and I did the steps for 1 to 5 of your part 2 guide

I did the logical revert

I Installed the kexts on the HD by terminal command _kext-install.bash

 

You wrote this 

 

 

Recommended: Use the folder with its config.plist with the custom dsdt.aml (as is) to start.  And install the custom kexts from the zip folder to the /Library/Extensions folder. 

 

Are you saying that I need to move config.plist and dsdt.aml ? It's not already done by the script ?

 

Because in that case probably it's omitted what to do, certainly clear for an expert on hackintosh, but unknown for a newbie as me....

 

I could offer my self to, at the end of this, edit the guide adding the steps that I miss, making it even easier for ignorant people as me :)

 

THANKS A LOT FOR ALL YOUR JOB !!!

 

 

IF i select on EFI:

boot OS X from hd -> the error that I showed to you

boot recovery from USB -> I'm working on it now, booting without errors and working on it ?????!!!!!!

Link to comment
Share on other sites

@paolo.marco

 

so i assume you can boot up OS X up with the USB - since you got to step 5. 

To boot from the HD, the EFI/Clover folder on the HD must be an exact copy of the USB EFI/Clover folder.

not a copy of the zip - which doesn't have config.plist renamed. if you copy from the zip bundle you then need to rename config.yourlcdsize.plist to config.plist

  • Like 1
Link to comment
Share on other sites

@tluck

 

I will try what you say, I suppose that you mean something like:

 

sudo mkdir /Volumes/ESP-USB

sudo mount -t msdos /dev/disk2s1 /Volumes/ESP-USB

# I get access to EFI with clover of usb key

 

sudo mkdir /Volumes/ESP-HD

sudo mount -t msdos /dev/disk0s1 /Volumes/ESP-HD

# I get access to EFI of OS X installed drive

 

sudo cp -a  /Volumes/ESP-USB/*  /Volumes/ESP-HD/.

 

It seems ok ?

 

Question ? 

It still keeps APPLE folder, Should I keep it or not ? 

 

THANKS TLUCK !!!

 

HINT:

 

if i insert the usb key I used to install OS X in the laptop and i select, at boot selection, to boot from installed OS X, the system boot ups without any problem !!! 

If I do it without keeping inserted the usb key, the laptop hangs at booting OS X 

 

SOLVED:

 

I DID IT !!!

 

I COPIED ALL the EFI SUB folder and i works now !

Just a question

 

If I do ls on it I see

EFI

BOOT

CLOVER

 

and inside EFI there are

APPLE 

BOOT 

CLOVER

 

is it right ?

Link to comment
Share on other sites

@paolo.marco

 

great... so the ESP Directory structure should be:

 

 

$ ls -l /Volumes/ESP

total 3

drwxrwxrwx  1 tluck  staff  512 Sep 27 14:10 EFI

 

$ ls -l /Volumes/ESP/EFI

total 11

drwxrwxrwx  1 tluck  staff   512 Jul 13 15:53 APPLE

drwxrwxrwx  1 tluck  staff   512 Sep 27 14:09 BOOT

drwxrwxrwx  1 tluck  staff  1024 Sep 27 14:15 CLOVER

 

$ ls -l /Volumes/ESP/EFI/CLOVER/

total 1310

drwxrwxrwx  1 tluck  staff     512 Sep 27 14:09 ACPI

-rwxrwxrwx  1 tluck  staff  648704 Sep 27 14:01 CLOVERX64.efi

-rwxrwxrwx  1 tluck  staff    6050 Sep 10 11:57 config.plist

drwxrwxrwx  1 tluck  staff     512 Sep 27 14:09 drivers64UEFI

drwxrwxrwx  1 tluck  staff    1024 Sep 27 14:10 kexts

drwxrwxrwx  1 tluck  staff     512 Sep 27 14:09 misc

drwxrwxrwx  1 tluck  staff     512 Sep 27 14:15 themes

drwxrwxrwx  1 tluck  staff     512 Sep 27 14:09 tools

 

 

so you can remove the extra /BOOT and /CLOVER directories from the top level - as these should be in /EFI not at /

Link to comment
Share on other sites

Thank you, this is much better! 

 

 

So, how's El Capitan? Stable enough? For the update, would I just need to re-install the kexts afterwards? 

 

I'm on El Capitan since the betas - never had an issue, besides the applications that fail to play nicely with the new SIP (like XtraFinder for example). Generally speaking the switch for me was much more effortless then the Mavericks->Yosemite one last year :-)

 

Just don't forget that you need not only to install the kexts, but also to copy them over to EFI/CLOVER/kexts (like during the initial installation).

Also using the provided from @tluck script is the better way to go as it also cleans old obsoleted kexts.

Link to comment
Share on other sites

@Ezhik  

 

i started running the El Capitan GM several week ago and now i am running on the 2nd 10.11.1 Public Beta. all in all 10.11 has been pretty solid. i like some of the new features. Stability -  had what seemed like 1 random KP. otherwise it seems much better than the early days of Yosemite. Luckily (perhaps) the T420 is USB2 only as the USB3 implementation is causing plenty of problems for other folks. 

 

but to answer the kext question. the Bluetooth is a bit different in 10.11 -- so that one must be updated. but it doesn't hurt to reinstall them all from the latest pack to make sure you are on the recent versions.

 

it is as simple as on a real mac - just download and upgrade. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...