Jump to content
ianinsane

E6220 High Sierra Memory allocation error

Recommended Posts

I tried to install HS on my E6220 and after several days of unsuccessful attempts, I used Enoch and this guide, which brought me to a succesful installation.

 

However, during step 3) Post-installation fine-tuning, something must have gone wrong, since I've been receiving memory allocation errors on startup since.

 

One thing where I had to deviate from the guide:

When it said

Quote

copy all kexts from /Extra/Extensions to /Library/Extensions

the /Extra folder was empty aside from the two standard files, also there was no E/E folder. So I copied it from the USB Installer drive to this location and proceeded with the guide. So that happened after I installed Enoch on the new OS X HDD. Don't know if that might have been the problem?

 

I then proceeded to copy all the kexts like it said in the guide, repaired permissions and rebuilt the cache and generated my own CPU-specific SSDT.

 

But when I then tried to reboot I got this error: Right after the bootloader screen exits and OS X would start to load it crushes, without ever showing the Apple logo. The message reads like this:

 

Memory allocation error! Addr: 0x180ffff0, Size: 0x10, File: xml.c, Line: 1176

This is a non recoverable error! System HALTED!!!

 

Do you have any idea where I should start to troubleshoot? Either in the existing installation or - by avoiding the same mistake that led me here - by setting up anew?

 

I already tried all the hardware stuff, swapping the RAM modules, trying with either one of them, cleaning and reseating them...

Share this post


Link to post
Share on other sites

Try & boot without the cache through the following Enoch options & flags:

KernelBooter_kexts=Yes -f -v

 

Once at the High Sierra desktop, rebuild your cache:

sudo touch -f /L*/E*
sudo kextcache -Boot -U /

 

Then install the latest Enoch version r2921. It'll not remove anything from /Extra, merely update it if required. DSDT, SSDT & Enoch config files will remain the same.

https://www.insanelymac.com/forum/files/file/71-enoch/

 

Share this post


Link to post
Share on other sites

I don't know if that made any sense without installing a newer Enoch version, but I rebuilt the cache and after booting got the same Memory allocation error...

Share this post


Link to post
Share on other sites

I'm going to try to go back step by step und try to move the files one by one to the extensions folder, rebuilding the cache after each, then booting after each and see when the error starts to appear...

 

EDIT: Didn't work, same error. I'll reinstall the system from the USB installer and start again from there.

Share this post


Link to post
Share on other sites

Something seems not working with this Terminal command during post-installation:

 

Quote

cp -R /Extra /Volumes/<your fresly made 10.12 partition name>

in my case:

cp -R /Extra /Volumes/Macintosh SSD

 

I only get the "usage: cp" response...

 

EDIT: Proceeded anyway and yes, there was no Extra folder on Macintosh SSD. Copied it from the USB Installer first thing after completing the 1st boot installation finalisation, booted then again, still from USB installer since no Enoch installed yet.

 

EDIT: Chamelon Installer Log:

Spoiler

==============================================================================
SYSTEM INFO:
ProductName:    Mac OS X
ProductVersion:    10.12.6
BuildVersion:    16G29
==============================================================================
Pre-Install Script
------------------------------------------------------------------------------
Creating /Volumes/Macintosh SSD/EXTRAROOTDIR symlink targeting /Volumes/BOOTRAMDISK
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh SSD           249.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *15.7 GB    disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS OS X Base System 1      15.4 GB    disk1s2

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            BOOTRAMDISK            +209.7 MB   disk2

------------------------------------------------------------------------------
END - Pre-Install Script
==============================================================================
Main Standard Post-Install Script
Chameleon installer log - Sat Jan  5 14:09:36 CET 2019
Darwin/x86 boot v5.0.132 - Enoch r2921

