Jump to content

config = <file>


deek5
 Share

20 posts in this topic

Recommended Posts

Why config option documented in the chameleon user manual does not work ?

"Additional Useful command-line options:
config = <file> Use an alternate Boot.plist ."

Link to comment
Share on other sites

this worked last time i tried - you must type in the filepath to the config.plist you're selecting

Sorry for not having seen your answer, that's why it's not working.

 

This documented option cannot work because it leads to nothing, that is what we find below (it is in i386\boot2\option.c towards lines 1260 or more or less,

 

 it  is included in the function int processBootOptions () ) :

 

if (!getValueForBootKey(cp, "config", &val, &cnt))

 

{

 

val = 0;

cnt = 0;

 

}

 

// Load com.apple.Boot.plist from the selected volume

 

// and use its contents to override default bootConfig.

 

loadSystemConfig(&bootInfo->bootConfig);

loadChameleonConfig(&bootInfo->chameleonConfig, NULL);

Link to comment
Share on other sites

That's how I just modified /i386/boot2/option.c
to use different configurations at boot.
  
(config = /Extra /lion.plist example). I use this mode to boot with DMG. Below change in /i386/boot2/option.c

in the function int processBootOptions () ) :

if (getValueForBootKey (PC, "config", & val, & cnt))

   
{
// Just to check the loading of boot.plist

        printf ("loading boot.plist chosen \ n");
        
printf (val);
        
printf ("\ n");
        
pause ();
        
       
loadConfigFile (val, & bootInfo-> chameleonConfig);
        

        
loadSystemConfig (& bootInfo-> bootConfig);
        
    
}
// Load com.apple.Boot.plist from the selected volume
// And use ict pleased to override default bootConfig.
    
   
else
             
{
loadSystemConfig (& bootInfo-> bootConfig);
loadChameleonConfig (& bootInfo-> chameleonConfig, NULL);
             
}

The original that may not allow the choice of configuration.

if (! getValueForBootKey (PC, "config", & val, & cnt)) {

val = 0;
cnt = 0;

}

// Load com.apple.Boot.plist from the selected volume

// And use ict pleased to override default bootConfig.

loadSystemConfig (& bootInfo-> bootConfig);
loadChameleonConfig (& bootInfo-> chameleonConfig, NULL);

  • Like 3
Link to comment
Share on other sites

That's how I just modified /i386/boot2/option.cto use different configurations at boot...

 

Hi I will take a look at this when I return from my holidays (first week of July)

Never noticed that this option wasn't work (I not write it) or probably was designed to work in other way?

 

Cordially

ErmaC

  • Like 2
Link to comment
Share on other sites

Hello dear Ermac, bravo for all your productions, with other coders of course, to have made accessible Mac Os X on PC.
For the option config = <File>, I modified it because it did not work as it was described in the manual . Maybe that there is as you write it " another way of using it "
 Thank you for everything.

Link to comment
Share on other sites

  • 2 weeks later...

Hello, thank you for having developed a boot for the option, but saddening it does not work. When I type in the  boot prompt  for example " config = / Extra / lion.plist " nothing takes place the starting up continues on the original plist ( org.chameleon.Boot.plist).

Link to comment
Share on other sites

" config=/Extra /lion.plist "

 written without space of course.

Pls attach here the option.c file you have edited...

Rename it as option.txt instead of option.c

 

Ermac

  • Like 1
Link to comment
Share on other sites

All right, it works as desired, then I'm the lion. started from Elcapitan with "config = / Extra / lion.plist" with its kernelcache and more mach_kernel a DMG on an HFS partition.
Thank you very much to run this command-line option.

"Additional Useful command-line options:
config = <file> Use an alternate Boot.plist. "

 

Thank you for your patience

  • Like 1
Link to comment
Share on other sites

All right, it works as desired, then I'm the lion. started from Elcapitan with "config = / Extra / lion.plist" with its kernelcache and more mach_kernel a DMG on an HFS partition.

Thank you very much to run this command-line option.

 

"Additional Useful command-line options:

config = Use an alternate Boot.plist. "

 

Thank you for your patience

Give it a try for a while...

 

Then I will merge into source code...

 

Cordially

 

ErmaC

  • Like 2
Link to comment
Share on other sites

I tried the 2 versions no problem; with lion, yosemite, mavericks, elcapitan.

With grub4dos and iso containing all caches and kernel, no problem.
thank you.

  • Like 1
Link to comment
Share on other sites

Hello, the cdboot achieve with your boot does not always work.
Boots and sometimes it restarts as soon.

With a vhd and grub4dos no problem, it boots up every time.

Link to comment
Share on other sites

Hello, I apologize for the creation of the cdboot with your boot (on 2731 V3) I had forgotten
" stat -f%z /Volumes/NONAME/usr/standalone/i386/boot | perl -ane "print pack('V',@F[0]);" | dd of=/chameleon/branches/ErmaC/Enoch/i386/cdboot/cdboot bs=1 count=4 seek=2044 conv=notrunc &> /dev/null
"
Now everything works.
thank you

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Does anyone know the proper format to add NVIDIAWebDrv=Yes to the kext.plist?

 

I tried:

<?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>AppleRTCPatch</key>
	<string>Yes</string>
</dict>
<dict>
	<key>NVIDIAWebDrv</key>
	<string>Yes</string>
</dict>
</plist>

That didn't work, anyone know?

Link to comment
Share on other sites

 Share

×
×
  • Create New...