[Thinstation-general] getting BIG pkg-files from tftp solution
Brought to you by:
doncuppjr
From: Tobias P. <tob...@me...> - 2007-02-05 17:22:30
|
hello everyone, i had an issue when downloading files which are bigger than 16MB from my tftp server. it is because the tftp-client requests the file in 512 byte parts (it was discussed on this list). after 32768 request (the buffersize defined in the tftp protocol) the transfer brakes. Thats the 16MB barrier. to solve this you can edit the "packages/base/sbin/pkg" script at line 28: from: tftp -g -r ${BASEPATH}/$4/$2.$3 -l /$2.$3 $SERVER_IP to: tftp -b 8192 -g -r ${BASEPATH}/$4/$2.$3 -l /$2.$3 $SERVER_IP look at the added "-b 8192" option. it changes the requested blocksize from standard 512 bytes to 8192 byte. The highest value would be 65464 bytes (resulting in 2GB files). you get a little better performance when transfering files. Trevor, maybe you can include this in the standard script. If the tftp-server doesn't understand this option it just transfer the files with 512 bytes. thats written in the rfc's. There is another script which downloads the config files. but i hope youre config files will never exceed 16mb :-). for the guys who replaces the busybox tftp with another binary: i looks like the standard tftp-binary lacks support for the blksize option (rfc 2347, rfc 2348). you can use atftp instead, but have a look at the commandline options. regards tobias |