public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] elilo-3.0 PXE mode fix
@ 2001-07-24  2:12 Stephane Eranian
  0 siblings, 0 replies; 10+ messages in thread
From: Stephane Eranian @ 2001-07-24  2:12 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

Hi,

I have identified a problem causing elilo to fail when netbooting from 
a PXE server. Due to a stupid mistake on my part, the config file was
set to the kernel image file when querying the PXE layers.

This problem DOES NOT affect netbooting using regular DHCP server.

The fix is attached to this E-mail.

-- 
-Stephane

[-- Attachment #2: elilo-010723-2.diff --]
[-- Type: text/plain, Size: 799 bytes --]

--- elilo-3.0/fs/netfs.c	Sun Jul  1 23:14:35 2001
+++ elilo-3.1/fs/netfs.c	Mon Jul 23 19:06:17 2001
@@ -488,7 +488,7 @@
 		length = opts[i+1];
 		if (tag == 71) {
 			server_type =(opts[i+2]<<8) | opts[i+3];
-			Print(L"ServerType: %d\r\n", server_type);
+			DBG_PRINT((L"ServerType: %d\r\n", server_type));
 			return server_type;
 		}
 		i+= 2 + length;
--- elilo-3.0/glue_netfs.c	Sun Jul  1 22:50:35 2001
+++ elilo-3.1/glue_netfs.c	Mon Jul 23 19:04:38 2001
@@ -70,7 +70,7 @@
 			config[maxlen-1] = CHAR_NULL;
 		}
 
-		status = netfs->netfs_query_layer(netfs, 0, NETFS_KERNEL_LAYER, maxlen, config);
+		status = netfs->netfs_query_layer(netfs, 0, NETFS_KERNEL_LAYER, maxlen, kname);
 		if (EFI_ERROR(status)) {
 			StrnCpy(kname, NETFS_DEFAULT_KERNEL, maxlen-1);
 			kname[maxlen-1] = CHAR_NULL;

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-ia64] elilo-3.0 PXE mode fix
@ 2004-04-02  7:06 Li, Jack
  2004-04-02 17:07 ` Stephane Eranian
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Li, Jack @ 2004-04-02  7:06 UTC (permalink / raw)
  To: linux-ia64

Hi,

I am also trying to setup PXE for IA64. Could you send a copy of your
pxe.conf file to me? And the boot strap you are using?  Thanks. 

Best regards
Jack


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
@ 2004-04-02 17:07 ` Stephane Eranian
  2004-04-02 21:19 ` Li, Jack
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Stephane Eranian @ 2004-04-02 17:07 UTC (permalink / raw)
  To: linux-ia64

Jack,

On Fri, Apr 02, 2004 at 03:06:34PM +0800, Li, Jack wrote:
> 
> I am also trying to setup PXE for IA64. Could you send a copy of your
> pxe.conf file to me? And the boot strap you are using?  Thanks. 
> 
I suggest you use elilo-3.4 instead of 3.0. The package contains an
example of the dcph/pxe setup I used to test this. The problem was
that the ISC DHCPD needed some extensions to support PXE/Ia64. Those
extensions were added by Intel but I don't know if they ever made it
into the official ISC DHCPD server, you'd have to check.

Anyway, in the elilo-3.4 package, go to examples/netboot. You'll
find a PXE config file.

Hope this helps.

PS: Brett Johnson is the new maintainer of the package and he has setup 
a SourceForge web for elilo: http://elilo.sf.net

-- 

-Stephane

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
  2004-04-02 17:07 ` Stephane Eranian
@ 2004-04-02 21:19 ` Li, Jack
  2004-04-02 23:18 ` Stephane Eranian
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Li, Jack @ 2004-04-02 21:19 UTC (permalink / raw)
  To: linux-ia64

Stephane Eranian <mailto:eranian@hpl.hp.com> wrote on Saturday, April
03, 2004 1:08 AM:

> Jack,
> 
> On Fri, Apr 02, 2004 at 03:06:34PM +0800, Li, Jack wrote:
>> 
>> I am also trying to setup PXE for IA64. Could you send a copy of your
>> pxe.conf file to me? And the boot strap you are using?  Thanks.
>> 
> I suggest you use elilo-3.4 instead of 3.0. The package contains an
> example of the dcph/pxe setup I used to test this. The problem was
> that the ISC DHCPD needed some extensions to support PXE/Ia64. Those
> extensions were added by Intel but I don't know if they ever made it
> into the official ISC DHCPD server, you'd have to check.
> 
> Anyway, in the elilo-3.4 package, go to examples/netboot. You'll
> find a PXE config file.
> 
> Hope this helps.
> 
> PS: Brett Johnson is the new maintainer of the package and he has
> setup 
> a SourceForge web for elilo: http://elilo.sf.net

Thank you. But I am using the PXE of a RedHat 9.0. So do you know if
this PXE server can support IA64? Do you have a sample pxe.conf for the
PXE server?


Senior SW Engineer, Intel Corporation.
Intel China Software Lab. 
Tel: 021-52574545 ext. 1306
iNet: 8-752-1306
 
Opinions expressed are those of the author and do not represent Intel
Corporation



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
  2004-04-02 17:07 ` Stephane Eranian
  2004-04-02 21:19 ` Li, Jack
@ 2004-04-02 23:18 ` Stephane Eranian
  2004-04-02 23:19 ` Brett Johnson
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Stephane Eranian @ 2004-04-02 23:18 UTC (permalink / raw)
  To: linux-ia64

Jack,

On Fri, Apr 02, 2004 at 04:19:10PM -0700, Brett Johnson wrote:
> On Fri, 2004-04-02 at 14:19, Li, Jack wrote:
> > Thank you. But I am using the PXE of a RedHat 9.0. So do you know if
> > this PXE server can support IA64? Do you have a sample pxe.conf for the
> > PXE server?
> 
> I don't have a redhat9 machine, but based on what I see on rpmfind.net,
> it looks like they're using dhcp 3.0p1, which should work fine.
> 
> As Stephane mentioned, there is an example config in the elilo
> "netbooting.txt" document.  You can get it from
> 
> http://cvs.sourceforge.net/viewcvs.py/elilo/elilo/docs/netbooting.txt
> 
There is also a dcp-pxe.conf in elilo/examples/

-- 

-Stephane

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
                   ` (2 preceding siblings ...)
  2004-04-02 23:18 ` Stephane Eranian
@ 2004-04-02 23:19 ` Brett Johnson
  2004-04-02 23:30 ` Li, Jack
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Brett Johnson @ 2004-04-02 23:19 UTC (permalink / raw)
  To: linux-ia64

On Fri, 2004-04-02 at 14:19, Li, Jack wrote:
> Thank you. But I am using the PXE of a RedHat 9.0. So do you know if
> this PXE server can support IA64? Do you have a sample pxe.conf for the
> PXE server?

I don't have a redhat9 machine, but based on what I see on rpmfind.net,
it looks like they're using dhcp 3.0p1, which should work fine.

As Stephane mentioned, there is an example config in the elilo
"netbooting.txt" document.  You can get it from

http://cvs.sourceforge.net/viewcvs.py/elilo/elilo/docs/netbooting.txt

If you don't have a local copy.

Cheers!
-- 
Brett Johnson <brett@hp.com>
   -  i  n  v  e  n  t  -

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
                   ` (3 preceding siblings ...)
  2004-04-02 23:19 ` Brett Johnson
@ 2004-04-02 23:30 ` Li, Jack
  2004-04-02 23:38 ` Stephane Eranian
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Li, Jack @ 2004-04-02 23:30 UTC (permalink / raw)
  To: linux-ia64

Stephane Eranian <mailto:eranian@hpl.hp.com> wrote on Saturday, April
03, 2004 7:18 AM:

> Jack,
> 
> On Fri, Apr 02, 2004 at 04:19:10PM -0700, Brett Johnson wrote:
>> On Fri, 2004-04-02 at 14:19, Li, Jack wrote:
>>> Thank you. But I am using the PXE of a RedHat 9.0. So do you know if
>>> this PXE server can support IA64? Do you have a sample pxe.conf for
>>> the PXE server?
>> 
>> I don't have a redhat9 machine, but based on what I see on
>> rpmfind.net, it looks like they're using dhcp 3.0p1, which should
>> work fine. 
>> 
>> As Stephane mentioned, there is an example config in the elilo
>> "netbooting.txt" document.  You can get it from
>> 
>> http://cvs.sourceforge.net/viewcvs.py/elilo/elilo/docs/netbooting.txt
>> 
> There is also a dcp-pxe.conf in elilo/examples/

I don't have access to the DHCP server. I can only configure the PXE
server which is full under my control. I don't think the dhcpd-pxe.conf
can be used for the RedHat PXE server (pxe-0.1-36). Right?

Best regards
Jack 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
                   ` (4 preceding siblings ...)
  2004-04-02 23:30 ` Li, Jack
