- Nov 8, 2011
- 3,836
- 1,394
- Thread starter
- #16
@vampirefo
...this is clearly cool stuff
I would like to dual boot (own adapted) stock A2110 with (own built) CM-10.2
I see you copy to LNX for switching between tablet and SD situation.
May I ask: what is the magic to make boot believe /system and /data are relocated?
Thanks
The scripts just use cat to flash the boot.img from each OS one wants to boot.
For the OS on sdcard modify the boot.img to point to sdcard rather than tablet.
below is an example script, you can change it to suit your needs.
Code:
#!/system/bin/sh
if busybox test ! -f /mnt/sdcard2/dual_boot/custom_boot.img; then
echo no /mnt/sdcard2/dual_boot/custom_boot.img
exit 1
fi
cat /mnt/sdcard2/dual_boot/custom_boot.img > /dev/block/platform/sdhci-tegra.3/by-name/LNX
sync; sync; sync
echo rebooting to Custom JellyBean
sleep 2
reboot
in init.kai.rc change mount point of system to sdcard.
Code:
mount ext4 /dev/block/mmcblk1p2 /system rw
in fstab.kai change mount points to sdcard.
Code:
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
# We remount because we first mount as rw in order to generate NVSI symlink. See init.rc for details.
/dev/block/mmcblk1p2 /system ext4 ro,remount wait
/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 noatime,nosuid,nodev,journal_async_commit,data=writeback,nodelalloc,errors=panic wait
/dev/block/mmcblk1p3 /data ext4 noatime,nosuid,nodev,journal_async_commit,data=writeback,nodelalloc,errors=panic wait,encryptable=footer
Last edited: