[Q] Is this the right way to extract Modem for Odin? - Galaxy S II Q&A, Help & Troubleshooting

Hi,
After searching and reading through the forum about extracting the modem from the phone and package it for Odin, there is no specific command for SGII that I can find.
So, please help me confirm if these are the correct steps. I want to backup my modem before flashing a new one through Odin.
--------------------------
adb shell
su
# dd if=/dev/block/mmcblk0p8 of=/sdcard/modem.bin bs=4096
Copy modem.bin to linux
$ tar -H ustar -cvf my_modem.tar modem.bin
$ md5sum -t my_modem.tar >> my_modem.tar
$ mv my_modem.tar my_modem.tar.md5
----------------------------
now, I can use the my_modem.tar.md5 file as a backup if I want to go back to the original modem, right?
Thanks.

Related

[Q] full rom dump?

use to follow darky's tutorial for my i9000 do a system dump then write an odin flashable rom for backup,
but i have no clue what to dump on my i9100??
The most common partitions are:
/dev/block/mmcblk0p5 -> Kernel
/dev/block/mmcblk0p7 -> Cache
/dev/block/mmcblk0p8 -> Modem / Radio / Baseband (w/e you like to call it)
/dev/block/mmcblk0p9 -> System (factoryfs for Odin .tars)
/dev/block/mmcblk0p10 -> (user) data
i tried it, extracted all the files and created the tar but it fails as soon as i start it..
heres the commands i used :
dd if=/dev/block/mmcblk0p9 of=/sdcard/factoryfs.rfs bs=4096
dd if=/dev/block/mmcblk0p7 of=/sdcard/cache.rfs bs=4096
dd if=/dev/block/mmcblk0p5 of=/sdcard/zImage bs=4096
dd if=/dev/block/mmcblk0p8 of=/sdcard/modem.bin bs=4096
Click to expand...
Click to collapse
then
tar -H ustar -c factoryfs.rfs cache.rfs modem.bin zImage > rom.tar
Click to expand...
Click to collapse
and then md5 ... ?? what am i doing wrong?
Yeah, you can't just reflash raw dumps with Odin, unfortunately.
You can use them to restore via dd though.
But this thread might help for Odin flashing: (the re-packing part)
http://forum.xda-developers.com/showthread.php?t=1081239
read a bunch of threads from that link and so on,
i dont have a linux machine at work so i need to take this home and try but i honestly got my doubts, looks too complicated for a noob like me ha!
i need some easy tutorial to follow, i guess i just have to wait till someone actually writes it!
thank for the help though!

T959TLKG2 modem request

Hi,
Can anyone please provide me T959TLKG2 modem for download.
thanks in advance for any help given.
demetris_I said:
Hi,
Can anyone please provide me T959TLKG2 modem for download.
thanks in advance for any help given.
Click to expand...
Click to collapse
I don't think you can rip the modem.
Hi,
Thanks for your reply.
You can rip the modem using root explorer after you rooted the phone.
Browse system with root explorer and find modem.bin copy paste it onto sd card and the post it here
demetris_I said:
Hi,
Thanks for your reply.
You can rip the modem using root explorer after you rooted the phone.
Browse system with root explorer and find modem.bin copy paste it onto sd card and the post it here
Click to expand...
Click to collapse
I just searched EVERY directory, there is no modem.bin to be found. It can't be ripped in anyway with a stock rom.
Are you rooted?
With root, run adb and use:
adb shell
su
cat /dev/block/bml12 > /sdcard/modem.bin
dd if=/dev/block/bml12 of=/sdcard/modem2.bin bs=4096
exit
exit
Then md5 them to see if they are the same but i think cat /dev/block/bml12 > /sdcard/modem.bin will do the trick just fine.
demetris_I said:
Are you rooted?
With root, run adb and use:
adb shell
su
cat /dev/block/bml12 > /sdcard/modem.bin
dd if=/dev/block/bml12 of=/sdcard/modem2.bin bs=4096
exit
exit
Then md5 them to see if they are the same but i think cat /dev/block/bml12 > /sdcard/modem.bin will do the trick just fine.
Click to expand...
Click to collapse
I've got the modem.bin file for you, where can I put it so you can download it
EDIT: N/M I just made a mediafire account... I will post link as soon as I know which is proper file to post for you.
When I md5sum, I'm a little confused... heres what I did..
for one I did
md5sum -t t959_gb_modem.tar >> t959_modem.tar (not a type, did use different filenames)
mv t959_modem.tar t959_modem.tar.md5
This left me with 2 files... one which was the tar modem, 12.8mb,
t959_gb_modem.tar... and the other file was 1kb, t959_modem.tar.md5
The second time I did this...
md5sum -t t959_gb_modem.tar >> t959_gb_modem.tar (same filenames)
mv t959_gb_modem.tar t959_gb_modem.tar.md5
this left me with one file, 12.8mb, t959_gb_modem.tar.md5
I guess what I need to know is which is the proper method to use so the file will flash in ODIN.
As for the tar command, I use tar -H ustar -c modem.bin > t959_gb_modem.tar
thx, Maniac
I dont need odin flashable, just zip/rar it and upload it, thanks
Modem.bin should be 12,0 MB (12.582.912 bytes) when right click and select properties on it
Multiupload would be great.
http://www.multiupload.com/
thanks again
P.s
for odin flashable tar size should be:
Size:12,0 MB (12.585.032 bytes)
Size on disk: 12,0 MB (12.587.008 bytes)
After you have the correct modem.bin
Modem.bin should be 12,0 MB (12.582.912 bytes) when right click and select properties on it
Then to make it odin flashable you need a linux live cd or linux installation on hdd then:
tar -H ustar -c modem.bin > T959TLKG2.tar
MD5 it for a security check:
md5sum –t T959TLKG2.tar >> T959TLKG2.tar
Rename the tar file like this:
mv T959TLKG2.tar T959TLKG2.tar.md5
And you will have:
T959TLKG2.tar.md5
Odin flashable
The file I have is 12.8m so I think
there may be something wrong. But i'm at work now so I can't upload now.
Sent from Samsung Fascinate (XDA Prem)
No problem, and thanks.
Maybe you see what reported 12.288kb which is correct
Thanks for everything, modem found in full dump link by harimgs.
great modem btw

odin flashable package making

i have heard that a lot of devs are struggling to make an odin flashable package.so i share this tutorial.hope i help you in any way.
make a backup folder in external sdcard
open terminal emulator in phone
in a terminal emulator.run
su
dd if=/dev/block/mmcblk0p14 of=/mnt/extSdCard/backup/mmcblk0p14_system.img bs=4096(for system)
dd if=/dev/block/mmcblk0p18 of=/mnt/extSdCard/backup/mmcblk0p18_recovery.img bs=4096(for recovery)
dd if=/dev/block/mmcblk0p15 of=/mnt/extSdCard/backup/mmcblk0p15_userdata.img bs=4096(for user data)
dd if=/dev/block/mmcblk0p17 of=/mnt/extSdCard/backup/mmcblk0p17_cache.img bs=4096(for cache)
dd if=/dev/block/mmcblk0p7 of=/mnt/extSdCard/backup/mmcblk0p7_boot.img bs=4096(for kernel)
now copy all these files in a your computer and open a linux command line
tar -H ustar -c "INSERT_.IMG FILE HERE" mmcblk0p14_system.img > package_name.tar
md5sum -t package_name.tar >> package_name.tar
mv package_name.tar package_name.tar.md5
Add any combination of image files you want after the "-c" and before the ">"
Make sure each .IMG file has a space between the next one.
best of luck
credits
das7982
darky
Anybody found it useful?
press thankks if you like my work
Tryin'
Edit : oh no my computer broken
?
press thankks if you like my work

Pit Files Create

Can someone please help code to complete pit files from g850f to create ?*:good:
adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/mypitfile.pit bs=X skip=X count=X"
3ly51um said:
Can someone please help code to complete pit files from g850f to create ?*:good:
adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/mypitfile.pit bs=X skip=X count=X"
Click to expand...
Click to collapse
Did you get the numbers right ??
I would need the same info here:
http://forum.xda-developers.com/gal...t-efs-rest-t3169643/post62128668#post62128668

img a research on Alcatel 6034 or 6035R

Hello,
I am looking for a mmcblk0p3 file located in the phones to redo the update.
to check the score of the phone:
Code:
adb shell cat proc/partitions
here is the code to extract the file in the SD card:
Code:
adb shell su -c dd if=/dev/block/mmcblk0p3 of=/sdcard/ids.img bs=4096
I tried but the problem my phone not recognize sd card as there is always block the startup logo.
here is the second code to extract the file on pc:
Code:
adb -d shell su -c busybox dd if=/dev/block/mmcblk0p3 > C:\Users\%username%\Desktop\ids.img
when I install a ROM by accident I mmcblk0p3 erase the file is replaced with the boot file.
I try again to do the update but I have a problem because it marks me "failure reading device information. Check the condition of the phone"
I'm looking to remake mmcblk0p3 updating the phone.
there is there anyone who could share that file (1024 kb) => traceability?
Thank you for your reply.

Categories

Resources