Voodooprojects

Chameleon => General Discussion => Topic started by: nameless2k on August 28, 2009, 02:00:40 PM

Title: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on August 28, 2009, 02:00:40 PM
sorry removed for the moment due to issues. "I'll be back"
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: Stellarola on August 30, 2009, 08:09:38 AM
This is sweet, if it only worked. :P

DSDT doesn't work, theme doesn't load up. I think it'd be best to use PC EFI v10 sources and build a cdboot from that.
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on August 31, 2009, 04:46:19 PM
- Chameleon Theme comes up for me.
- DSDT seems not to be taken into account, right

cdboot seems to have issues. do you got a pc-efi based cdboot?

Thanks for your feedback!!
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: Stellarola on September 02, 2009, 06:05:40 AM
- Chameleon Theme comes up for me.
- DSDT seems not to be taken into account, right

cdboot seems to have issues. do you got a pc-efi based cdboot?

Thanks for your feedback!!

Right, the Chameleon theme comes up fine because it's built into the boot file. When you try to use other themes it just doesn't work. I don't have pc-efi based cdboot. Sorry :P

-Stell
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on September 02, 2009, 12:05:29 PM
shamelessly stolen from the insanelymac forums
(Source: http://www.ins****ymac.com/forum/index.php?showtopic=183398)

I did not test this as of yet, I just found it a minute ago and added it here for the matter of collecting everything that might be helpful  ;D

Quote from: home000000
hi

I think that this is the first boot-efi for DVD for SNOW with DSDT.aml overwrite file inside ram drive ...
to work there is a small change in boot-efi-10.1 to allow reading DSDT.aml from ram disk... since you have to swap disks ...

for now I tested it only until the SNOW OS Install is loaded ... the boot-132 if only for GIGABYTE EP45-UD3/R

Thanks


----- the boot-132 install is not yet working well -- need to find the right kexts --- the boot part is OK ...

----- the change in code ----

sprintf(dirspec,"bt(0,0)/Extra/%s",dsdt_filename);
fd=open (dirspec,0);
if (fd<0)
{
sprintf(dirspec,"rd(0,0)/Extra/%s",dsdt_filename);
fd=open (dirspec,0);
if (fd<0)
{
verbose ("No DSDT replacement found. Leaving ACPI data as is\n");
return setupAcpiNoMod();
}
}
}
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: zef on September 02, 2009, 12:36:30 PM
Guys, how about to use the DSDT option in Preboot.dmg's Extra/com.apple.Boot.plist and add the key which points to "rd(0,0)/Extra/DSDT.aml" for example?

... you don't even need to change a single line of code :)
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on September 02, 2009, 10:30:27 PM
lol, it seems there a still quite a bunch of issues with my uberscript.

Thanks for your feedback, though  ;D

"I'll be back"
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: Stellarola on September 03, 2009, 01:56:09 AM
lol, it seems there a still quite a bunch of issues with my uberscript.

Thanks for your feedback, though  ;D

"I'll be back"

Please do, I'm quite curious to how this turns out. :)
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on September 03, 2009, 04:46:38 PM
status:
- custom theme gets loaded (with crazy errors in advance)
- retail disk gets booted and kp's cause no dsdt.aml
- dsdt.aml still ignored, no matter if put it to
-- /Extra/
-- /Extra/Preboot.dmg/Extra/
 
Tips that would save me a systematic trial and error procedure are highly appreciated  ::)
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: zef on September 03, 2009, 09:28:09 PM
status:
- custom theme gets loaded (with crazy errors in advance)
- retail disk gets booted and kp's cause no dsdt.aml
- dsdt.aml still ignored, no matter if put it to
-- /Extra/
-- /Extra/Preboot.dmg/Extra/
 
Tips that would save me a systematic trial and error procedure are highly appreciated  ::)


You may try this what i suggested 234 posts above:
Quote
Guys, how about to use the DSDT option in Preboot.dmg's Extra/com.apple.Boot.plist and add the key which points to "rd(0,0)/Extra/DSDT.aml" for example?

Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on September 04, 2009, 12:12:06 AM
Quote from: Zef
Guys, how about to use the DSDT option in Preboot.dmg's Extra/com.apple.Boot.plist and add the key which points to "rd(0,0)/Extra/DSDT.aml" for example?
oh sorry didn't answer directly: does not work either.

