Hello
I will try to be brief. I am trying to modify stock init.rc (ofc inside boot.img). I want to mount second partition(ext2) of my SD to root as /data. Also for performence I would like to leave /data/dalvik-cache on NAND yaffs2 partition. Issue is I dont know what options of mount I have to use.
If someone have knowledge about that, please devote me a little of your time.
I will try to be brief. I am trying to modify stock init.rc (ofc inside boot.img). I want to mount second partition(ext2) of my SD to root as /data. Also for performence I would like to leave /data/dalvik-cache on NAND yaffs2 partition. Issue is I dont know what options of mount I have to use.
Code:
93. on fs
94. # mount mtd partitions
95. # Mount /system rw first to give the filesystem a chance to save a checkpoint
96. mount yaffs2 mtd@system /system
97. mkdir /system/flex
98. mount yaffs2 mtd@system /system ro remount
99. [COLOR="Red"] mount ext2 mmc@blk0p2 /data[/COLOR] [COLOR="SeaGreen"][B][U]wait[/U] nosuid dev errors=continue[/B][/COLOR]
or [COLOR="Red"]/dev/block/mmcblk0p2[/COLOR]
# mount yaffs2 mtd@userdata /data nosuid nodev
100. mount yaffs2 mtd@cache /cache nosuid nodev
102. on post-fs
168. # create dalvik-cache and double-check the perms
169. mkdir /data/dalvik-cache 0771 system system [COLOR="MediumTurquoise"]# <- Should it be in "on fs" section?[/COLOR]
170. [COLOR="Red"]mount yaffs2 mtd@userdata /data/dalvik-cache [/COLOR][COLOR="SeaGreen"][B]nosuid nodev[/B][/COLOR]
171. chown system system /data/dalvik-cache
172. chmod 0771 /data/dalvik-cache
If someone have knowledge about that, please devote me a little of your time.