The memcpy command can be much faster if we do not copy in byte mode. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- commands/mem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index 73bf915..8df5f0a 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -418,7 +418,7 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[]) char *sourcefile = DEVMEM; char *destfile = DEVMEM; int sourcefd, destfd; - int mode = O_RWSIZE_1; + int mode = 0; struct stat statbuf; int ret = 0; -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox