zaurus: fix jffs2 and ubifs images for collie
PATCH 1/1 zaurus: fix jffs2 and ubifs images for collie
* sumtool doesn't accept the same params used in mkfs.jffs2
* ubi calculation was wrong, erasesize is 0x20000
* and subpages seem to be 512 bytes
Signed-off-by Andrea Adami <[email protected]>
--- conf/machine/collie.conf | 2 -- conf/machine/include/zaurus.inc | 11 +++++++---- 2 files changed, 7 insertions(+), 6 deletions(-)
conf/machine/collie.conf +0 -2
@@ -6,8 +6,6 @@ require conf/machine/include/zaurus.inc require conf/machine/include/tune-strongarm1100.inc ROOT_FLASH_SIZE = "14" -# actually 14680064 -EXTRA_IMAGECMD_jffs2 = "--pad=14680064 --little-endian --eraseblock=0x20000 -n" MACHINE_GUI_CLASS = "smallscreen" MACHINE_DISPLAY_WIDTH_PIXELS = "240"
conf/machine/include/zaurus.inc +7 -4
@@ -19,10 +19,10 @@ ERASEBLOCKSIZE_spitz = "0x20000" # UBINIZE_ARGS_spitz = "-m 512 -p 16384 -s 256" # ERASEBLOCKSIZE_spitz = "0x4000" -# UBI: max collie (14.125 = 904 PEBs) -# 14.125 x 1024 : 16 = 904 PEBs -MKUBIFS_ARGS_collie = "-m 512 -e 15872 -c 904 -x zlib" -UBINIZE_ARGS_collie = "-m 512 -p 16384 -s 256" +# UBI: max collie (14.125 = 113 PEBs) +# 14.125 x 1024 : 128 = 113 PEBs +MKUBIFS_ARGS_collie = "-m 2048 -e 129024 -c 113 -x zlib" +UBINIZE_ARGS_collie = "-m 2048 -p 131072 -s 512" # UBI: max poodle (64-7 MiB = 3648 PEBs) # 57 x 1024 : 16 = 3648 PEBs
@@ -53,6 +53,9 @@ UBINIZE_ARGS_spitz = "-m 2048 -p 131072 -s 512" EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}" EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}" +EXTRA_IMAGECMD_jffs2_collie = "--pad=14680064 --little-endian --eraseblock=0x20000 -n" +EXTRA_IMAGECMD_sum.jffs2_collie = "--pad -l --eraseblock=0x20000 -n" + ######### # xserver #########
Signature · 1 line
1.7.8.6