Skip to contentSkip to conversation

collie.conf: provide a custom EXTRA_IMAGECMD_sum.jffs2

PATCH New Andrea Adami 1 participant 1 message Oct 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 collie.conf: provide a custom EXTRA_IMAGECMD_sum.jffs2

Match the changes to image_types.bbclass in oe-core.

REMARKS:

Q: the sum.jffs2 image is really smaller than the .jffs2
A: If you run sumtool with --pad parameter then it pads the OUTPUT file with
0xFF to the end of the last used eraseblock.
If you have empty eraseblocks at the end of your INPUT image then the sumtool skips those.

---
 conf/machine/collie.conf | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
conf/machine/collie.conf +3 -1
index bec8842..c98d2f4 100644
@@ -6,8 +6,10 @@ require conf/machine/include/zaurus.inc
 require conf/machine/include/tune-strongarm1100.inc
 
 JFFS2_ERASEBLOCK = "0x20000"
-
+# For NOR flash we need the cleanmarkers so override the defaults
 EXTRA_IMAGECMD_jffs2 = "--pad=14680064 -l -e ${JFFS2_ERASEBLOCK}"
+# sumtool does not accept the argument for --pad
+EXTRA_IMAGECMD_sum.jffs2 = "-p -l -e ${JFFS2_ERASEBLOCK}"
 
 # UBI: max collie (14.125 = 113 PEBs)
 # 14.125 x 1024 : 128 = 113 PEBs
Signature · 1 line
1.8.1.5