meta-handheld: adjust EXTRA_IMAGECMD_jffs2 after oe-core changes
PATCH 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
Signed-off-by Andrea Adami <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Please disregard this one, there is a typo in simpad.conf. Take Patch v2 please.
Quoted 86 lines · Andrea Adami
The machine configuration file must specify a customized
EXTRA_IMAGECMD_jffs2to 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> arumentSigned-off-by Andrea Adami <[email protected]>--- 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@@ -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 PEBsconf/machine/h3600.conf +2
-0@@ -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@@ -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@@ -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
-1@@ -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" --1.8.1.5