NS4G modem patch on CM7/9/10 based roms, nightlies and previews- 2/12/13

Search This thread
succesful run this patch on PA 1.99 :D

ca98cd93-cb7b-c6be.jpg


link for test or reference:
dl.dropbox.com/u/820341/nexusmodempatch-PA199.zip

note: I set the lcd density to 160, forgot to edit..

The kernel is nyanCM10-Crpmodem
It's include in the patch?

Sent from my SPH-D700 using xda app-developers app
 

Nashdogg

Senior Member
Nov 22, 2011
1,902
1,331
Maine
yes, there were two different patch for cm10 0808 & pa 1.99 but kernel was the same

Would I be able to add the boot.IMG and other files from the cm10 shadow kernel to the patch myself and it work right or is there other things that I have no clue how to do involved?:D

Sent from my SPH-D700 using Xparent SkyBlue Tapatalk 2
 

didhiy

Senior Member
Mar 29, 2011
1,085
1,294
Jakarta
  • Like
Reactions: sgtkwol

xboxfanj

Recognized Developer
Apr 24, 2011
7,313
7,797
St. Louis
I tried to compile using a stock-ish kernel. Nyan seems to freak out on my phone. Any help/advice? https://github.com/sgtkwol/android_kernel_samsung_victory

Edit: should have had this before: It boots, but getting no signal. Otherwise, it works perfectly fine.

You have to use the init.rc ueventd.victory.rc and init.victory.rc from didhiy's. You can either use the kernel unpack and repack utility or you can recompile. Use the commits in the device repo here: http://github.com/nexussense4g/android_device_samsung_epicmtd in the crespo-modem branch

Sent from my SPH-D700 using Tapatalk 2
 
  • Like
Reactions: sgtkwol

sgtkwol

Senior Member
Sep 2, 2010
417
284
Buffalo, NY
You have to use the init.rc ueventd.victory.rc and init.victory.rc from didhiy's. You can either use the kernel unpack and repack utility or you can recompile. Use the commits in the device repo here: http://github.com/nexussense4g/android_device_samsung_epicmtd in the crespo-modem branch

Sent from my SPH-D700 using Tapatalk 2

Got it, was using wrong commits from bbelos. This is stock kernel w/ bbelos overclock/undervolt, fixed capacitive backlight, and crespo modem support. If someone wants to package it. Just replace boot.img in the .zip from didhiy with this one. http://marcusant.com/sgtkwol/boot.img

Edit: Huge thanks for the help, about to travel and Nyan hates my phone. Lost over 10% battery while using navigation for half an hour with it plugged into car charger. It was extremely hot. Not knocking Nyan, as it seems to be a good kernel with a lot of users, but it really hates my phone.

Further editing: If you just add the 2 commits for crespo modem here https://github.com/xboxfanj/android_kernel_samsung_victory/commits/gingerbread/ and compile the kernel, you can just replace the boot.img in the .zip and you can run any kernel with crespo modem.
 
Last edited:

Flint420

Senior Member
Mar 21, 2008
137
70
twitter.com
What would it take to use this with the samurai daito cm7 kernel? The modem is great but I miss samurai kernel.

Sent from my SPH-D700 using Tapatalk 2
 

adamdelozier

Senior Member
Mar 31, 2011
853
346
Milford, CT
So I see in the OP there is a zip file for cm 9. Is that only for paranoid android or is it for all cm 9 variants, like aokp?

Sent from my SPH-D700 using xda premium
 

sgtkwol

Senior Member
Sep 2, 2010
417
284
Buffalo, NY
So I see in the OP there is a zip file for cm 9. Is that only for paranoid android or is it for all cm 9 variants, like aokp?

Sent from my SPH-D700 using xda premium

PA uses the CM kernel. Exact same thing with no edits, so you can use any CM kernel or other things like in this thread. Just make sure you are using CM9 based stuff for PA 1.5 or lower and CM10 based stuff for PA 1.7 or higher. The build.prop will be different, and you will need to compare and edit appropriately.
 

didhiy

Senior Member
Mar 29, 2011
1,085
1,294
Jakarta
Got it, was using wrong commits from bbelos. This is stock kernel w/ bbelos overclock/undervolt, fixed capacitive backlight, and crespo modem support. If someone wants to package it. Just replace boot.img in the .zip from didhiy with this one. http://marcusant.com/sgtkwol/boot.img

Edit: Huge thanks for the help, about to travel and Nyan hates my phone. Lost over 10% battery while using navigation for half an hour with it plugged into car charger. It was extremely hot. Not knocking Nyan, as it seems to be a good kernel with a lot of users, but it really hates my phone.

