1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/tools/root.make b/tools/root.make
index 1ac5568..ee753dc 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -201,10 +201,11 @@ $(BUILDDIR)/rombox.bin : $(BUILDDIR)/rombox.elf
 # If there's a flashfile defined for this target (rockbox.ucl for Archos
 # models) Then check if the mkfirmware script fails, as then it is (likely)
 # because the image is too big and we need to create a compressed image
-# instead.
+# instead. To avoid confusing error message, those are ignored for the first
+# round
 #
 $(BUILDDIR)/$(BINARY) : $(BUILDDIR)/rockbox.bin $(FLASHFILE)
-	$(call PRINTS,SCRAMBLE $(notdir $@))($(MKFIRMWARE) $< $@; \
+	$(call PRINTS,SCRAMBLE $(notdir $@))($(MKFIRMWARE) $< $@ 2> /dev/null; \
 	stat=$$?; \
 	if test -n "$(FLASHFILE)"; then \
 	  if test "$$stat" -ne 0; then \
diff --git a/tools/scramble.c b/tools/scramble.c
index 6839733..f854c7d 100644
--- a/tools/scramble.c
+++ b/tools/scramble.c
@@ -488,7 +488,7 @@ int main (int argc, char** argv)
     
     if ((method == scramble) &&
         ((length + headerlen) >= size_limit[model_id])) {
-        printf("error: firmware image is %ld bytes while max size is %u!\n",
+        fprintf(stderr, "error: firmware image is %ld bytes while max size is %u!\n",
                length + headerlen,
                size_limit[model_id]);
         fclose(file);