Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,714 Members 41,482 Now Online
XDA Developers Android and Mobile Development Forum

[WIP/DEV] I've got a "booting" 3.4 kernel, looking to get a dev team started

Tip us?
 
JackpotClavin
Old
(Last edited by JackpotClavin; 29th December 2012 at 03:09 PM.)
#1  
JackpotClavin's Avatar
Recognized Developer - OP
Thanks Meter 2384
Posts: 831
Join Date: Feb 2011
Location: New York

 
DONATE TO ME
Thumbs up [WIP/DEV] I've got a "booting" 3.4 kernel, looking to get a dev team started

~ # cat /proc/version
Linux version 3.4.24-00010-g001648b-dirty (JackpotClavin@ThinkPad-X220) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #15 SMP PREEMPT Fri Dec 28 16:17:09 EST 2012

Howdy folks, for the last week or so I've been trying to get a response out of a 3.4 kernel for my Galaxy Nexus (Toro), and today I finally got a response from the USB so we can debug via USB, which makes the job 100x easier now that we can see what's failing via dmesg in adb shell. I was pumped for a 3.4 kernel like the other two new Nexus devices received in this awesome Android release (Nexus 4, 10), but sadly, our kernel version was left at 3.0 (and probably will be forever since the OMAP program was killed at TI)

Literally nothing works, the Google screen shows, then disappears, but we have USB debugging!!! I have a .zip that extracts the recovery.img that's currently on my device, and swaps out the old 3.0 kernel for the new 3.4 the kernels and installs it into the recovery partiton, so I'm currently in TWRP Recovery staring at a black screen, but with a working USB port

It's build off the vanilla 3.4 kernel sources from kernel.org (we have to implement the Android stuff). I tried to get the 3.4 branch from omapzoom working, but I couldn't get the USB to initialize (it "booted" by going to the aforementioned black screen but the USB wouldn't initialize, so without USB debugging, that was a no-go). What I did was I went to the earliest commits for the tuna kernel back when Google && Samsung first started working on the board (this was way back in April of 2011 for a device that was released in November 2011) and cherry-picked like 5 of those those patches for the Tuna board/config in its infancy, then applied those very early patches to the 3.4 kernel, added a few Android USB drivers from the Nexus 10 (just because they too, were built the 3.4 kernel) (remember this is the vanilla 3.4 kernel), and basically rolled with the punches of build errors from obsolete definitions and features that were from the 3.0 kernel bits that were killed off or modified in the last year and a half for the 3.4 kernel. It's not much right now, but getting the USB to initialize has taken me a week+ (although I got it on my first try with the vanilla 3.4 kernel from kernel.org), but now, I can say that there's a 3.4 kernel for the Galaxy Nexus with infinite potential

So I'm asking for some help in assembling a dev team to work together in getting this 3.4 kernel working 100% on the Galaxy Nexus (remember we have over a year features that must be added to this kernel like the screen, touch screen, LITERALLY EVERYTHING that came after USB debugging)

A big thank you to:
Texas Instruments for great documentation on every TI board
Google (for the Android open-source project)
The CM Team and every Android ROM contributor for that matter
Samsung (for an awesome device in the Galaxy Nexus)
Everybody who has ever contributed to the Linux kernel
Lastly, Linus Torvalds, for the Linux Kernel itself (Today's his birthday, too!)

If you want to try out this 3.4 kernel for yourself (I don't know why anybody would want to) but if you feel like booting into a black screen as your recovery, for some killer ADB shell access, here's a .zip
http://www.mediafire.com/?qj9acb3366lf3d7
374c83b07d673922ee7d486246629e8b 3.4KernelRecovery.zip

If you want to get your recovery back, you'll have to boot into fastboot mode and fastboot flash recovery

I'll upload the source to my github hopefully tonight or tomorrow morning, so respond in this thread if you're in to help with this 3.4 kernel!

12-29: Source is up at the my github, there's a link in my signature. I've merged all the Android 3.4 bits, and is now buildable with the tuna_defconfig and using the ARM Android 4.6 toolchain from the prebuilts directory of the root of the Android source tree. I've merged all the Tuna-related code up to his commit: https://android.googlesource.com/ker...36020901646111 which is from a year and seven months ago, at that point way back then (on the 3.0 kernel of course), the screen displayed and the touchscreen worked. (I was in TWRP recovery when I tested that out so I can't elaborate further on where they were, but it has sensor and input code) My goal is to get the display to initialize so I can see if the touch panel works and buttons and whatnot. After that, it's just merging the latest Tuna-related code from Google/Samsung so that the Tuna drivers are where the current mr1 release is.
The Following 159 Users Say Thank You to JackpotClavin For This Useful Post: [ Click to Expand ]
 
ak
Old
#2  
ak's Avatar
Recognized Contributor
Thanks Meter 39756
Posts: 9,238
Join Date: Feb 2011
Location: Ak Land Valley

 
DONATE TO ME
:thumbup:

Sent from my Galaxy Nexus using xda app-developers app



AK Power:

OnepOne Kernel: Coming
N4 Kernel: Link
N7 Kernel: Link
Gnex Kernel: Link
Website: Link
Github: Link
Twitter: Link
Dh: Link
Google+: Link

The Following 8 Users Say Thank You to ak For This Useful Post: [ Click to Expand ]
 
mangusZen
Old
#3  
mangusZen's Avatar
Senior Member
Thanks Meter 235
Posts: 433
Join Date: Apr 2011
Location: Bologna,Italy
I'm impressed, great work! Are you sure there will be no need of some proprietary stuff to get it to work? :thumbup:

Sent from Vega gnex
 
Hawkw1nd
Old
#4  
Hawkw1nd's Avatar
Senior Member
Thanks Meter 67
Posts: 119
Join Date: Oct 2010
Location: Sydney
Quote:
Originally Posted by JackpotClavin View Post
~ # cat /proc/version
Linux version 3.4.24-00010-g001648b-dirty (JackpotClavin@ThinkPad-X220) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #15 SMP PREEMPT Fri Dec 28 16:17:09 EST 2012

Howdy folks, for the last week or so I've been trying to get a response out of a 3.4 kernel for my Galaxy Nexus (Toro), and today I finally got a response from the USB so we can debug via USB, which makes the job 100x easier now that we can see what's failing via dmesg in adb shell. I was pumped for a 3.4 kernel like the other two new Nexus devices received in this awesome Android release (Nexus 4, 10), but sadly, our kernel version was left at 3.0 (and probably will be forever since the OMAP program was killed at TI)
Great work !!!

Don't lose hope regarding TI, however, as the OMAP program has not been killed off. OMAP 5 is due to be released some time during Q1 2013 and they're refreshing OMAP 4 with the 4470. I think they're going to see how they do next year before deciding their future.
One X - ViperX 4.0.6
Nexus 4 - PSX v3.x
Nexus 7 - Rasbean or AOKP
 
mpokwsths
Old
#5  
mpokwsths's Avatar
Senior Member
Thanks Meter 1668
Posts: 631
Join Date: Nov 2009
Location: Chania

 
DONATE TO ME
Good work. Now we will see who of the GNex kernel devs are really up to the hype...
 
Angelakaro
Old
#6  
Angelakaro's Avatar
Senior Member
Thanks Meter 70
Posts: 369
Join Date: Feb 2012
WOW! Good luck,i can't code but i can be a good tester when the kernel is ready
PHONE: Nexus 5
The Following User Says Thank You to Angelakaro For This Useful Post: [ Click to Expand ]
 
drive2droad
Old
#7  
drive2droad's Avatar
Senior Member
Thanks Meter 58
Posts: 568
Join Date: Jan 2010
Location: Delhi
hope to see morrific or franco getting to help you out very soon
Device I - Nexus 5
ROM : Android L Dev Preview
Kernel : Modified Stock
Recovery : Philz Touch
----------------------------------------------------
Device II - Nexus 4
ROM : CyanogenMod 11 Nightly
Kernel : Stock CM
Recovery : Philz Touch
----------------------------------------------------
Device III - MOTO G (DS)
ROM : Stock
 
thegtfusion
Old
#8  
thegtfusion's Avatar
Senior Member
Thanks Meter 2158
Posts: 3,859
Join Date: Jan 2011
Location: Utrecht
Morfiiiicccc and franco to the rescue please!!!

Sent from my Nexus Prime
Google Nexus 5

ROM: Stock
Kernel: Linaro kernel r32.

The Following 5 Users Say Thank You to thegtfusion For This Useful Post: [ Click to Expand ]
 
JackpotClavin
Old
(Last edited by JackpotClavin; 29th December 2012 at 02:52 PM.)
#9  
JackpotClavin's Avatar
Recognized Developer - OP
Thanks Meter 2384
Posts: 831
Join Date: Feb 2011
Location: New York

 
DONATE TO ME
I've got some more recent commits merged for the Tuna, like the input (touchscreen and buttons) as well as the panel, but the display still fails to initialize. I also merged all the necessary Android kernel bits. When the display finally initializes I can check to see if the touchscreen works and buttons as well. The commits I've merged so far had a working display and touchscreen on the 3.0 kernel, but something broke while porting it up to the 3.4 kernel; but once that's fixed, we should have those things working again just as if this were the 3.0 kernel. From then on, it'll just be merging all the newer Tuna-related code from where we stand now to that the latest Tuna-code from Google and Samsung on the mr1 branch.

Here's the latest dmesg where the display is failing (line 272): http://pastebin.com/5nCMCgQd

Sent from my Galaxy Nexus using xda app-developers app
The Following 10 Users Say Thank You to JackpotClavin For This Useful Post: [ Click to Expand ]
 
ak
Old
#10  
ak's Avatar
Recognized Contributor
Thanks Meter 39756
Posts: 9,238
Join Date: Feb 2011
Location: Ak Land Valley

 
DONATE TO ME
If you want help by developers the right way is a git with a group of master chief .... Please post the link if exist

Sent from my Galaxy Nexus using xda app-developers app



AK Power:

OnepOne Kernel: Coming
N4 Kernel: Link
N7 Kernel: Link
Gnex Kernel: Link
Website: Link
Github: Link
Twitter: Link
Dh: Link
Google+: Link


The Following 3 Users Say Thank You to ak For This Useful Post: [ Click to Expand ]
Tags
3.4, galaxy, kernel, nexus, samsung
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes