Jump to content

Clover General discussion

Bootloader EFI Clover

  • Please log in to reply
15593 replies to this topic

#401
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,498 posts
  • Gender:Male
  • Location:Moscow

After some tries I saw that apparently fstab isn't working to auto mount the EFI partition as I proposed for you before...

There is a very simple way to automount EFI partition at login.
Correct /etc/rc.local with two new lines at bottom
The whole file will be
#!/bin/bash
cat boot.log >boot.lo1
echo " " >> boot.lo1
date "+DATE: %Y-%m-%d TIME: %H:%M:%S%n" >> boot.lo1
ioreg -lw0 -pIODeviceTree | grep boot-log > ./log.txt
logdump=$(cat ./log.txt)
modified1=${logdump#*'boot-log'}
modified2=${modified1#*'<'}
modified3=${modified2%%'>'*}
echo $modified3 > ./boot-log.txt
xxd -r -p ./boot-log.txt >> boot.lo1
rm log.txt
rm boot-log.txt
tail -n 1000 boot.lo1 >boot.log
rm boot.lo1
mkdir /Volumes/EFI
mount_msdos /dev/disk0s1 /Volumes/EFI
Enjoy!

#402
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,771 posts
  • Gender:Male
  • Location:UK

Sorry for OT ..

@blackosx

can you clear out your pm box?

Done

#403
kyndder

kyndder

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Brazil

There is a very simple way to automount EFI partition at login.
Correct /etc/rc.local with two new lines at bottom
The whole file will be

#!/bin/bash
cat boot.log >boot.lo1
echo " " >> boot.lo1
date "+DATE: %Y-%m-%d TIME: %H:%M:%S%n" >> boot.lo1
ioreg -lw0 -pIODeviceTree | grep boot-log > ./log.txt
logdump=$(cat ./log.txt)
modified1=${logdump#*'boot-log'}
modified2=${modified1#*'<'}
modified3=${modified2%%'>'*}
echo $modified3 > ./boot-log.txt
xxd -r -p ./boot-log.txt >> boot.lo1
rm log.txt
rm boot-log.txt
tail -n 1000 boot.lo1 >boot.log
rm boot.lo1
mkdir /Volumes/EFI
mount_msdos /dev/disk0s1 /Volumes/EFI
Enjoy!


Thanks for the tip Slice, but I believe that this may not work when we have more
than one HDD on the machine like me that have four...

I didn't find any way to mount a volume by using UUID if not using fstab but I don't
know why, I can mount any volume less EFI on any disk with fstab...

#404
Mrengles

Mrengles

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Gender:Male
  • Location:United States

Thanks for the tip Slice, but I believe that this may not work when we have more
than one HDD on the machine like me that have four...

I didn't find any way to mount a volume by using UUID if not using fstab but I don't
know why, I can mount any volume less EFI on any disk with fstab...


Your boot disk will always be /dev/disk0

#405
efy

efy

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
When I boot I have a long delay before it displays "mac swapon success" and then it continues to boot. I read that I could use Netkos's pc-efi to fix it. But I boot with UEFI, will it still work? How can I fix the delay?

#406
kyndder

kyndder

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Brazil

Your boot disk will always be /dev/disk0


I think you are wrong...

#407
efy

efy

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
I am having trouble getting speedstep to work. I can get minimum and maximum pstates but nothing in between. I have already tried many things. I created patched SSDT and have also tried injecting c and p states through the bootloader. I have not had any success at all. Many people write to check the BIOS but the settings in my laptops BIOS are very limited and there isn't a custom BIOS to flash.

#408
kyndder

kyndder

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Brazil

I am having trouble getting speedstep to work. I can get minimum and maximum pstates but nothing in between. I have already tried many things. I created patched SSDT and have also tried injecting c and p states through the bootloader. I have not had any success at all. Many people write to check the BIOS but the settings in my laptops BIOS are very limited and there isn't a custom BIOS to flash.


When using custom SSDT you have DropOEMSSDT to No and with GenerateP/CStates DropOEMSSDT to Yes right???

http://www.insanelym...2/#entry1853597

#409
efy

efy

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts

When using custom SSDT you have DropOEMSSDT to No and with GenerateP/CStates DropOEMSSDT to Yes right???

http://www.insanelym...2/#entry1853597


Yes when I use a custom SSDT I drop the OEM SSDT. I have tried all of the boot options in different ways with no success.

I should also note that although I modified the IOPlatform kext to enable sleep, I still experience sleep problems sometimes. If I try to sleep right after booting it works fine. But if I try after a while with a few programs open it doesn't go to sleep. The screen turns off with everything else on and I can't wake it again.

#410
shiecldk

shiecldk

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 259 posts
  • Gender:Male
  • Location:Taiwan
@Slice

"KextsToPatch" don't work for me.
I followed the instruction in here:
http://www.insanelym...2/#entry1853204
Then Applied the Trim code provided in the post, but it never have worked.
I'm wondering if newer Clover had removed this feature?

However, "KernelAndKextPatches" always works pretty well.


Problem solved.
I didn't know KextsToPatch is under KernelAndKextPatches.
Maybe you could mention it in the instruction. :wink2:

By the way, I found out that OsxAptioFixDrv-64.efi in EFI boot may cause wake failure after sleep. I don't have this sleep problem in Bios boot of Clover.
Hope this will be fixed in the future...

#411
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,498 posts
  • Gender:Male
  • Location:Moscow

Thanks for the tip Slice, but I believe that this may not work when we have more
than one HDD on the machine like me that have four...

I didn't find any way to mount a volume by using UUID if not using fstab but I don't
know why, I can mount any volume less EFI on any disk with fstab...

mkdir /Volumes/EFI0
mount_msdos /dev/disk0s1 /Volumes/EFI0
mkdir /Volumes/EFI1
mount_msdos /dev/disk1s1 /Volumes/EFI1
mkdir /Volumes/EFI2
mount_msdos /dev/disk2s1 /Volumes/EFI2
mkdir /Volumes/EFI3
mount_msdos /dev/disk3s1 /Volumes/EFI3
mkdir /Volumes/EFI4
mount_msdos /dev/disk4s1 /Volumes/EFI4


#412
magnifico

magnifico

    The Special One

  • Donators
  • 3,511 posts
  • Gender:Male
:|

@Slice ...what is this error

Spoiler


#413
kyndder

kyndder

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Brazil

mkdir /Volumes/EFI0
mount_msdos /dev/disk0s1 /Volumes/EFI0
mkdir /Volumes/EFI1
mount_msdos /dev/disk1s1 /Volumes/EFI1
mkdir /Volumes/EFI2
mount_msdos /dev/disk2s1 /Volumes/EFI2
mkdir /Volumes/EFI3
mount_msdos /dev/disk3s1 /Volumes/EFI3
mkdir /Volumes/EFI4
mount_msdos /dev/disk4s1 /Volumes/EFI4


This way completely works!

#414
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,498 posts
  • Gender:Male
  • Location:Moscow

Posted Image

@Slice ...what is this error

Spoiler

This is a problem of NTFS support in OSX so ask Apple. I don't know.
It asks you to boot Windows and run chkdsk.

#415
magnifico

magnifico

    The Special One

  • Donators
  • 3,511 posts
  • Gender:Male
:hammer: try with chkdsk ...

#416
Mrengles

Mrengles

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Gender:Male
  • Location:United States
@Slice

The new release of Clover v2 r857 works great here on my P8Z77-M Pro with an i7-3770K. The new video driver is picking up 6 different video modes, one of them being 1920x1080 for the boot menu. (Shown in the logs) I can set the output to 1920x1080 with the page up/down keys too! =)

How can I set the main menu to display at this mode by default?

Thanks,
-Mrengles

PS. Also I'm getting an Aptio error when booting verbose (the boot process keeps moving right along though and gets me to 10.8.2 without any problems), but it does not show in any of the logs, do I not need this driver? My motherboard uses the Asus Z77 UEFI Bios v1616. At the Asus UEFI BIOS utility it says the AMI version is 2.0.1.35 or something close to that...

Thanks again!

#417
shiecldk

shiecldk

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 259 posts
  • Gender:Male
  • Location:Taiwan
@Slice
This patch is for the problem "Still waiting for root device" in IOAHCIBlockStorage 2.3.1 from Build 12C3006:
http://www.insanelym...20#entry1866741

Maybe you could add it in the revision. :)

#418
Mrengles

Mrengles

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Gender:Male
  • Location:United States
I made a really nice font for Clover... Monaco variant, ant- aliased, white text with both black and gray backgrounds...

http://organicdata.n...sExtraFonts.zip

Enjoy!

#419
Eps

Eps

    InsanelyMac Protégé

  • Members
  • PipPip
  • 89 posts
Great job,Mrengles.
But,it is better if there were a transparent-background font. :wink2:

#420
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 6,498 posts
  • Gender:Male
  • Location:Moscow

I made a really nice font for Clover... Monaco variant, ant- aliased, white text with both black and gray backgrounds...

http://organicdata.n...sExtraFonts.zip

Enjoy!

Are you sure your aliased fonts will be looked OK?

@Slice
This patch is for the problem "Still waiting for root device" in IOAHCIBlockStorage 2.3.1 from Build 12C3006:
http://www.insanelym...20#entry1866741

Maybe you could add it in the revision. :)

Already here
#10






2 user(s) are reading this topic

1 members, 1 guests, 0 anonymous users


© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy