Jump to content

chameleon 2.0 RC1 - can it auto select the boot drive if there is only one?


14 posts in this topic

Recommended Posts

Hi guys,

 

I've got a great vanilla install going with an Asus p5e-vm HDMI using advice all over these forums.

Used the Boot 132 method -> retail Leopard -> chameleon2.0 RC1

 

The whole thing works great, all hardware sorted, CI + QE all good to go.

 

My only gripe is when the machine boots it runs as expected to the Chameleon screen but as I only have a single boot partition, can I get Chameleon to automatically boot OSX so I don't have to click enter?

 

The reason I ask is I want to use my Apple bluetooth keyboard with the machine but it is not recognised until Leopard boots so I still have to plug in my wired keyboard just to hit enter. Then I can unplug the wired and move to the wireless.

Specify the default boot partition and add a timeout parameter as per the documentation.

 

The docs are included with the binary package download.

 

 

thanks

 

before I go edit the files, is the com.apple.Boot.plist mentioned inthe docs the one in your library folder? or is there a another

The one in the library folder should be left untouched.

 

Edit the one in /Extra

 

can I get to the /Extra folder from finder, in guessing you mean some section of the EFI that chameleon puts onto the drive?

This info is all available over the internets but I guess I'll repost it here. Next time, please use the search before asking.

 

This is how to access your EFI partition:

 

Run terminal

 

sudo -s

Type your password

 

diskutil list (confirm your EFI partition is at disk0s1, otherwise modify the mount and fsck commands below accordingly)

mkdir /Volumes/EFI (create a mount point)

mount_hfs /dev/disk0s1 /Volumes/EFI (mount the EFI partition)

killall Finder (the finder restarts and the EFI partition appears on the desktop - note, capital F)

 

Make modifications to files

 

umount /Volumes/EFI (unmount the EFI partition)

rm -rf /Volumes/EFI (delete the mountpoint)

 

If you get an error message when trying to mount or unmount the EFI partition, do

 

fsck_hfs /dev/disk0s1

 

Pay a visit to the Chameleon forums at voodooprojects for more information. And read the documentation.

This info is all available over the internets but I guess I'll repost it here. Next time, please use the search before asking.

 

This is how to access your EFI partition:

 

Run terminal

 

sudo -s

Type your password

 

diskutil list (confirm your EFI partition is at disk0s1, otherwise modify the mount and fsck commands below accordingly)

mkdir /Volumes/EFI (create a mount point)

mount_hfs /dev/disk0s1 /Volumes/EFI (mount the EFI partition)

killall Finder (the finder restarts and the EFI partition appears on the desktop - note, capital F)

 

Make modifications to files

 

umount /Volumes/EFI (unmount the EFI partition)

rm -rf /Volumes/EFI (delete the mountpoint)

 

If you get an error message when trying to mount or unmount the EFI partition, do

 

fsck_hfs /dev/disk0s1

 

Pay a visit to the Chameleon forums at voodooprojects for more information. And read the documentation.

 

This is the help doc I had

 

The boot: prompt waits for you to type advanced startup options.
If you don't type anything, the computer continues starting up normally. It
uses the kernel and configuration files on the startup device, which it also
uses as the root device. 

Advanced startup options use the following syntax:

[device]<kernel> [arguments]

Example arguments include

device: rd=<BSD device name>	   (e.g. rd=disk0s2)
	 rd=*<IODeviceTree path>	(e.g. rd=*/PCI0@0/CHN0@0/@0:1)

kernel: kernel name				(e.g. "mach_kernel" - must be in "/" )

flags: -v (verbose)	-s (single user mode), 
	-x (safe mode)  -F (ignore boot configuration file)

"Graphics Mode"="WIDTHxHEIGHTxDEPTH" (e.g. "1024x768x32")

kernel flags					   (e.g. debug=0x144)
io=0xffffffff					  (defined in IOKit/IOKitDebug.h)

Example: mach_kernel rd=disk0s1 -v "Graphics Mode"="1920x1200x32"

If the computer won't start up properly, you may be able to start it up using
safe mode.  Type -x to start up in safe mode, which ignores all cached
driver files.

Special booter hotkeys:
 F5			Rescans optical drive.
 F10		   Scans and displays all BIOS accessible drives.

Special booter commands:
 ?memory	   Displays information about the computer's memory.
 ?video		Displays VESA video modes supported by the computer's BIOS.
 ?norescan	 Leaves optical drive rescan mode.

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

Options useful in the com.apple.Boot.plist file:
 Wait=Yes|No			   Prompt for a key press before starting the kernel.
 "Quiet Boot"=Yes|No	   Use quiet boot mode (no messages or prompt).
 Timeout=8				 Number of seconds to pause at the boot: prompt.
 "Instant Menu"=Yes		Force displaying the partition selection menu. 

 "Default Partition"	   Sets the default boot partition,
=hd(x,y)				  where 'x' is the disk number, 'y' the partition number.

 GUI=No					Disable the GUI (enabled by default).
 "Boot Banner"=Yes|No	  Show boot banner in GUI mode (enabled by default).
 "Legacy Logo"=Yes|No	  Use the legacy grey apple logo (disabled by default).

 GraphicsEnabler=Yes|No	Automatic device-properties generation for graphics cards.
 EthernetBuiltIn=Yes|No	Automatic "built-in"=yes device-properties generation
						for ethernet interfaces.

 USBBusFix=Yes			 Enable the EHCI and UHCI fixes (disabled by default).
 EHCIacquire=Yes		   Enable the EHCI fix (disabled by default).
 UHCIreset=Yes			 Enable the UHCI fix (disabled by default).

 Wake=No				   Disable wake up after hibernation (enbaled by default).
 ForceWake=Yes			 Force using the sleepimage (disabled by default).
 WakeImage=<file>		  Use an alternate sleepimage file 
						  (default path is /private/var/vm/sleepimage).

 DropSSDT=Yes			  Skip the SSDT tables while relocating the ACPI tables.
 DSDT=<file>			   Use an alternate DSDT.aml file 
						  (default paths are /DSDT.aml or /Extra/DSDT.aml).

 SMBIOSdefaults=No		 Don't use the Default values for SMBIOS overriding
						  if /Extra/smbios.plist doesn't exist, factory
						  values are kept.

 "Scan Single Drive"	   Scan the drive only where the booter got loaded from.
=Yes|No				 Fix rescan issues when using a DVD reader in AHCI mode. 
 Rescan=Yes				Enable CD-ROM rescan mode.
 "Rescan Prompt"=Yes	   Prompts for enable CD-ROM rescan mode.

 

 

 

I always try to google a solution. This time had me stumped as the "help doc" doesn't tell you how to get to the file you need to edit. The docs that come with the Chameleon package are hardly the easiest to apply to my particular problem. They just offer some basic command alterations but unfortunately don't give any insight into customisation for the guys like me who have already installed. They seem to be for the guys who are about put the EFI on manually and build in their kexts. The voodooprojects forums don't seem to have any basic tutorials either. Thats how I ended up here.

 

I do appreciate your posts beerkex'd so thanks for the help

This time had me stumped as the "help doc" doesn't tell you how to get to the file you need to edit.

 

It does tell you how to set a timeout and the default boot partition, which was what you asked to begin with.

 

The information is right under "Options useful in the com.apple.Boot.plist file"

 

You're right, the docs were written for people who installed the bootloader themselves :)

Well,

 

tried all that kept getting invalid argument after I typed

 

mount_hfs /dev/disk0s1 /Volumes/EFI

 

I know my EFI partition is disk0s1 absolutely 100%

 

so tried typing

 

fsck_hfs /dev/disk0s1

 

then just got a response of

 

** /dev/rdisk0s1

 

typed

 

mount_hfs /dev/disk0s1 /Volumes/EFI

 

and its back to invalid argument

 

I've googled this and it seems a few people are having similar trouble. Any ideas?

Are you sure that Chameleon 2.0 is installed to your EFI partition? :thumbsup_anim: It sounds like there's nothing there.

 

Try booting from your install DVD and run the same commands in terminal there. While you're booted from the DVD, you could also run Disk Utility and do a disk and permissions repair.

 

I don't know what you can do if the EFI partition has become corrupt, other than run fsck on it. Maybe you can fix it with some disk salvage tool, I don't know any good ones for OS X though.

Are you sure that Chameleon 2.0 is installed to your EFI partition? ;) It sounds like there's nothing there.

 

Try booting from your install DVD and run the same commands in terminal there. While you're booted from the DVD, you could also run Disk Utility and do a disk and permissions repair.

 

I don't know what you can do if the EFI partition has become corrupt, other than run fsck on it. Maybe you can fix it with some disk salvage tool, I don't know any good ones for OS X though.

 

 

After some more scanning around I've figured out a few things that may be obvious to some but Im posting up here as they weren't obvious to me. Hope this will help somebody else if they are in the same boat.

 

If you install Chameleon manually, you should specify the EFI 200mb partition but when using the installer your only options appear to be any mounted hdds at the time, in my case my main drive.

 

After you click install I assumed it just sorted itself onto the EFI partition within that drive. My assumption was naive. I guess I was just excited to be getting so far with glitch free a hackintosh build that I didn't give it enough thought.

It installs to which ever drive you click on.... simple. So my Extras folder is on my main drive.

 

 

 

Thanks for your help BeerKex'd

Spent the morning running a Leo install on a spare laptop drive, specified an EFI partition in chameleon and all is behaving as expected ( as it should ) :)

 

Changed my com.apple.Boot.plist file in chameleon to time out and launch with a sensible res for my monitor.

Now Im set for doing a final install on a terabyte drive where PLEX will live.

 

Thanks for the pointers

×
×
  • Create New...