[DEV]Info about the DS - HTC Desire S

mount list:
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,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
/dev/block/mmcblk0p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p26 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p27 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p28 /devlog ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordere
d 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
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow
_other 0 0
/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.eamobile.nfsshift_na_wf-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.rovio.angrybirds-1 vfat ro,dirsync,nosuid,nodev,re
latime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortna
me=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/com.fridgecat.android.atilt-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/pl.idreams.skyforcereloaded-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-4 /mnt/asec/com.ArtInGames.AirAttackHD-1 vfat ro,dirsync,nosuid,no
dev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0
proc list:
Code:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 22dffe00 00000200 "system"
mmcblk0p27: 12bffe00 00000200 "cache"
mmcblk0p26: 496ffe00 00000200 "userdata"
mmcblk0p28: 014bfe00 00000200 "devlog"
mmcblk0p29: 00040000 00000200 "pdata"
dev block list:
Code:
brw------- root root 254, 4 2011-04-27 16:25 dm-4
brw------- root root 254, 3 2011-04-27 16:25 dm-3
brw------- root root 254, 2 2011-04-27 16:25 dm-2
brw------- root root 254, 1 2011-04-27 16:25 dm-1
brw------- root root 254, 0 2011-04-27 16:25 dm-0
brw------- root root 179, 65 2011-04-27 16:24 mmcblk1p1
brw------- root root 179, 64 2011-04-27 16:24 mmcblk1
brw------- root root 179, 28 2011-04-27 16:24 mmcblk0p28
brw------- root root 179, 27 2011-04-27 16:24 mmcblk0p27
brw------- root root 179, 26 2011-04-27 16:24 mmcblk0p26
brw------- root root 179, 25 2011-04-27 16:24 mmcblk0p25
brw------- root root 179, 24 2011-04-27 16:24 mmcblk0p24
brw------- root root 179, 23 2011-04-27 16:24 mmcblk0p23
brw------- root root 179, 22 2011-04-27 16:24 mmcblk0p22
brw------- root root 179, 21 2011-04-27 16:24 mmcblk0p21
brw------- root root 179, 20 2011-04-27 16:24 mmcblk0p20
brw------- root root 179, 19 2011-04-27 16:24 mmcblk0p19
brw------- root root 179, 18 2011-04-27 16:24 mmcblk0p18
brw------- root root 179, 17 2011-04-27 16:24 mmcblk0p17
brw------- root root 179, 16 2011-04-27 16:24 mmcblk0p16
brw------- root root 179, 15 2011-04-27 16:24 mmcblk0p15
brw------- root root 179, 14 2011-04-30 08:09 mmcblk0p14
brw------- root root 179, 13 2011-04-30 10:53 mmcblk0p13
brw------- root root 179, 12 2011-04-27 16:24 mmcblk0p12
brw------- root root 179, 11 2011-04-27 16:24 mmcblk0p11
brw------- root root 179, 10 2011-04-27 16:24 mmcblk0p10
brw------- root root 179, 9 2011-04-27 16:24 mmcblk0p9
brw------- root root 179, 8 2011-04-27 16:24 mmcblk0p8
brw------- root root 179, 7 2011-04-27 16:24 mmcblk0p7
brw------- root root 179, 6 2011-04-27 16:24 mmcblk0p6
brw------- root root 179, 5 2011-04-27 16:24 mmcblk0p5
brw------- root root 179, 4 2011-04-27 16:24 mmcblk0p4
brw------- root root 179, 3 2011-04-27 16:24 mmcblk0p3
brw------- root root 179, 2 2011-04-27 16:24 mmcblk0p2
brw------- root root 179, 1 2011-04-27 16:24 mmcblk0p1
brw------- root root 179, 0 2011-04-27 16:24 mmcblk0
brw------- root root 7, 7 2011-04-27 16:24 loop7
brw------- root root 7, 6 2011-04-27 16:24 loop6
brw------- root root 7, 5 2011-04-27 16:24 loop5
brw------- root root 7, 4 2011-04-27 16:24 loop4
brw------- root root 7, 3 2011-04-27 16:24 loop3
brw------- root root 7, 2 2011-04-27 16:24 loop2
brw------- root root 7, 1 2011-04-27 16:24 loop1
brw------- root root 7, 0 2011-04-27 16:24 loop0
drwxr-xr-x root root 2011-04-27 16:24 vold
drwxr-xr-x root root 2011-04-27 16:24 platform
For those of us that dont have this information to hand

yeah thats usefull ;-)
thx dude... so i didn´t have to open the 100. terminal window to check something
i´m to lazy to save this in a txt file... now it´s bookmarked ;-)
regards

i am s-on !
i did this :
i put clockworkmods recovery on my SD root.
then temp root with gingerbreak1.2.
then in a adb shell i type su klik allow, and get temproot
#
then i backup my ori recovery just incase we overwrite it ..
dont worry about phone saying SD not mounted its cached.
dd if=/dev/block/mmcblk0p21 of=/mnt/sdcard/part21.img
now i flash clockworkmods recovery
dd if=/mnt/sdcard/recovery.img of=/dev/block/mmcblk0p21
it finish without errors
but when i reboot its not been flashed, allthoe it have made a backup of ori recovery on sdcard.
hope someone can use this info
THX
marsdroid

brokenworm said:
i am s-on !
i did this :
i put clockworkmods recovery on my SD root.
then temp root with gingerbreak1.2.
then in a adb shell i type su klik allow, and get temproot
#
then i backup my ori recovery just incase we overwrite it ..
dont worry about phone saying SD not mounted its cached.
dd if=/dev/block/mmcblk0p21 of=/mnt/sdcard/part21.img
now i flash clockworkmods recovery
dd if=/mnt/sdcard/recovery.img of=/dev/block/mmcblk0p21
it finish without errors
but when i reboot its not been flashed, allthoe it have made a backup of ori recovery on sdcard.
hope someone can use this info
THX
marsdroid
Click to expand...
Click to collapse
did you tried to flash the unsecured boot.img i posted in that way? perhaps, if thats work, with that one you are able to root permantly (but still with S-ON). like on the wildfire...
this is a high risk operation... do it on your own risk... it´s just an idea i´ve had while reading your commend. can´t test it myself, cause i don´t have a s-on device here...

loveboatcaptain said:
did you tried to flash the unsecured boot.img i posted in that way? perhaps, if thats work, with that one you are able to root permantly (but still with S-ON). like on the wildfire...
this is a high risk operation... do it on your own risk... it´s just an idea i´ve had while reading your commend. can´t test it myself, cause i don´t have a s-on device here...
Click to expand...
Click to collapse
didnt try with partition 22 "boot" yet..

brokenworm said:
didnt try with partition 22 "boot" yet..
Click to expand...
Click to collapse
it´s a possibility... with that boot.img you are able to get root access in adb.
so you can mount /system r/w and push su files to it. so i think then would be a way to flash recovery after changing boot.img

loveboatcaptain said:
it´s a possibility... with that boot.img you are able to get root access in adb.
so you can mount /system r/w and push su files to it. so i think then would be a way to flash recovery after changing boot.img
Click to expand...
Click to collapse
G:\adb>adb shell
$ su
su
# dd if=/dev/block/mmcblk0p22 of=/mnt/sdcard/22.img
dd if=/dev/block/mmcblk0p22 of=/mnt/sdcard/22.img
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.452 secs (9279433 bytes/sec)
# dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblk0p22
dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblk0p22
5676+0 records in
5676+0 records out
2906112 bytes transferred in 0.906 secs (3207629 bytes/sec)
# sync
sync
#
i did not brick
can you plz post some adb mounting commands.. im rusty

nice trying bro, but we been there, and i done that
and failed ;/ i tried every possible way so far...
so if you would like to try something, it has to be something new not done so far
oh for others, yes ppl from unrevoked looked and where like ok thats not gonna work...
bin4ry is still busy with stuff... whenever hes done with it, and it will succeed all the newer devices will be rooted, but we never know if he will succeed

Lets Hope So...
Sent from my HTC Desire S using XDA Premium App

