Jump to content

Different solutions


Andy Vandijck
 Share

925 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
Link to comment
Share on other sites

I've decided to port the efifs drivers to EDK2 fully (instead of good old GNU EFI) because I wanted a lot more filesystems supported under UEFI.

I've now ported them all (all drivers from GRUB).

Great work Andy!
  • Like 1
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Same :( here ....looks Rocket science to me..... is it possible  ... De-compile .. your thoughts little bit  and make simple writing so we noob(me).. Can Understand  it  like wise :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

 Share

×
×
  • Create New...