Jump to content

Clover General discussion

Bootloader EFI Clover

  • Please log in to reply
15024 replies to this topic

#15021
ricoc90

ricoc90

    InsanelyMac Legend

  • Donators
  • 571 posts
  • Gender:Male
  • Location:The Netherlands

Edit

Since Sir Matgen84 receives "ApppleAPCICPU" on kextd  ... looks the kernel to have problems to me, just on the mach_header and cannot get the cpu_type_t. Please post it.

Nah, he gets the AppleAPCICPU kextd stall because FakeSMC isn't being injected (thinning failed)



#15022
vector sigma

vector sigma

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male

Nah, he gets the AppleAPCICPU kextd stall because FakeSMC isn't being injected (thinning failed)

Why thin a 64 bit executable like AppleALC.kext then? I mean, no need to do that, is ready to be loaded by the mach-o parser.

Anyway patch the kernel from byte 0 is bad. looking better to his lo, kexts aren't prelinked, so thinning is not working (file not found or bad parser). Just suppositions.


Edited by vector sigma, Today, 07:25 PM.


#15023
ricoc90

ricoc90

    InsanelyMac Legend

  • Donators
  • 571 posts
  • Gender:Male
  • Location:The Netherlands

Why thin a 64 bit executable then? I mean, no need to do that, is ready to be loaded by the mach-o parser. or I guess

 
I'm not a coder, but I'd say because archCpuType is empty, as seen in his preboot.log:
 

Preparing kexts injection for arch= from EFI\CLOVER\kexts\10.13

See: https://github.com/C...xt_inject.c#L24



#15024
vector sigma

vector sigma

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Gender:Male

I'm not a coder, but I'd say because archCpuType is empty, as seen in his preboot.log:
 

Preparing kexts injection for arch= from EFI\CLOVER\kexts\10.13
See: https://github.com/C...xt_inject.c#L24

 

But this can happen only if this does not work:

struct mach_header {
	uint32_t	magic;		/* mach magic number identifier */
	cpu_type_t	cputype;	/* cpu specifier */
	cpu_subtype_t	cpusubtype;	/* machine specifier */
	uint32_t	filetype;	/* type of file */
	uint32_t	ncmds;		/* number of load commands */
	uint32_t	sizeofcmds;	/* the size of all the load commands */
	uint32_t	flags;		/* flags */
};

 archCpuType is determined by cpu_type_t... and is bad (not a 32 bit cpu, nor a 64, nor both) somehow



#15025
syscl

syscl

    InsanelyMac Sage

  • Coders
  • 284 posts
  • Gender:Male

@Slice, from @cekepawon report, there's something funny, thinning fail occurs when the first time inject Shiki.kext in both my case and @Matgen84's case(still not sure). Another possible: memory free issues in GetOtherKextDir() or GetOSVersionKextDir()?

 

Will try once back to home.

 

syscl







Also tagged with one or more of these keywords: Bootloader, EFI, Clover

  Topic Stats Last Post Info

9 user(s) are reading this topic

4 members, 4 guests, 1 anonymous users


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