MarylandCookie said:
mount list:
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,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
/dev/block/mmcblk0p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p26 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p27 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered
0 0
/dev/block/mmcblk0p28 /devlog ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordere
d 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
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow
_other 0 0
/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.eamobile.nfsshift_na_wf-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.rovio.angrybirds-1 vfat ro,dirsync,nosuid,nodev,re
latime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortna
me=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/com.fridgecat.android.atilt-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/pl.idreams.skyforcereloaded-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-4 /mnt/asec/com.ArtInGames.AirAttackHD-1 vfat ro,dirsync,nosuid,no
dev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0
proc list:
Code:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 22dffe00 00000200 "system"
mmcblk0p27: 12bffe00 00000200 "cache"
mmcblk0p26: 496ffe00 00000200 "userdata"
mmcblk0p28: 014bfe00 00000200 "devlog"
mmcblk0p29: 00040000 00000200 "pdata"
dev block list:
Code:
brw------- root root 254, 4 2011-04-27 16:25 dm-4
brw------- root root 254, 3 2011-04-27 16:25 dm-3
brw------- root root 254, 2 2011-04-27 16:25 dm-2
brw------- root root 254, 1 2011-04-27 16:25 dm-1
brw------- root root 254, 0 2011-04-27 16:25 dm-0
brw------- root root 179, 65 2011-04-27 16:24 mmcblk1p1
brw------- root root 179, 64 2011-04-27 16:24 mmcblk1
brw------- root root 179, 28 2011-04-27 16:24 mmcblk0p28
brw------- root root 179, 27 2011-04-27 16:24 mmcblk0p27
brw------- root root 179, 26 2011-04-27 16:24 mmcblk0p26
brw------- root root 179, 25 2011-04-27 16:24 mmcblk0p25
brw------- root root 179, 24 2011-04-27 16:24 mmcblk0p24
brw------- root root 179, 23 2011-04-27 16:24 mmcblk0p23
brw------- root root 179, 22 2011-04-27 16:24 mmcblk0p22
brw------- root root 179, 21 2011-04-27 16:24 mmcblk0p21
brw------- root root 179, 20 2011-04-27 16:24 mmcblk0p20
brw------- root root 179, 19 2011-04-27 16:24 mmcblk0p19
brw------- root root 179, 18 2011-04-27 16:24 mmcblk0p18
brw------- root root 179, 17 2011-04-27 16:24 mmcblk0p17
brw------- root root 179, 16 2011-04-27 16:24 mmcblk0p16
brw------- root root 179, 15 2011-04-27 16:24 mmcblk0p15
brw------- root root 179, 14 2011-04-30 08:09 mmcblk0p14
brw------- root root 179, 13 2011-04-30 10:53 mmcblk0p13
brw------- root root 179, 12 2011-04-27 16:24 mmcblk0p12
brw------- root root 179, 11 2011-04-27 16:24 mmcblk0p11
brw------- root root 179, 10 2011-04-27 16:24 mmcblk0p10
brw------- root root 179, 9 2011-04-27 16:24 mmcblk0p9
brw------- root root 179, 8 2011-04-27 16:24 mmcblk0p8
brw------- root root 179, 7 2011-04-27 16:24 mmcblk0p7
brw------- root root 179, 6 2011-04-27 16:24 mmcblk0p6
brw------- root root 179, 5 2011-04-27 16:24 mmcblk0p5
brw------- root root 179, 4 2011-04-27 16:24 mmcblk0p4
brw------- root root 179, 3 2011-04-27 16:24 mmcblk0p3
brw------- root root 179, 2 2011-04-27 16:24 mmcblk0p2
brw------- root root 179, 1 2011-04-27 16:24 mmcblk0p1
brw------- root root 179, 0 2011-04-27 16:24 mmcblk0
brw------- root root 7, 7 2011-04-27 16:24 loop7
brw------- root root 7, 6 2011-04-27 16:24 loop6
brw------- root root 7, 5 2011-04-27 16:24 loop5
brw------- root root 7, 4 2011-04-27 16:24 loop4
brw------- root root 7, 3 2011-04-27 16:24 loop3
brw------- root root 7, 2 2011-04-27 16:24 loop2
brw------- root root 7, 1 2011-04-27 16:24 loop1
brw------- root root 7, 0 2011-04-27 16:24 loop0
drwxr-xr-x root root 2011-04-27 16:24 vold
drwxr-xr-x root root 2011-04-27 16:24 platform
For those of us that dont have this information to hand
Click to expand...
Click to collapse
THIS SHOULD GET STICKIE.
Sent from my HTC Desire S using XDA Premium App

brokenworm said:
G:\adb>adb shell
$ su
su
# dd if=/dev/block/mmcblk0p22 of=/mnt/sdcard/22.img
dd if=/dev/block/mmcblk0p22 of=/mnt/sdcard/22.img
8192+0 records in
8192+0 records out
4194304 bytes transferred in 0.452 secs (9279433 bytes/sec)
# dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblk0p22
dd if=/mnt/sdcard/boot.img of=/dev/block/mmcblk0p22
5676+0 records in
5676+0 records out
2906112 bytes transferred in 0.906 secs (3207629 bytes/sec)
# sync
sync
#
i did not brick
can you plz post some adb mounting commands.. im rusty
Click to expand...
Click to collapse
try flashing over Rom manager. it support desire s, i have done with rom manager. it works. (i have s-off)

but rom manager doesn't works with s-on cause it's "destroying" the sdcard mount so rom manager doesn't recognize it

Related

[DEV][14 OCT 11] DEV naming convention (plus more) READ BEFORE CREATING THREAD!

