All of lore.kernel.org
 help / color / mirror / Atom feed
* booting the T1000
@ 2006-06-29  7:37 Rene Rebe
  2006-06-29  9:04 ` David Miller
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Rene Rebe @ 2006-06-29  7:37 UTC (permalink / raw)
  To: sparclinux

Hi all,

I gave the current Ubuntu boot image a try on a T1000. The file I got has this
md5sum:

49f61b1efbc662b4f12061a9571ac65b  boot.img

I used the existing arpd and hpa-tftpd setup to network boot that new box, but
the box does not appear to like loading the kerne image.

In a blog of someone working on the Ubuntu suport I found a note
about "problems with hpa-tftpd", so I tried iputils/tftpd and atftpd without
success. Note  that an Ultra30 booted the same image served from the
same daemons just fine.

This is what atftp logged:

Jun 29 09:21:22 g5 atftpd[7209]: Serving C0A80271 to 192.168.2.113:32768
Jun 29 09:21:27 g5 atftpd[7209]: timeout: retrying...
Jun 29 09:21:47 g5 last message repeated 4 times
Jun 29 09:21:52 g5 atftpd[7209]: client (192.168.2.113) not responding

Maybe someone can enlighten me which tftp server is compaible with
the Niagara boxes?

Thanks in advance,

-- 
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://exactcode.de | http://t2-project.org | http://rebe.name
            +49 (0)30 / 255 897 45

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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
@ 2006-06-29  9:04 ` David Miller
  2006-06-29 11:09 ` Rene Rebe
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2006-06-29  9:04 UTC (permalink / raw)
  To: sparclinux

From: Rene Rebe <rene@exactcode.de>
Date: Thu, 29 Jun 2006 09:37:49 +0200

> In a blog of someone working on the Ubuntu suport I found a note
> about "problems with hpa-tftpd", so I tried iputils/tftpd and atftpd without
> success. Note  that an Ultra30 booted the same image served from the
> same daemons just fine.

iputils inetd doesn't work well with tftpd at all, it propagates the
non-blocking setting of the socket down to tftpd which is not expecting
this.

Use netkit-inetd and it should go fine.  That's what I'm using here.

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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
  2006-06-29  9:04 ` David Miller
@ 2006-06-29 11:09 ` Rene Rebe
  2006-06-29 20:27 ` Tom 'spot' Callaway
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Rene Rebe @ 2006-06-29 11:09 UTC (permalink / raw)
  To: sparclinux

Hi,

On Thursday 29 June 2006 11:04, David Miller wrote:
> From: Rene Rebe <rene@exactcode.de>
> Date: Thu, 29 Jun 2006 09:37:49 +0200
> 
> > In a blog of someone working on the Ubuntu suport I found a note
> > about "problems with hpa-tftpd", so I tried iputils/tftpd and atftpd without
> > success. Note  that an Ultra30 booted the same image served from the
> > same daemons just fine.
> 
> iputils inetd doesn't work well with tftpd at all, it propagates the
> non-blocking setting of the socket down to tftpd which is not expecting
> this.
> 
> Use netkit-inetd and it should go fine.  That's what I'm using here.

Thanks for this hints, switching to netkit-tftpd made the OBP tftp client
load the image ,-)

Yours,

-- 
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://exactcode.de | http://t2-project.org | http://rebe.name
            +49 (0)30 / 255 897 45

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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
  2006-06-29  9:04 ` David Miller
  2006-06-29 11:09 ` Rene Rebe
@ 2006-06-29 20:27 ` Tom 'spot' Callaway
  2006-06-29 20:45 ` David S. Miller
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Tom 'spot' Callaway @ 2006-06-29 20:27 UTC (permalink / raw)
  To: sparclinux

On Thu, 2006-06-29 at 09:37 +0200, Rene Rebe wrote:
> Hi all,
> 
> I gave the current Ubuntu boot image a try on a T1000. The file I got has this
> md5sum:
> 
> 49f61b1efbc662b4f12061a9571ac65b  boot.img
> 
> I used the existing arpd and hpa-tftpd setup to network boot that new box, but
> the box does not appear to like loading the kerne image.

Try this:

T2000 fails to net boot from a Linux tftp boot server 
ALOM issues a broadcast not the ip of the tftp server 
Introduced in OBP 4.17 as part of WANboot project 
Workaround is to force OBP to transmit an ip address:

setenv network-boot-arguments rarp,file=tftp://10.20.30.40

~spot
-- 
Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!


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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
                   ` (2 preceding siblings ...)
  2006-06-29 20:27 ` Tom 'spot' Callaway
@ 2006-06-29 20:45 ` David S. Miller
  2006-06-29 21:03 ` Tom 'spot' Callaway
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: David S. Miller @ 2006-06-29 20:45 UTC (permalink / raw)
  To: sparclinux

From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
Date: Thu, 29 Jun 2006 15:27:58 -0500

> Try this:

As you can see from my response and his acknowledgment, this
wasn't the problem he was running into.

The default inetd package in Ubuntu, from iputils, is simply buggy,
because it sets it's sockets to non-blocking and leaves that setting
on the socket when it passes the connection on to the real application
from inetd.  Applications expect the socket to be in blocking mode.
As a result, tftpd craps out because it unexpectedly gets -EAGAIN on a
read().

To be honest this is a horrible selection of a default inetd
implementation, netkit-inetd is probably what should be used instead.

Changing over to netkit-inetd fixes the problem.

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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
                   ` (3 preceding siblings ...)
  2006-06-29 20:45 ` David S. Miller
@ 2006-06-29 21:03 ` Tom 'spot' Callaway
  2006-06-29 21:37 ` Chris Newport
  2006-06-29 21:42 ` David Miller
  6 siblings, 0 replies; 8+ messages in thread
From: Tom 'spot' Callaway @ 2006-06-29 21:03 UTC (permalink / raw)
  To: sparclinux

On Thu, 2006-06-29 at 13:45 -0700, David S. Miller wrote:
> From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
> Date: Thu, 29 Jun 2006 15:27:58 -0500
> 
> > Try this:
> 
> As you can see from my response and his acknowledgment, this
> wasn't the problem he was running into.

I'm getting email out of order today, apologies. (I only now received
your message from 4:04 AM).

~spot
-- 
Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!


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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
                   ` (4 preceding siblings ...)
  2006-06-29 21:03 ` Tom 'spot' Callaway
@ 2006-06-29 21:37 ` Chris Newport
  2006-06-29 21:42 ` David Miller
  6 siblings, 0 replies; 8+ messages in thread
From: Chris Newport @ 2006-06-29 21:37 UTC (permalink / raw)
  To: sparclinux

David S. Miller wrote:

>The default inetd package in Ubuntu, from iputils, is simply buggy,
>because it sets it's sockets to non-blocking and leaves that setting
>on the socket when it passes the connection on to the real application
>from inetd.  Applications expect the socket to be in blocking mode.
>As a result, tftpd craps out because it unexpectedly gets -EAGAIN on a
>read().
>
>To be honest this is a horrible selection of a default inetd
>implementation, netkit-inetd is probably what should be used instead.
>
>  
>
Is this really the root of the issue ?.
For about the last 5 years I have suffered similar issues with tftpd in 
Slackware, Solaris, and NetBSD, all of which use different inetd 
implementations.

Running tftpd standalone has always fixed it.

I could be wrong, but there seem to be generic issues running tftpd via 
inetd, often only intermittently reproduceable. 



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

* Re: booting the T1000
  2006-06-29  7:37 booting the T1000 Rene Rebe
                   ` (5 preceding siblings ...)
  2006-06-29 21:37 ` Chris Newport
@ 2006-06-29 21:42 ` David Miller
  6 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2006-06-29 21:42 UTC (permalink / raw)
  To: sparclinux

From: Chris Newport <crn@netunix.com>
Date: Thu, 29 Jun 2006 22:37:08 +0100

> I could be wrong, but there seem to be generic issues running tftpd via 
> inetd, often only intermittently reproduceable. 

It reproduces only when tftpd is invoked from inetd before the client
sends out the first packet.

If inetd gets a non-blocking socket, it chokes on the first read()
when data is not available in the socket receive buffer.  If the
client is fast enough, or the tftpd server slow enough, this will
never happen.

That's why it might be intermittently reproducable.

Believe me, I traced this one down to the source :)

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

end of thread, other threads:[~2006-06-29 21:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-29  7:37 booting the T1000 Rene Rebe
2006-06-29  9:04 ` David Miller
2006-06-29 11:09 ` Rene Rebe
2006-06-29 20:27 ` Tom 'spot' Callaway
2006-06-29 20:45 ` David S. Miller
2006-06-29 21:03 ` Tom 'spot' Callaway
2006-06-29 21:37 ` Chris Newport
2006-06-29 21:42 ` David Miller

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.