From 24dfe525c201ab61cade8482b906201f96dc6903 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Mon, 29 Aug 2011 21:23:51 +0000
Subject: [PATCH] brcm47xx: fix padding of trx images, padjffs2 does not work
 properly on empty files by default

SVN-Revision: 28125
---
 target/linux/brcm47xx/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/brcm47xx/image/Makefile b/target/linux/brcm47xx/image/Makefile
index bc2ff3a8f1..f7cce16995 100644
--- a/target/linux/brcm47xx/image/Makefile
+++ b/target/linux/brcm47xx/image/Makefile
@@ -20,7 +20,7 @@ define Image/Prepare
 		clean install
 	echo -ne "\\x00" >> $(KDIR)/loader.gz
 	rm -f $(KDIR)/fs_mark
-	touch $(KDIR)/fs_mark
+	echo -ne '\xde\xad\xc0\xde' > $(KDIR)/fs_mark
 	$(call prepare_generic_squashfs,$(KDIR)/fs_mark)
 endef
 
-- 
GitLab