What is the Development Section For?
Things that are NOT development are:
Basic questions
Requests for ETAs
Themes
Posting apps you find on the internet
Comparing ROMs or expressing your opinion, that's what the General Section is for.
Development Section is for:
ROM
KERNEL
RECOVERY
ROOT
HBOOT
RADIO
TWEAKS
etc...
It is more than likely that a thread will already exist covering the ROM that you're intending to post about, whether you're asking for general advice, posting a bug report or making a general observation, please try to use the existing thread rather than creating a new one.
If you are unsure as to whether a thread exists then first look in the Development INDEX in an attempt to identify the thread where your comment, questions or post should possibly be directed.
If you don't yet have enough posts to post within the DEVELOPMENT section, unfortunately these are the rules, please don't spam other threads, there are plenty of other forums within XDA which cover a wide range of topics and these should enable you to make several posts easily, repeating spamming others posts just simply annoys other users - which is something that you don't want to do.
You can always create a question in the GENERAL section and it will be answered. Users will understand why your questions appear to be in the wrong place as we've all been there once, the post count rule is created for a sensible reason, so that new users appreciate that the development section is meant for development only topics and to encourage users to put back into the forum before they take out - as that's how this community works.
Anyone who is unsure what the XDA Forum rules are, should take a few minutes to have read.
[MANDATORY][12 SEP 11] New development naming conventions
Hello, as we're all happily aware, our Forum has recently exploded with development! Which is a wonderful thing, so it would greatly assist everyone (especially the person who maintains the INDEX thread, me ).
If ALL threads, whether they be a RECOVERY, MOD, KERNEL, ROM, RADIO, INDEX, HBOOT or a TWEAK etc. Could have their thread title named in a similar, meaningful, consistent and helpful way.
If you are releasing a thread whether it be a ROM or somethings else or you already have existing threads which do not follow these conventions, it would be very much appreciated if you'd take a moment to ensure that your thread title conforms to this standard. Thanks
[ROM][DATE] [Name] [Version][KERNEL]
[ROM] of course meaning that your release is a ROM
[DATE] must be in the [Day Month Year] format [DD MON YY] ie [09 SEP 11]
[Name] is of course whatever your ROM is called. Try to make it meaningful and unique
[Version] is the version of both your ROM and the ANDROID build. Please be specific.
[KERNEL] what Kernel your ROM uses. Please be specific.
An example a ROM title would be as follows:
[ROM][05 SEP 11] DESIRE S Super Sense 3.0 ROM v1.1 | Working Camera! [v2.3.5] [STOCK v2.6.35.10]
Info from STOCK DESIRE S HBOOT 98.xx.xxxx
Output from following commands on STOCK Desire S
Code:
adb shell mount
adb shell cat proc/emmc
adb shell ls -l /dev/block
mount list:
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,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
/dev/block/mmcblk0p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p26 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p27 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p28 /devlog ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 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
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.eamobile.nfsshift_na_wf-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.rovio.angrybirds-1 vfat ro,dirsync,nosuid,nodev,re
latime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortna
me=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/com.fridgecat.android.atilt-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/pl.idreams.skyforcereloaded-1 vfat ro,dirsync,nosuid,n
odev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,
shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-4 /mnt/asec/com.ArtInGames.AirAttackHD-1 vfat ro,dirsync,nosuid,no
dev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0
proc list:
Code:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 22dffe00 00000200 "system"
mmcblk0p27: 12bffe00 00000200 "cache"
mmcblk0p26: 496ffe00 00000200 "userdata"
mmcblk0p28: 014bfe00 00000200 "devlog"
mmcblk0p29: 00040000 00000200 "pdata"
dev block list:
Code:
brw------- root root 254, 4 2011-04-27 16:25 dm-4
brw------- root root 254, 3 2011-04-27 16:25 dm-3
brw------- root root 254, 2 2011-04-27 16:25 dm-2
brw------- root root 254, 1 2011-04-27 16:25 dm-1
brw------- root root 254, 0 2011-04-27 16:25 dm-0
brw------- root root 179, 65 2011-04-27 16:24 mmcblk1p1
brw------- root root 179, 64 2011-04-27 16:24 mmcblk1
brw------- root root 179, 28 2011-04-27 16:24 mmcblk0p28
brw------- root root 179, 27 2011-04-27 16:24 mmcblk0p27
brw------- root root 179, 26 2011-04-27 16:24 mmcblk0p26
brw------- root root 179, 25 2011-04-27 16:24 mmcblk0p25
brw------- root root 179, 24 2011-04-27 16:24 mmcblk0p24
brw------- root root 179, 23 2011-04-27 16:24 mmcblk0p23
brw------- root root 179, 22 2011-04-27 16:24 mmcblk0p22
brw------- root root 179, 21 2011-04-27 16:24 mmcblk0p21
brw------- root root 179, 20 2011-04-27 16:24 mmcblk0p20
brw------- root root 179, 19 2011-04-27 16:24 mmcblk0p19
brw------- root root 179, 18 2011-04-27 16:24 mmcblk0p18
brw------- root root 179, 17 2011-04-27 16:24 mmcblk0p17
brw------- root root 179, 16 2011-04-27 16:24 mmcblk0p16
brw------- root root 179, 15 2011-04-27 16:24 mmcblk0p15
brw------- root root 179, 14 2011-04-30 08:09 mmcblk0p14
brw------- root root 179, 13 2011-04-30 10:53 mmcblk0p13
brw------- root root 179, 12 2011-04-27 16:24 mmcblk0p12
brw------- root root 179, 11 2011-04-27 16:24 mmcblk0p11
brw------- root root 179, 10 2011-04-27 16:24 mmcblk0p10
brw------- root root 179, 9 2011-04-27 16:24 mmcblk0p9
brw------- root root 179, 8 2011-04-27 16:24 mmcblk0p8
brw------- root root 179, 7 2011-04-27 16:24 mmcblk0p7
brw------- root root 179, 6 2011-04-27 16:24 mmcblk0p6
brw------- root root 179, 5 2011-04-27 16:24 mmcblk0p5
brw------- root root 179, 4 2011-04-27 16:24 mmcblk0p4
brw------- root root 179, 3 2011-04-27 16:24 mmcblk0p3
brw------- root root 179, 2 2011-04-27 16:24 mmcblk0p2
brw------- root root 179, 1 2011-04-27 16:24 mmcblk0p1
brw------- root root 179, 0 2011-04-27 16:24 mmcblk0
brw------- root root 7, 7 2011-04-27 16:24 loop7
brw------- root root 7, 6 2011-04-27 16:24 loop6
brw------- root root 7, 5 2011-04-27 16:24 loop5
brw------- root root 7, 4 2011-04-27 16:24 loop4
brw------- root root 7, 3 2011-04-27 16:24 loop3
brw------- root root 7, 2 2011-04-27 16:24 loop2
brw------- root root 7, 1 2011-04-27 16:24 loop1
brw------- root root 7, 0 2011-04-27 16:24 loop0
drwxr-xr-x root root 2011-04-27 16:24 vold
drwxr-xr-x root root 2011-04-27 16:24 platform
Info from DESIRE S HBOOT 2.xx.xxxx
Output from following commands on STOCK Desire S
Code:
adb shell mount
adb shell cat proc/emmc
adb shell ls -l /dev/block
mount list:
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,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
/dev/block/mmcblk0p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p26 /data ext4 rw,relatime,barrier=1,nodelalloc,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p27 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,nodelalloc,data=ordered 0 0
/dev/block/mmcblk0p30 /devlog ext4 rw,nosuid,nodev,noatime,barrier=1,nodelalloc,data=ordered 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
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
/dev/block/vold/179:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,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:65 /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
/dev/block/dm-0 /mnt/asec/com.quoord.tapatalkxdapre.activity-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
proc list:
Code:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 22dffe00 00000200 "system"
mmcblk0p29: 002ffc00 00000200 "local"
mmcblk0p27: 090ffe00 00000200 "cache"
mmcblk0p26: 496ffe00 00000200 "userdata"
mmcblk0p30: 014bfe00 00000200 "devlog"
mmcblk0p31: 00040000 00000200 "pdata"
mmcblk0p28: 09800000 00000200 "lib"
dev block list:
Code:
brw------- root root 254, 0 2011-09-11 14:49 dm-0
brw------- root root 179, 65 2011-09-11 14:48 mmcblk1p1
brw------- root root 179, 64 2011-09-11 14:48 mmcblk1
brw------- root root 179, 31 2011-09-11 14:48 mmcblk0p31
brw------- root root 179, 30 2011-09-11 14:48 mmcblk0p30
brw------- root root 179, 29 2011-09-11 14:48 mmcblk0p29
brw------- root root 179, 28 2011-09-11 14:48 mmcblk0p28
brw------- root root 179, 27 2011-09-11 14:48 mmcblk0p27
brw------- root root 179, 26 2011-09-11 14:48 mmcblk0p26
brw------- root root 179, 25 2011-09-11 14:48 mmcblk0p25
brw------- root root 179, 24 2011-09-11 14:48 mmcblk0p24
brw------- root root 179, 23 2011-09-11 14:48 mmcblk0p23
brw------- root root 179, 22 2011-09-11 14:48 mmcblk0p22
brw------- root root 179, 21 2011-09-11 14:48 mmcblk0p21
brw------- root root 179, 20 2011-09-11 14:48 mmcblk0p20
brw------- root root 179, 19 2011-09-11 14:48 mmcblk0p19
brw------- root root 179, 18 2011-09-11 14:48 mmcblk0p18
brw------- root root 179, 17 2011-09-11 14:48 mmcblk0p17
brw------- root root 179, 16 2011-09-11 14:48 mmcblk0p16
brw------- root root 179, 15 2011-09-11 14:48 mmcblk0p15
brw------- root root 179, 14 2011-09-11 17:58 mmcblk0p14
brw------- root root 179, 13 2011-09-11 19:29 mmcblk0p13
brw------- root root 179, 12 2011-09-11 14:48 mmcblk0p12
brw------- root root 179, 11 2011-09-11 14:48 mmcblk0p11
brw------- root root 179, 10 2011-09-11 14:48 mmcblk0p10
brw------- root root 179, 9 2011-09-11 14:48 mmcblk0p9
brw------- root root 179, 8 2011-09-11 14:48 mmcblk0p8
brw------- root root 179, 7 2011-09-11 14:48 mmcblk0p7
brw------- root root 179, 6 2011-09-11 14:48 mmcblk0p6
brw------- root root 179, 5 2011-09-11 14:48 mmcblk0p5
brw------- root root 179, 4 2011-09-11 14:48 mmcblk0p4
brw------- root root 179, 3 2011-09-11 14:48 mmcblk0p3
brw------- root root 179, 2 2011-09-11 14:48 mmcblk0p2
brw------- root root 179, 1 2011-09-11 14:48 mmcblk0p1
brw------- root root 179, 0 2011-09-11 14:48 mmcblk0
brw------- root root 7, 7 2011-09-11 14:48 loop7
brw------- root root 7, 6 2011-09-11 14:48 loop6
brw------- root root 7, 5 2011-09-11 14:48 loop5
brw------- root root 7, 4 2011-09-11 14:48 loop4
brw------- root root 7, 3 2011-09-11 14:48 loop3
brw------- root root 7, 2 2011-09-11 14:48 loop2
brw------- root root 7, 1 2011-09-11 14:48 loop1
brw------- root root 7, 0 2011-09-11 14:48 loop0
drwxr-xr-x root root 2011-09-11 14:48 vold
drwxr-xr-x root root 2011-09-11 14:48 platform
Read before posting
This is the development section for the Desire S.
Things that are NOT development are:
Basic questions
Requests for ETAs
Themes
Posting apps you find on the internet
Development IS for:
ROMs
Kernels
Recovery
Rooting info
etc...
It's good to remind of the functioning of this thread, and subjects.
Same problem are in all forums, it's necessary to make recalls every so often for good functioning.
Developers this is aimed at you.....
Hello ALL,
This is an attempt from me to put something back into the development community from which I take so much. I'm very grateful for the time and effort that you all put into this forum and the ROMS that you develop/re-write and port and I'd very much appreciate it if you would read this post #1 (above) and tell me if you agree/disagree with any of it? If you think that it's missing any keys elements that would be useful or spot any errors then please say, as soon this post will be re-CLOSED.
Apology for the my "first website" look at feel to the thread I'm clearly not a HTML writter as you've now seen for yourselves!
If anyone has has any comments then please PM me.
Thanks
Ben

