Jump to content
924 posts in this topic

Recommended Posts

Andy,

Thanks for your great work! I send it to revision 2819 but

your diff file in a nightmare so I can't check if I apply it correctly.

I corrected some places to do the project compilable and now I want to hear if some more corrections needed.

 

2all. Test, please!

  • Like 1

Andy,

Thanks for your great work! I send it to revision 2819 but

your diff file in a nightmare so I can't check if I apply it correctly.

I corrected some places to do the project compilable and now I want to hear if some more corrections needed.

 

2all. Test, please!

Please attached here 2819 ..i want to try

ok Sergey work perfect

 

 

0:100  0:000  Starting Clover rev 2819 on American Megatrends EFI

 

Only curiosity what is this ?

 

 

0:120  0:000  Kernel and Kext Patches:
0:120  0:000      Allowed: y
0:120  0:000      Debug: n
0:120  0:000      KernelCpu: n
0:120  0:000      Lapic: n
0:120  0:000      AICPUPM: n
0:120  0:000      AppleRTC: n
0:120  0:000      KernelPm: n
0:120  0:000      FakeCPUID: 0x0
0:120  0:000      ATIController: <null string>
0:120  0:000      ATIDataLength: 0
0:120  0:000      0 Kexts to load
0:120  0:000      0 Kexts to patch

Andy,

Thanks for your great work! I send it to revision 2819 but

your diff file in a nightmare so I can't check if I apply it correctly.

I corrected some places to do the project compilable and now I want to hear if some more corrections needed.

 

2all. Test, please!

Slice, note that with r2819 you changed in fdf to VBoxHfs (instead of HFSPlus that was used previously).

This will break in CloverEFI the possibility to boot installers created by 'createinstallmedia' (no links support in VBoxHfs).

 

Also, just wondering, which diff file are you referring to? I did not see any diff file... :)

  • Like 1

Please attached here 2819 ..i want to try

ok Sergey work perfect

0:100  0:000  Starting Clover rev 2819 on American Megatrends EFI

Only curiosity what is this ?

0:120  0:000  Kernel and Kext Patches:
0:120  0:000      Allowed: y
0:120  0:000      Debug: n
0:120  0:000      KernelCpu: n
0:120  0:000      Lapic: n
0:120  0:000      AICPUPM: n
0:120  0:000      AppleRTC: n
0:120  0:000      KernelPm: n
0:120  0:000      FakeCPUID: 0x0
0:120  0:000      ATIController: <null string>
0:120  0:000      ATIDataLength: 0
0:120  0:000      0 Kexts to load
0:120  0:000      0 Kexts to patch

Apianti did it when he was fixing kexttopatch frorm 2797 to 2806. He left expanded log for kext patching in case of troubles.

Slice, note that with r2819 you changed in fdf to VBoxHfs (instead of HFSPlus that was used previously).

This will break in CloverEFI the possibility to boot installers created by 'createinstallmedia' (no links support in VBoxHfs).

 

Also, just wondering, which diff file are you referring to? I did not see any diff file... :)

O-oh! Sorry for the fdf.  In this long series I didn't see this.

The diff file Andy gave me in PM.

  • Like 1

Last login: Tue Aug 19 12:16:24 on ttys000
new-host-2:~ Micky1979$ cd /Users/Micky1979/Desktop/lzvn/decomplzvn
new-host-2:decomplzvn Micky1979$ make clean
rm -f *.o decomplzvn
new-host-2:decomplzvn Micky1979$ make
gcc -arch x86_64 -O2 -c decomplzvn.c -o decomplzvn.oas -arch x86_64 -o lzvn.o lzvn.s
gcc -arch x86_64 -O2 -o decomplzvn *.o
new-host-2:decomplzvn Micky1979$ /Users/Micky1979/Desktop/lzvn2/decomplzvn/decomplzvn /Users/Micky1979/Desktop/kernelcache /Users/Micky1979/Desktop/kernel_decomp
/Users/Micky1979/Desktop/kernelcache: Initial compressed size -> 1116599296, Reported uncompressed size -> 14711298
/Users/Micky1979/Desktop/kernel_decomp: Actual decompressed size -> 14711298
new-host-2:decomplzvn Micky1979$ 

 

 decomplzvn.zip

 decompkernelcache.zip

after compiling in Lion (segmentation fault 11 otherwise), it work in Lion Also (yes, I'm on 10.7.5)  :thumbsup_anim:

 

test result:

Last login: Tue Aug 19 12:19:14 on ttys000
new-host-2:~ Micky1979$ hexdump -s 0x3E8050 -C /Users/Micky1979/Desktop/kernel_decomp  | grep " [0-9][0-9]\.[0-9]\.[0-9]: " | awk -F "|" '{ print $2 }' | perl -pi -e 's/[a-z]*\ //' | awk -F : '{ print $1 }'
14.0.0
new-host-2:~ Micky1979$  

Yosemite kernel 14.0.0  :thumbsup_anim:  :thumbsup_anim:  :thumbsup_anim: 

 kernel_decomp.zip

 

Andy, thanks again

  • Like 1

To Andy Vandijck

 

Hello!.... :)

 

Possible to have a simple explanation of what you have made?

 

Sorry, i don't uderstand what is it and how is it used your files... I'm still inexperienced of hack.

 

Thank you sir!

  • Like 1

I'm currently doing an attempt to decompile the assembly file.

Keep you posted ;)

  • Like 2

What is the benefit of LZVN vs LZSS? Does it compress/decompress faster or something? Boot times seem to be the same for me in Yosemite vs. Mavericks.

 

Consider that for this reason the legacy bootloader they needed to have the kernel in the installer, downloaded here and there, to boot the installer, but no longer because with the tool, of AnV, you can remove it from the kernelcache!

 

PS : should be so, at least I think .... or not Andy?

  • Like 1

What is the benefit of LZVN vs LZSS? Does it compress/decompress faster or something? Boot times seem to be the same for me in Yosemite vs. Mavericks.

Frankly, we do not even know if in Yosemite GM Apple will remove the "preferred compression" entry in  /usr/standalone/bootcaches.plist.

Thinking about it does not make much sense (for Apple) to keep it.

Speed ​​of compression and decompression in memory maybe it was the goal using lzvn:

I think Apple is using lzvn to compress a lot of  its "Payload".....to save space, memory and then speed.

 

Micky

Speaking of the HFS driver, did anyone test if this grub HFS driver properly supports links (aka can boot media created by 'createinstallmedia')? I'm away from home for a while, so I can't really test things.

 

If it properly reads 'createinstallmedia' disk, I think it might be a good idea to switch the driver used in Clover to this one instead of VBoxHfs (if it is OK with Andy, of course).

  • Like 2

Speaking of the HFS driver, did anyone test if this grub HFS driver properly supports links (aka can boot media created by 'createinstallmedia')? I'm away from home for a while, so I can't really test things.

 

If it properly reads 'createinstallmedia' disk, I think it might be a good idea to switch the driver used in Clover to this one instead of VBoxHfs (if it is OK with Andy, of course).

Sure, no problem, I made these public for everyone.

Use it as you see fit ;)

  • Like 2

Hi Andy,

Thanks.

I tried to test this HfsPlus driver, under Qemu with OvmfClover firmware compiled with DEBUG mode ( ./ebuild.sh -D CSM_ENABLE -b DEBUG).
This allows me to see debugging information printed by edk2 code.

Edk2 Asserts when Grub HfsPlus loads with:

InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7F170A40
Loading driver at 0x0007EC17000 EntryPoint=0x0007EC172AF HFSPLUS.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7F174218
ASSERT /Users/pene/Desktop/CloverGrowerPro/edk2/MdeModulePkg/Core/Dxe/Mem/Pool.c(425): CR has Bad Signature

This happens both if I use the binary you uploaded, and also if I compile it myself.
Not sure what's wrong yet, but something is.
If I had tried without DEBUG, it may have passed this point (with RELEASE asserts are disabled), but this issue needs to be ironed out.

The assertion is at CoreFreePoolI (), so this is most probably a memory management issue.
I didn't really try to look into it deeply yet to figure out why, but if you have any ideas, they are welcome :)

  • Like 1
×
×
  • Create New...