[Miscellaneous Android Development] KlotX:
Hi m@nish123

Can you help me out ? I have a Tinji GT-i9300 which has 500MB for internal memory and 2GB for phone storage, while supporting an external SD Card as well. The idea is to set it to 2.5GB of internal memory. But since my files are somehow different than the ones you have in the examples, I'd better ask someone experienced for help than to try to make it myself without fully understanding what to change and where.

This phone doesn't have EBR2, only MBR and EBR1 which are attached along with the scatter file.

Here goes the mount points:

rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/emmc@android /system ext4 ro,noatime,user_xattr,commit=1,barrier=1,data=ordered,noauto_da_alloc 0 0
/emmc@usrdata /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/emmc@cache /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/emmc@sec_ro /system/secro ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/vold/179:97 /mnt/sdcard2 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:6 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:6 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

cat /proc/emmc

root@android:/ # cat /proc/emmc
partno: start_sect nr_sects partition_name
emmc_p1: 00000020 00000002 "ebr1"
emmc_p2: 0000ac40 00002800 "sec_ro"
emmc_p3: 00010740 00100000 "android"
emmc_p4: 00110f40 00100000 "cache"
emmc_p5: 00211740 00100000 "usrdata"
emmc_p6: 00311f40 0041b8c0 "fat"

cat /proc/partitions

root@android:/ # cat /proc/partitions
major minor #blocks name

7 0 22901 loop0
7 2 9387 loop2
7 3 42651 loop3
179 0 3763200 mmcblk0
179 1 1 mmcblk0p1
179 2 5120 mmcblk0p2
179 3 524288 mmcblk0p3
179 4 524288 mmcblk0p4
179 5 524288 mmcblk0p5
179 6 2153568 mmcblk0p6
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0
179 96 7761920 mmcblk1
179 97 7760896 mmcblk1p1
254 0 22900 dm-0
254 2 9387 dm-2
254 3 42651 dm-3

df:

root@android:/ # df
Filesystem Size Used Free Blksize
/dev 236M 52K 236M 4096
/mnt/asec 236M 0K 236M 4096
/mnt/obb 236M 0K 236M 4096
/system 503M 295M 207M 4096
/data 503M 453M 50M 4096
/cache 503M 8M 495M 4096
/system/secro 4M 4M 868K 4096
/mnt/sdcard2 7G 3G 4G 32768
/mnt/sdcard 2G 1G 322M 4096
/mnt/secure/asec 2G 1G 322M 4096

I hope this helps..

From what I understood, my current EBR1 is

0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
00001c0 00 00 83 00 00 00 20 17 21 00 00 00 10 00 00 00
00001d0 00 00 83 00 00 00 20 1f 31 00 df e0 ce ff 00 00
00001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
0000200

and I need to change it to:

0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
00001c0 00 00 83 00 00 00 20 17 21 00 00 00 [COLOR="Red"]50[/COLOR] 00 00 00
00001d0 00 00 83 00 00 00 20 1f [COLOR="red"]71[/COLOR] 00 df e0 ce ff 00 00
00001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
0000200

Is this correct ???

Thanks in advance and for all your work on this.