Android (Samsung) partitions list

I think this thread is obsolete now, please go to
[DEV][REF] El Grande Partition Table Reference
instead, which contains more facts
Hi,
I want to create a list of Android partitions, to collect information for different purposes.
My current cause of investigation is about repartitioning emmc bricked Samsung phones, but the guide could collect all kinds of information (in short form, eventually with links to deeper investigations).
I want to format this as a living post, with new information added where appropriate (I assume the wiki would fit better, but I don't see a section to put this, also I don't know if fitting to Samsung only or Android in general until enough information is collected).
So let's start:
So let's visit partitions one by one:
GANG
* has zero size in PIT, seems to be hidden in the following unused area
* no real partition, but included in PITs
BOOT
* has zero size in PIT, seems to be hidden in the following unused area
EFS
* mounted on /efs
* contains many personalized information
* IMEI
* bluetooth MAC etc.
* restoration only possible with JTAG
* should be backuped!!!
SBL1, SBL2
* BL = boot loader
* S = Secondary?
* why do we have SBL1 *and* SBL2?
PARAM
* currently I don't know anything about this
KERNEL
* contains kernel (obviously)
* also contains recovery on some/many Samsung Galaxy phones (e.g. N7000)
* read only
RECOVERY
* seems to be unused on Samsung Galaxy N7000, KERNEL comes with recovery integrated
* read only
CACHE
* mounted on /cache
* temporary data
* can be cleared without loosing any important data
MODEM
* modem software for cell phone
* can be flashed from stock file
* read only?
FACTORYFS, system
* mounted on /system
* main OS code
* system apps
* read only
DATAFS, data
* mounted on /data
* user apps
* read/write
UMS, userdata
* mounted on /sdcard, sometimes /emmc
* sometimes called internal sd
HIDDEN, PRELOAD
* mounted on /preload
* purpose?
FOTA
* F = Factory?
* OTA = Over The Air
* may be used for Updates by stock ROM
Here are also some general thoughts about repartitioning these partitions to be mixed into the list later if it fits (just as a reminder):
* if you have a brick in a partition you cannot create a backup to restore afterwards
* partitions which have stock contents (not personalized) will be easy
* EFS cannot be restored without having a backup,
it contains nearly all really personalized information, with the most important data being the IMEI, which is unique to your phone. You find it printed on a sticker on your phone, but currently no one seems to be able to patch it into a generic copy of the EFS.
* some partitions will be needed to boot into recovery and/or download mode
I would assume BOOT, SBL1 and/or SBL2 are involved.
Some may be needed to boot into both recovery *and* download mode.
Some may be needed only for one of them.
If a PIT would move these, you cannot enter download and/or recovery again, thus your phone is nearly dead and only recoverable by JTAG.
* what about PARAM?
First of all, great initiative!
I have a SE Xperia Arc and the file structure differs a lot from your Samsung device.
Here is a list of the partitions, their current mount point(s) and filetype. I have put some useful references to the list. This will probably provide more accurate descriptions, rather than giving a brief explanation on each file system.
rootfs / rootfs [1]
tmpfs /dev tmpfs [2]
tmpfs /mnt/asec tmpfs
tmpfs /mnt/obb tmpfs
tmpfs /mnt/sdcard/.android_secure tmpfs
devpts /dev/pts devpts [3]
proc /proc proc [4]
sysfs /sys sysfs [5]
/dev/block/mtdblock0 /system yaffs2 [6][8]
/dev/block/mtdblock1 /cache yaffs2
/dev/block/mtdblock2 /system/vendor yaffs2
/dev/block/mtdblock3 /data yaffs2
/dev/block/vold/179:1 /mnt/sdcard vfat [7][9]
/dev/block/vold/179:1 /mnt/secure/asec vfat
References:
[1] rootfs
[2] tmpfs
[3] devpts
[4] proc
[5] sysfs
[6] yaffs2
[7] vfat Virtual FAT
[8] mtd
[9] vold
I also found two more links that could be useful in this thread.
Atrix HD Partition Research, How to use QUALCOMM eMMC MBR/EBR Partitioning plugin
hg42 said:
FOTA
* F = Factory?
* OTA = Over The Air
* may be used for Updates by stock ROM
Click to expand...
Click to collapse
F = firmware, http://en.wikipedia.org/wiki/FOTA_%28technology%29
Thanks, nice contribution.
Can you provide a dump of 'parted print' for your device?
Unfortunately, the parted partition command is not included among the Xperia Arc's stock binaries, nor in BusyBox 1.20.2 (but hopefully in the future).
Do you have a pre-compiled binary to share?
Here is what I can contribute to your collection for now:
Code:
[email protected]:/ # busybox fdisk -l
Linux localhost 2.6.32.9-perf #1 PREEMPT Wed Jul 4 12:32:24 2012 armv7l GNU/Linux
[email protected]:/ # busybox fdisk -l
Note: sector size is 4096 (not 512)
Disk [URL="http://shmilyxbq-compcache.googlecode.com/hg/README"]/dev/zram0[/URL]: 62 MB, 62914560 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes
Disk /dev/zram0 doesn't contain a valid partition table
k02a said:
Unfortunately, the parted partition command is not included among the Xperia Arc's stock binaries, nor in BusyBox 1.20.2 (but hopefully in the future).
Do you have a pre-compiled binary to share?
Click to expand...
Click to collapse
you can try the attachment to this post
but I'm not sure if an exynos processor (Samsung Galaxy Note N7000) has the same executable format than your phone, at least both have armv7l.
hg42 said:
but I'm not sure if an exynos processor (Samsung Galaxy Note N7000) has the same executable format than your phone, at least both have armv7l.
Click to expand...
Click to collapse
The parted binary worked fine, but the file system on the LT15i needs to be explored some day.
Code:
[email protected]:/ # parted
parted
GNU Parted 1.8.8.1.179-aef3
Using /dev/zram0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Error: /dev/zram0: unrecognised disk label
(parted)
k02a said:
The parted binary worked fine, but the file system on the LT15i needs to be explored some day.
Error: /dev/zram0: unrecognised disk label
Click to expand...
Click to collapse
can you post the output of " adb shell ls /dev/block/ "?
Sure.
Code:
[email protected]:/ $ ls -la /dev/block
ls -la /dev/block
brw------- root root 254, 0 1980-01-06 02:02 dm-0
brw------- root root 254, 8 1980-01-06 02:02 dm-8
brw------- root root 7, 0 1980-01-06 02:01 loop0
brw------- root root 7, 1 1980-01-06 02:01 loop1
brw-rw---- root root 7, 10 1980-01-06 02:02 loop10
brw-rw---- root root 7, 11 1980-01-06 02:02 loop11
brw-rw---- root root 7, 12 1980-01-06 02:02 loop12
brw------- root root 7, 2 1980-01-06 02:01 loop2
brw------- root root 7, 3 1980-01-06 02:01 loop3
brw------- root root 7, 4 1980-01-06 02:01 loop4
brw------- root root 7, 5 1980-01-06 02:01 loop5
brw------- root root 7, 6 1980-01-06 02:01 loop6
brw------- root root 7, 7 1980-01-06 02:01 loop7
brw-rw---- root root 7, 8 1980-01-06 02:02 loop8
brw-rw---- root root 7, 9 1980-01-06 02:02 loop9
brw------- root root 179, 0 1980-01-06 02:01 mmcblk0
brw------- root root 179, 1 1980-01-06 02:01 mmcblk0p1
brw------- root root 31, 0 1980-01-06 02:01 mtdblock0
brw------- root root 31, 1 1980-01-06 02:01 mtdblock1
brw------- root root 31, 2 1980-01-06 02:01 mtdblock2
brw------- root root 31, 3 1980-01-06 02:01 mtdblock3
drwxr-xr-x root root 1980-01-06 02:01 platform
brw------- root root 1, 0 1980-01-06 02:01 ram0
brw------- root root 1, 1 1980-01-06 02:01 ram1
brw------- root root 1, 2 1980-01-06 02:01 ram2
brw------- root root 1, 3 1980-01-06 02:01 ram3
brw------- root root 1, 4 1980-01-06 02:01 ram4
brw------- root root 1, 5 1980-01-06 02:01 ram5
brw------- root root 1, 6 1980-01-06 02:01 ram6
brw------- root root 1, 7 1980-01-06 02:01 ram7
drwxr-xr-x root root 1980-01-06 02:01 vold
brw------- root root 253, 0 1980-01-06 02:01 zram0
The listing you were asking for is not as interesting as the following:
Code:
[email protected]:/ # ls -la /sys/devices/virtual/block/zram0
ls -la /sys/devices/virtual/block/zram0
-r--r--r-- root root 4096 2012-09-06 00:18 alignment_offset
lrwxrwxrwx root root 2012-09-06 00:18 bdi -> ../../bdi/253:0
-r--r--r-- root root 4096 2012-09-06 00:18 capability
-r--r--r-- root root 4096 2012-09-06 00:18 compr_data_size
-r--r--r-- root root 4096 2012-09-06 00:18 dev
-rw-r--r-- root root 4096 1980-01-06 02:01 disksize
-r--r--r-- root root 4096 2012-09-06 00:18 ext_range
drwxr-xr-x root root 2012-09-06 00:18 holders
-r--r--r-- root root 4096 2012-09-06 00:18 inflight
-r--r--r-- root root 4096 2012-09-06 00:18 initstate
-r--r--r-- root root 4096 2012-09-06 00:18 invalid_io
-r--r--r-- root root 4096 2012-09-06 00:18 mem_used_total
-r--r--r-- root root 4096 2012-09-06 00:18 notify_free
-r--r--r-- root root 4096 2012-09-06 00:18 num_reads
-r--r--r-- root root 4096 2012-09-06 00:18 num_writes
-r--r--r-- root root 4096 2012-09-06 00:18 orig_data_size
drwxr-xr-x root root 2012-09-06 00:18 power
drwxr-xr-x root root 2012-09-06 00:18 queue
-r--r--r-- root root 4096 2012-09-06 00:18 range
-r--r--r-- root root 4096 2012-09-06 00:18 removable
--w------- root root 4096 2012-09-06 00:18 reset
-r--r--r-- root root 4096 2012-09-06 00:18 ro
-r--r--r-- root root 4096 2012-09-06 00:18 size
drwxr-xr-x root root 2012-09-06 00:18 slaves
-r--r--r-- root root 4096 2012-09-06 00:18 stat
lrwxrwxrwx root root 2012-09-06 00:18 subsystem -> ../../../../
class/block
-rw-r--r-- root root 4096 2012-09-06 00:18 uevent
-r--r--r-- root root 4096 2012-09-06 00:18 zero_pages
Time to get some sleep.
k02a said:
Sure.
Code:
[email protected]:/ $ ls -la /dev/block
ls -la /dev/block
...
brw------- root root 179, 0 1980-01-06 02:01 mmcblk0
brw------- root root 179, 1 1980-01-06 02:01 mmcblk0p1
brw------- root root 31, 0 1980-01-06 02:01 mtdblock0
brw------- root root 31, 1 1980-01-06 02:01 mtdblock1
brw------- root root 31, 2 1980-01-06 02:01 mtdblock2
brw------- root root 31, 3 1980-01-06 02:01 mtdblock3
...
The listing you were asking for is not as interesting as the following:
Code:
[email protected]:/ # ls -la /sys/devices/virtual/block/zram0
ls -la /sys/devices/virtual/block/zram0
...
[/QUOTE]
why? Do you mean mtdblock0-3 are really located on zram0?
Or what else?
mtdblock0-3 don't seem to be partitions of a block device, like mmcblk0p1 is a partition on mmcblk0
Click to expand...
Click to collapse
hg42 said:
why? Do you mean mtdblock0-3 are really located on zram0?
Or what else?
mtdblock0-3 don't seem to be partitions of a block device, like mmcblk0p1 is a partition on mmcblk0
Click to expand...
Click to collapse
Sorry for my ambiguousness...
After having a bad nights' sleep, I made some re-thinking.
I dd'ed the /dev/zram0 (62 914 560 bytes). This value also corresponds to the content found in /sys/block/zram0/disksize and I find it unlikely that the OS keeps the entire amount of mtdblocks within this memory constraint, even if they are compressed. I have not tried to mount the zram-image on a Linux system, so I cannot tell anything about its content. My belief is that this image carries some RAM contents and perhaps some cache information.
Did you find anything similar in your Samsung device?
The mmcblk:s seem to represent the MicroSD-card device and I assume the mmcblk0p1 is the (only) partition.
k02a said:
Sorry for my ambiguousness...
After having a bad nights' sleep, I made some re-thinking.
I dd'ed the /dev/zram0 (62 914 560 bytes). This value also corresponds to the content found in /sys/block/zram0/disksize and I find it unlikely that the OS keeps the entire amount of mtdblocks within this memory constraint, even if they are compressed. I have not tried to mount the zram-image on a Linux system, so I cannot tell anything about its content. My belief is that this image carries some RAM contents and perhaps some cache information.
Did you find anything similar in your Samsung device?
The mmcblk:s seem to represent the MicroSD-card device and I assume the mmcblk0p1 is the (only) partition.
Click to expand...
Click to collapse
we have these block devices:
Code:
[email protected]:/ $ ls -lF /dev/block/
brw------- 1 root root 7, 0 Sep 6 08:28 loop0
brw------- 1 root root 7, 1 Sep 6 08:28 loop1
brw------- 1 root root 7, 2 Sep 6 08:28 loop2
brw------- 1 root root 7, 3 Sep 6 08:28 loop3
brw------- 1 root root 7, 4 Sep 6 08:28 loop4
brw------- 1 root root 7, 5 Sep 6 08:28 loop5
brw------- 1 root root 7, 6 Sep 6 08:28 loop6
brw------- 1 root root 7, 7 Sep 6 08:28 loop7
brw------- 1 root root 179, 0 Sep 6 08:28 mmcblk0
brw------- 1 root root 179, 1 Sep 6 08:28 mmcblk0p1
brw------- 1 root root 259, 2 Sep 6 08:28 mmcblk0p10
brw------- 1 root root 259, 3 Sep 6 08:28 mmcblk0p11
brw------- 1 root root 259, 4 Sep 6 08:28 mmcblk0p12
brw------- 1 root root 179, 2 Sep 6 08:28 mmcblk0p2
brw------- 1 root root 179, 3 Sep 6 08:28 mmcblk0p3
brw------- 1 root root 179, 4 Sep 6 08:28 mmcblk0p4
brw------- 1 root root 179, 5 Sep 6 08:28 mmcblk0p5
brw------- 1 root root 179, 6 Sep 6 08:28 mmcblk0p6
brw------- 1 root root 179, 7 Sep 6 08:28 mmcblk0p7
brw-rw---- 1 system radio 259, 0 Sep 6 08:28 mmcblk0p8
brw------- 1 root root 259, 1 Sep 6 08:28 mmcblk0p9
brw------- 1 root root 179, 8 Sep 6 08:28 mmcblk1
brw------- 1 root root 179, 9 Sep 6 08:28 mmcblk1p1
drwxr-xr-x 4 root root 0 Sep 6 08:28 platform/
brw------- 1 root root 1, 0 Sep 6 08:28 ram0
brw------- 1 root root 1, 1 Sep 6 08:28 ram1
brw------- 1 root root 1, 10 Sep 6 08:28 ram10
brw------- 1 root root 1, 11 Sep 6 08:28 ram11
brw------- 1 root root 1, 12 Sep 6 08:28 ram12
brw------- 1 root root 1, 13 Sep 6 08:28 ram13
brw------- 1 root root 1, 14 Sep 6 08:28 ram14
brw------- 1 root root 1, 15 Sep 6 08:28 ram15
brw------- 1 root root 1, 2 Sep 6 08:28 ram2
brw------- 1 root root 1, 3 Sep 6 08:28 ram3
brw------- 1 root root 1, 4 Sep 6 08:28 ram4
brw------- 1 root root 1, 5 Sep 6 08:28 ram5
brw------- 1 root root 1, 6 Sep 6 08:28 ram6
brw------- 1 root root 1, 7 Sep 6 08:28 ram7
brw------- 1 root root 1, 8 Sep 6 08:28 ram8
brw------- 1 root root 1, 9 Sep 6 08:28 ram9
drwxr-xr-x 2 root root 0 Sep 6 08:28 vold/
The ram* may be what is zram in your device.
The 'z' may indeed mean compression.
There are several tmpfs in our device (e.g. /tmp and /dev, perhaps they use these ram disks).
Also the root file system where everything is mounted runs in ram.
The zram0 seems to act like some kind of swap RAM and was obviously added to the latest SE 2011 firmware version [1].
My guess is that Sony Ericsson decided to pick the compressed alternative, due to the smaller flash memory in their Xperia 2011 devices. This solution probably costs some clock cycles, but I assume it gains in overall internal storage capacity.
I found an interesting thread where sirkay showed how to initiate/alter the zram size.
[1] questions/problems with 4.1.B.0.587 firmware
You guys are confusing.
The Xperia NAND disk device is translated to an MTD block device in the Linux world. The partition boundaries are hardcoded in the bootloader passed to the kernel via the ATAGs parameters. You can see those partitions via /proc/mtd
Code:
# cat /proc/mtd
dev: size erasesize name
mtd0: 19000000 00040000 "system"
mtd1: 00600000 00040000 "appslog"
mtd2: 06580000 00040000 "cache"
mtd3: 1a400000 00040000 "userdata"
Still those are only the partitions the bootlooader chooses to expose to the kernel. In reality, there are more, unknown to the kernel.
kuisma said:
You guys are confusing.
The Xperia NAND disk device is translated to an MTD block device in the Linux world. The partition boundaries are hardcoded in the bootloader passed to the kernel via the ATAGs parameters. You can see those partitions via /proc/mtd
Code:
# cat /proc/mtd
dev: size erasesize name
mtd0: 19000000 00040000 "system"
mtd1: 00600000 00040000 "appslog"
mtd2: 06580000 00040000 "cache"
mtd3: 1a400000 00040000 "userdata"
Still those are only the partitions the bootlooader chooses to expose to the kernel. In reality, there are more, unknown to the kernel.
Click to expand...
Click to collapse
Thanks for clearing up, this fits my conclusions.
Never saw such fixed devices before.
hg42 said:
Thanks for clearing up, this fits my conclusions.
Never saw such fixed devices before.
Click to expand...
Click to collapse
I'd say this is the way it's most commonly done in Android devices, using a raw NAND device with the MTD translation layer. It's far more uncommon using block devices, such as MMC devices as the primary internal memory.
kuisma said:
You guys are confusing.
The Xperia NAND disk device is translated to an MTD block device in the Linux world. The partition boundaries are hardcoded in the bootloader passed to the kernel via the ATAGs parameters. You can see those partitions via /proc/mtd
Code:
# cat /proc/mtd
dev: size erasesize name
mtd0: 19000000 00040000 "system"
mtd1: 00600000 00040000 "appslog"
mtd2: 06580000 00040000 "cache"
mtd3: 1a400000 00040000 "userdata"
Still those are only the partitions the bootlooader chooses to expose to the kernel. In reality, there are more, unknown to the kernel.
Click to expand...
Click to collapse
Thanks for this. :good:
I am still curious about the possibility to gain boot or root partition access in Xperia?
Many other devices come with this feature, e.g. HTC Incredible S, HTC Vision, Acer Liquid Metal and on the widely spread article HOWTO: Unpack, Edit, and Re-Pack Boot Images).
Oh, by the way...
I found a collection with recovery images on OnlineNandroid.
k02a said:
Thanks for this. :good:
I am still curious about the possibility to gain boot or root partition access in Xperia?
Many other devices come with this feature, e.g. HTC Incredible S, HTC Vision, Acer Liquid Metal and on the widely spread article HOWTO: Unpack, Edit, and Re-Pack Boot Images).
Click to expand...
Click to collapse
In Xperia, the boot partition is not visible to the Linux kernel, so you can't simply dd it to an image file. The easiest way is running Sony Update Service reflashing your phone with the current firmware, and then copy the temporary files it downloaded, recreating the FTF file using Flashtool. Unzip the FTF and you've got the boot.img. Now split it, do whatever you want to change and flash it using fastboot. There's a YouTube video showing this in detail. Search for it. Or download the firmware FTF directly from a trusted source.
I looked in fota0.sin and found a few more partition names on the Xperia (Active):
Code:
amss
amss_fs
fota0
fota1
dsp1
boot
system
userdata
cache
image_backup
amss_log
vendor
ramdump
Thanks a lot for this, a really valuable post!
I know I wont find the help I need to do what I want here, but ill provide the stuff from my Galaxy Note tomorrow (partition layout/vold)...
My Galaxy Note is nice, but 2GB is a joke for apps, and damnit I want my sdcard to actually be mounted as /sdcard! (PITA for apps that utilize /sdcard for game data and backups, not to mention having a 32GB or 64GB makes the joke 10GB internal... a JOKE!)
hg42 said:
we have these block devices:
Code:
[email protected]:/ $ ls -lF /dev/block/
brw------- 1 root root 7, 0 Sep 6 08:28 loop0
brw------- 1 root root 7, 1 Sep 6 08:28 loop1
brw------- 1 root root 7, 2 Sep 6 08:28 loop2
brw------- 1 root root 7, 3 Sep 6 08:28 loop3
brw------- 1 root root 7, 4 Sep 6 08:28 loop4
brw------- 1 root root 7, 5 Sep 6 08:28 loop5
brw------- 1 root root 7, 6 Sep 6 08:28 loop6
brw------- 1 root root 7, 7 Sep 6 08:28 loop7
brw------- 1 root root 179, 0 Sep 6 08:28 mmcblk0
brw------- 1 root root 179, 1 Sep 6 08:28 mmcblk0p1
brw------- 1 root root 259, 2 Sep 6 08:28 mmcblk0p10
brw------- 1 root root 259, 3 Sep 6 08:28 mmcblk0p11
brw------- 1 root root 259, 4 Sep 6 08:28 mmcblk0p12
brw------- 1 root root 179, 2 Sep 6 08:28 mmcblk0p2
brw------- 1 root root 179, 3 Sep 6 08:28 mmcblk0p3
brw------- 1 root root 179, 4 Sep 6 08:28 mmcblk0p4
brw------- 1 root root 179, 5 Sep 6 08:28 mmcblk0p5
brw------- 1 root root 179, 6 Sep 6 08:28 mmcblk0p6
brw------- 1 root root 179, 7 Sep 6 08:28 mmcblk0p7
brw-rw---- 1 system radio 259, 0 Sep 6 08:28 mmcblk0p8
brw------- 1 root root 259, 1 Sep 6 08:28 mmcblk0p9
brw------- 1 root root 179, 8 Sep 6 08:28 mmcblk1
brw------- 1 root root 179, 9 Sep 6 08:28 mmcblk1p1
drwxr-xr-x 4 root root 0 Sep 6 08:28 platform/
brw------- 1 root root 1, 0 Sep 6 08:28 ram0
brw------- 1 root root 1, 1 Sep 6 08:28 ram1
brw------- 1 root root 1, 10 Sep 6 08:28 ram10
brw------- 1 root root 1, 11 Sep 6 08:28 ram11
brw------- 1 root root 1, 12 Sep 6 08:28 ram12
brw------- 1 root root 1, 13 Sep 6 08:28 ram13
brw------- 1 root root 1, 14 Sep 6 08:28 ram14
brw------- 1 root root 1, 15 Sep 6 08:28 ram15
brw------- 1 root root 1, 2 Sep 6 08:28 ram2
brw------- 1 root root 1, 3 Sep 6 08:28 ram3
brw------- 1 root root 1, 4 Sep 6 08:28 ram4
brw------- 1 root root 1, 5 Sep 6 08:28 ram5
brw------- 1 root root 1, 6 Sep 6 08:28 ram6
brw------- 1 root root 1, 7 Sep 6 08:28 ram7
brw------- 1 root root 1, 8 Sep 6 08:28 ram8
brw------- 1 root root 1, 9 Sep 6 08:28 ram9
drwxr-xr-x 2 root root 0 Sep 6 08:28 vold/
Click to expand...
Click to collapse
From the above list is it possible to know the boot paritions.
on S2_lte_I9210 /proc/partitions list the system partition as /dev/block/mmcblk0p24 /system but not the boot partition.
I'm eagerly waiting to do boot.img backup using via dd command
---------- Post added at 04:20 PM ---------- Previous post was at 04:16 PM ----------
# cat /proc/partitions
major minor #blocks name
179 0 15387648 mmcblk0
179 1 102400 mmcblk0p1
179 2 500 mmcblk0p2
179 3 1500 mmcblk0p3
179 4 1 mmcblk0p4
179 5 500 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 2500 mmcblk0p7
179 8 10240 mmcblk0p8
179 9 500 mmcblk0p9
179 10 500 mmcblk0p10
179 11 500 mmcblk0p11
179 12 10240 mmcblk0p12
179 13 100352 mmcblk0p13
179 14 3072 mmcblk0p14
179 15 3072 mmcblk0p15
179 16 3072 mmcblk0p16
179 17 100352 mmcblk0p17
179 18 3072 mmcblk0p18
179 19 3072 mmcblk0p19
179 20 3072 mmcblk0p20
179 21 10240 mmcblk0p21
179 22 10240 mmcblk0p22
179 23 10240 mmcblk0p23
179 24 677888 mmcblk0p24
179 25 2099200 mmcblk0p25
179 26 309248 mmcblk0p26
179 27 132096 mmcblk0p27
179 28 11738112 mmcblk0p28
179 32 15558144 mmcblk1
179 33 15557120 mmcblk1p1
Click to expand...
Click to collapse
partition list on samsung galaxy S2_lte I9210

[Q] Internal Memory Problem

Please Help
I have MID android tablet , internal memory is 0 free and show that is 32mb , it was more that that approx 250mb, and i cant download any application from Play or using apk package, and it doesn't save any thing from setting , when i power off it and again power on , it appear that it is the first time i switch it on and display hints how to use launcher.
i can access sd card and external sd card and write to them with no problem , i tried to factory reset but no way , i dont know whats happened , please help me :crying:
Tablet Info:
PHP:
Model:M727D2_mma7660
Firmware version:4.0
Status:ROOTED
Resolution:800*480
Android Version:4.0.3
Kernel version:crane_evb_v13-eng 4.0.3 IML74K 20120525
Here is the Mount command on adb shell:
PHP:
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 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
/dev/block/nandd /system ext4 rw,nodev,noatime,user_xattr,barrier=0,data=ordered 0 0
/dev/block/vold/179:1 /mnt/extsd vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1023,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/93:65 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/93:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
here is ls -al output for /dev/block/
PHP:
brw------- root root 7, 0 2012-11-24 16:06 loop0
brw------- root root 7, 1 2012-11-24 16:06 loop1
brw------- root root 7, 2 2012-11-24 16:06 loop2
brw------- root root 7, 3 2012-11-24 16:06 loop3
brw------- root root 7, 4 2012-11-24 16:06 loop4
brw------- root root 7, 5 2012-11-24 16:06 loop5
brw------- root root 7, 6 2012-11-24 16:06 loop6
brw------- root root 7, 7 2012-11-24 16:06 loop7
brw------- root root 179, 0 2012-11-24 16:06 mmcblk0
brw------- root root 179, 1 2012-11-24 16:06 mmcblk0p1
brw------- root root 93, 0 2012-11-24 16:06 nanda
brw------- root root 93, 8 2012-11-24 16:06 nandb
brw------- root root 93, 16 2012-11-24 16:06 nandc
brw------- root root 93, 24 2012-11-24 16:06 nandd
brw------- root root 93, 32 2012-11-24 16:06 nande
brw-rw-rw- system system 93, 40 2012-11-24 16:06 nandf
brw------- root root 93, 48 2012-11-24 16:06 nandg
brw------- root root 93, 56 2012-11-24 16:06 nandh
brw------- root root 93, 64 2012-11-24 16:06 nandi
brw------- root root 93, 65 2012-11-24 16:06 nandi1
drwxr-xr-x root root 2012-11-24 16:06 platform
brw------- root root 1, 0 2012-11-24 16:06 ram0
brw------- root root 1, 1 2012-11-24 16:06 ram1
drwxr-xr-x root root 2012-11-24 16:06 vold
Just try to format Internal memory by device or Via connecting by PC as Fat 32
Just try to Format Internal memory by device or Via connecting by PC as Fat 32
Good luck :beer
Sent from my GT-S5360 using xda app-developers app
andromaki said:
Just try to format Internal memory by device or Via connecting by PC as Fat 32
Just try to Format Internal memory by device or Via connecting by PC as Fat 32
Good luck :beer
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
it has the native rom , i can install applications using (su pm install) , but when reboot application is disappear , I cant access internal memory except by shell root , i think it is chown-chmod-chroot or mount issue
any help?

[Q] where is ramdisk.img ?

hi, all!
Modify /init.rc configure file is my plan, in android(linux) box, /(rootfs) locate RAM.
So, modify ramdisk.img(initrd.img) is aim, However, I find any image file except recovery backup image:
[email protected]:/ # /system/xbin/busybox find / -name '*.img'
/mnt/sdcard2/clockworkmod/backup/2012-01-01.00.03.03/boot.img
/mnt/sdcard2/clockworkmod/backup/2012-01-01.00.03.03/recovery.img
/system/etc/firmware/modem.img
Did the partition that ramdisk.img save in not mount by kernel ?
My phone information:
all partition:
[email protected]:/ # ll /dev/block/
brw------- root root 254, 0 2012-11-30 22:08 dm-0
brw------- root root 7, 0 2012-11-30 22:07 loop0
brw------- root root 7, 1 2012-11-30 22:07 loop1
brw------- root root 7, 2 2012-11-30 22:07 loop2
brw------- root root 7, 3 2012-11-30 22:07 loop3
brw------- root root 7, 4 2012-11-30 22:07 loop4
brw------- root root 7, 5 2012-11-30 22:07 loop5
brw------- root root 7, 6 2012-11-30 22:07 loop6
brw------- root root 7, 7 2012-11-30 22:07 loop7
brw-rw---- root system 179, 0 2012-11-30 22:07 mmcblk0
brw------- root root 179, 32 2012-11-30 22:07 mmcblk0boot0
brw------- root root 179, 64 2012-11-30 22:07 mmcblk0boot1
brw------- root root 179, 1 2012-11-30 22:07 mmcblk0p1
brw------- root root 179, 2 2012-11-30 22:07 mmcblk0p2
brw------- root root 179, 3 2012-11-30 22:07 mmcblk0p3
brw------- root root 179, 4 2012-11-30 22:07 mmcblk0p4
brw------- root root 179, 5 2012-11-30 22:07 mmcblk0p5
brw------- root root 179, 6 2012-11-30 22:07 mmcblk0p6
brw------- root root 179, 96 2012-11-30 22:07 mmcblk1
brw------- root root 179, 97 2012-11-30 22:07 mmcblk1p1
drwxr-xr-x root root 2012-11-30 22:07 platform
drwxr-xr-x root root 2012-11-30 22:07 vold
mounted partition:
[email protected]:/ # mount|/system/xbin/busybox grep mmc
/[email protected] /system ext4 ro,noatime,user_xattr,commit=1,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/[email protected] /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
had be linked partition:
[email protected]:/ # ll / |/system/xbin/busybox mmc
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-01 08:00 [email protected]_ro -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-01 08:00 [email protected] -> /dev/block/mmcblk0p5
[email protected]:/ # cat /proc/mtd
dev: size erasesize name
[email protected]:/ #
My phone do not use mtd ?
what other technology my phone used? and, what can I locate recovery and boot partition ?
Ramdisk is inside boot.img, you must use dsixda's kitchen to decompile it.
Sent from my PC36100 using xda app-developers app
Yes, the ramdisk is inside the boot.img. The recovery.img contains its own ramdisk. The partition is a basic format created just for android. The first 0x30ish bytes contain offsets and sizes for the kernel image, ramdisk, kernel command line, and stuff like that. And no, the ramdisk is not compiled; you do no decompile it. It is compressed. You can pull the ramdisk out of the partition and decompress it using standard commandline tools.