To be honest: I checked many combinations of this game called what-goes-where. And I feel your suggestion to put a modified com.apple.Boot.plist into the Preboot's dmg does not make a difference, since the Preboot's Extra/plist seems not to be taken into account at all while initialization.


The magic question is: what goes where? Is this structure correct? According to Sonotone's posting here (http://www.insanelymac.com/forum/index.php?showtopic=160234): the CD structure should be correct like below. According to your posting above: the Preboot.dmg structure should be corret like below. So what is it what I am not seeing here?

CD
/cdboot
/Extra/com.apple.Boot.plist  <- *1
/Extra/Themes
/Extra/Preboot.dmg

Preboot.dmg
/Extra/DSDT.aml
/Extra/com.apple.Boot.plist <- *2
/Extra/Extensions.mkext
 

*1: does the first com.apple.Boot.plist contain those values like:
-- <key>Kernel</key>
-- <key>Rescan Prompt</key>

*2: what is the difference between the second com.apple.Boot.plist (in the ramdisk) to the first?

Notes:
- if I don't supply the first com.apple.Boot.plist: disk will not boot at all
- if I supply both com.apple.Boot.plist : I receive ebios read error: error 0x01 and parse error, but system uses themes and does boot, but it does not use dsdt.aml (and I feel it does not use Preboot's Extensions.mkext either, since KP appleintelcpupowermanagement occurs which should not because of nullcpupowermanagement.kext)

Thanks and kudos, gotta go to bed...
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: zef on September 04, 2009, 01:51:39 AM
Quote from: nameless2k

To be honest: I checked many combinations of this game called what-goes-where. And I feel your suggestion to put a modified com.apple.Boot.plist into the Preboot's dmg does not make a difference, since the Preboot's Extra/plist seems not to be taken into account at all while initialization.


Since RC2, we can override the default boot.plist config using another possible boot.plist in the following search order:

Code: [Select]
"rd(0,0)/Extra/com.apple.Boot.plist",
"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist",
"/com.apple.boot.P/Library/Preferences/SystemConfiguration/com.apple.Boot.plist",
"/com.apple.boot.R/Library/Preferences/SystemConfiguration/com.apple.Boot.plist",
"/com.apple.boot.S/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"

All starting "/" means here is the selected partition.

The override will takes place after the booter started and after pressed enter to start the boot process.

So the purpose of this all is to able to put your bootloader and os related defaults to CD/Extra/com.apple.Boot.plist and put all your custom DSDT.aml, custom kernels, kexts to your Preboot.dmg.

Sure, you need to reference these ramdisk related custom files via Preboot.dmg/Extra/com.apple.Boot.plist with their corressponding keys like "DSDT" "Kernel". You can override any default values in this place, just give a try by using a different "Graphics Mode" setting in the Preboot.dmg's boot.plist.

Regarding the parse errors, you can get it with broken xml plist files.
Title: Re: EPIC - Easy Preboot 132 ISO-Creator for Chameleon
Post by: nameless2k on September 05, 2009, 01:36:03 AM
Thanks for your replies. There are still issues that I feel, you might be the only one to explain. I am now using cdboot from RC2.

What I've done:
1. put this com.apple.Boot.plist to /Extra/com.apple.Boot.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Kernel</key>
   <string>mach_kernel</string>
   <key>Kernel Flags</key>
   <string>-v</string>
   <key>Timeout</key>
   <string>600</string>   
   <key>Rescan Prompt</key>
   <string>yes</string>
</dict>
</plist>

2. put this com.apple.Boot.plist to /Extra folder in the mounted Preboot.dmg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>DSDT</key>
   <string>rd(0,0)/Extra/DSDT.aml</string>
</dict>
</plist>

3. what happens
- burn disk and start composter with it
- 4 x ebios errors occur
- EBIOS read error: Error 0x01 
- Block 13040 Sectors 64
- I suspect this error coming from the /Extra/com.apple.Boot.plist because they appear BEFORE the Rescan Prompt is displayed
- and: even when I make the com.apple.Boot.plist XML1 conform by: plutil -convert xml1 com.apple.Boot.plist the errors still occur.
- "no ramdisk config" is displayed - what's that supposed to mean?
- after errors I can hit enter to get into Chameleon's GUI
- in GUI: I hit F8
- then change disks to Snow Leo Retail
- wait a couple of secs for the drive to stop spinning
- and hit ESC
- the disk is still epic_preboot and not Mac OS X Install
- and if I hit ENTER "Can't find mach_kernel" and get thrown back to GUI

hints?

Kudos, and ggtb...