Contribute
Register

[Guide] Lenovo IdeaPad U330/U430/U530 using Clover UEFI

Status
Not open for further replies.
Joined
Jun 29, 2014
Messages
87
Motherboard
Lenovo U330p
CPU
i5-4200U
Graphics
HD Graphics 4400
Mac
Classic Mac
Mobile Phone
  1. Android
Hello Rehabman,

After I worked quite a while on a Lenovo Z580 I switched to a Lenovo U330p yesterday. It does not have an nvidia graphics card - only Intel HD 4400.

I followed your perfect guide and got battery, brightness, sleep and USB working in two minutes. THANK you for your repo! You saved me a lot of searching, trying and patching.

I noticed some things I'd like to share:

1.) My "config.plist.standard" from the Clover guide was full of DSDT patches. I believe that caused MaciASL to read a "System DSDT" which can NOT be compiled (182 errors even without a patch applied). However, your script uses patchmatic and works like a charm. :clap:

2.) I had to remove the "DisableDrivers" string from "VBoxHFS" to "Nothing". Leaving it on "VboxHFS" made clover NOT DISPLAY any boot options. Changing it to "Nothing" made it display my Mac HDD again. Does that mean my partition can only be read with the VboxHFS driver? :crazy:

===

Now the scary question I actually pressed "answer" for:

I would like to make internal WiFi working.

I have to cards on hand: An Atheros AR5B195 (with AR9285 Wifi on it) and a Broadcom BCM94352HMB (with BCM4352 Wifi on it).

The Broadcom card is seen as "AirPort Extreme (0x14E4, 0x2154). Not sure about the Atheros card though.


Question: Can I rebrand the Broadcom Card to make it pass the U330p BIOS whitelist?

If not: I can use the AR5B195 even though you rebranded an AR5BHB92 because they have the same WLAN chip on them, right?

THANK YOU SO MUCH.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
...
1.) My "config.plist.standard" from the Clover guide was full of DSDT patches. I believe that caused MaciASL to read a "System DSDT" which can NOT be compiled (182 errors even without a patch applied). However, your script uses patchmatic and works like a charm. :clap:

This guide does not use that config.plist.

2.) I had to remove the "DisableDrivers" string from "VBoxHFS" to "Nothing". Leaving it on "VboxHFS" made clover NOT DISPLAY any boot options. Changing it to "Nothing" made it display my Mac HDD again. Does that mean my partition can only be read with the VboxHFS driver? :crazy:

You didn't follow the guide. The guide specifies HFSPlus.efi.

I have to cards on hand: An Atheros AR5B195 (with AR9285 Wifi on it) and a Broadcom BCM94352HMB (with BCM4352 Wifi on it).

The Broadcom card is seen as "AirPort Extreme (0x14E4, 0x2154). Not sure about the Atheros card though.

Question: Can I rebrand the Broadcom Card to make it pass the U330p BIOS whitelist?

If not: I can use the AR5B195 even though you rebranded an AR5BHB92 because they have the same WLAN chip on them, right?


The AR5B195 can be rebranded (instructions in guide).

I'll let you know on the broadcom... I have the same BCM94352HMB on the way and will attempt a rebrand in the next couple of weeks.
 
Joined
Jun 29, 2014
Messages
87
Motherboard
Lenovo U330p
CPU
i5-4200U
Graphics
HD Graphics 4400
Mac
Classic Mac
Mobile Phone
  1. Android
Just to clarify: I had used the config.plist with the load of DSDT patches from the Clover Guide only to create a the CloverUSB installer.

Right now I am using 100% your config.plist (only with customized IDs). I've been an idiot not to copy the HFSplus.efi. :oops:

I'll try rebranding the Atheros card now and won't have AC-Wlan for a while. That's ok but if you'd manage the Broadcom card that would be great!
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Just to clarify: I had used the config.plist with the load of DSDT patches from the Clover Guide only to create a the CloverUSB installer.

The guide in post #1 does not use the config.plist you refer to.
 
Joined
Jun 29, 2014
Messages
87
Motherboard
Lenovo U330p
CPU
i5-4200U
Graphics
HD Graphics 4400
Mac
Classic Mac
Mobile Phone
  1. Android
You're right. I shouldn't have used it in the first place.

I was unsuccessful trying to rebrand the card. The values are: 168C:002B, 17AA 31A1. I read the dump from the card using iwleeprom and edited the output file with ghex.

For the sake of replacing the right (byte flipped) values I replaced 2B00 with 3400 and A131 with 1431.

iwleeprom said it had written the file to the device when I used "iwleeprom -i [...]".

I could even see the bytes, where it didn't printed out . but X (. means it's the same on the device and in the dump. X means WRITE).

Here's the output:

Code:
ubuntu@ubuntu:~/Downloads$ sudo iwleeprom -i ./eeprom2
Supported devices detected: 
  [1] 0000:03:00.0 [RW] AR9285 Wireless Adapter (PCI-E) (168c:002b, 17aa:31a1)
Select device [1-1] (or 0 to quit): 1
Using device 0000:03:00.0 [RW] AR9285 Wireless Adapter (PCI-E) 
IO driver: ath9k
HW: AR9285 (PCI-E) rev 0002
RF: integrated
Checking NVM size...
ath9k short eeprom base: 128  size: 376
About to write device EEPROM, press 'Y' if you are sure... Y
Writing data to EEPROM...
  '.' = match, 'x' = write
