Jump to content

Booting installation DVD using PC EFI


  • Please log in to reply
70 replies to this topic

#21
munky

munky

    Agent of Evolution

  • Retired
  • 2,900 posts
  • Location:The Land of Hairy-Arsed Highlanders
satan_himself:

a few of us over on netkas' forum are disucssing the possibility of a legal darwin-based ISO which could prepare a PC for Leopard installation (by setting the disk as GPT, creating the correct partitions, installing PC-EFI etc) which would then ask for the Leopard GM media and perform full installation.

the beauty of this is that if we can build the disc using all open-source and freely-distributable software, then it is legal to distribute. it would allow joe public to buy retail Leopard and 'just install it' on his PC.

i'd be very interested to hear your thoughts on this approach.

#22
flibblesan

flibblesan

    Lenovo hackbook guru

  • Members
  • PipPipPipPipPipPip
  • 469 posts
  • Gender:Male
  • Location:Nottingham, UK

satan_himself:

a few of us over on netkas' forum are disucssing the possibility of a legal darwin-based ISO which could prepare a PC for Leopard installation (by setting the disk as GPT, creating the correct partitions, installing PC-EFI etc) which would then ask for the Leopard GM media and perform full installation.

the beauty of this is that if we can build the disc using all open-source and freely-distributable software, then it is legal to distribute. it would allow joe public to buy retail Leopard and 'just install it' on his PC.

i'd be very interested to hear your thoughts on this approach.


That is an awesome idea!

#23
choser

choser

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
that would be great, it would really solve 90% of all problems concerning installing leopard.


[edit]

i think you can better open a new topic, to get more feedback.

#24
satan_himself

satan_himself

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
Darwin wouldn't be able to run the Mac OS X Installer directly.

It should be possible to create a CD wich would allow to to boot the OS X DVD, and offer an option to perform some pre and post-installation steps. I'll have to take a look how the Darwin boot loader works.

If not, it would definitely be possible to make a CD wich would copy the OS X DVD to a spare partition, perform the needed fixup and reboot the system off that partition.

#25
munky

munky

    Agent of Evolution

  • Retired
  • 2,900 posts
  • Location:The Land of Hairy-Arsed Highlanders
yeah, the temp partition thing would be an option. especially since, with GPT, you could have this kind of disk layout:

[=EFI=|===Target Partition=====|Install Partition]

where Install Partition is the partition we use as a temp space for installation.

post-install you could then delete the install partition and non-destructively grow the target partition into the free space :D

#26
kamikaze

kamikaze

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 218 posts
  • Gender:Male
  • Location:Paris, FR

I can confirm that the combination of "satan_himself" script and "mWMA" suggestion builds a bootable EFI patched Leopard DVD !!! :-)
All you need is an original Leopard iso, which is easily found via BT

Edit: no sata support ;-(



what do you mean no SATA support ?! what hardware do you have ? IDE or AHCI ?

#27
alessandro_D

alessandro_D

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
Ok satan_himself, in italian forum i've posted the script patch created from your to make original dvd bootable and installable.
The script is in italian but it simple to understand.

Three script are to resize if you want, make bootable the vanilla kernel with EFI,and add some files to DVD. These are resize-patch.sh, boot-patch.sh and files-patch.sh .

When you have burned the osx86final.sparseimage file (a DubleLayer DVD as Original) the installation start with boot the vanilla kernel and after 6-8 minutes from boot the original installer start........

Select DiskUtility and partition your drive in any part but the scheme of partition must be GPT not MBR.
When done close DiskUtility and go to terminal and type cd /usr/./startefi.sh . when the script is finished your drive will be bootable, close the terminal and start the normal installation; don't warry if when you go to select the drive prepared before have a wrong icons. After 15-20 minutes when the installer stay to finish,it will give an error: it's not able to make the disk of installation bootable and ask you to use Startup Disk to make it, DON'T USE but open terminal and type cd /usr/kext-patch.sh .
When this step is finish restart and enjoy with Leopard !!
The result is a DVD as Original but load and Install as a MAC................

In my DVD i've add dsmos.kext,NVinject.kext, replace AppleSMBIOS.kext and remove AppleEFIRuntime.kext + AppleIntelCPUPowerManagment.kext. With few modify i've near perfect original system compible with my hardware in signature.

Thank's to you,Netkas(the genius),BJMoose,Brazil-Mac and all developer and user !!!!!!!!!

#28
Vanilla

Vanilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 98 posts
okay, I placed my Leo disc in the drive, unzipped the mkboot folder to the desktop, placed the pc_efi folder on the desktop too.

I opened the mkboot.sh and edited it as follows:
[codebox]installer="/Volumes/Mac OS X Install DVD" # either /dev/diskXsY or /Volumes/SomeName
size=7680 # resulting image size in megabytes
volname="osx86dvd" # volume name
imgname="$volname" # output image file name
loader="Users/bjeecw/Desktop/pc_efi_v80/boot_v8" # path to PC EFI boot_vXx file

[/codebox]

But it does not work. I executed the script in Terminal. But then it dies. I want the full size disc, so I changed it to 7680. The volume name for the installer was correct so I left it alone. I gave the full path to the boot_v8.

What am I doing wrong? Thanks, Brian

#29
alessandro_D

alessandro_D

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
Ok Brian, first create a classic DMG image of your dvd a place it on desktop.
See my post in italian forum, there is attach a zip files with all that you need, only extract ad place on desktop all files.
Thank's............

P.S: I'll traslate in english the scripts.......... and excuse me for my english !!!

#30
ipguy

ipguy

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 291 posts
  • Gender:Male

what do you mean no SATA support ?! what hardware do you have ? IDE or AHCI ?

if i try the dvd in my other system, all sata.... sata hdd and sata dvd, the installer hangs on "waiting for root device"

#31
satan_himself

satan_himself

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
Well, the boot loader does all the kext loading, so it is possible to load some extensions (dsmos.kext) from a source other than the OS X Install DVD, or to prevent loading of certain extensions, or even load an alternative kernel image.

You may or may not be aware that the pc_efi boot_vX file IS the Darwin boot loader. AFAIK, netkas didn't release the source code for his boot loader modifications, although he should (according to Apple's license terms anyway). He could implement this feature himself without sharing the source, however that still wouldn't be legal to distribute.

© If You Externally Deploy Your Modifications, You must make
Source Code of all Your Externally Deployed Modifications either
available to those to whom You have Externally Deployed Your
Modifications, or publicly available. Source Code of Your Externally
Deployed Modifications must be released under the terms set forth in
this License, including the license grants set forth in Section 3
below, for as long as you Externally Deploy the Covered Code or twelve
(12) months from the date of initial External Deployment, whichever is
longer. You should preferably distribute the Source Code of Your
Externally Deployed Modifications electronically (e.g. download from a
web site).


Anyway, some other guy made public his attempt at providing EFI emulation in the Darwin boot loader, so we could also use his work as a starting point: http://www.tgwbd.org/darwin/

However, I'd be even more interested in trying to support EFI on non-EFI systems using the code from www.tianocore.org, although that may prove to be harder. I have some ideas, but haven't yet started anything.

#32
MetalFishX

MetalFishX

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
  • Gender:Male
  • Location:Florida, Uruguay
People, just an advice, to prevent you bad surprices... Dont talk abut LEGAL because it wont be legal anyway.. Read Leopard licence here: http://www.apple.com/legal/sla/

A. Single Use. This License allows you to install, use and run one (1) copy of the Apple Software on a single Apple-labeled computer at a time. You agree not to install, use
or run the Apple Software on any non-Apple-labeled computer, or to enable others to do so.
This License does not allow the Apple Software to exist on more than one
computer at a time, and you may not make the Apple Software available over a network where it could be used by multiple computers at the same time
.

Apple specified that you can't install Leopard on a non Apple machine; so no mather how you install Leopard on pc, it wont be legal anyway :D

#33
H4l0H4ck3r

H4l0H4ck3r

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts

Ok Brian, first create a classic DMG image of your dvd a place it on desktop.
See my post in italian forum, there is attach a zip files with all that you need, only extract ad place on desktop all files.
Thank's............

P.S: I'll traslate in english the scripts.......... and excuse me for my english !!!


Which post is that allesandro cant seem to find the one with the zip file.

#34
Tek

Tek

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts
The thread is here:

http://forum.insanel...showtopic=75088

alessandro, although I am Italian too, I am 2nd generation. :thumbsup_anim: I would like to see the English translation too since I am a little rusty with my Italian. Thanks for your work!

#35
Hagar

Hagar

    Project Dogsbody

  • Administrators
  • 2,352 posts
  • Location:Over the hills & far away
:(

Just to point out that you are quite correct as to the content of that document. The debate is over the validity of the EULA/licences in different countries, and in certain jurisdictions legally installing os x on a non-apple machine may be possible..

People, just an advice, to prevent you bad surprices... Dont talk abut LEGAL because it wont be legal anyway.. Read Leopard licence here: http://www.apple.com/legal/sla/

A. Single Use. This License allows you to install, use and run one (1) copy of the Apple Software on a single Apple-labeled computer at a time. You agree not to install, use
or run the Apple Software on any non-Apple-labeled computer, or to enable others to do so.
This License does not allow the Apple Software to exist on more than one
computer at a time, and you may not make the Apple Software available over a network where it could be used by multiple computers at the same time
.

Apple specified that you can't install Leopard on a non Apple machine; so no mather how you install Leopard on pc, it wont be legal anyway ;)



#36
kamikaze

kamikaze

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 218 posts
  • Gender:Male
  • Location:Paris, FR

if i try the dvd in my other system, all sata.... sata hdd and sata dvd, the installer hangs on "waiting for root device"


That's probably because you didn't patch the ATA kext. PCEFI can help, but most of the time you will still need patched kext

#37
bthomp

bthomp

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
Ok, I ran into an interesting little problem that caused me a TON of headache. If you mount the image as read/write and copy in kernel extensions... you need to make sure that the partition is not set to ignore permissions. (Get Info on the mounted drive and make sure that ignore permissions is unchecked)

What happened to me was that I copied in the kernel extensions, set their owner, and set the permissions. However, because the drive was defaulting to ignore permissions, chown had no affect on the files and essentially failed silently. After toasting 3 double-layered DVDs trying to get the DVD to boot completely into the installer, I finally did all the work on a USB drive and ultimately ran into the same problem, but eventually I managed to get the USB drive booted into single-user mode and that was when I finally noticed that the owner/group numbers for all of the kernel extensions I had copied in were completely hosed.

Anyways, if you get a spinning beach ball indefinitely when you should be getting an installer application... check to make sure that the permissions for your kernel extensions were actually set as you expect them to be.

#38
H4l0H4ck3r

H4l0H4ck3r

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
How is the translation coming along on those scripts alessandro_D ?

#39
alessandro_D

alessandro_D

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
The translation will come in a few days and i modify the patch for automatic update the kextcache of dvd for speed of boot process ( now all kext in extensions is reload at startup ).......

Thank's.

#40
H4l0H4ck3r

H4l0H4ck3r

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
Alright thanks allesandro :(





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy