Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,271 posts in this topic

Recommended Posts

Positive; hardware works in other operating system of course :)

 

One more note it is not detected in the system profiler in the pci devices list. Only ethernet bus is detected.

 

Where can I find this injector kext since SSDT or DSDT patch wont work since I don't have AMI, it says it is something different in DSDT.aml (TP-83 i think?)

Link to comment
Share on other sites

Positive; hardware works in other operating system of course :)

 

One more note it is not detected in the system profiler in the pci devices list. Only ethernet bus is detected.

 

Where can I find this injector kext since SSDT or DSDT patch wont work since I don't have AMI, it says it is something different in DSDT.aml (TP-83 i think?)

Look for toledaARPT.kext. DSDT patch can work too (this DSDT injection technique is not specific to a BIOS vendor).

Link to comment
Share on other sites

I'm on vacation for a few days and don't have my hack with me to look at what the device tree lists etc.

 

i have a similar  wifi card  AR5BHB92 - but it seems for your card you need to add an entry to pick up your id

 

 it simply consists of adding the card PCI Vendor id/Product id 0x168c/0x002b to the list of ids defined in the plist file inside the kext:

./IO80211Family.kext/Contents/PlugIns/AirPortAtheros40.kext

these are what are there.

 

            IONameMatch = Array {

                pci168c,30

                pci168c,2a

                pci106b,0086

                pci168c,1c

                pci168c,23

                pci168c,24

  • Like 1
Link to comment
Share on other sites

I’m always trying to make my HD dual boot (10.9/Win 8.1)
cos right now i only boot on my windows 8.1 partition with the USB 8.1 installer (F12, don’t press on a key)
 
my HD :
volume "EFI" (PciRoot(0x0)\Pci(0x1F,0x2)\Sata(0x0,0x0,0x0)\HD(1,GPT,DE9D9FB2-B879-445A-AC71-D9858829D0C7,0x28,0x64000))
diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Power                   419.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             785.2 MB   disk0s3
   4:       Microsoft Basic Data WINDOWS                 79.7 GB    disk0s4
sudo gpt -r show -l disk0
gpt show: disk0: Suspicious MBR at sector 0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - "EFI System Partition"
     409640  819253632      2  GPT part - "Power"
  819663272    1533528      3  GPT part - "Recovery HD"
  821196800  155576320      4  GPT part - "WIN"
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
sudo gpt -r show disk0
gpt show: disk0: Suspicious MBR at sector 0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  819253632      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  819663272    1533528      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  821196800  155576320      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
sudo gpt -r -vv show disk0
gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168
gpt show: disk0: Suspicious MBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 976773167
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  819253632      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  819663272    1533528      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  821196800  155576320      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>
 2: AF 1023 254  63 - 1023 254  63 [    409640 -  819253632] HFS+        
 3: AB 1023 254  63 - 1023 254  63 [ 819663272 -    1533528] Darwin Boot 
*4: 07 1023 254  63 - 1023 254  63 [ 821196800 -  155576320] HPFS/QNX/AUX

——

I've tried this :
bcdboot C:\Windows /f UEFI  and bcdboot C:\Windows /s S: /f UEFI (where S: is the EFI partition - mount if not mounted) as advised 
 
with no success for the 1st and for the 2nd cos i can’t assign letter S to EFI partition 
cos when i’m under windows, the only partition that can be seen is WINDOWS one (disk0s4)
EFI partition can’t be seen.
 

I run this too

chkdsk
chkdsk /f
then
bootrec.exe /FixMbr
bootrec.exe /FixBoot
bootrec.exe /RebuildBcd
 
diskpart
select disk 0
I only see volumes but no partition except my WINDOWS volume
How can I mount my EFI partition on Windows?
i found nothing on the net :(
 
I sur i'm so closed from success :( it's)

 

Sorry to ask help again for dual boot

Link to comment
Share on other sites

I'm assuming that it doesn't matter if you input the hexidecimal value instead of just 2b. Went ahead and and put in "2b," and I'm happy to say that wifi works great! Big applaud for tluck helping everyone out and everyone else involved in the project. Bravo. :)

Link to comment
Share on other sites

Good morning,folks, greetings from Cologne.

 

I´m a 53-years old {censored}, please excuse my knowledge and handling of the english language.

After reading the thread since Kogen Mantis started it, i had no problems at all to install Mavericks on my T 420

using Tluck´s bootpack. (thank you, thank you, thank you, Tluck.)

 

The only thing that bother me: I can´t boot

my `HackPad` with the discrete graphics (nvs 42000M).

 

Perhaps one of the thread-members with the same spec´s ( and working Nvidia graphics ) as mine can post his dsdt  

for me to test it in my EFI-folder, i´ll be very lucky.

 

thanks in advance, have a nice WE.

 

 

 

T420 4236STU HD3000/NVS 4200M i5 2540  SSD/msata-SSD in wwan-slot

Link to comment
Share on other sites

@testubabe - welcome to our forum. i am glad your hack is working. i dont recall any posts with success for NVS 4200M

 

@tetonne - i wonder if your problem is related to the MBR found on your GPT disk? i will PM you some ideas.

  • Like 1
Link to comment
Share on other sites

Getting discrete graphics to work has been a sticking point for us for some time. Part of the reason is that the HD3000 works well enough alone.Take a stroll through the 430 thread. There was a user there once that had limited success. See if your needs can rekindle our drive.http://www.insanelymac.com/forum/topic/293762-thinkpad-t430-mavericks-109x/?view=getnewpost

Link to comment
Share on other sites

@tluck-I´m one step further, it´s so easy you won´t believe it. I dropped MCFG in the clover tables menue ,  boot without caches and that´s it.

nvs 4200m is working. But shame on me, since five hours I try to inject the dropMFCG in your config.plist.

I´m too silly to find the right place. The howto´s and tips I googled were out of time for the actuel clover rev.

Can you solve this problem for me?

Link to comment
Share on other sites

@testubabe -  here is the official wiki 

 

see http://clover-wiki.zetam.org/Configuration/ACPI#DropTables

 

in the ACPI section of the the clover config.plist, there already is a drop table section, just add a 3rd entry.

i think it would look like this:

 

<key>DropTables</key>

<array>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>Cpu0Ist</string>

</dict>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>CpuPm</string>

</dict>

<dict>

<key>Signature</key>

<string>MCFG</string>

</dict>

</array>

Link to comment
Share on other sites

I’m always trying to make my HD dual boot (10.9/Win 8.1)

cos right now i only boot on my windows 8.1 partition with the USB 8.1 installer (F12, don’t press on a key)

 

my HD :

volume "EFI" (PciRoot(0x0)\Pci(0x1F,0x2)\Sata(0x0,0x0,0x0)\HD(1,GPT,DE9D9FB2-B879-445A-AC71-D9858829D0C7,0x28,0x64000))

 

diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Power                   419.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             785.2 MB   disk0s3
   4:       Microsoft Basic Data WINDOWS                 79.7 GB    disk0s4
sudo gpt -r show -l disk0
gpt show: disk0: Suspicious MBR at sector 0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - "EFI System Partition"
     409640  819253632      2  GPT part - "Power"
  819663272    1533528      3  GPT part - "Apple_HFS_Untitled_2"
  821196800  155576320      4  GPT part - "WIN"
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
sudo gpt -r show disk0
gpt show: disk0: Suspicious MBR at sector 0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  819253632      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  819663272    1533528      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  821196800  155576320      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
——

I've tried this :

bcdboot C:\Windows /f UEFI and bcdboot C:\Windows /s S: /f UEFI (where S: is the EFI partition - mount if not mounted) as advised

 

with no success for the 1st and for the 2nd cos i can’t assign letter S to EFI partition

cos when i’m under windows, the only partition that can be seen is WINDOWS one (disk0s4)

EFI partition can’t be seen.

diskpart
select disk 0
I only see volumes but no partition except my WINDOWS volume
How can I mount my EFI partition on Windows?

i found nothing on the net :(

 

I sur i'm so closed from success :( it's

a pain in the neck)

 

Sorry to ask help again for dual boot

Hi

 

If you have created correctly the EFI partition you need only assign a letter to partition for see them in My Computer.

 

For correctly fix the boot of windows partition i solved simply with start my system with windows installer and run auto repair fix process (I recommend you to backup your EFI folder).

After repair ( test system also the auto fix procedure exit with error) your system probably boot with windows automatically.

If you can boot OSX you need to edit boot setting in UEFI to change windows boot manager with clover (seems windows boot loader check automatically if it is the primary boot selection and auto set itself first when not).

 

Sorry for typos

Link to comment
Share on other sites

To the comments about w8 enforcing its boot loader:

 

W8 does not do this. What you are seeing is called hybrid shutdown, the default shutdown behavior of w8. It logs out all users, effectively terminates all non system processes or anything that depends on user interaction, and then hibernates what's left of the system. This is how M$ got it to shutdown and boot so quickly. It never truly shuts down the system unless an installer or a system update explicitly calls the full shutdown. Luckily the user can also call a full shutdown, but more on that in a second.

 

You can verify this if you try to access this partition from another is. Let's use Ubuntu for example. After you perform a 'normal' shutdown and then swap the hard drive into an enclosure and try to access it from your Linux box, it won't mount. It's a regular NTFS partition but gparted will tell you that the partition is hybernated and won't allow you to make changes to it. This is also why it won't mount.

 

However, if you perform a 'full' shutdown, the partition is normally accessible.

 

That was just part of hybrid shutdown. The other thing it does during a hybrid shutdown is that it sets the next_boot flag in nvram (uefi persistent memory). This forces the system to boot the hybernated partition exclusively so as to not give you an opportunity to 'accidentally' muck up your windows installation. It's a (safety) feature, if you will. It's side effect is that following any 'normal' shutdown, the system will always boot to w8. But a full shutdown won't set this variable and the system is free to boot normally. So it may appear as if windows is 'setting itself as primary' , but in truth, it does no such thing and in fact, 'primary' has no meaning in an uefi system. The only thing a uefi system does is look for the efi partition and boot whatever is inside of it, always. Failing that, it looks for a fat32 formatted partition with bootfiles.

 

To conform to the efi spec, OS's need to install their loaders (or parts of) in the efi partition under their own folders, respecting the presence of other (foreign) boot loaders And not interfering with them. Clover is installed in its own folder within the efi partition and uefi is told to boot it by default, but you still have an opportunity to boot anything else if you so choose. Though all of this is bypassed if boot_next is set.

 

So how to perform a full shutdown?

 

Run:

 

shutdown -s -t 0

 

That's it. Make it a link on your desktop for easy access. Though your next boot will take longer, though on an ssd the difference is unnoticeable. There is also a permanent way to disable hybrid shutdown, but I don't remember it off hand as the shortcut is quick and painless for me and I rather like hybrid shutdown when I know I won't be switching systems.

 

HTH

Link to comment
Share on other sites

@tluck - thank you very much for your help,I read the wiki a dozen times and here´s what I did so far,

very close to right, but a million miles away.....

 

<key>DropTables</key> 

<array>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>CpuPm</string>

</dict>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>MCFG</string>

</dict>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>Cpu0Ist</string>

</dict>

</array>

 

I´ll try your way ....
Link to comment
Share on other sites

TimeWalker75a, congratulations, you got it. Automatic boot with nvs4200m works.

What I forgot to mention is that I erased the nvidia kexts and rolled back to the 10.9.2 version . No patch needed.

 

<key>DropTables</key> 

<array>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>CpuPm</string>

</dict>

<dict>

<key>Signature</key>

<string>MCFG</string>

</dict>

<dict>

<key>Signature</key>

<string>SSDT</string>

<key>TableId</key>

<string>Cpu0Ist</string>

</dict>

</array>

Link to comment
Share on other sites

I just gave the upgrade to IO.IO.DP6 a go and all's working as expected. I only had to re-patch Apple HDA. 

@tluck - Thanks for the rock solid base you've provided with the last bundle - no trouble since

 

Now, I want to use continuity with iOS 8 - what's needed to get this working?

 

looks like the current imacs have a BCM94360CD based airport bluetooth pci-e card, so I am trying to
get my hands on a mini pci-e version.

 

// just realised i have posted post 1280 on page 64 ;) nerdy, but kinda cool

Link to comment
Share on other sites

@all - Posted latest pack - updated for Yosemite DP6. Clover UEFI on T420 Guide

fairly minor changes in the pack. yosemite has been very stable for me over the last few weeks. just a few random finder or mdutil crashes.

 

Like Cowboy Mike, I just ran the app store updater to download and install DP6 - ran without any issue.

 

Had to replace/patch AppleHDA and Broadcom kexts as they were modified again.

 

Note:

the Yosemite Recovery HD has some odd things that can be easily fixed. (seems to happens on real macs too.)

mount it and you can remove the 2 bogus folders, keeping just the com.apple.recover.boot folder (and its contents)

 

21-August-2014 - 10.10 DP6/Beta Update

  • Clover updated to v2829 v2830
  • FakeSMC updated to 6.10.1323
  • ACPIBacklight.kext - v2.0.3 - with modified code to fix/workaround for LCD brightness in Yosemite.
  • added drop table MCFG for Nvidia/Optimus (mixed gfx)
  • added 10.10 kext folder (AppleHDA.kext and BroadcomBluetooth kexts are different than DP5 or Mavericks)
  • I originally used Toleda's yosemite installer to make my USB - but its no longer necessary for Beta or later, just follow the 10.9 Mavericks method
Edited by tluck
  • Like 2
Link to comment
Share on other sites

Now, I want to use handoff and continuity with iOS 8 - what's needed to get this working?

 

looks like the current imacs have a BCM94360CD based airport bluetooth pci-e card.

But there is a catch to using it, since it has a proprietary pin-payout and hence won't fit in

our T420s. So I am trying to get my hands on a mini pci-e version. Does anybody here have

an idea?

Link to comment
Share on other sites

@Fabiano_Nomad

 

- if i recall you have  T420s (vs T420) ... last time you used the config.nodsdt.aml and removed/renamed ACPI/patched/dsdt.aml so it would not use it

... maybe thats the difference for audio? T420 dsdt vs T420s dsdt?

 

- repackaged the zip today with clover r2830 as that is now posted for all on source forge. 

 

@Cowboy Mike - not sure about continuity as i don't have IOS8 on any device.

Link to comment
Share on other sites

@Glasgreat - I came across this: http://www.macvidcards.com/store/p33/Wifi_AC_%26_Bluetooth_Airport_Card.html it has a  compatible card on a carrier module that does the pin out translation (read regular mini pci-e) That's what we need, With some tweaks to the chassis it should fit in. I'll see if I can get the adaptor card somewhere. It shall be good for the other Apple WiFi/BT combos as well ;)

Link to comment
Share on other sites

 Share

×
×
  • Create New...