[Dev-Guide] Developers reference - Ongoing -- Updated 2-2-11
Alright seems we've gotten off to a slow start on rom developing so I figured I'd take a look at what the issues are and post a few tips/tricks. This really isn't a Q&A for every issue that is come across, but will definitely suffice to get some developing going on some roms.
First let's start of with what I'm seeing as an issue for dev's coming from phones like the Evo and other phones that use MTD partitions. I'm only going to post snippets for edify/updater scripts. The reason for this, is IMO all dev's should use this style of scripting. Amend/Update scripts are old tech and need to be gone anyways. Also because clockworkmod 3.0 only supports edify/updater scripting. Something like this well help you out - Link
- but I'll post a little more detail and examples of scripting.
Wrong way to format /system
Correct way on our phone using ext3 partition.
Wrong way to mount /system
format("ext3", "EMMC", "/dev/block/mmcblk0p26");
Correct way to mount /system on our phone using ext3 partition.
mount("MTD", "system", "/system");
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/system");
The same applies to other partitions like /data. Here's a list of partitions and their mounting points.
/boot - /dev/block/mmcblk0p22
/cache - /dev/block/mmcblk0p28
/data - /dev/block/mmcblk0p27
/sdcard - /dev/block/mmcblk1p1
/system - /dev/block/mmcblk0p26
- Stock rooted & deodex'd rom for dev's to base off of. This has the updater-script fixed and a new update-binary. There was also an issue with the HTC_IME.apk that has been fixed. I am not supporting this rom, but you shouldn't have any issues with it as a stock base.
- Mounting partitions read/writable for emmc.
mount -o rw,remount -t emmc /dev/block/mmcblk0p26 /system
mount -o rw,remount -t emmc /dev/block/mmcblk0p27 /data
mount -o rw,remount -t emmc /dev/block/mmcblk0p28 /cache
Alright, this is just a start. I'll be updating & adding stuff to this as we go. i just wanted to get this straightened out so newer dev's and ones coming from phones like the evo will know how to properly use these. If I note or state anything incorrectly, please don't hesitate to let me know... I'll get it fixed asap. Also, anybody who would like to contribute just reply to this thread and let me know about it. I'll add it to this guide. Bcnice20 should also be replying and adding stuff as we go along.
Device-HTC Evo 4G LTE
Join me. chat.freenode.net #evervolv
Follow me and evervolv on twitter @preludedrew