summaryrefslogtreecommitdiffstats
path: root/commands/loadb.c
diff options
context:
space:
mode:
authorNishanth Menon <x0nishan@ti.com>2008-08-19 17:39:00 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-20 09:17:33 +0200
commite320ef5f9eab8cb37f4983ced30948079b0874e3 (patch)
treeeb33119356b6ed1fec42c037005564e17f617669 /commands/loadb.c
parent580cd4ff283fd9aa36ea077c6cf136153f3ea044 (diff)
downloadbarebox-e320ef5f9eab8cb37f4983ced30948079b0874e3.tar.gz
barebox-e320ef5f9eab8cb37f4983ced30948079b0874e3.tar.xz
loadb: change default download file
The default download device was /dev/mem Quote Sascha: "This is a quite dangerous thing. There are quite some boards out there which have NOR Flash on 0x0. With a default file of /dev/mem we would overwrite U-Boot." Change default device to image.bin Signed-off-by: Nishanth Menon <x0nishan@ti.com>
Diffstat (limited to 'commands/loadb.c')
-rw-r--r--commands/loadb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/loadb.c b/commands/loadb.c
index 1a3c30f7f6..b6beb3fb37 100644
--- a/commands/loadb.c
+++ b/commands/loadb.c
@@ -59,7 +59,7 @@
#define BREAK_TYPE 'B'
#define tochar(x) ((char) (((x) + SPACE) & 0xff))
#define untochar(x) ((int) (((x) - SPACE) & 0xff))
-#define DEF_FILE "/dev/mem"
+#define DEF_FILE "image.bin"
static int ofd; /* output file descriptor */