Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - TFTP Option Extension: (8 Items)
   
TFTP Option Extension  
Hi,
When I've tried to boot x86 with pxqldr.bin (look Bazaar for it), I've got error message "tsize Error" from pxqldr.
On server size I've used QNX 6.4.0 with dhcpd and 'tftpd via inetd'. On my current linux station the same pair works 
well with pxqldr, but in linux man page  I see that tftpd support option extention (RFC 2347) and the same on NetBSD 
help (from 2.0 to CURRENT) help pages. Only NetBSD 1.6.2 'tftpd-help page' is equal to qnx6.4.0 tftpd help (Based on RFC
 1350).
So there are answers to QNX developers:
1. Am I right in above discribed issure?
2. Do you have any plans to add in future distrib most new version of tftpd from NetBSD tree?

Re: TFTP Option Extension  
On Sat, Jan 31, 2009 at 07:13:46AM -0500, mike ko wrote:
> Hi,
> When I've tried to boot x86 with pxqldr.bin (look Bazaar for it), I've got error message "tsize Error" from pxqldr.
> On server size I've used QNX 6.4.0 with dhcpd and 'tftpd via inetd'. On my current linux station the same pair works 
well with pxqldr, but in linux man page  I see that tftpd support option extention (RFC 2347) and the same on NetBSD 
help (from 2.0 to CURRENT) help pages. Only NetBSD 1.6.2 'tftpd-help page' is equal to qnx6.4.0 tftpd help (Based on RFC
 1350).
> So there are answers to QNX developers:
> 1. Am I right in above discribed issure?
> 2. Do you have any plans to add in future distrib most new version of tftpd from NetBSD tree?

Yes, it's been updated for 6.4.1.  I'll look into
making the source available in the public repository.

-seanb
Re: TFTP Option Extension  
Thanks, Sean.
RE: TFTP Option Extension  
Hi Sean:

http://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=64376

We've already got the legal OK.

	Robert. 

-----Original Message-----
From: Sean Boudreau [mailto:community-noreply@qnx.com] 
Sent: Saturday, January 31, 2009 11:36 AM
To: general-networking
Subject: Re: TFTP Option Extension

On Sat, Jan 31, 2009 at 07:13:46AM -0500, mike ko wrote:
> Hi,
> When I've tried to boot x86 with pxqldr.bin (look Bazaar for it), I've
got error message "tsize Error" from pxqldr.
> On server size I've used QNX 6.4.0 with dhcpd and 'tftpd via inetd'.
On my current linux station the same pair works well with pxqldr, but in
linux man page  I see that tftpd support option extention (RFC 2347) and
the same on NetBSD help (from 2.0 to CURRENT) help pages. Only NetBSD
1.6.2 'tftpd-help page' is equal to qnx6.4.0 tftpd help (Based on RFC
1350).
> So there are answers to QNX developers:
> 1. Am I right in above discribed issure?
> 2. Do you have any plans to add in future distrib most new version of
tftpd from NetBSD tree?

Yes, it's been updated for 6.4.1.  I'll look into making the source
available in the public repository.

-seanb

_______________________________________________
General
http://community.qnx.com/sf/go/post21191
Re: TFTP Option Extension  
On Sun, Feb 01, 2009 at 08:45:07PM -0500, Robert Craig wrote:
> Hi Sean:
> 
> http://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=64376
> 
> We've already got the legal OK.
> 

They're now in the public networking repo:

http://community.qnx.com/svn/repos/core_networking/trunk/services/tftpd
http://community.qnx.com/svn/repos/core_networking/trunk/utils/t/tftp

-seanb
Re: TFTP Option Extension  
Thanks for new one. It works, but...old works too, now :)

It was a problem about configuring tftpd.
I used default string in /etc/inetd.conf :

tftp  dgram  udp  wait  root /usr/sbin/tftpd in.tftpd

with above, default directory is /tftpboot and every request must start from / 

i.e /tftpboot/pxqldr.bin, /tftpboot/nnnnnnnnnnnn 

In dhcpd.conf I've written /tftpboot/pxqldr.bin and at this step all works (loads) well. But pxqldr.bin asks for file 
'nnnnnnnnnnnn' (or mac)
without /tftpboot/ prefix.

Solution is to change tftpd config string to (as example):

tftp  dgram  udp  wait  root /usr/sbin/tftpd in.tftpd /tftpboot

After that in dhcp.conf we can put just `filename "pxqldr.bin" `
And the image file (nn..) will be accesable too.
Re: TFTP Option Extension  
Four years ago, Sean Boudreau writes that there's a patched tftpd:
    They're now in the public networking repo:
    http://community.qnx.com/svn/repos/core_networking/trunk/services/tftpd
    http://community.qnx.com/svn/repos/core_networking/trunk/utils/t/tftp
    -seanb
but I cannot access those locations; maybe they are no longer available or moved?

I'm having the same trouble as described by OP (Original Poster).  The server is QNX 6.3.2 .
I can see that my tftpd won't honor the request to get "nnnnnnnnnnnn", but it will respond to get "/tftpboot/
nnnnnnnnnnnn" .  This, btw, is consistent with some QNX docs saying that tftpd expects the filename to begin with "/".

OP also responded that finally he tweaked his inetd.conf entry to
   tftp  dgram  udp  wait  root /usr/sbin/tftpd in.tftpd /tftpboot
and that worked for with his original tftpd... allowing his pxqldr to pull "nnnnnnnnnnnn".
but, that does NOT work for me and this QNX 6.3.2 tftpd

So... is there a tftpd (pre-built) that I should be downloading & using?  
Should I give up on pxqldr (which is in the "bazaar" and has "Maturity" = "Prototype"?  
Other recent QNX docs suggest downloading a GRUB pre-built executable, but I'm finding source tarballs for 1.99 & 2.00, 
but no pre-built executables.

Thanks for any comments!
John R.
Re: TFTP Option Extension  
In the old thread, it sounded like an enhanced or fixed tftpd would be in 6.4.1 .
Today I tried putting a 6.5.0 tftpd onto the 6.3.2 system, and
tftp-ing locally, I couldn't get any data transfer.
That is, on the 6.3.2 system (server), I did 
"tftp 127.0.0.1", and some setup commands "ver", "tra", & "bin",
and then
    get nnnnnnnnnnnn
    get /nnnnnnnnnnnn
    get /tftpboot/nnnnnnnnnnnn
but I couldn't get any data transfer, so maybe I was naive to expect a binary from /usr/sbin to interoperate between the
 6.X os-es?
Anyway, I'm still blocked.  :(
Keep pursuing pxqldr?  
Or give up on pxqldr and start trying to ramp up on grub-2.00 ?

Thanks,
John R.