bigsupersquid
o_O
- Feb 19, 2011
- 1,971
- 284
- 0
The boot from card is ridiculously simple and easy to implement.
I used to have to pull all kinds of tricks like adding a delay in init, or using tassadar's init/preinit.rc from multirom.
aosp has fixed the mount process nicely since I messed with it in gingerbread.
archived.
these two files, init.qcom.rc and fstab.thunderc, in the device folders, make a recovery and zip which work out of the box to install to the 3 ext partitions mmcblk0p2, p3, and p4.
View attachment emmc.zip
ooooh, google is really working nicely towards compatibilities these days.
I used to have to pull all kinds of tricks like adding a delay in init, or using tassadar's init/preinit.rc from multirom.
aosp has fixed the mount process nicely since I messed with it in gingerbread.
archived.
Code:
here:
in init.qcom.rc
comment out the mount system, data and cache
mount them ext4 instead of yaffs and put their /dev/block/mmcblk0p* path instead of just their mtd@name.
like
# mount yaffs2 mtd@userdata /data nosuid nodev
mount ext4 /dev/block/mmcblk0p2 /data nosuid nodev
in fstab.thunderc
comment out the system, data and cache
again replace with ext4 and their dev paths instead of just their names.
like
/dev/block/mmcblk0p2 /data auto defaults
move the vold line above all the others, above the data system and cache lines
make ext4 sd partitions 2, 3, and 4 for data, system, cache
and in the install zip updater-scripts remove all mount mtd and format lines, and replace them with a busybox script run from the updater script to mount the correct ext partition instead of the mtd one the update-binary wants to. there may be a way to use EMMC instead of MTD and do it in the updater-script... someone savvy should check.
like, in the updater-script
package_extract_file("wipe.sh", "/tmp/wipe.sh");
set_perm(0, 0, 0777, "/tmp/wipe.sh");
run_program("/tmp/wipe.sh");
where wipe.sh is in the root of the zip file.
to mount:
in the .sh
#!/sbin/sh
busybox mount -t auto /dev/block/mmcblk0p2 /data
this should be enough to get what I have working for you, even though it's not step-by-step.
View attachment emmc.zip
ooooh, google is really working nicely towards compatibilities these days.
Last edited: