Re: [U-Boot] tftp reliability
On Tue, Sep 19, 2017 at 7:04 AM, Chris Packhamwrote: > On Tue, Sep 19, 2017 at 8:26 AM, 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 ? > > 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 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] tftp reliability
On Tue, Sep 19, 2017 at 8:26 AM, Ran Shalitwrote: > 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 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] tftp reliability
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 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot