1

what is proper command compress mtdblock with 'tar' before sending it via TFTP?

tftp -l /dev/mtdblock3 -p 192.168.100.40
3

tar is not a compression tool, just use gzip to compress a single file.

You can pipe gzip -c to tftp -l /dev/stdin on the busybox shell. For example:

gzip -c /dev/mtdblock3 | tftp -l /dev/stdin -r mtdblock3.gz -p 192.168.100.40

If there's no /dev/stdin, try with /proc/self/fd/0 instead.

3
  • In my case BusyBox v1.4.2 implementation have no gzip function defined, very limited.
    – minto
    Dec 23 '15 at 23:55
  • Run busybox --help to get list of available applets. Possible alternatives for gzip would be bzip2, lzma, lzop, or xz. Otherwise you'll need an external command for compression.
    – yaegashi
    Dec 24 '15 at 0:29
  • Unfortunately, these alternatives is not available too.
    – minto
    Dec 24 '15 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.