Skip to contentSkip to conversation

meta-handheld: adjust EXTRA_IMAGECMD_jffs2 after oe-core changes

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

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 meta-handheld: adjust EXTRA_IMAGECMD_jffs2 after oe-core changes

The machine configuration file must specify a customized EXTRA_IMAGECMD_jffs2 to override the defaults of image_types.bbclass. Images for NOR flashes should be built with cleanmarkers.

Fix the declaration of padding for collie:
the short form doesn't accept <size> arument

---
 conf/machine/collie.conf     | 2 +-
 conf/machine/h3600.conf      | 2 ++
 conf/machine/jornada56x.conf | 2 ++
 conf/machine/jornada7xx.conf | 4 ++++
 conf/machine/simpad.conf     | 2 ++
 5 files changed, 11 insertions(+), 1 deletion(-)
conf/machine/collie.conf +1 -1
index 8d1042e..bec8842 100644
@@ -7,7 +7,7 @@ require conf/machine/include/tune-strongarm1100.inc
 
 JFFS2_ERASEBLOCK = "0x20000"
 
-EXTRA_IMAGECMD_jffs2 = "-p 14680064 -l -e ${JFFS2_ERASEBLOCK}"
+EXTRA_IMAGECMD_jffs2 = "--pad=14680064 -l -e ${JFFS2_ERASEBLOCK}"
 
 # UBI: max collie (14.125 = 113 PEBs)
 # 14.125 x 1024 : 128 = 113 PEBs
conf/machine/h3600.conf +2 -0
index 53e10cd..6e9941b 100644
@@ -31,6 +31,8 @@ MACHINE_EXTRA_RDEPENDS = "mtd-utils mtd-utils-jffs2"
 MACHINE_EXTRA_RRECOMMENDS = ""
 
 JFFS2_ERASEBLOCK = "0x40000"
+# For NOR flash we need the cleanmarkers so override the defaults
+EXTRA_IMAGECMD_jffs2 = "-p -l -e ${JFFS2_ERASEBLOCK}"
 EXTRA_IMAGECMD_jffs2_append = " ; echo '${IMAGE_NAME}  ${IMAGE_NAME}.rootfs.jffs2 - root' >> ${DEPLOY_DIR_IMAGE}/reflash.ctl"
 
 #
conf/machine/jornada56x.conf +2 -0
index 746e1eb..645f128 100644
@@ -7,6 +7,8 @@ PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
 BOOTSTRAP_EXTRA_RDEPENDS = "kernel kernel-modules module-init-tools" 
 
 JFFS2_ERASEBLOCK = "0x40000"
+# For NOR flash we need the cleanmarkers so override the defaults
+EXTRA_IMAGECMD_jffs2 = "-p -l -e ${JFFS2_ERASEBLOCK}"
 
 SERIAL_CONSOLE = "115200 ttySA0"
 
conf/machine/jornada7xx.conf +4 -0
index d9f05df..c988694 100644
@@ -8,6 +8,10 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-jlime-jornada7xx"
 MACHINE_FEATURES = "apm alsa pcmcia irda keyboard touchscreen screen vfat"
 MACHINE_EXTRA_RDEPENDS = "kernel-modules bluez-dtl1-workaround"
 
+JFFS2_ERASEBLOCK = "0x40000"
+# For NOR flash we need the cleanmarkers so override the defaults
+EXTRA_IMAGECMD_jffs2 = "-p -l -e ${JFFS2_ERASEBLOCK}"
+
 #screeninfo
 MACHINE_GUI_CLASS = "smallscreen"
 MACHINE_DISPLAY_WIDTH_PIXELS = "640"
conf/machine/simpad.conf +2 -0
index d5ee19c..a6d49a5 100644
@@ -9,6 +9,8 @@ MACHINE_FEATURES = "apm pcmcia irda screen touchscreen vfat"
 PREFERRED_PROVIDER_virtual/kernel = "linux"
 
 JFFS2_ERASEBLOCK = "0x20000"
+# For NOR flash we need the cleanmarkers so override the defaults
+EXTRA_IMAGECMD_jffs2 = "-p -l -e ${JFFS2_ERASEBLOCK}"
 
 MACHINE_GUI_CLASS = "bigscreen"
 MACHINE_DISPLAY_WIDTH_PIXELS = "800"
Signature · 1 line
1.8.1.5