==============================================================================
BACKUP CHAMELEON FILES:
No stage 2 (boot) was found, nothing to be saved.
Backing up //Extra folder to //Chameleon.Backups/2019-01-05-14h09/Extra
==============================================================================
EXTRA FOLDER:
Extra folder already exist on /, copying to the Ram Disk..
Delete: Entry, ":HDAEnabler", Does Not Exist
Delete: Entry, ":CSTUsingSystemIO", Does Not Exist
Delete: Entry, ":Wake", Does Not Exist
Delete: Entry, ":ForceWake", Does Not Exist
Delete: Entry, ":EnableC3State", Does Not Exist
Print: Entry, ":IntelBdwFB", Does Not Exist
Delete: Entry, ":NvidiaGeneric", Does Not Exist
Print: Entry, ":IntelAzulFB", Does Not Exist
Delete: Entry, ":XHCILegacyOff", Does Not Exist
Delete: Entry, ":EnableBacklight", Does Not Exist
Delete: Entry, ":GeneratePStates", Does Not Exist
Delete: Entry, ":Legacy Logo", Does Not Exist
Delete: Entry, ":DropDMAR", Does Not Exist
Delete: Entry, ":VBIOS", Does Not Exist
Delete: Entry, ":KernelBooter_kexts", Does Not Exist
Delete: Entry, ":EnableHDMIAudio", Does Not Exist
Delete: Entry, ":Boot Banner", Does Not Exist
Delete: Entry, ":EnableC7State", Does Not Exist
Delete: Entry, ":GenerateCStates", Does Not Exist
Delete: Entry, ":ForceHPET", Does Not Exist
Delete: Entry, ":UseNvidiaROM", Does Not Exist
Delete: Entry, ":SkipNvidiaGfx", Does Not Exist
Delete: Entry, ":BlackMode", Does Not Exist
Delete: Entry, ":EnableDualLink", Does Not Exist
Delete: Entry, ":UseMemDetect", Does Not Exist
Delete: Entry, ":DropASFT", Does Not Exist
Print: Entry, ":arch", Does Not Exist
Delete: Entry, ":OrangeIconFixSata", Does Not Exist
Delete: Entry, ":DropSBST", Does Not Exist
Delete: Entry, ":KernelHaswell", Does Not Exist
Delete: Entry, ":UHCIreset", Does Not Exist
Delete: Entry, ":DropECDT", Does Not Exist
Delete: Entry, ":ForceFullMemInfo", Does Not Exist
Delete: Entry, ":UseIntelHDMI", Does Not Exist
Delete: Entry, ":KernelPm", Does Not Exist
Delete: Entry, ":AppleRTCPatch", Does Not Exist
Delete: Entry, ":EnableC4State", Does Not Exist
Delete: Entry, ":UseAtiROM", Does Not Exist
Delete: Entry, ":EnableWifi", Does Not Exist
Delete: Entry, ":DropHPET", Does Not Exist
Delete: Entry, ":NvidiaNoEFI", Does Not Exist
Delete: Entry, ":KernelcpuFamily", Does Not Exist
Print: Entry, ":IntelSklFB", Does Not Exist
Print: Entry, ":HDEFLayoutID", Does Not Exist
Delete: Entry, ":Instant Menu", Does Not Exist
Delete: Entry, ":SkipIntelGfx", Does Not Exist
Delete: Entry, ":Wait", Does Not Exist
Delete: Entry, ":RebootOnPanic", Does Not Exist
Delete: Entry, ":SkipAtiGfx", Does Not Exist
Delete: Entry, ":NvidiaSingle", Does Not Exist
Delete: Entry, ":GUI", Does Not Exist
Delete: Entry, ":PrivateData", Does Not Exist
Delete: Entry, ":KernelLapicError", Does Not Exist
Delete: Entry, ":TrimEnablerSata", Does Not Exist
Delete: Entry, ":QuietBoot", Does Not Exist
Delete: Entry, ":RestartFix", Does Not Exist
Delete: Entry, ":EnableC2State", Does Not Exist
Print: Entry, ":HDAULayoutID", Does Not Exist
Delete: Entry, ":ShowInfo", Does Not Exist
Delete: Entry, ":EHCIacquire", Does Not Exist
Delete: Entry, ":AICPMPatch", Does Not Exist
Delete: Entry, ":KernelLapicVersion", Does Not Exist
Delete: Entry, ":KernelSSE3", Does Not Exist
Delete: Entry, ":EnableC6State", Does Not Exist
Print: Entry, ":IntelCapriFB", Does Not Exist
Delete: Entry, ":GraphicsEnabler", Does Not Exist
Print: Entry, ":IntelSklFB", Does Not Exist
Delete: Entry, ":ShowInfo", Does Not Exist
Delete: Entry, ":BlackMode", Does Not Exist
Delete: Entry, ":VBIOS", Does Not Exist
Delete: Entry, ":EnableC7State", Does Not Exist
Delete: Entry, ":Boot Banner", Does Not Exist
Delete: Entry, ":UseNvidiaROM", Does Not Exist
Delete: Entry, ":XHCILegacyOff", Does Not Exist
Delete: Entry, ":AICPMPatch", Does Not Exist
Delete: Entry, ":EHCIacquire", Does Not Exist
Delete: Entry, ":QuietBoot", Does Not Exist
Delete: Entry, ":PrivateData", Does Not Exist
Delete: Entry, ":EnableC3State", Does Not Exist
Print: Entry, ":HDEFLayoutID", Does Not Exist
Print: Entry, ":IntelAzulFB", Does Not Exist
Delete: Entry, ":NvidiaSingle", Does Not Exist
Delete: Entry, ":Instant Menu", Does Not Exist
Delete: Entry, ":KernelSSE3", Does Not Exist
Delete: Entry, ":DropECDT", Does Not Exist
Print: Entry, ":IntelBdwFB", Does Not Exist
Delete: Entry, ":UseMemDetect", Does Not Exist
Delete: Entry, ":KernelPm", Does Not Exist
Print: Entry, ":Graphics Mode", Does Not Exist
Delete: Entry, ":SkipAtiGfx", Does Not Exist
Delete: Entry, ":RestartFix", Does Not Exist
Print: Entry, ":arch", Does Not Exist
Delete: Entry, ":KernelLapicError", Does Not Exist
Delete: Entry, ":GeneratePStates", Does Not Exist
Delete: Entry, ":EnableC4State", Does Not Exist
Delete: Entry, ":EnableC2State", Does Not Exist
Delete: Entry, ":EnableHDMIAudio", Does Not Exist
Print: Entry, ":IntelCapriFB", Does Not Exist
Delete: Entry, ":UseIntelHDMI", Does Not Exist
Delete: Entry, ":KernelcpuFamily", Does Not Exist
Delete: Entry, ":OrangeIconFixSata", Does Not Exist
Delete: Entry, ":KernelLapicVersion", Does Not Exist
Delete: Entry, ":EnableWifi", Does Not Exist
Delete: Entry, ":EnableBacklight", Does Not Exist
Delete: Entry, ":DropHPET", Does Not Exist
Delete: Entry, ":ForceHPET", Does Not Exist
Delete: Entry, ":CSTUsingSystemIO", Does Not Exist
Delete: Entry, ":SkipIntelGfx", Does Not Exist
Delete: Entry, ":NvidiaNoEFI", Does Not Exist
Delete: Entry, ":ForceWake", Does Not Exist
Delete: Entry, ":DropSSDT", Does Not Exist
Print: Entry, ":Kernel Flags", Does Not Exist
Delete: Entry, ":SkipNvidiaGfx", Does Not Exist
Delete: Entry, ":EnableC6State", Does Not Exist
Delete: Entry, ":DropDMAR", Does Not Exist
Delete: Entry, ":Wake", Does Not Exist
Delete: Entry, ":AppleRTCPatch", Does Not Exist
Delete: Entry, ":DropASFT", Does Not Exist
Delete: Entry, ":NvidiaGeneric", Does Not Exist
Delete: Entry, ":TrimEnablerSata", Does Not Exist
Delete: Entry, ":UseAtiROM", Does Not Exist
Delete: Entry, ":EthernetBuiltIn", Does Not Exist
Print: Entry, ":KeyLayout", Does Not Exist
Delete: Entry, ":KernelHaswell", Does Not Exist
Delete: Entry, ":ForceFullMemInfo", Does Not Exist
Delete: Entry, ":UseKernelCache", Does Not Exist
Delete: Entry, ":RebootOnPanic", Does Not Exist
Delete: Entry, ":DropSBST", Does Not Exist
Delete: Entry, ":HDAEnabler", Does Not Exist
Print: Entry, ":HDAULayoutID", Does Not Exist
Delete: Entry, ":Legacy Logo", Does Not Exist
Delete: Entry, ":GUI", Does Not Exist
Delete: Entry, ":Wait", Does Not Exist
Delete: Entry, ":EnableDualLink", Does Not Exist
Delete: Entry, ":UHCIreset", Does Not Exist
Delete: Entry, ":GenerateCStates", Does Not Exist
==============================================================================
First Check Passed (not Fat16)!
Windows installation not found on /dev/disk0.
/dev/disk0s2 is HFS formatted
==============================================================================
WRITING STAGE 0:
boot0 written to /dev/disk0
==============================================================================
WRITING STAGE 1 hfs:
boot1h (hfs) written to /dev/rdisk0s2.
==============================================================================
WRITING STAGE 2:
Stage 2 (boot) written to /.
==============================================================================
SET PARTITION ACTIVE:
Setting / partition active.
Enter 'help' for information
fdisk: 1> Disk: /dev/rdisk0    geometry: 30401/255/63 [488397168 sectors]
Offset: 0    Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 -  488397167] <Unknown ID>
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
fdisk: 1> Partition 2 marked active.
fdisk:*1> Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] Writing MBR at offset 0.
fdisk: 1>
==============================================================================
==============================================================================
END - Standard Post-Install Script
==============================================================================
Writing boot option: EthernetBuiltIn=Yes
------------------------------------------------------------------------------
==============================================================================
Writing boot option: UseKernelCache=Yes
------------------------------------------------------------------------------
==============================================================================
Writing boot option: Kernel Flags=darkwake=0
------------------------------------------------------------------------------
==============================================================================
Writing boot option: DropSSDT=Yes
------------------------------------------------------------------------------
==============================================================================
Writing boot option: Graphics Mode=1366x768x32
------------------------------------------------------------------------------
==============================================================================
Writing boot option: GraphicsEnabler=Yes
------------------------------------------------------------------------------
==============================================================================
Writing kernel patcher option: KernelBooter_kexts=Yes
------------------------------------------------------------------------------
==============================================================================
Installing Keylayout.dylib
------------------------------------------------------------------------------
Keylayout installed to Ram disk
------------------------------------------------------------------------------
==============================================================================
Writing boot option: KeyLayout=pc-fr
------------------------------------------------------------------------------
==============================================================================
Running Post postinstall script
Target volume = /
------------------------------------------------------------------------------
Moving Extra folder to /
------------------------------------------------------------------------------
Post postinstall script complete
==============================================================================
NOTE: any Themes or modules you have must be there since this now
      is the boot partition. ACPI tables, SMBios.plist, kernel.plist, kexts.plist and the
      org.chameleon.Boot.plist (with custom settings for the target
      OSX must be in each partition that contain it.)
==============================================================================

 

Share this post


Link to post
Share on other sites

OK, what I tried now:

 

- Manually copied Extra to Root HDD ✅

- Installed Enoch r2921 ✅ (Installer Log see post above)

- Disabled Hibernation ✅

- Copied the Sierra patched AICPUPM kext to /System/Library/Extensions (I used 10.12.6 - hope that's right!) ✅

- Edited /Extra/kernel.plist and set KernelBooter_kexts parameter to No ✅

- repaired kexts permissions and rebuilt cache ❓ (did prompt some error messages...)

- did a test reboot ❌ --> Memory allocation error.

 

Do you have any idea where the problem is located?

 

Share this post


Link to post
Share on other sites

Yes, I'm just trying to find out at what step the problem is. When I installed the bootpack properly I had the same error, so I'm just trying it step by step, with my clumsy non-knowledge... 😆

Share this post


Link to post
Share on other sites

Having booted the USB Installer, at the main screen, open up Terminal and try:

cp -Rf /Extra /Volumes/SSD/

or

sudo cp -Rf /Extra /Volumes/SSD/

but I think sudo isn't supported from the installer.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×