summaryrefslogtreecommitdiff
path: root/serve_image.c
AgeCommit message (Collapse)Author
2015-07-06mtd-utils: fix 'space before tab in indent' problemDongsheng Yang
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-05-28serve_image: do not include error.hJörg Krause
serve_image does not use anything from it and it is not available with all C libraries, e.g. musl. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2011-06-29mtd-utils: remove whitespace at end of linesBrian Norris
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
2011-04-22serve_image: missing commaBrian Norris
Somebody didn't compile-test commit 9f4e6840. Artem: my fault, apologies. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2011-04-21serve_image: adjust classifier and type for printfAndy Shevchenko
The argument type of printf is __off64_t, meanwhile the classifier is "%ld". We agreed to use PRIu64 in such case. Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2010-09-27mtd-utils: standardize PROGRAM_NAMEMike Frysinger
Make sure all the utils define PROGRAM_NAME and do so at the start of the file so that sub-headers may assume it exists. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2010-09-01rename crc32 to mtd_crc32Artem Bityutskiy
Because of namespace collisions mkfs.ubifs uses crc32() implementation from /lib/libz.so.1, which generates incompatible CRC and later on the kernel reports many CRC errors. Fix this by re-naming mtd-utils' crc32 function to mtd_crc32. Reported-by: Jon Povey <Jon.Povey@racelogic.co.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2010-07-13mtd-utils: move libmtd source files to lib/ subdirectoryKevin Cernekee
Source files for libmtd, crc32, and fec are scattered throughout the tree. Move them to a central location so they can be built into a common "libmtd.a" library used by all mtd-utils programs. This patch only renames/deletes files and does not change the content. Also modify the build system and source code so that libmtd.a can be built from a "common" location (lib/). Statically link all utilities at the top level with libmtd.a . Minor changes to mkfs.ubifs to allow using the common crc32 implementation. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-09-01Update usage information for serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-15Make redundancy amount easier to change in serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Switch multicast distribution system to round-robin modeDavid Woodhouse
Send one packet from each eraseblock in turn, rather than all packets for one eraseblock together. This means that bursts of loss are evenly spread between blocks. It also makes the client side a bit more complex if you can't assume that there's anywhere except the flash to store its intermediate data. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Rearrange serve_image.c to allow for easily sending one packet per blockDavid Woodhouse
in round-robin fashion rather than full blocks one at a time. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-14Import FEC code from Luigi Rizzo's RMDPDavid Woodhouse
Paper: http://info.iet.unipi.it/~luigi/mccr6.ps.gz Code: http://info.iet.unipi.it/~luigi/rmdp980703.tgz Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-11Fix timing calculations for serve_imageDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-10Fine-tine the TX timing for serve_image.David Woodhouse
It just busy-waits until it's time to send the next packet now. Which sucks, but gives us good timing for debugging. Needs work (and actually if we have hrtimers we probably _can_ sleep and still have proper timing). Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Change multicast protocol to allow for a resending flagDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-09Add utilities for multicast send/receive of MTD images.David Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>