From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: internal device representation
Date: Tue, 18 Jan 2005 18:36:56 +0000 [thread overview]
Message-ID: <874qhek2if.fsf@marco.marco-g.com> (raw)
In-Reply-To: <1A9DE24E-695F-11D9-A482-000A95A0560C@penguinppc.org> (Hollis Blanchard's message of "Tue, 18 Jan 2005 08:41:57 -0600")
Hollis Blanchard <hollis@penguinppc.org> writes:
> In the netboot case, we can boot like this:
> boot net:192.168.0.1,grubof,192.168.0.2
What does this mean? The first IP address is the server, the second
is our own?
> Inside grub, /chosen/bootpath looks like this:
> /pci@1f,0/pci@1,1/network@1,1
>
> [So let's pretend we don't have any problem with commas or syntax (as
> that is the subject of the other mail), and we set the "prefix"
> variable to be "net" or "(nd0)" or whatever you like.]
>
> Now we want to retrieve grub.conf. However, we can't just stick
> "grub.conf" on the end of that string and expect it to work:
> "(nd0)/grub.conf" would become "net:,grub.conf" to the OF driver, and
> now we have lost the server and client IP addresses.
For GRUB Legacy there is the ifconfig command to configure the device.
> This suggests that we need to preserve a separated device specifier,
> rather than flattening it into a string. The specifier must keep the
> device path and device arguments separated, for later recombination
> with the new filename.
>
> struct device {
> char *device_path = "net"
> char *args = ["192.168.0.1", NULL, "192.168.0.2"]
> }
How about the data member of grub_dev?
> ... and the grub Open Firmware driver knows to insert "filename" into
> args[1].
It would be nice if it can be kept hidden from the user that OF is
used and make it work like GRUB Legacy did or so.
Thanks,
Marco
prev parent reply other threads:[~2005-01-18 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-18 5:25 internal device representation Hollis Blanchard
2005-01-18 11:04 ` Yoshinori K. Okuji
2005-01-18 14:41 ` Hollis Blanchard
2005-01-18 18:36 ` Marco Gerards [this message]
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=874qhek2if.fsf@marco.marco-g.com \
--to=metgerards@student.han.nl \
--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.