OnMac.net: Windows XP on Intel Macs

Go Back   OnMac.net Forums > Alternative OSes on Apple Hardware > XOM - The open source solution
Reply
 
  #1  
Old 5th April 2006, 08:42 PM
shteve shteve is offline
The Quiet Type
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 14
Default HOWTO: Update firmware *without* reformat/reinstall

As has already been posted, the bootcamp-related firmware update fails to work if the mac has been XOM'd with blanka's patch. This is because the MBR partition type is being used and the firmware update expects GPT.

To go back to using the GPT I did these three things:

1. Changed the MBR partition records to point to EFI's GPT.

Code:
$ sudo fdisk -e /dev/rdisk0
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> erase
fdisk:*1> edit 1
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) EE
Do you wish to edit in CHS mode? [n] 
Partition offset [0 - 117210240]: [63] 1
Partition size [1 - 117210239]: [117210239] (press Enter here)
fdisk:*1> p
Disk: /dev/rdisk0       geometry: 7296/255/63 [117210240 sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 - 1023 254  63 [         1 -  117210239] 
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q
$
2. Removed nvram settings for booting, so it doesn't point to the now-defunct MBR partitions.

Code:
$ sudo nvram -d efi-boot-device
$ sudo nvram -d efi-boot-device-data
$ sudo nvram -d efi-apple-payload0
$ sudo nvram -d efi-apple-payload0-data
3. Reblessed the boot.efi in /System/Library/CoreServices.

Code:
$ bless --folder /System/Library/CoreServices --file /System/Library/CoreServices/boot.efi --setBoot
After that it booted up into Mac OS X and I was able to run the firmware update successfully.
Reply With Quote
  #2  
Old 5th April 2006, 08:43 PM
shteve shteve is offline
The Quiet Type
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 14
Default

Forgot to mention, this is on a Mac Mini Solo. Don't know how well this would work on other intel macs ..

Also before you do this make a (paper) note of your existing MBR partition table! When I reblessed xom.efi after the firmware update it wouldn't add XP's NTFS partition to the MBR and I had to do it manually from OSX for it to work.

Last edited by shteve : 5th April 2006 at 08:51 PM.
Reply With Quote
  #3  
Old 5th April 2006, 08:53 PM
das das is offline
The Quiet Type
 
Join Date: Jan 2006
Posts: 10
Default

Ok, so this is how to update the firmware, but how can you use Boot Camp? It only works if there is only one HFS+ partition on the drive to begin with...
__________________
Dave Schroeder
University of Wisconsin
das@doit.wisc.edu
http://das.doit.wisc.edu
Reply With Quote
  #4  
Old 5th April 2006, 09:06 PM
Capt. Kyle Capt. Kyle is offline
The Quiet Type
 
Join Date: Apr 2006
Posts: 4
Default

I am confirming that this method DOES work on a 20" iMac(Intel).

Thanks!

Last edited by Capt. Kyle : 5th April 2006 at 09:09 PM.
Reply With Quote
  #5  
Old 5th April 2006, 09:25 PM
shteve shteve is offline
The Quiet Type
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 14
Default

Quote:
Originally Posted by das
Ok, so this is how to update the firmware, but how can you use Boot Camp? It only works if there is only one HFS+ partition on the drive to begin with...
When back in GPT mode with the new firmware and 10.4.6, it lets me burn the drivers CD successfully. I got it to boot the windows install CD too, but it showed the entire disk as being available for XP to install on and when I rebooted it showed "No bootable device -- insert boot disk and press any key" in textmode. I couldn't get that to go away until I cleared the efi-boot-device entries from the NVRAM (using the install disc), at which point it booted into OSX properly again.
Reply With Quote
  #6  
Old 5th April 2006, 11:49 PM
DonCalzone DonCalzone is offline
The Quiet Type
 
Join Date: Mar 2006
Posts: 3
Default

Worked on my MacBook Pro 2.0Ghz.

Not only that, but Bootcamp says my partitions are cool as well, and it sees windows is on the other partition

I can't boot up from it, and I will likely re-install Windows, but im glad i dont have to touch the OSX side.
Reply With Quote
  #7  
Old 5th April 2006, 11:59 PM
Alex Oughton Alex Oughton is offline
Super Moderator
 
Join Date: Mar 2006
Posts: 5
Default

Don't ask me why, but this resulted in the death of my partition.

Ah well, never mind. At least I have a backup!

Just a warning to anyone who doesn't...
Reply With Quote
  #8  
Old 6th April 2006, 12:16 AM
Birdy27 Birdy27 is offline
The Quiet Type
 
Join Date: Mar 2006
Posts: 7
Default

Thank you so much for posting your solution.

I'm really glad I didn't have to format anything.
Reply With Quote
  #9  
Old 6th April 2006, 12:18 AM
antizeit antizeit is offline
The Quiet Type
 
Join Date: Apr 2006
Location: Germany
Posts: 1
Default

Quote:
Originally Posted by shteve
Forgot to mention, this is on a Mac Mini Solo. Don't know how well this would work on other intel macs ..

Also before you do this make a (paper) note of your existing MBR partition table! When I reblessed xom.efi after the firmware update it wouldn't add XP's NTFS partition to the MBR and I had to do it manually from OSX for it to work.
Great Work!

Unfortunatly - i didn´t read your second post in time - now i´m stuck with osx and disk-utility seeing my (old onmac-solution) xp partition and even listing it as a boot volume while in osx - but bootcamp doesn´t see it. When i tried to reinstall from the windows cd, it only showed the osx partition.

I guess my MBR-Partition table is broken and i would like to fix it "manually from OSX" like you stated, but since my unix-knowledge is close to zero and i don´t have the note with my old MBR Partition Table, i´m pretty much lost - can someone give me a hint on how to fix this?

thanks in advance & cheers
antizeit
Reply With Quote
  #10  
Old 6th April 2006, 12:35 AM
shteve shteve is offline
The Quiet Type
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 14
Default

Quote:
Originally Posted by Alex Oughton
Don't ask me why, but this resulted in the death of my partition.

Ah well, never mind. At least I have a backup!

Just a warning to anyone who doesn't...
Sorry to hear that, I hope you get all your stuff back working fine!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT +1. The time now is 04:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.