Author Topic: Bricked iMac With Open Firmware Commands (and how I fixed it)  (Read 9445 times)

Offline iMic

  • Enthusiast Member
  • ***
  • Posts: 29
  • new to the forums
Bricked iMac With Open Firmware Commands (and how I fixed it)
« on: December 17, 2014, 04:30:52 AM »
I have to share this one with you all. Perhaps someone can shed some light on what stroke of fortune happened here, because I don't fully understand it myself.


Original Post: https://www.thinkclassic.org/viewtopic.php?pid=3868


Quote from: iMic
I have an iMac G4 (17-inch Flat Panel, 1GHz) that serves as my home entertainment system. Occasionally though I use it to test new software that I have in the works. Some of the software I test is rather dangerous. It writes commands into the NVRAM, it changes low level system settings... and occasionally it goes bad.

Picture the scenario. The computer reboots, it chimes, but the video never kicks in. You attempt to hold down the PRAM reset keys, but the keyboard is completely unresponsive. There's no network activity on the Ethernet port. You listen closely, and there's no hard drive activity. For all intents and purposes, the machine is in an electronic coma - powered up and running, but unable to activate any of its vital I/O subsystems. (Think a MITS Altair, but without the lights and switches.)

It stems from writing a command into the NVRAMRC (and setting "use-nvramrc? true") that the computer is seemingly unable to handle on startup. It halts the system even before the I/O devices can be activated.

I've managed to brick a Power Mac G4 this way several years ago during testing of the then current LeopardAssist 1.2. I was never able to resolve that issue, and I had to replace the Logic Board. The exact same thing happened this evening to the iMac G4.



This time however, I managed to revive it.

What I don't understand is how.


You could consider this an act of desperation, but somehow these acts came together to allow me a chance to revive the iMac's Logic Board from its comatose state.


Quote
1. Turn off the machine.

2. Press and hold the power button. The computer will turn on, and after a few seconds you will hear a long beep (like performing a firmware update). Continue holding the button.

3. When you hear the normal Macintosh boot chime, release the power button and start tapping the enter key as rapidly as possible.


I'm aware of how ridiculous this fix sounds, but it worked - the computer's display came on and the machine dropped into an Open Firmware prompt.

If you do somehow manage to reach an Open Firmware prompt, don't forget to type the following (pressing return after each line):


Code: [Select]
reset-nvram
set-defaults
reset-all


This resets the NVRAM and clears whatever was stored there to cause the issue in the first place. The computer will boot normally once again.


I have no idea how the steps above - holding the power button until it beeps, continue holding until it chimes normally, release the button and frantically bash enter/return - come together to bring the machine back to life. Perhaps someone more knowledgeable about Open Firmware and the low level startup operations of a PowerPC Mac can shed some light on this?


Even so, I had to document it. If someone here ever finds themselves in this scenario, don't be afraid to get creative.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Bricked iMac With Open Firmware Commands (and how I fixed it)
« Reply #1 on: December 17, 2014, 11:40:24 AM »
It is really weird. Thank you for the info.
Please don't PM about things that are not private.