[Q] How to extract boot.img from Zopo C7 ( MTK6589T)

First how to find location of boot image in device? I want to take current boot image. Do modifications and later flash that boot image back to device.
I have searched correct block device and did some image files with dd command but they were not boot images. I tried with several tools.
Here is some listing from the phone with adb shell commands.
Code:
[email protected]:/proc # cat partitions
major minor #blocks name
179 0 30512256 mmcblk0
179 1 1 mmcblk0p1
179 2 10240 mmcblk0p2
179 3 10240 mmcblk0p3
179 4 6144 mmcblk0p4
179 5 665600 mmcblk0p5
179 6 129024 mmcblk0p6
179 7 1572864 mmcblk0p7
179 8 28077696 mmcblk0p8
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0
Code:
[email protected]:/ # ls -l /emm*
lrwxrwxrwx root root 1970-01-01 06:30 [email protected] -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-01 06:30 [email protected] -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-01 06:30 [email protected] -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-01 06:30 [email protected] -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-01 06:30 [email protected]_f -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-01 06:30 [email protected]_s -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-01 06:30 [email protected]_ro -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-01 06:30 [email protected] -> /dev/block/mmcblk0p7
[email protected]:/ #
Code:
[email protected]:/dev/block # ls -al
brw------- root root 7, 0 2014-03-12 12:54 loop0
brw------- root root 7, 1 2014-03-12 12:54 loop1
brw------- root root 7, 2 2014-03-12 12:54 loop2
brw------- root root 7, 3 2014-03-12 12:54 loop3
brw------- root root 7, 4 2014-03-12 12:54 loop4
brw------- root root 7, 5 2014-03-12 12:54 loop5
brw------- root root 7, 6 2014-03-12 12:54 loop6
brw------- root root 7, 7 2014-03-12 12:54 loop7
brw-rw---- root system 179, 0 2014-03-12 12:54 mmcblk0
brw------- root root 179, 32 2014-03-12 12:54 mmcblk0boot0
brw------- root root 179, 64 2014-03-12 12:54 mmcblk0boot1
brw------- root root 179, 1 2014-03-12 12:54 mmcblk0p1
brw-r----- root system 179, 2 2014-03-12 12:54 mmcblk0p2
brw------- root root 179, 3 2014-03-12 12:54 mmcblk0p3
brw------- root root 179, 4 2014-03-12 12:54 mmcblk0p4
brw------- root root 179, 5 2014-03-12 12:54 mmcblk0p5
brw------- root root 179, 6 2014-03-12 12:54 mmcblk0p6
brw------- root root 179, 7 2014-03-12 12:54 mmcblk0p7
brw------- root root 179, 8 2014-03-12 12:54 mmcblk0p8
drwxr-xr-x root root 2014-03-12 12:54 platform
[email protected]:/dev/block #
/dev/block/mmcblk0boot0 looked promising but I made image of it by by command dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot.img
But the image was not boot image.
Code:
[email protected]:/ # mount
rootfs / rootfs ro,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/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
[email protected] /system ext4 ro,noatime,noauto_da_alloc,commit=1,data=ordered 0 0
[email protected] /data ext4 rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected]_f /protect_f ext4 rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected]_s /protect_s ext4 rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected] /storage/sdcard0 vfat rw,dirsync,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
[email protected]:/ #
I can make full image by dding /dev/block/mmcblk0 but it would be better to get the parts separately.
Is there easy way to find where the boot image is located?
I checked block device sizes
/dev/block/mmcblk0p8 is the internal flash area for user, about 28G. Boot image boot loader etc must be in mmcblk0p1 - mmcblk0p7
Size of the block devices
Code:
/dev/block/mmcblk0 31244550144
/dev/block/mmcblk0boot0 2097152
/dev/block/mmcblk0boot1 2097152
/dev/block/mmcblk0p1 1024
/dev/block/mmcblk0p2 10485760
/dev/block/mmcblk0p3 10485760
/dev/block/mmcblk0p4 6291456
/dev/block/mmcblk0p5 681574400
/dev/block/mmcblk0p6 132120576
/dev/block/mmcblk0p7 1610612736
/dev/block/mmcblk0p8 28751560704
/dev/block/mmcblk1 8178892800
I got these with script
Code:
#!/system/bin/sh
command="/sdcard/busybox blockdev --getsize64"
for f in /dev/block/mm*
do
result=`$command $f`
result="$f \t $result"
echo $result
done
Via Terminal Emulator:
"su
cat /proc/partitions"
When again other command: dd if=/dev/block/(boot_partition_which_showed under /proc/partitions) of=/sdcard/boot.img
Root your device and try MtkDroidTools.
Use MTK SP_Flash_tool to flash image back.
In proc partitions there were two boot related devices listed
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0
I made images from both of those but there was nothing inside the images which looked like boot image.
I found that there is /dev/bootimage
Code:
[email protected]:/ # ls -l /dev/boo*
crw-r----- root system 234, 10 2013-01-01 06:30 bootimg
I made image from that. The image is 4.3G. Very large. Anyway I found bootimage inside that. Then I made another smaller one with
Code:
# dd if=/dev/bootimg of=/sdcard/testboot.img count=12000
I can unpack that image in linux with tool unpack-MT65xx.pl. I tried to repack the exact same files without modifying. But repacking the image with repack-MT65.pl generates file which is different.
cnexpat said:
Is there easy way to find where the boot image is located?
Click to expand...
Click to collapse
Looking for same

Categories

Resources