I wanted to extract boot.img from an existing rom, following this wiki:
http://android-dls.com/wiki/index.p..._Images#Structure_of_boot_and_recovery_images
But it seems that on Stock Rom (actually I'm using Zeus rom, based on stock) there is no /proc/mtd that would tell me where to find the "boot" partition. I think it should be one of these:
179 0 1912832 mmcblk0
179 1 128 mmcblk0p1
179 2 512 mmcblk0p2
179 3 6144 mmcblk0p3
179 4 6144 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 660480 mmcblk0p8
179 9 1161088 mmcblk0p9
179 10 65536 mmcblk0p10
179 11 128 mmcblk0p11
179 12 128 mmcblk0p12
179 16 15637504 mmcblk1
179 17 15633408 mmcblk1p1
Do anyone know where the boot partition is hiding? Or have an idea on how to find where it is?
Here are some of the partitions:
Code:
loop0 =
/dev/block/mmcblk0 =
/dev/block/mmcblk0p1 =
/dev/block/mmcblk0p2 =
/dev/block/mmcblk0p3 = /boot
/dev/block/mmcblk0p4 = /recovery
/dev/block/mmcblk0p5 = /lgdrm
/dev/block/mmcblk0p6 = /dvp/userdata
/dev/block/mmcblk0p7 =
/dev/block/mmcblk0p8 = /system
/dev/block/mmcblk0p9 = /data
/dev/block/mmcblk0p10 = /cache
/dev/block/mmcblk0p11 =
/dev/block/mmcblk0p12 =
/dev/block/mmcblk1 =
/dev/block/mmcblk1p1 = /sdcard
dm-0 =
Anyone can help to complete this table? I want to know all the partitions. This is what I get:
dev/block: (ext4)
Code:
major minor #blocks Name Description
179 0 7634944 mmcblk0 (Internal NAND)
179 1 16384 mmcblk0p1 /mnt/.lfs
179 2 16384 mmcblk0p2 /modemfs
179 3 626688 mmcblk0p3 /system
179 4 313344 mmcblk0p4 /cache
179 5 2097152 mmcblk0p5 /data
179 6 1536 mmcblk0p6 ?????
179 7 10240 mmcblk0p7 /efs
179 8 4106240 mmcblk0p8 /storage/sdcard0 (?)
179 9 327680 mmcblk0p9 /preload
179 10 1024 mmcblk0p10 ?????
179 11 51200 mmcblk0p11 ?????
179 12 2048 mmcblk0p12 ?????
179 13 16384 mmcblk0p13 ?????
179 14 2048 mmcblk0p14 ?????
179 15 16384 mmcblk0p15 kernel + recovery (?)
179 16 2048 mmcblk0p16 ?????
179 17 16384 mmcblk0p17 kernel2 + recovery (?)
179 64 2048 mmcblk0boot1 ?????
179 32 2048 mmcblk0boot0 ?????
179 96 994816 mmcblk1 (External SD)
179 97 993792 mmcblk1p1 /storage/extSdCard
I have an LG Motion and I would like a copy of your aboot file to try to see if I can get the bootloader unlocked while it's flashed on the motion.
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/sdcard/aboot.img
and send that file to me please
Thanks in advaced.
Screw LG's locked bootloaders!!!
Also this may be in the wrong place. If it belongs in development, I'm sorry.
dev/block/platform/msm_sdcc.1/by-name/aboot: cannot open for read: No such file
or directory
reas0n said:
dev/block/platform/msm_sdcc.1/by-name/aboot: cannot open for read: No such file
or directory
Click to expand...
Click to collapse
tegra platform...and we have no partition named aboot
i have x-loader.img and u-boot.img. here:
https://www.box.com/s/a6pyad63qwauos7zdw2b
Tim_Pan said:
tegra platform...and we have no partition named aboot
Click to expand...
Click to collapse
Hmmmm, you think it will still work?
Edit: what are the blocks and names of your partitions?
Sent from my LG-MS770
[email protected]:/ # cat proc/partitions
major minor #blocks name
179 0 15267840 mmcblk0
179 1 10240 mmcblk0p1
179 2 10240 mmcblk0p2
179 3 1572864 mmcblk0p3
179 4 393216 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 81920 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 13062144 mmcblk0p8
179 9 16384 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 20480 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 47104 mmcblk0p13
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0
179 48 15645696 mmcblk1
179 49 15644672 mmcblk1p1
Code:
ls -l /dev/block/platform/sdhci-tegra.3/by-name
lrwxrwxrwx root root 2013-03-10 23:24 APP -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2013-03-10 23:24 CAC -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2013-03-10 23:24 CAL -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2013-03-10 23:24 DRM -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2013-03-10 23:24 FOT -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2013-03-10 23:24 LNX -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2013-03-10 23:24 MLT -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2013-03-10 23:24 MSC -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2013-03-10 23:24 NVA -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2013-03-10 23:24 SOS -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2013-03-10 23:24 UDA -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2013-03-10 23:24 UDB -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2013-03-10 23:24 USP -> /dev/block/mmcblk0p6
reas0n said:
[email protected]:/ # cat proc/partitions
major minor #blocks name
179 0 15267840 mmcblk0
179 1 10240 mmcblk0p1
179 2 10240 mmcblk0p2
179 3 1572864 mmcblk0p3
179 4 393216 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 81920 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 13062144 mmcblk0p8
179 9 16384 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 20480 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 47104 mmcblk0p13
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0
179 48 15645696 mmcblk1
179 49 15644672 mmcblk1p1
Click to expand...
Click to collapse
No name of partitions?
Guess I'll have to figure out which partition is which on my own
I figure if your bootloader even does boot, I gotta make sure the partitions are still the same, and if not the same, flash things to the correct partitions according to your bootloader.
Sent from my LG-MS770
Can't flash the file given....our bootloader is 512KBs...yours is 10MBs............
sammyz said:
Can't flash the file given....our bootloader is 512KBs...yours is 10MBs............
Click to expand...
Click to collapse
i dont know if u still need, but download .tot or kdz for your phone and use lg binextractor(is not from lg,search google)extract the tot or kdz and get the aboot.i only have the nexus 4 and l5 so i cant help u much.
Our bootloader cannot be dumped from partitions. It's built into a lower level on the device. The two devices are in no way similar. Ours has a Tegra 3 chipset, yours is MSM.
If you really want to take a look at our bootloader, you can find a dump somewhere in the development section. But even if you find it and it fits for your device, DO NOT flash it by any means!!! It's one of the worst ideas one can come up with. You can very easily brick your device.
reas0n said:
i have x-loader.img and u-boot.img. here:
https://www.box.com/s/a6pyad63qwauos7zdw2b
Click to expand...
Click to collapse
Where did you get these from? It's not for the O4X.
Sent from my OmniROM-powered LG Optimus 4X HD
I have extracted the Gear 2 firmware to a zip so people can look at the structure and possibly start modding the device. Its extracted from the newest rom available on Sammobile. If you have any questions let me know.
htt p://bit.ly/1m4mj5m
Velrix said:
I have extracted the Gear 2 firmware to a zip so people can look at the structure and possibly start modding the device. Its extracted from the newest rom available on Sammobile. If you have any questions let me know.
htt p://bit.ly/1m4mj5m
Click to expand...
Click to collapse
Updates..
I am trying to backup the current partitions to see the kernel/recovery and not getting far. Has anyone else been working on this?
sh-3.2$ cat /proc/partitions
major minor #blocks name
7 0 19732 loop0
179 0 3817472 mmcblk0
179 1 4096 mmcblk0p1
179 2 4096 mmcblk0p2
179 3 8192 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 8192 mmcblk0p6
179 7 8192 mmcblk0p7
259 0 8192 mmcblk0p8
259 1 16384 mmcblk0p9
259 2 12288 mmcblk0p10
259 3 8192 mmcblk0p11
259 4 65536 mmcblk0p12
259 5 131072 mmcblk0p13
259 6 2996224 mmcblk0p14
259 7 524288 mmcblk0p15
179 16 4096 mmcblk0boot1
179 8 4096 mmcblk0boot0
179:0 179:3 179:7 1:10 1:14 1:4 1:8 259:2 259:6 7:2 7:6
179:1 179:4 179:8 1:11 1:15 1:5 1:9 259:3 259:7 7:3 7:7
179:16 179:5 1:0 1:12 1:2 1:6 259:0 259:4 7:0 7:4
179:2 179:6 1:1 1:13 1:3 1:7 259:1 259:5 7:1 7:5
Current information I can receive from the watch.
If I try to make a backup obviously it fails with the following message..
D:\tizen-wearable-sdk\tools>sdb shell
sh-3.2$ chmod 755 /tmp/rkdump
sh-3.2$ /tmp/rkdump /dev/mmcblk0boot0 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0boot0: Permission denied
sh-3.2$ /tmp/rkdump /dev/mmcblk0p1 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0p1: Permission denied
sh-3.2$ /tmp/rkdump /dev/mmcblk0p2 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0p2: Permission denied
In case anyone need it
Code:
ADF -> /dev/block/mmcblk0p61
APD -> /dev/block/mmcblk0p60
abl -> /dev/block/mmcblk0p27
ablbak -> /dev/block/mmcblk0p28
apdp -> /dev/block/mmcblk0p31
asdf -> /dev/block/mmcblk0p62
asusfw -> /dev/block/mmcblk0p51
bluetooth -> /dev/block/mmcblk0p40
bluetoothbak -> /dev/block/mmcblk0p41
boot -> /dev/block/mmcblk0p12
cache -> /dev/block/mmcblk0p58
cmnlib -> /dev/block/mmcblk0p17
cmnlib64 -> /dev/block/mmcblk0p18
cmnlib64bak -> /dev/block/mmcblk0p20
cmnlibbak -> /dev/block/mmcblk0p19
ddr -> /dev/block/mmcblk0p38
devcfg -> /dev/block/mmcblk0p49
devcfgbak -> /dev/block/mmcblk0p50
devinfo -> /dev/block/mmcblk0p30
dip -> /dev/block/mmcblk0p29
dpo -> /dev/block/mmcblk0p33
dsp -> /dev/block/mmcblk0p26
factory -> /dev/block/mmcblk0p64
frp -> /dev/block/mmcblk0p52
fsc -> /dev/block/mmcblk0p42
fsg -> /dev/block/mmcblk0p11
hyp -> /dev/block/mmcblk0p7
hypbak -> /dev/block/mmcblk0p8
keymaster -> /dev/block/mmcblk0p15
keymasterbak -> /dev/block/mmcblk0p16
keystore -> /dev/block/mmcblk0p48
limits -> /dev/block/mmcblk0p35
logdump -> /dev/block/mmcblk0p53
logfs -> /dev/block/mmcblk0p37
mdtp -> /dev/block/mmcblk0p23
mdtpbak -> /dev/block/mmcblk0p24
mdtpsecapp -> /dev/block/mmcblk0p21
mdtpsecappbak -> /dev/block/mmcblk0p22
misc -> /dev/block/mmcblk0p47
modem -> /dev/block/mmcblk0p25
modemst1 -> /dev/block/mmcblk0p44
modemst2 -> /dev/block/mmcblk0p45
msadp -> /dev/block/mmcblk0p32
persist -> /dev/block/mmcblk0p46
pmic -> /dev/block/mmcblk0p9
pmicbak -> /dev/block/mmcblk0p10
priv -> /dev/block/mmcblk0p63
rawdump -> /dev/block/mmcblk0p56
recovery -> /dev/block/mmcblk0p59
rpm -> /dev/block/mmcblk0p5
rpmbak -> /dev/block/mmcblk0p6
sec -> /dev/block/mmcblk0p39
splash -> /dev/block/mmcblk0p34
ssd -> /dev/block/mmcblk0p43
sti -> /dev/block/mmcblk0p54
storsec -> /dev/block/mmcblk0p55
system -> /dev/block/mmcblk0p13
toolsfv -> /dev/block/mmcblk0p36
tz -> /dev/block/mmcblk0p3
tzbak -> /dev/block/mmcblk0p4
userdata -> /dev/block/mmcblk0p66
vbmeta -> /dev/block/mmcblk0p57
vendor -> /dev/block/mmcblk0p14
version -> /dev/block/mmcblk0p65
xbl -> /dev/block/mmcblk0p1
xblbak -> /dev/block/mmcblk0p2
Code:
Number Start End Size File system Name Flags
1 67.1MB 79.7MB 12.6MB xbl
2 79.7MB 92.3MB 12.6MB xblbak
3 92.3MB 96.5MB 4194kB tz
4 96.5MB 101MB 4194kB tzbak
5 101MB 101MB 524kB rpm
6 101MB 102MB 524kB rpmbak
7 102MB 102MB 524kB hyp
8 102MB 103MB 524kB hypbak
9 103MB 103MB 524kB pmic
10 103MB 104MB 524kB pmicbak
11 104MB 106MB 2097kB fsg
12 134MB 201MB 67.1MB boot
13 201MB 4496MB 4295MB ext4 system
14 4496MB 5335MB 839MB ext4 vendor
15 5335MB 5336MB 1049kB keymaster
16 5336MB 5337MB 1049kB keymasterbak
17 5337MB 5338MB 1049kB cmnlib
18 5338MB 5339MB 1049kB cmnlib64
19 5339MB 5340MB 1049kB cmnlibbak
20 5340MB 5341MB 1049kB cmnlib64bak
21 5341MB 5346MB 4194kB mdtpsecapp
22 5346MB 5350MB 4194kB mdtpsecappbak
23 5350MB 5383MB 33.6MB mdtp
24 5383MB 5417MB 33.6MB mdtpbak
25 5417MB 5532MB 115MB fat16 modem
26 5532MB 5549MB 16.8MB ext4 dsp
27 5549MB 5550MB 1049kB abl
28 5550MB 5551MB 1049kB ablbak
29 5551MB 5552MB 1049kB dip
30 5552MB 5552MB 4096B devinfo
31 5552MB 5552MB 262kB apdp
32 5552MB 5553MB 262kB msadp
33 5553MB 5553MB 1024B dpo
34 5553MB 5587MB 34.2MB splash
35 5587MB 5587MB 4096B limits
36 5587MB 5588MB 1049kB toolsfv
37 5637MB 5646MB 8389kB logfs
38 5704MB 5705MB 1049kB ddr
39 5705MB 5705MB 16.4kB sec
40 5705MB 5706MB 1049kB bluetooth
41 5706MB 5707MB 1049kB bluetoothbak
42 5771MB 5771MB 1024B fsc
43 5771MB 5771MB 8192B ssd
44 5771MB 5773MB 2097kB modemst1
45 5773MB 5776MB 2097kB modemst2
46 5776MB 5809MB 33.6MB ext4 persist
47 5809MB 5810MB 1049kB misc
48 5810MB 5811MB 524kB keystore
49 5811MB 5812MB 1049kB devcfg
50 5812MB 5813MB 1049kB devcfgbak
51 5813MB 5880MB 67.1MB ext4 asusfw
52 5880MB 5880MB 524kB frp
53 5880MB 5948MB 67.1MB logdump
54 5948MB 5950MB 2097kB sti
55 5973MB 5973MB 131kB storsec
56 6040MB 6174MB 134MB rawdump
57 6174MB 6174MB 65.5kB vbmeta
58 6174MB 6541MB 367MB ext4 cache
59 6541MB 6608MB 67.1MB recovery
60 6644MB 6853MB 210MB ext4 APD
61 6853MB 6898MB 44.0MB ext4 ADF
62 6898MB 6931MB 33.6MB ext4 asdf
63 6931MB 6932MB 524kB priv
64 6932MB 6942MB 10.5MB ext4 factory
65 6979MB 6979MB 131kB version
66 7046MB 62.5GB 55.5GB ext4 userdata
Code:
1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
1 7 8192 ram7
1 8 8192 ram8
1 9 8192 ram9
1 10 8192 ram10
1 11 8192 ram11
1 12 8192 ram12
1 13 8192 ram13
1 14 8192 ram14
1 15 8192 ram15
179 0 61071360 mmcblk0
179 1 12288 mmcblk0p1
179 2 12288 mmcblk0p2
179 3 4096 mmcblk0p3
179 4 4096 mmcblk0p4
179 5 512 mmcblk0p5
179 6 512 mmcblk0p6
179 7 512 mmcblk0p7
179 8 512 mmcblk0p8
179 9 512 mmcblk0p9
179 10 512 mmcblk0p10
179 11 2048 mmcblk0p11
179 12 65536 mmcblk0p12
179 13 4194304 mmcblk0p13
179 14 819200 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 1024 mmcblk0p16
179 17 1024 mmcblk0p17
179 18 1024 mmcblk0p18
179 19 1024 mmcblk0p19
179 20 1024 mmcblk0p20
179 21 4096 mmcblk0p21
179 22 4096 mmcblk0p22
179 23 32768 mmcblk0p23
179 24 32768 mmcblk0p24
179 25 112640 mmcblk0p25
179 26 16384 mmcblk0p26
179 27 1024 mmcblk0p27
179 28 1024 mmcblk0p28
179 29 1024 mmcblk0p29
179 30 4 mmcblk0p30
179 31 256 mmcblk0p31
259 0 256 mmcblk0p32
259 1 1 mmcblk0p33
259 2 33424 mmcblk0p34
259 3 4 mmcblk0p35
259 4 1024 mmcblk0p36
259 5 8192 mmcblk0p37
259 6 1024 mmcblk0p38
259 7 16 mmcblk0p39
259 8 1024 mmcblk0p40
259 9 1024 mmcblk0p41
259 10 1 mmcblk0p42
259 11 8 mmcblk0p43
259 12 2048 mmcblk0p44
259 13 2048 mmcblk0p45
259 14 32768 mmcblk0p46
259 15 1024 mmcblk0p47
259 16 512 mmcblk0p48
259 17 1024 mmcblk0p49
259 18 1024 mmcblk0p50
259 19 65536 mmcblk0p51
259 20 512 mmcblk0p52
259 21 65536 mmcblk0p53
259 22 2048 mmcblk0p54
259 23 128 mmcblk0p55
259 24 131072 mmcblk0p56
259 25 64 mmcblk0p57
259 26 358400 mmcblk0p58
259 27 65536 mmcblk0p59
259 28 204800 mmcblk0p60
259 29 43008 mmcblk0p61
259 30 32768 mmcblk0p62
259 31 512 mmcblk0p63
259 32 10240 mmcblk0p64
259 33 128 mmcblk0p65
259 34 54190063 mmcblk0p66
179 32 4096 mmcblk0rpmb