[syslinux] TFTP-HPA beginner needs help

John radio at mediacombb.net
Mon Sep 7 05:46:14 PDT 2015


Answers below.

At 05:13 AM 9/6/2015, Geert Stappers via Syslinux wrote:
>On Sat, Sep 05, 2015 at 09:55:45AM -0500, John via Syslinux wrote:
> > At 03:21 PM 9/2/2015, Geert Stappers via Syslinux wrote:
> >
> > Still having trouble:
>
>  (-:   Welcome to real life  :-)
>
>
> > > cd /tmp
>
>Please confirm that it is done at the notyetOpenWRT device at 192.168.1.1.
>Saying that the test is done from/at another computer is also fine.
>(Bonuspoints for telling the IP-address)

This is entered in the bash shell on the computer and not on the router.
The bash shell prompt shows the directory is changed on the PC (server end).

> > >   ping -c 3 192.168.0.9   # check if TFTP server respons on ping

No response

>New test request:
>     ping -c 3 192.168.1.9   # check if TFTP server respons on ping

Responds to ping OK

> > >   tftp 192.168.0.9   # connect to TFTP server, you should get a 
> new prompt
> >
> > OK to here using 192.168.1.9 for NIC eth(0) and tftpd server 192.168.1.9
>
>I do understand that your network is not 192.168.0.0 but 192.168.1.0.
>I don't understand what information is in _twice_ stating 192.168.1.9.

/etc/default/tftpd-hpa
   TFTP_USERNAME = "tftp"
   TFTP_DIRECTORY = "srv/tftpboot"
   TFTP_ADDRESS = "192.168.1.9:69"
  #Same as eth(0) IP address on ethernet card -- is this the right 
way to do it?*******
  #  ****or should eth(0) IP and TFTP ADDRESS be different?*****
   TFTP_OPTIONS = "-l -c -s"

> > New prompt is tftp>
>Okay the 'tftp>' is from the TFTP client.
>
>
> > >   get aa
> >
> > This times out
>
>That is our problem, in fact a symptoom of the problem.
>
>
> > and returns to tftp>  Unable to return to shell using exit command
> >
> > >   exit
> > >   # you shold be back in shell prompt
>
>I was mistaken on 'exit', try 'quit' next time.

Yes, 'quit' works


> > >   cat aa  # check the aa script
> > >   cat aa  # double check
> > >   sh aa # the aa script comes alive ...
> >
> > The router (client) is on eth(0) and I can connect to it using
> > Firefox 192.168.1.1,
>
>  From which computer did you do that test?
>(Is it your TFTP-server (192.168.1.9) (Yes/No, another one which has 
>address ... )?)

Yes, TFTP server set to 192.168.1.9 on the PC and so is the NIC eth(0)

> > but router page is all in Chinese language which I don't understand.
> > That is why I want to use tftp to flash new firmware to the router:
> > 
> http://wiki.openwrt.org/toh/tp-link/tl-wr703n#tftp_install_necessary_on_v17_hardware
> >
> > Address in the openWRT article have all been changed to 192.168.1.9
> > (server) and 192.168.1.1 target
> >
> > PC is Ubuntu 14.04 on flash drive with xinetd and tftp-hpa
> >
> > What am I doing incorrectly?
>
>Assuming that it is the same technology as a saw or a hammer.   :-)

Maybe crowbar and hammer!  :)

>And you are doing fine. You are curious, you presist,
>you want to get it working.
>
>
>Your Ubuntu PC, the computer at 192.168.1.9, can you connect to it from the
>notyetOpenWRT device?  These three tests will tell us more

I don't know how to try this.


>    # all three might time-out, report if they do
>    telnet 192.168.1.9  23  # a connection refused is expected
>    telnet 192.168.1.9  22  # a SSH-banner expected, just press enter
>    telnet 192.168.1.9  80  # nothing, just a connect, press enter twice

All could not resolve 192.168.1.9:x /telnet: name or service not known

>These basic network test might also reveal if we are dealing with a firewall
>on the TFTP port.

Works the same after


sudo ufw disable


Something happened and the flash drive would no longer boot.  It was 
reformatted
and a new image was installed and updated.  This time it made the
  /tftpboot directory in my home directory.

It still times out getting file aa.

John








More information about the Syslinux mailing list