Dump file byte order: LITTLE ENDIAN
0000 [.....x.....x....................................................]
0080 [................................................................]
0100 [................................................................]
0180 [................................................................]
0200 [................................................................]
0280 [................................................................]
0300 [................................................................]
0380 [................................................................]
0400 [................................................................]
0480 [................................................................]
0500 [................................................................]
0580 [................................................................]
0600 [................................................................]
0680 [................................................................]
0700 [................................................................]
0780 [................................................................]
0800 [.....x.....x....................................................]
0880 [................................................................]
0900 [................................................................]
0980 [................................................................]
0a00 [................................................................]
0a80 [................................................................]
0b00 [................................................................]
0b80 [................................................................]
0c00 [................................................................]
0c80 [................................................................]
0d00 [................................................................]
0d80 [................................................................]
0e00 [................................................................]
0e80 [................................................................]
0f00 [................................................................]
0f80 [................................................................]

However, after a reboot the device is NOT rebranded. It is as if I never flashed the eeprom (maybe I didn't?)
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
You're right. I shouldn't have used it in the first place.

I was unsuccessful trying to rebrand the card. The values are: 168C:002B, 17AA 31A1. I read the dump from the card using iwleeprom and edited the output file with ghex.

For the sake of replacing the right (byte flipped) values I replaced 2B00 with 3400 and A131 with 1431.

iwleeprom said it had written the file to the device when I used "iwleeprom -i [...]".

I could even see the bytes, where it didn't printed out . but X (. means it's the same on the device and in the dump. X means WRITE).

Here's the output:

Code:
ubuntu@ubuntu:~/Downloads$ sudo iwleeprom -i ./eeprom2
Supported devices detected: 
  [1] 0000:03:00.0 [RW] AR9285 Wireless Adapter (PCI-E) (168c:002b, 17aa:31a1)
Select device [1-1] (or 0 to quit): 1
Using device 0000:03:00.0 [RW] AR9285 Wireless Adapter (PCI-E) 
IO driver: ath9k
HW: AR9285 (PCI-E) rev 0002
RF: integrated
Checking NVM size...
ath9k short eeprom base: 128  size: 376
About to write device EEPROM, press 'Y' if you are sure... Y
Writing data to EEPROM...
  '.' = match, 'x' = write
Dump file byte order: LITTLE ENDIAN
0000 [.....x.....x....................................................]
0080 [................................................................]
0100 [................................................................]
0180 [................................................................]
0200 [................................................................]
0280 [................................................................]
0300 [................................................................]
0380 [................................................................]
0400 [................................................................]
0480 [................................................................]
0500 [................................................................]
0580 [................................................................]
0600 [................................................................]
0680 [................................................................]
0700 [................................................................]
0780 [................................................................]
0800 [.....x.....x....................................................]
0880 [................................................................]
0900 [................................................................]
0980 [................................................................]
0a00 [................................................................]
0a80 [................................................................]
0b00 [................................................................]
0b80 [................................................................]
0c00 [................................................................]
0c80 [................................................................]
0d00 [................................................................]
0d80 [................................................................]
0e00 [................................................................]
0e80 [................................................................]
0f00 [................................................................]
0f80 [................................................................]

However, after a reboot the device is NOT rebranded. It is as if I never flashed the eeprom (maybe I didn't?)

All 4 values need changing. And you must modify the iwleeprom code as described in the guide. I can see from your output that the correct offsets/size are not being used (offset should be 0, size should be 512).
 
Joined
Jun 29, 2014
Messages
87
Motherboard
Lenovo U330p
CPU
i5-4200U
Graphics
HD Graphics 4400
Mac
Classic Mac
Mobile Phone
  1. Android
OMG

How can one be as stupid as I was? :banghead: :oops::oops::oops:

I had skipped the section where the guide told me to change ath9kio.c in order to find the device with the "wrong" device-IDs --> because my card is still on default IDs of course.

I am currently writing this over the air with WLAN from the rebranded card. Having changed offset to 0 and length to 512 it worked as expected.

Having AC WLAN would be nice but it's just a bonus feature for me.

Again: You are the man! Thank you very very much for your patience, your knowledge and your sharing it with us.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
OMG

How can one be as stupid as I was? :banghead: :oops::oops::oops:

I had skipped the section where the guide told me to change ath9kio.c in order to find the device with the "wrong" device-IDs --> because my card is still on default IDs of course.

I am currently writing this over the air with WLAN from the rebranded card. Having changed offset to 0 and length to 512 it worked as expected.

Having AC WLAN would be nice but it's just a bonus feature for me.

Again: You are the man! Thank you very very much for your patience, your knowledge and your sharing it with us.

Glad you have it working... Native WiFI on this laptop makes it so much better than USB WiFi. It is definitely worth the trouble for the rebrand process...
 
Joined
Nov 8, 2012
Messages
76
Motherboard
Lenovo G50-70, El Capitan (clover)
CPU
i5-4210U, 1.70GHz (Haswell ULT, 15W)
Graphics
Intel HD Graphics 4400, 1366x768
Mac
  1. MacBook Pro
Classic Mac
Mobile Phone
  1. iOS
Nice to share with us Mr RehabMan....
Very good tutorial and complete.
Thanks for having you on this forum!!:beachball:
 
Status
Not open for further replies.
Top