Further editing: If you just add the 2 commits for crespo modem here https://github.com/xboxfanj/android_kernel_samsung_victory/commits/gingerbread/ and compile the kernel, you can just replace the boot.img in the .zip and you can run any kernel with crespo modem.

Finally there is a stock kernel :) I recommend this boot.img to updated in OP link with my zip file (modified or unmodified doesn't matter as long as it works)

It's not nyan source fault actually, because I modified the config & add some tweaks that might be messed up...

yeah, that's the patch for the zImage..
I got the initramfs config by create diff file between the CM7 stable with CM7 kanged by xboxfanj & compare the result with some commits from xboxfanj & bbelos on their github than apply it to CM10

If you or xboxfanj want to upload the initramfs to github it will be nice :good:

---------- Post added at 04:09 AM ---------- Previous post was at 04:01 AM ----------

What would it take to use this with the samurai daito cm7 kernel? The modem is great but I miss samurai kernel.

Sent from my SPH-D700 using Tapatalk 2

I love to do that. but the source to big for me.. hard to download it

So I see in the OP there is a zip file for cm 9. Is that only for paranoid android or is it for all cm 9 variants, like aokp?

Sent from my SPH-D700 using xda premium

No CM9 build till now.. just CM7 and CM10 0808 or PA 1.99

[PATCH] Nexus S 4G modem patch for any CM7 based ROM or any CM10 ROM (like PA1.99)
 

GuidingArrow

Member
Feb 8, 2012
41
4
Atlanta
Just to be clear, if I am on PA1.99 all I need to do is flash the zip for it and I will be using the nexus modem (without any issues)?
 

saramon

Senior Member
Jan 19, 2011
986
252
Salt Lake City
Got it, was using wrong commits from bbelos. This is stock kernel w/ bbelos overclock/undervolt, fixed capacitive backlight, and crespo modem support. If someone wants to package it. Just replace boot.img in the .zip from didhiy with this one. http://marcusant.com/sgtkwol/boot.img

Edit: Huge thanks for the help, about to travel and Nyan hates my phone. Lost over 10% battery while using navigation for half an hour with it plugged into car charger. It was extremely hot. Not knocking Nyan, as it seems to be a good kernel with a lot of users, but it really hates my phone.

Further editing: If you just add the 2 commits for crespo modem here https://github.com/xboxfanj/android_kernel_samsung_victory/commits/gingerbread/ and compile the kernel, you can just replace the boot.img in the .zip and you can run any kernel with crespo modem.


Any chance you or someone could compile it with shadow... my phone is hating nyan too, excessive battery drain... and I don't know the first thing about kernel builds... would like voodoo color though...
 

didhiy

Senior Member
Mar 29, 2011
1,085
1,294
Jakarta
Just to be clear, if I am on PA1.99 all I need to do is flash the zip for it and I will be using the nexus modem (without any issues)?

You need flash modem.bin (this is the nexus modem) with odin too
1. Install the zip file via CWM, turn it off after installing finish
2. Go to download mode, flash modem.bin with odin

No warranty about any issue
 
  • Like
Reactions: GuidingArrow

Top Liked Posts

  • There are no posts matching your filters.
  • 70
    Hi, I made this thread because people have been asking me what to do to make a ROM compatible with the Nexus S 4G modem and RIL, so I made a flashable zip so you can use the modem and RIL on any CM7 based ROM (like MIUI or JoyOS or whatever you fancy).

    Note: If using a ROM not on this list, use the closest cm patch corresponding to the os and then download the phone and settings apks from the nexus s 4g Roms and either put them in the zip or push them. That way, roaming and update prl and profile will work.

    I included the KL2 modem in each AIO zip. If you do not like it, or would like to try other modem files, try the flashable zips here: http://xdaforums.com/showthread.php?t=1077168

    CM7
    just flash the zip below (made by nashdogg and I)
    http://d-h.st/dGR
    I added the nexus audio drivers in kernel and lib, and I also added voodoo color, voodoo sound, and Battery Life Extender.

    CM9 (Roaming Fixed) Instructions:
    Just flash this in CWM. Custom kernels are available in the 2nd post. http://d-h.st/U1L

    AOKP ICS (by Nashdogg)
    http://d-h.st/vVP

    Jellybean patches thanks to dropple, nashdogg, andy_nu, and didhiy ( newest patch as of 12/5/12 with nitest didhiy 1124 kernel voodoo color)

    PA 2.54 AIO ns4g modem patch- http://d-h.st/CQm

    CM10 AIO ns4g modem patch- http://d-h.st/96W

    AOKP-JB Build-4 AIO ns4g modem patch- http://d-h.st/t4n


    CM10.1 http://d-h.st/i9s

    Universal

    http://goo.im/devs/effsi/misc
    these should allow you to switch back and forth between the epic modem and nexus modem.

    what it does :
    installs blobs related to the modem
    edits build.prop lines to match the modem
    -should- work with all current versions (2.3 through 4.2.2)
    -should- work with all roms that support switching modems (aokp, cm, pa, pac, baked, hellybean, etc...)

    what it doesn't do :
    it does not install or change the actual modem itself.
    it does not install or change the kernel.
    it does not backup anything.
    it does not replace any apks.
    it does not perform any tweaks or extras of that sort.
    it does not fix issues in the system ie if 4g isn't working in the kernel this installer won't magically fix it or inversely break it if it works.

    so that means you will need to install the modem itself (through zip or the MORE RECOMMENDED METHOD OF ODIN)
    and that you will need to make sure you are on a proper kernel that supports your modem of choice.

    Ex... on stock aokp4.2.2 (which is epic modem by default) to switch to the nexus modem you would flash kernel of choice for nexus modem (didhiy/mine), then modem with recovery or odin, then flash swap2nexusmdm.zip
    Ex2... on ck10.1 (which is nexus modem by default) to switch to the epic modem you would flash modem of choice with Odin or recovery, then any kernel that supports epic modem and then flash swap2epicmdm.zip


    Note: These instructions are a bit different than effsi's as the order of flashing does matter when on an epic modem ROM and kernel as the modem flash is dependent on kernel drivers that are not present in epic modem kernels.

    Any Nexus S 4G modem can be used but the one included is supposedly best. Try any other one and let me know if it works better

    My kernel sources are at https://github.com/xboxfanj/android_kernel_samsung_victory in the gingerbread branch so if you want to make a kernel based on that or cherrypick the patches in my kernel into another kernel, you are welcome to.
    Use my commits and bbelos' commits at https://github.com/nexussense4g/android_device_samsung_epicmtd in the crespo-modem branch to get GPS and modem working on any ROM.

    Thank you to didhiy for adapting the patches that bbelos and I made. For support for Update PRL and Profile, you need to copy some of the overlays from the Nexus S 4G device sources.

    Thank you to bbelos, coolya, the CM SGS team, CM Nexus S team, AOSP, Samsung, Google, and me for making this patch.
    15
    Custom CM9 Kernels (note these are not all in one zips, so if you choose to flash these, you must also flash the AIO if you haven't already, and each time you upgrade builds, you'll need to flash the aio and the custom kernel if you still want it):

    Nyan:
    http://marcusant.com/android/epic/nyan_CM9-CrpMdm.zip

    Shadow: http://marcusant.com/android/epic/Shadow_CM9-CrpMdm.zip

    Anyone is welcome to include this patch in their rom, just as long as you give all the contributors credit.

    And also, if someone wants to make this for cm9, that'd be awesome. Use bbelos's crespo-modem branch in his device repo and use his crespo-modem branch in his vendor repo.

    Then use my kernel patches at my github and make a full cm9 build and if it works, release that build and release a patch like mine with kernel, and ril bins, libs, and etc files, and build.prop and everything outside system like the mtd scripts and modify updaterscript so it works, or just use my metain folder

    Sent from my SPH-D700 using Tapatalk 2
    10
    First! Sweet, I always wanted to do that. :- )

    And thank you so much xboxfanj for continuing to make this the phone that might never die! You and all the other great devs are definitely making it easy to
    wait to upgrade to a new phone. Keep up the good work, and thanks again.

    No problem. Glad you enjoy it. If there's ever anything you would like for me to port or do, PM me and I will do whatever I can to make it happen.

    Sent from my SPH-D700 using Tapatalk 2
    10
    I updated a patched stock kernel for cm10 nightly 0918 & after on nitest kernel thread.
    9
    Re: NS4G modem patch on CM7/9/10 based roms, nightlies and previews- 1/12/13

    NS4G Modem Patch for 4.2.2

    http://db.tt/E9i3nrqh

    NS4G Reverter for 4.2.2

    http://db.tt/Y0BVB4MQ

    Thank You all :)

    Nashdogg, hope your daughter get well soon, so you can provide the patch again :)

    Sent from my SPH-D700 using xda premium