From 9ffb223d703a4bbb76e5278e59b3cc183f2f1aca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 Mar 2008 13:19:54 +0100 Subject: Adding --jffs2-eraseblock parameter. Marco sais, that flash devices often need a different erase size than mkfs.jffs2 defaults to. Hence, this parameter passes the blocksize to the mkfs.jffs2 call through --eraseblock option. --- helpers/lh_binary_rootfs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'helpers/lh_binary_rootfs') diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index cc8de11a4..97cdaabc0 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -150,15 +150,20 @@ case "${LH_CHROOT_FILESYSTEM}" in # Installing depends Install_package - # Remove old ext2 image + # Remove old jffs2 image if [ -f binary/${INITFS}/filesystem.jffs2 ] then rm -f binary/${INITFS}/filesystem.jffs2 fi + if [ -n "${LH_JFFS2_ERASEBLOCK}" ] + then + JFFS2_OPTIONS="--eraseblock=${LH_JFFS2_ERASEBLOCK}" + fi + case "${LH_CHROOT_BUILD}" in enabled) - Chroot "mkfs.jffs2 --root=chroot --output filesystem.jffs2" + Chroot "mkfs.jffs2 ${JFFS2_OPTIONS} --root=chroot --output filesystem.jffs2" # Move image mv chroot/filesystem.jffs2 binary/${INITFS} @@ -166,7 +171,7 @@ case "${LH_CHROOT_FILESYSTEM}" in ;; disabled) - mkfs.jffs2 --root=chroot --output binary/${INITFS}/filesystem.jffs2 + mkfs.jffs2 ${JFFS2_OPTIONS} --root=chroot --output binary/${INITFS}/filesystem.jffs2 ;; esac -- cgit v1.2.3