My old trusty P8000 stopped reading it's sim card and I have to get a new phone, so I thought this would be the perfect time to do a little hacking on it.
I'm a total noob to android, I've managed to root the phone and install CWM.
I've also cooked up a custom rom in android kitchen, but I'm having some problems passing the proper mount command to the update-binary.
My updater script reads:
When I run the update.zip in CWM it comes back with installation complete, but the log says unmount of system failed: no such volume.
Does anyone know the proper mount commands for these old MTD flash drives?
Yes I'm sure the "system" partition is /dev/block/mtdblock5
The format command only works if I use:
It doesn't work as:
Something to do with the MTD partition table being hardcoded into the kernel.
Also, is there any way to view CWM installer logs other than from the advanced menu on the phone. I'm only able to see the last few lines of the log, and it doesn't give me any clue why "/system" doesn't mount.
Thanks for any advice you can offer.
I'm a total noob to android, I've managed to root the phone and install CWM.
I've also cooked up a custom rom in android kitchen, but I'm having some problems passing the proper mount command to the update-binary.
My updater script reads:
Code:
format("yaffs2", "MTD", "system");
mount("yaffs2", "MTD", "/dev/block/mtdblock5", "/system");
show_progress(0.500000, 0);
package_extract_dir("system", "/system");Does anyone know the proper mount commands for these old MTD flash drives?
Yes I'm sure the "system" partition is /dev/block/mtdblock5
Code:
~ # cat /proc/mtd
dev: size erasesize name
mtd0: 008c0000 00040000 "boot"
mtd1: 008c0000 00040000 "recovery"
mtd2: 00f00000 00040000 "fota"
mtd3: 09880000 00040000 "cache"
mtd4: 002c0000 00040000 "persist"
mtd5: 0e940000 00040000 "system"
mtd6: 00280000 00040000 "splash"
mtd7: 20a00000 00040000 "userdata"Code:
format("yaffs2", "MTD", "system");Code:
format("yaffs2", "MTD", "/system");Also, is there any way to view CWM installer logs other than from the advanced menu on the phone. I'm only able to see the last few lines of the log, and it doesn't give me any clue why "/system" doesn't mount.
Thanks for any advice you can offer.
Aucun commentaire:
Enregistrer un commentaire