[U-Boot] tftp reliability

Hello,
Does tftp checks the integrity of the file with checksum or any other similar method ? If not - how can it assure the reliability of the file that was transferred ?
Thank you, Ran

My experience is that it doesn't. No checking. No assurance. Do your checksums.
Best never to count on tftp over congested routed connections.
Bob
On 09/18/2017 04:26 PM, Ran Shalit wrote:
Hello,
Does tftp checks the integrity of the file with checksum or any other similar method ? If not - how can it assure the reliability of the file that was transferred ?
Thank you, Ran _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

On Tue, Sep 19, 2017 at 8:26 AM, Ran Shalit ranshalit@gmail.com wrote:
Hello,
Does tftp checks the integrity of the file with checksum or any other similar method ? If not - how can it assure the reliability of the file that was transferred ?
In short it doesn't. Beyond a simple block id and ack there is nothing that ensures what was sent is what was received.
You need to rely on something else to verify the data. Fortunately u-boot supports some options for doing so. At $dayjob we use FIT[1] images for our firmware which can include multiple hashes and even signatures if desired.
[1] - http://git.denx.de/?p=u-boot.git;a=tree;f=doc/uImage.FIT

On Tue, Sep 19, 2017 at 7:04 AM, Chris Packham judge.packham@gmail.com wrote:
On Tue, Sep 19, 2017 at 8:26 AM, Ran Shalit ranshalit@gmail.com wrote:
Hello,
Does tftp checks the integrity of the file with checksum or any other similar method ? If not - how can it assure the reliability of the file that was transferred ?
In short it doesn't. Beyond a simple block id and ack there is nothing that ensures what was sent is what was received.
You need to rely on something else to verify the data. Fortunately u-boot supports some options for doing so. At $dayjob we use FIT[1] images for our firmware which can include multiple hashes and even signatures if desired.
[1] - http://git.denx.de/?p=u-boot.git;a=tree;f=doc/uImage.FIT
Chris, Bob,
Thank you very much. Ran
participants (3)
-
Chris Packham
-
Ran Shalit
-
Robert Moskowitz