Post Reply

[ROM] CM10 port to I317

1st December 2012, 09:51 PM   |  #1  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,419
 
3,535 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Hello everyone.

I've been working on the last few days on porting CM10 (or any AOSP rom really) to our device. I think I got the basics working for now so I'd like to share that with all of you.


1. download the attached file.
2. reboot into twrp
3. factory reset
4. wipe "system"
4. flash the file
5. flash gapps (find it in google).
6. reboot

What's been tested:

-Radio: phone calls work and 4G LTE speeds are intact.
-Audio: Bluetooth audio, A2DP, speaker, headphones and in call audio all work.
-GPS: no problemo.
-Camera: works without a problem if you use a third party app like Pudding Camera, Zoom FX.
What else?

Known issues:
- The stylus doesn't work. Need to investigate.
- Radio crashes every now and then.
- Audio in phone calls requires an initiation phase: make 2 phone calls to any number when you boot up to get audio functional on the 3rd call.


This ROM is tested and should work fine on the following devices:
1. AT&T Note 2
2. T-mobile Note 2
3. International LTE Note 2

Dev talk: The device tree was forked from N7100. Most of the board share the same peripherals so it was a matter of getting the correct defconfig and the correct initramfs. I'm uploading the stuff to my github now so you guys can have a look and perhaps fix the remaining bugs Hopefully this will facilitate getting official support by CM10.


Download link:

initial release: http://www.mediafire.com/?n4occ5rwv2nra7p

Dec 08 update: http://www.mediafire.com/?h1h4658y5555k58 (note. this update is compressed using 7z. Use 7-zip to decompress the archive first and then flash the resulting zip file in TWRP)

Dec 13 update: http://www.mediafire.com/?a6hl8qlv5v261q1

Dec 26 update: http://www.mediafire.com/?lubkf4c7c4h4lzc

Jan 13 update: http://www.mediafire.com/?vafgo52b353pep9 Laggy UI? flash this kernel after flashing this rom
Last edited by madmack; 13th January 2013 at 09:34 PM.
The Following 69 Users Say Thank You to madmack For This Useful Post: [ View ]
1st December 2012, 09:51 PM   |  #2  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,419
 
3,535 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Sources:

you'll need to get my sources to build this copy yourself:

1. vendor blobs. Yes I was nice and added the necessary binaries here. You don't need to adb pull em. Please also note that I did some changes to the smdk4412-common directory as well.
2. smdk4412-common device tree changes.
3. The device tree.
4. RILJ implementation

1. goes to ./vendor/samsung/
2. goes to ./device/samsung/smdk4412-common
3. goes to ./device/samsung/i317
4. apply the patch manually to frameworks/base

To compile, after sourcing the envsetup.sh file: "breakfast i317 & make"
Last edited by madmack; 26th December 2012 at 05:41 PM.
The Following 13 Users Say Thank You to madmack For This Useful Post: [ View ]
1st December 2012, 10:06 PM   |  #3  
jetrii's Avatar
Senior Member
Thanks Meter: 35
 
309 posts
Join Date:Joined: Oct 2010
More
Awesome! Currently downloading it, and will report back with my results.

SMS: Works
Calling: Connects, but no audio
Wifi: Works
4G: Works
GPS: Having a few problems...

Problems:
-AOSP keyboard crashes on boot and won't show up at all. Seems to be the only problem so far.
-Phone randomly froze once while opening the notification panel for around 50 seconds. (trebuchet FC afterwards)
-Unable to access Play store (Server Error messages) -- Flashing an older version of GApps fixed this (October version)


Going to try an earlier version of Gapps. I used the newest one.
Last edited by jetrii; 1st December 2012 at 11:03 PM.
1st December 2012, 10:43 PM   |  #4  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,419
 
3,535 posts
Join Date:Joined: Dec 2008
Donate to Me
More
To the guys trying to compile the sources with their own custom vendor/device tree, did you run into an issue with the kernel compiling with an error due to not finding firmware/SlimISP_ZK.bin ? The kernel compiles just fine when you cd to that directory and run make but it refuses to do it correctly with a full CM make.

If you guys figured it out , lemme know ! it's the last step I need before publishing my code. That part of the kernel needs to compile correctly otherwise the camera just FCs. I tried changing the toolchain from 4.6 to 4.4.3 but that threw some other errors.

