Movitool

Movitool enables custom firmware cookers to convert a movinand.bin image into a raw disk image of the entire MoviNAND.
After conversion, the three RFS partitions in this image can be mounted (RW!) as normal FAT partitions (journal file is empty and no transaction will be opened) of a raw dd image file and then converted into movinand.bin back for flash.

From /etc/rc.d/rc.sysinit in initrd.cramfs you can see that RFS partitions are:

## mount movinand 1st partition (UMS)
mount -t rfs /dev/mmca1 /mnt/ums -o codepage=utf8

## mount movinand 2nd partition (412MB)
mount -t rfs /dev/mmca2 /opt -o codepage=utf8

## mount movinand 3rd partition (CSC)
mount -t rfs /dev/mmca3 /mnt/csc -o codepage=utf8


To help managing the raw image extracted with, some image manipulation scripts has been created.

This is the context help of the tool:

                       __   ___ _ _______ ____    ____
                      /  |\/  /| |_   ___| __ \  / _  |\
        -------------/   |/  / | |_\  \__|   _/\/ /\/ / |--------------
      --------------/  /|   / /| |  \  \ | | \\/ /_/ / /-------------
                   /__/ |__/ / |_|   \__\|_|\_\|___ / /
                   \__\/\__\/  \_\    \__\__\\_\____\/  THe DeMoN (c)

                          CoMPuTeR'S HeaVen SoCieTy

        Samsung M1/H1 movinand.bin file management tool Ver. 0.0.1alpha

Usage: movitool <-s|-x|-c> [-m <movinand.bin file>] [-i <drive image file>] [-o <drive image file>]

Options:
        -s  Scan movinand.bin file.
        -x  Extract filesystems from movinand.bin to drive image file.
        -c  Create movinand.bin from drive image file.
        -m  Specifies a movinand.bin file (default: movinand.bin).
        -i  Specifies input drive image file (needed for -c).
        -o  Specifies output drive image file (default: out.img).


Donwload:

movitool-0.0.1alpha.tar.gz (16.4 KB) - "MoviTool 0.0.1 alpha"