@ 2004-04-02 23:38 ` Stephane Eranian
  2004-04-02 23:47 ` Brett Johnson
  2004-04-03  0:07 ` Li, Jack
  7 siblings, 0 replies; 10+ messages in thread
From: Stephane Eranian @ 2004-04-02 23:38 UTC (permalink / raw)
  To: linux-ia64

JAck,

On Sat, Apr 03, 2004 at 07:30:12AM +0800, Li, Jack wrote:
> Stephane Eranian <mailto:eranian@hpl.hp.com> wrote on Saturday, April
> 03, 2004 7:18 AM:
> 
> > Jack,
> > 
> > On Fri, Apr 02, 2004 at 04:19:10PM -0700, Brett Johnson wrote:
> >> On Fri, 2004-04-02 at 14:19, Li, Jack wrote:
> >>> Thank you. But I am using the PXE of a RedHat 9.0. So do you know if
> >>> this PXE server can support IA64? Do you have a sample pxe.conf for
> >>> the PXE server?
> >> 
> >> I don't have a redhat9 machine, but based on what I see on
> >> rpmfind.net, it looks like they're using dhcp 3.0p1, which should
> >> work fine. 
> >> 
> >> As Stephane mentioned, there is an example config in the elilo
> >> "netbooting.txt" document.  You can get it from
> >> 
> >> http://cvs.sourceforge.net/viewcvs.py/elilo/elilo/docs/netbooting.txt
> >> 
> > There is also a dcp-pxe.conf in elilo/examples/
> 
> I don't have access to the DHCP server. I can only configure the PXE
> server which is full under my control. I don't think the dhcpd-pxe.conf
> can be used for the RedHat PXE server (pxe-0.1-36). Right?

Well,that I don't know. You'd have to look at the example and compare
it with the documentation of the RedHat server. I doubt they match.

-- 
-Stephane

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
                   ` (5 preceding siblings ...)
  2004-04-02 23:38 ` Stephane Eranian
@ 2004-04-02 23:47 ` Brett Johnson
  2004-04-03  0:07 ` Li, Jack
  7 siblings, 0 replies; 10+ messages in thread
From: Brett Johnson @ 2004-04-02 23:47 UTC (permalink / raw)
  To: linux-ia64

On Fri, 2004-04-02 at 16:30, Li, Jack wrote:
> I don't have access to the DHCP server. I can only configure the PXE
> server which is full under my control. I don't think the dhcpd-pxe.conf
> can be used for the RedHat PXE server (pxe-0.1-36). Right?

No, the config files are quite different.  I don't know if the pxe
server will boot an ia64 machine, since I've never tried it.  Googleing
around, I found a sample pxe config in the mandrake docs, which actually
has the token "IA64EFI" in it.  I have no clue what the token means, but
it has all the right letters :o)

  http://clic.mandrakesoft.com/documentation/pxe/ch03.html

Cheers!
-- 
Brett Johnson <brett@hp.com>
   -  i  n  v  e  n  t  -

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [Linux-ia64] elilo-3.0 PXE mode fix
  2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
                   ` (6 preceding siblings ...)
  2004-04-02 23:47 ` Brett Johnson
@ 2004-04-03  0:07 ` Li, Jack
  7 siblings, 0 replies; 10+ messages in thread
From: Li, Jack @ 2004-04-03  0:07 UTC (permalink / raw)
  To: linux-ia64

Brett Johnson <mailto:brett@fc.hp.com> wrote on Saturday, April 03, 2004
7:48 AM:

> On Fri, 2004-04-02 at 16:30, Li, Jack wrote:
>> I don't have access to the DHCP server. I can only configure the PXE
>> server which is full under my control. I don't think the
>> dhcpd-pxe.conf can be used for the RedHat PXE server (pxe-0.1-36).
>> Right? 
> 
> No, the config files are quite different.  I don't know if the pxe
> server will boot an ia64 machine, since I've never tried it. 
> Googleing 
> around, I found a sample pxe config in the mandrake docs, which
> actually 
> has the token "IA64EFI" in it.  I have no clue what the token means,
> but 
> it has all the right letters :o)
> 
>   http://clic.mandrakesoft.com/documentation/pxe/ch03.html
> 
> Cheers!

I've tried that before. It is a different PXE implementation other than
the one in RedHat. Anyway, thanks you all. :)

Best regards
Jack

Senior SW Engineer, Intel Corporation.
Intel China Software Lab. 
Tel: 021-52574545 ext. 1306
iNet: 8-752-1306
 
Opinions expressed are those of the author and do not represent Intel
Corporation


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-04-03  0:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-02  7:06 [Linux-ia64] elilo-3.0 PXE mode fix Li, Jack
2004-04-02 17:07 ` Stephane Eranian
2004-04-02 21:19 ` Li, Jack
2004-04-02 23:18 ` Stephane Eranian
2004-04-02 23:19 ` Brett Johnson
2004-04-02 23:30 ` Li, Jack
2004-04-02 23:38 ` Stephane Eranian
2004-04-02 23:47 ` Brett Johnson
2004-04-03  0:07 ` Li, Jack
  -- strict thread matches above, loose matches on Subject: below --
2001-07-24  2:12 Stephane Eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox