help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub2, PXE boot, and freebsd 9.1


From: Richard A. Sitze
Subject: Re: grub2, PXE boot, and freebsd 9.1
Date: Fri, 12 Apr 2013 12:41:33 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

Hello Andrey,

per the docs [http://www.gnu.org/software/grub/manual/grub.html#Network]
I first tried:
* grub-mkimage --format=i386-pc-pxe --output=grub.pxe --prefix='(pxe)/grub' pxe pxecmd

Trial and error led me to make the following changes to that:
- removed pxecmd: module is not in 2.00, but was in older versions
- removed (pxe) from prefix

Your suggestion leads me to some side-questions:
1. Does grub-mkimage include transitive, or even simple, dependencies specified in moddep.lst for modules listed on it's command line?
2. If it doesn't, which modules *are* packaged by default?

Also, in moddep.lst, there are a number of dependencies shown for 'pxe'.. including 'net', but not including 'tftp'.

Anyway, all that leads me to my current (possibly overkill) usage:
* grub-mkimage --format=i386-pc-pxe --output=grub.pxe --prefix='/grub' boot priority_queue datetime bufio net tftp pxe

and I do get further.  Thank you.

Alas, not all is well. I now get "error: timeout reading '/grub/i386-pc/normal.mod'".

Sigh.

-- Richard Sitze

On 4/12/2013 11:16 AM, Andrey Borzenkov wrote:
В Fri, 12 Apr 2013 10:03:13 -0500
"Richard A. Sitze" <address@hidden> пишет:

Greetings list,

I'm trying to use grub2 v 2.00
to facilitate booting FreeBSD 9.1
from a PXE server.

I've configured my DHCP services, and the PXE client is pulling
"grub.pxe" file from the server and running that just fine.  It fails
immediately.

My boot screen looks like this:

*****************
* CLIENT MAC ADDR: ....   GUID: ...
* CLIENT IP: 192.168.0.15   MASK: 255.255.255.0   DHCP IP: 192.168.0.1
* GATEWAY IP: 192.168.0.1
* Welcome to GRUB!
*
* error: disk `tftp,192.168.0.1` not found
* Entering rescue mode...
* grub_rescue> set
* net_default_server=
* net_pxe_boot_file=grub/grub.pxe
* net_pxe_ip=192.168.0.15
* net_pxe_max=...
* prefix=(tftp,192.168.0.1)/grub
* pxe_default_server=
* root=tftp,192.168.0.1
* grub_rescue> insmod normal
* error: disk `tftp,192.168.0.1` not found
How did you build grub.pxe? Does it include "net" and "tftp" modules?

* grub_rescue>
*****************

Things work just fine with the same system hardware using grub2 v 1.99.

Any ideas on what's wrong at this point, and how I can fix it?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]