From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Romain Goyet <r.goyet@gmail.com>
Cc: Tony Breeds <tonyb@au1.ibm.com>, linuxppc-dev@lists.ozlabs.org
Subject: Re: Booting headless PowerMac G5
Date: Wed, 24 Mar 2010 21:50:15 +1100 [thread overview]
Message-ID: <1269427815.8599.226.camel@pasglop> (raw)
In-Reply-To: <8028e5751003240332h3f13c2d5w941dda44b4740d7@mail.gmail.com>
On Wed, 2010-03-24 at 11:32 +0100, Romain Goyet wrote:
> Hi there,
>
>
> Here's a summary about "how to boot a PowerMac G5 without a screen
> attached". As many people have noticed, default yaboot install won't
> boot unless a screen is attached.
CC'ing Tony who is the latest victim of yaboot maintainership...
> Actually, the workaround is really simple. Thing is, that's the
> "ofboot.b" script that messes things up. This script is a "bridge",
> that actually either starts yaboot or let you boot off of a CD. I
> don't know what's the point, since OpenFirmware already lets you boot
> off of the CD by pressing C on boot…
>
> So basically, to boot headless, all you have to do is to tell
> OpenFirmware to boot straight off the yaboot binary, and to skip the
> ofboot.b
> Just boot into OpenFirmware (Command-Option-O-F), and type :
> setenv boot-device hd:2,yaboot (where 2 is the number of the partition
> containing yaboot)
> boot
>
> And here you go, you can unplug that useless monitor :-)
The root of the problem is that Apple OF will not open an stdout for you
on some machines if you don't enter OF manually, so yaboot text never
shows up. This was somewhat worked around by the ofboot.b script but
indeed, it seems to fail to check that there's a display to open before
actually opening it, which cause the failure you are hitting.
Maybe we can try to make the script a bit smarter to detect that there's
nothing there. Hard to tell, the arcanes of Apple OF are quite obscure.
But at least, I think ybin could grow a config option to tell it not to
install ofboot.b or at least install a variant that won't suck when
there is no display attached.
Cheers,
Ben.
> References :
> http://saintaardvarkthecarpeted.com/blog/archive/2005/02/THE_WINE_OF_BOOT.html
> http://grub.enbug.org/TestingOnPowerPC
>
> By the way, as of writing this, grub2 on PPC from debian gives a "out
> of memory" issue. Known bug.
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
next prev parent reply other threads:[~2010-03-24 10:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 10:32 Booting headless PowerMac G5 Romain Goyet
2010-03-24 10:50 ` Benjamin Herrenschmidt [this message]
2010-03-24 16:53 ` Segher Boessenkool
2010-03-25 9:29 ` Michel Dänzer
2010-03-26 10:20 ` Romain Goyet
2010-03-26 12:23 ` Michel Dänzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1269427815.8599.226.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=r.goyet@gmail.com \
--cc=tonyb@au1.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).