I'm having some problems to flashing /system. I flashed CWM (2013/2/13) and used update-binary
included in your zip package to made my own updater-script
but can't mount and flash /system in any way.
my part of the script:
Code: Select all
format("ext4", "MTD", "system", "0", "/system");
mount("ext4", "MTD", "system", "/system");
Failed to mount /dev/block/mtdblock9 on /system: Invalid argument
mtd mount of system failed: Invalid argument
strange. "format" was done successfully? it should be logged in recovery.log.
dmesg may have some information.
so, I tried to mount /system manually via adb and this is the output of adb shell mount system
mount: mounting /dev/block/mtd/by-name/system on /system failed: Invalid argumen
any idea how to solve this?
can you explain what you typed exactly on adb shell?
I need more information.
I remembered. you must NOT specify "MTD" for format(). partition is just erased(filled by 0xff) if it's "MTD". it's OK for yaffs but not OK for ext file system.
please specify "EMMC" or any other string for format(), it makes file system properly.
"MTD" is OK for mount(), it translates name of partition (e.g. "system") into real path (/dev/...).
strange? yes, I think so too. but it's not my code. it's CWM code