Author Topic: TFTP Boot  (Read 3440 times)

Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
TFTP Boot
« on: October 21, 2011, 02:20:22 PM »
Hi Mark,

Have you worked on a TFTP or other UDP way to boot ?
My board has neither RS232(except for debug but not available for customer) nor USB(except when module is plugged but not sytematics) but IP.

Now I used FTP transfert, but if there is a bad bin file uploaded, the board is down as no application can run.

Regards

Offline mhoneywill

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: TFTP Boot
« Reply #1 on: October 21, 2011, 03:30:59 PM »
« Last Edit: October 21, 2011, 04:08:24 PM by mhoneywill »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3069
    • View Profile
    • uTasker
Re: TFTP Boot
« Reply #2 on: October 22, 2011, 12:19:13 AM »
Hi Hervé

Probably the links in the forum to other posts as given by Martin will answer most questions.

I don't think that the problem with loading a bad binary is restricted to FTP since it can of course also happen with TFTP. The difference is possibly that TFTP is controlled by an administrator (this will be done on the TFTP server) and the FTP can be done by anyone with a client.
By using check sums and magic numbers the risk should however be very small. Also password protection can be used at the FTP to stop unautherised users uploading data.

TFTP was originally popular since it allowed systems to boot from a small ROM. UDP takes up less code space than TCP and so that is why TFTP using UDP was popular. However a web browser or FTP based on TCP is possible with about 16..20k code space and I don't think that saving a couple of kByte to remove TCP and FTP or web server makes any real diffence nowadays.

Do you have more exact details on the properties of TFTP that would be advantageous for yourself? Does the TFTP demo otherwise serve your purposes (see define TEST_TFTP in application.c)?

Regards

Mark



Offline hervé

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: TFTP Boot
« Reply #3 on: October 24, 2011, 07:54:53 AM »
Hi Martin,
Hi Mark,

Thanks for your comment, but in fact my purpose was not to use tftp instead of ftp or web update possibilities.

I was thinking to use UDP in the simplest possible way to update the firmware when the boot is running, just like there is a uTaskerSerialBoot making a uTaskerUDPBoot.
Using the bare boot, if my uploaded program doesn't run I have no way to update it again remotely (My boards are in the ceiling of a hospital, where I can't access as I want)
As tftp is an existing minimum protocol, I thought about it....
I am looking for a way to reprogram the microcontroller directly while receiving UDP frames ....A 'last resort' way.


Regards