Quote:
Originally Posted by jetrii

Awesome! Currently downloading it, and will report back with my results.

SMS: Works
Calling: Works
Wifi: Works
4G: Works

Problems:
-AOSP keyboard crashes on boot and won't show up at all. Seems to be the only problem so far. Could be from the GApps package that I flashed.
-Phone randomly froze while opening the notification panel for around 50 seconds. (trebuchet FC afterwards)

awesome. are you with t-mo btw? are you using the same exact device (i317) ?
1st December 2012, 10:44 PM   |  #5  
jetrii's Avatar
Senior Member
Thanks Meter: 35
 
309 posts
Join Date:Joined: Oct 2010
More
Quote:
Originally Posted by madmack

To the guys trying to compile the sources with their own custom vendor/device tree, did you run into an issue with the kernel compiling with an error due to not finding firmware/SlimISP_ZK.bin ? The kernel compiles just fine when you cd to that directory and run make but it refuses to do it correctly with a full CM make.

If you guys figured it out , lemme know ! it's the last step I need before publishing my code. That part of the kernel needs to compile correctly otherwise the camera just FCs. I tried changing the toolchain from 4.6 to 4.4.3 but that threw some other errors.



awesome. are you with t-mo btw? are you using the same exact device (i317) ?

I am on AT&T with the same device. I should probably update my carrier

EDIT: Flashed an older version of Gapps (October 2012) and the play store now works!
Last edited by jetrii; 1st December 2012 at 10:49 PM.
1st December 2012, 10:51 PM   |  #6  
DarthPiggie's Avatar
Senior Member
Thanks Meter: 43
 
173 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by madmack

To the guys trying to compile the sources with their own custom vendor/device tree, did you run into an issue with the kernel compiling with an error due to not finding firmware/SlimISP_ZK.bin ? The kernel compiles just fine when you cd to that directory and run make but it refuses to do it correctly with a full CM make.

If you guys figured it out , lemme know ! it's the last step I need before publishing my code. That part of the kernel needs to compile correctly otherwise the camera just FCs. I tried changing the toolchain from 4.6 to 4.4.3 but that threw some other errors.



awesome. are you with t-mo btw? are you using the same exact device (i317) ?

Yes i did bro. You needed to edit the makefil in the kernel's firmware directory. I recommend that you take a look at the stock Makefile for the stock Kernel to see the difference. The SMDK4412 kernel makes certain assumptions about child devices that it shouldn't.

Sent from my SGH-T889 using xda app-developers app
1st December 2012, 10:52 PM   |  #7  
madmack's Avatar
OP Senior Member
Flag Boston, MA
Thanks Meter: 4,419
 
3,535 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Quote:
Originally Posted by DarthPiggie

Yes i did bro. You needed to edit the makefil in the kernel's firmware directory.

Sent from my SGH-T889 using xda app-developers app

Can you please show me your edits?
1st December 2012, 10:53 PM   |  #8  
deeznutz1977's Avatar
Senior Member
Flag cHARMcity,MD
Thanks Meter: 2,876
 
3,875 posts
Join Date:Joined: Jul 2010
More
Flashed on my tmo note2 and our modem . And it worked data, calls didnt check messages I must have had a bad gapps cuz it wasnt playing nice awesome work
Like above the keyboard wasnt working.. edit: dieu about posting about another device in this thread . Just excited
Sent from my SGH-T889 using xda premium
Last edited by deeznutz1977; 1st December 2012 at 10:57 PM.
1st December 2012, 10:54 PM   |  #9  
Member
Thanks Meter: 11
 
86 posts
Join Date:Joined: May 2010
I can also confirm that the AOSP keyboard crashes and the home button doesn't work.
The Following User Says Thank You to Jonathon1710 For This Useful Post: [ View ]
1st December 2012, 10:56 PM   |  #10  
jetrii's Avatar
Senior Member
Thanks Meter: 35
 
309 posts
Join Date:Joined: Oct 2010
More
GPS doesn't seem to be working. According to GPS test, it is able to see a few stateliness, and occasionally connects to them, but it's unable to provide a location in Google Maps.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in AT&T Galaxy Note II Android Development by ThreadRank