Post Reply

How to backup your modem.

26th September 2013, 11:37 AM   |  #1  
dapaua's Avatar
OP Senior Member
Barcelona
Thanks Meter: 244
 
347 posts
Join Date:Joined: Dec 2006
Donate to Me
More
There is a modem for the optimus G here:
http://downloads.codefi.re/houstonn/...E975_E977_E976
but it is from firmware 10b. You may want to try if it works better than your firmware. In this case, it is better if you make a backup of your current modem firmware, so you can go back to your version. Here I will write instructions to backup your modem, so you can restore it if you need.

Probably some of you know this already and feel like these are old news, but maybe we can build a modem firmware library.

You need root and a way to make an adb connection to your phone. If you cannot use adb, you can always use a terminal emulator on your phone, but this makes it a bit harder to type the commands. Also, this is for people who understand what they are doing. If after reading the tutorial you don't understand what the commands do, please don't try it. Or at least don't make me responsible if your phone bricks. Here we go.

NON NEEDED STEPS: This steps are here to show why this works.
1-Connect to your phone by adb.
2- On the terminal type :
Code:
mount
You'll see the following (amongst other things):
Code:
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,context=u:object_r:radio_efs_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
This means that the partition containing the firmware is /dev/block/platform/msm_sdcc.1/by-name/modem and it is mounted at /firmware.

NEEDED STEPS
1- Connect by adb
2- On the terminal type
Code:
su
Check if confirmation is needed on the phone screen. If needed, accept.
3-
On the terminal type:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/modem.img
4-You will receive the following after some seconds:
Code:
131072+0 records in
131072+0 records out
67108864 bytes transferred in 29.959 secs (2240023 bytes/sec)
5-Type
Code:
exit
exit
adb pull /sdcard/modem.img
6-Now you have your backup.

HOW TO PACK THIS BACKUP FOR FLASH:
1-Download the file: cwm-lgog_e975-europe-10b_modem.zip from http://downloads.codefi.re/houstonn/...E975_E977_E976
2-Open the zip file and replace the existing modem.img with your file
3-Rename the file to something meaningful, like cwm-lgog_e975-europe-10f_modem.zip


After these steps, you should be able to flash any modem, knowing that you can go back to your old version.
You can upload the packed files here, so we can have a library. I will upload the modem from european 10f version here. I tested it and it works correctly, but I won't take any responsibility for what you do with this file.
Good luck.

All this info is obtained from examining the houstonn LGOG modem flasher from team codefire, so all thanks go to them. Thanks.
Last edited by dapaua; 26th September 2013 at 11:42 AM.
The Following 13 Users Say Thank You to dapaua For This Useful Post: [ View ]
27th September 2013, 12:28 AM   |  #2  
MitoTakatori's Avatar
Senior Member
Flag Quezon City
Thanks Meter: 206
 
1,448 posts
Join Date:Joined: Jul 2013
More
Very nice tutorial man. It will help newbies like me to back up and restore our modem.img, especially those who have F180* phones that wants or being converted to E975. Nice job.
27th September 2013, 06:30 AM   |  #3  
kimitza's Avatar
Senior Member
Flag Buzau
Thanks Meter: 613
 
1,744 posts
Join Date:Joined: Feb 2010
Donate to Me
More
Nice,i'll add this to the Freaking Annoying Questions.

Sent from Asylum via LG E975/smart phones,dumb people.
2nd October 2013, 02:54 AM   |  #4  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Mar 2012
Nice job.. Its work in e977 with 10a firmware?

Thx.

Sent from my LG-E975 using xda app-developers app
2nd October 2013, 06:42 AM   |  #5  
dapaua's Avatar
OP Senior Member
Barcelona
Thanks Meter: 244
 
347 posts
Join Date:Joined: Dec 2006
Donate to Me
More
You should be able to backup your e977 modem following this tutorial.

Quote:
Originally Posted by renatonolo

Nice job.. Its work in e977 with 10a firmware?

Thx.

Sent from my LG-E975 using xda app-developers app

3rd October 2013, 05:25 AM   |  #6  
Member
Thanks Meter: 40
 
45 posts
Join Date:Joined: Dec 2010
could you please do the same thing for the misc partition and upload it somewhere?
I saw that freegee is touching this one so please mention if your phone was opened with freegee.
3rd October 2013, 09:35 AM   |  #7  
dapaua's Avatar
OP Senior Member
Barcelona
Thanks Meter: 244
 
347 posts
Join Date:Joined: Dec 2006
Donate to Me
More
Quote:
Originally Posted by sonty

could you please do the same thing for the misc partition and upload it somewhere?
I saw that freegee is touching this one so please mention if your phone was opened with freegee.

I am sorry, I am not going to upload my misc partition, as this partition contains my IMEI.
I can, however, tell you how to backup it:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.img
Can I ask why you need that?
3rd October 2013, 05:04 PM   |  #8  
Member
Thanks Meter: 40
 
45 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by dapaua

I am sorry, I am not going to upload my misc partition, as this partition contains my IMEI.
Can I ask why you need that?

I had no idea the IMEI is also there. I asked for it because the baseband version is also stored there and it's kind of odd to know I'm flashing the modem from EU-10f and the displayed version is TW-10a. I'm still hoping to solve that issue.
3rd October 2013, 05:13 PM   |  #9  
dapaua's Avatar
OP Senior Member
Barcelona
Thanks Meter: 244
 
347 posts
Join Date:Joined: Dec 2006
Donate to Me
More
Ah, OK. Tomorrow I'll check if the misc partition can be mounted, this would make editing it much easier.
4th October 2013, 07:58 AM   |  #10  
Junior Member
Thanks Meter: 2
 
3 posts
Join Date:Joined: Sep 2013
Quote:
Originally Posted by dapaua

Ah, OK. Tomorrow I'll check if the misc partition can be mounted, this would make editing it much easier.

I think it is not possible to mount the misc partition.

“In any case, the misc partition isn't a "filesystem" partition as you are familiar with. It is actually just a simple data structure. In fact, only the system, cache, and userdata partitions are actually filesystem partitions, and the cache partition is only a filesystem partition part of the time -- during radio and spl updates, it also is used as a simple data structure with a header field and a payload field...”

http://forum.xda-developers.com/show...25&postcount=3

I was trying to find some additional info about this structure but without success so far.

On may F180K the misc partition has 16 777 216 Bytes. Some interesting offset:
0x8000 – 0x800E IMEI (15Bytes)
0x8800 – 0x8824 Baseband version (37Bytes)
0x9000 – 0x9024 Baseband version (37Bytes)

CyanogenMod display the last one data on the Settings->About phone->Baseband version

The Following User Says Thank You to jumper8 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Optimus G General by ThreadRank