From: Mike Small <smallm@panix.com>
To: grub-devel@gnu.org
Subject: grub-install on powermac newworld
Date: Wed, 16 Nov 2005 23:17:36 -0500 [thread overview]
Message-ID: <20051117041735.GD3883@panix.com> (raw)
I'd meant to try the grub-install script for powerpc a long time ago,
when Hollis sent out the patch in October, but got distracted. Now
that I have tried it, a couple of comments:
1. The path to ofpathname is hard-coded in the script as /usr/sbin.
For me running on debian that doesn't seem right. Since it's not
currently part of a package, I'd probably end up putting it in
/usr/local/sbin instead. Maybe its presence and location should be
detected by configure? Also, there's a script named ofpath that comes
with yaboot that would be present in most distributions which I
suspect could be detected and used for the same purpose if ofpathname
weren't present, if that's something you'd want to do.
2. The script seems to assume that /boot/grub/ will be where my boot
partition is mounted. This was mentioned in the original mail, and I
could set things up this way, but in my opinion it would be more
natural to be able to specify the install directory exactly without
mandating any particular directory structure. eg if I enter
$ grub-install --root-directory=/mnt
...(which is how I ran it, forgetting that part of the email) then
grub and its modules would go directly into /mnt and not into a
/mnt/boot/grub.
I didn't really exercise the nvsetenv part of the script since I've
had problems setting the boot device on this machine before (466
Powermac G4 - it seems to want to add ,\\:tbxi to whatever
boot-device string I set) and, since I didn't follow the directory
structure the script was expecting, it stopped before trying to set the
env variables ("/mnt/boot/grub is not a mount point!"). Let me know
if it would be helpful to test out that part and I'll give it a try
with my boot partion mounted at /boot/grub.
After I moved the files from /mnt/boot/grub to the root of my boot
partition (which is hfs) and rebooted, grub seemed to work okay (more
than okay really, I love that you can cat files from the bootloader -
neat stuff) until I typed in an initrd command. Then I got the error
message: "Can not claim memory." This was with a backported 2.6.12
kernel from a debian developer's site (Sven Luther) but the same thing
happened with the standard Sarge 2.6.8 kernel. The kernel was 4641711
bytes and the initrd image was 4820992 bytes.
Is grub/ppc at the point where it makes sense to be testing initrd
yet? I was about to reboot with an extra debugging message to try to
get more information, thinking this might have something to do with
the values of these variables in grub_rescue_cmd_initrd...
addr = linux_addr + linux_size;
size = grub_file_size (file);
... but I don't really know how grub_claimmap is supposed to work here
or what exactly to look for or report.
--
Mike Small
smallm@panix.com
next reply other threads:[~2005-11-17 4:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 4:17 Mike Small [this message]
2005-11-17 6:05 ` grub-install on powermac newworld Hollis Blanchard
2005-11-18 10:56 ` Yoshinori K. Okuji
2005-11-21 6:00 ` Mike Small
2005-11-23 4:42 ` Hollis Blanchard
2005-11-23 3:55 ` grub-install --root-directory Hollis Blanchard
2005-11-25 20:27 ` Yoshinori K. Okuji
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=20051117041735.GD3883@panix.com \
--to=smallm@panix.com \
--cc=grub-devel@gnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.