hello I would like created my own image nfi UBIFS extractor, but there is a dream sousi not use standard parameter is created that is how their UBIFS Image
"mkfs.ubifs -r /hdd/image/rootfs -o /hdd/image/rootfs.ubifs.img -m 2048 -e 126976 -c 1961 -x favor_lzo -F" the-c option is problematic because what is set to 1961 should be 2048, is that someone has a solution
here is my complete script to extract a picture UBIFS
#!/bin/sh MEDIA=media AUTOFS=autofs UBIFS=/dev/mtd3 UBI=ubi3_0 UBIDEVICE=3 VERSION=3.3.0 KERNEL=`uname -r` umount /tmp/ubi > /dev/null 2>&1 ln -s /hdd/image /image /usr/vuplus-executeur/ubidetach -p /dev/mtd3 > /dev/null 2>&1 rmmod nandsim > /dev/null 2>&1 mkdir /tmp/ubi > /dev/null 2>&1 cd /image unzip *.zip sleep 2 cd /hdd if [ -f "swapfile" ]; then find swapfile | grep swapfile else if [ -f "/dev/zero" ]; then dd if=/dev/zero of=/media/hdd/swapfile bs=1024 count=132768 sleep 2 mkswap /media/hdd/swapfile fi fi insmod /usr/vuplus-executeur/nandsim-$KERNEL-et9x00.ko cache_file=/hdd/image/my_image first_id_byte=0xec second_id_byte=0xd3 \ third_id_byte=0x51 fourth_id_byte=0x95 > /dev/null 2>&1 /usr/vuplus-executeur/flash_eraseall -q $UBIFS cd /image if [ -f "/image/et9x00/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/et9x00/rootfs.bin else if [ -f "/image/et6x00/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/et6x00/rootfs.bin else if [ -f "image/et5x00/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/et5x00/rootfs.bin else if [ -f "/image/et4x00/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/et4x00/rootfs.bin else if [ -f "/image/xp1000/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/xp1000/rootfs.bin else if [ -f "/image/venton-hd1/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/venton-hd1/rootfs.bin else if [ -f "/image/venton-hdx/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/venton-hdx/rootfs.bin else if [ -f "/image/vuplus/duo/root_cfe_auto.jffs2" ]; then nandwrite -p /dev/mtd3 /image/vuplus/duo/root_cfe_auto.jffs2 else if [ -f "/image/vuplus/solo2/root_cfe_auto.bin" ]; then nandwrite -p /dev/mtd3 /image/vuplus/solo2/root_cfe_auto.bin else if [ -f "/image/en2/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/en2/rootfs.bin else if [ -f "/image/odinm9/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/odinm9/rootfs.bin else if [ -f "/image/odinm7/rootfs.bin" ]; then nandwrite -p /dev/mtd3 /image/odinm7/rootfs.bin else if [ -f "/image/root.ubi" ]; then nandwrite -p /dev/mtd3 /image/root.ubi fi fi fi fi fi fi fi fi fi fi fi fi fi /usr/vuplus-executeur/ubiattach /dev/ubi_ctrl -O 2048 -m $UBIDEVICE -d $UBIDEVICE sleep 3 mkdir /tmp/ubi > /dev/null 2>&1 sleep 1 mount -t ubifs $UBI /tmp/ubi cd /hdd/image rm -Rf et* xp1000 vuplus venton-hd* en2 odinm* rm -Rf *.zip rm -Rf /image echo 4 "installatation de l'image terminé" exit 0
for nfi, I cut manually for now, just wanted to ente UBI