Jump to content
bcobco

GRUB2 -> Chameleon

6 posts in this topic

Recommended Posts

situation: disk containing osx86 and linux. boot loader was Chameleon, replaced by GRUB2.

 

boot linux and extract Chameleon's i386.zip into /boot/chameleon

then edit file /etc/grub.d/40_custom in order to add this lines:

menuentry "OSX86 Chameleon Boot Loader" {
chainloader /boot/chameleon/i386/boot0
}

after save, run update-grub2

done!

 

EDIT: simplification... chainloader pointing to chameleon's boot0 do the trick

________

useful chameleon recovery commands

(cd /boot/chameleon/i386)

dd   if=boot0   of=/dev/disk/by-id/TheDiskThatYouAreUsing   bs=440   count=1

dd   if=boot1h   of=/dev/disk/by-id/ThePartitionWithOsx86OfTheDiscThatYouAreUsing   bs=512   count=1

cp   boot   /the/root/of/your/osx86/mount/point/

 

dont copy-paste, just take as reference!

please use dd (destroyer of disks) with precaution, you can kill a little cat if used wrong!

________

http://en.wikipedia.org/wiki/Dd_%28Unix%29

Edited by bcobco

Share this post


Link to post
Share on other sites
Advertisement

i think it can be useful information for those who has a linux as backup system installed on their hard drive.

GRUB2 will be the main boot loader. it will chain load into Chameleon!

by default, GRUB2 does not detects propertly OSX86. this is a little fix for grub2.

Share this post


Link to post
Share on other sites
the right way.. is chameleon call grub2 in the linux partition
in GUID

this solution is for when chameleon cannot detect grub2

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

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By datta0
      Hi, I have a small problem with my Open core Hackintosh build.
      I actually got EFI from someone on the internet and tweaked it a bit so I could get up and running.
      Here is my EFI.
      My laptop boots fine but while booting, it shows the apple logo for the first 5 seconds, then goes blank for 2-3minutes and then I see apple login screen.
      This happens every time. I tried a few config edits but didn't work.
      Can someone look into my EFI and suggest any necessary changes that can improve boot times?

      Thanks in advance 
    • By ajpadovani
      I am really at my wits end here. I am hoping someone on here with more experience with UEFI and boot loaders might be able to provide insight into an otherwise inexplicable problem I am having with a brand-new system built around the ASUS TUF Gaming X570-PLUS. My gut tells me the problem is somehow related to UEFI settings, Secure boot, or some combination, but I really have no idea if that is the case.
       
      The problem is two-fold. First, my system will only boot to a device (e.g., USB stick) under two conditions: 1) no SATA drive is plugged in or 2) when a specific SSD is plugged in (I'll refer to this as SSD1). I have three other hard drives that otherwise work (I have tested them in another system). None of them have Windows installed, though some do have existing data partitions. One of the three is a brand-new, never-been-used 1TB SSD. If I plug in any of these three other hard drives, the system will reboot immediately after POST. However, if SSD1 is plugged in it will boot to a USB stick - UEFI or Legacy, doesn't matter.
       
      Secondly, if I attempt to create a partition, run a surface test, or install an OS to SSD1, the system immediately reboots. I can format SSD1, change volume sizes, run a surface scan, but only in a live linux environment - if I plug SSD1 into another machine as a secondary data drive (i.e., I boot to my primary boot volume), the other machine will blue screen when loading into Windows. If it is attached to this new machine, it will boot to a USB stick just fine.
       
      I have also enabled Hot Plug, which allows me to access SATA drives that I plug in after boot. If I hot plug the brand-new 1TB SSD during a live linux distro, the drive shows up and I can see its properties. However, if I try to do something like create a partition or run a surface test, the machine will also immediately reboot.
       
      Does anyone have any idea as to what might cause this? The only thing that I can think of that explains both problems is some kind of secure boot-like security feature, but I haven't been able to figure out how to confirm whether that is the case. In 20 years of building computers I have never even heard of anything like this. I am new to EFI systems, however, so I'm quite out of my element - this is the first EFI-based system I've set up.
    • By PropoFlexWX4
      After hearing that OpenCore is so much better than Clover, and that it will probably be able to boot Big Sur before Clover does, I decided to take the jump.
       
      Running Catalina 10.15.5 18F101 with OC 0.5.9.
       
      So far I like the result. The OS feels faster, boots faster.
      And absolutely everything works (sleep, network, etc...)
       
      So, that's it? Is there anything else I have to do?
    • By ashcliffe
      I converted boot from Clover to OC 0.5.8. Everything is fine. I even solved few sleep/wake problems I have.
       
      I use Catalina disk as a primary boot. OC kicks in regardless whether I use windows or OSX. Every time boot occurs I get this file in the EFI partition. It is supposed to show boot errors, missing drivers, etc.
      In my case I cannot figure out why it shows every time. 
       
      Please, take a look. maybe you can at least decipher it and send me in the right direction. Oh, yeah: SIP is at 0x67
      Thanks in advance
      opencore-2020-05-17-230104.txt
    • By Andy Vandijck
      I updated the sources of the decompkernelcache tool.
      Now it can do the following things with the prelinked kernel and its data:
      - Uncompress prelinked kernel (package with drivers inside)
      - Extract kernel (repackage possible with kextcache, kernel only)
      - Extract kexts (including original folder source directory)
      - List kexts
      - Extract combined Info.plist resource
       
      It can do this with prelinked kernel caches compressed with LZSS and LZVN.
      It can also extract already decompressed prelinked kernel cache binaries.
      It is also possible to specify an architecture to extract (in case of a multi architecture prelinked kernel cache).
       
      It works with any version of the OS X kernel cache (It works for 32 and 64 bit, extracting all).
       
      I tested it on a prelinked kernel of iOS also, it was able to do this to an iPhone 4S prelinked kernel too. (32-bit ARM)
      It works on Mac OS X prelinked kernel data with any version or architecture (32/64-bit works, can extract Big Endian data so if you manage to have a PowerPC prelinked kernel it can handle them too).
      It should be able to handle any architecture and any Darwin deployment target.
      So if you have a decrypted prelinked kernel of iOS, Mac OS X, Apple TV (both Intel and ARM), Watch OS and any other like the HomePod OS you can use this tool on them too.
       
      Update (V2.1):
      Added WIN32 and WIN64 version (compiled with MingW-w64 for i386 and x86_64).
      I used Apple's WebKitSupport library (for the CoreFoundation library) and a win32 port of libdispatch.
      The binaries for CoreFoundation support came from iTunes's Apple Application Support installer (both 32 bit and 64 bit).
      They are included.
      It's adapted to work with Visual Studio too but needs a VC project edit as I only have a MacBook Air (without Windows on it).
      I tested it on someone's computer and it works fine.
       
      Update (V2.2):
      Minor bug fixes.
      Will do WIN32 and WIN64 version a bit later.
       
      Update (V2.2 Windows):
      Added WIN32 and WIN64 version.
       
      Update (V2.2 Linux):
      Added Linux version (post below, x86_64 and i386).
      Other architectures are also supported and require libraries and bison below:
      To build it you need a recent ICU4C (http://site.icu-project.org/download).
      My own build of lib dispatch (https://github.com/vampirecat35/libdispatch).
      My own corrected build of CoreFoundation lite for Linux (https://github.com/vampirecat35/CoreFoundation-Lite-Linux).
      bison-2.4.1 which is specific because of IOCFUnserialize.yacc (https://ftp.gnu.org/gnu/bison/bison-2.4.1.tar.bz2).
       
      Update (V2.2 iOS/WatchOS/AppleTVOS):
      Added 32-bit and 64-bit versions for iOS, WatchOS and AppleTVOS (post below).
       
      Update (V2.2 Android):
      Added ARMV7 Android version (post below).
      Added AARCH64 (ARM64) Android version (post below).
      Added I686 Android version (post below).
      Added X86_64 Android version (post below).
       
      Update (V2.2 Visual Studio 2019):
      Added X86 VS2019 Windows version (post below).
      Added X64 VS2019 Windows version (post below).
      I also optimised the code a little (No more warnings, not even for 32-bit builds).
       
      Enjoy  
       
      Added GitHub repo on my secondary account:
      https://github.com/vampirecat35/decompkernelcache
       
      decompkernelcache.zip
×