yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab Plus] chip.hughes:
make menuconfig ARCH=arm

When I run this command I get a GUI in the terminal, not sure what to choose or just to accept the defaults. I attached a screen shot.

Chip
[Samsung Galaxy Tab Plus] garyd9:
Need to run it with the defconfig parameters as well (see examples I gave several posts back.) The whole point of menuconfig is to let you turn on and off kernel features.... explore it some and you'll see what I mean.
[Samsung Galaxy Tab Plus] chip.hughes:
I'm going to jump around a bit, as I really need to run out and get some stuff done today, but the kernel image will be located in arch/arm/boot and called "zImage"

I ran the ./build_p6210_kernel, I got the spam. Cannot find zImage.

Chip
[Samsung Galaxy Tab Plus] garyd9:
Are you getting errors? When I run the same script, here are the last several lines generated:

Kernel: arch/arm/boot/Image is ready
LZMA arch/arm/boot/compressed/piggy.lzma
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/piggy.lzma.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
/home/garyd9/GT-P6210/kernel/scripts/mk_fipsbinary.sh arch/arm/boot/zImage
Make kernel fips binary..
Done.
Kernel: arch/arm/boot/zImage is ready

If you aren't seeing that, then you might be getting an error. Look at the spam/output and try to figure out what's going wrong.
[Samsung Galaxy Tab Plus] chip.hughes:
Ran out of space on my Linux box, short sighted of me I know, but I had several gig available when I started this project. Machine resisted all efforts to expand partition, I don't think I left it enough room to even remove anything. Could not revert to snapshot because had to delete that in order to attempt the resize. Didn't want to abandon all the work I had already done. Oh, well started over with new machine, this one has a 40 GB drive. Installed all the prerequisites, except sun-java6-jdk, kept getting error, looked all over the net, added repositories, clean sources list, everything, finally tried openjdk. Opened terminal and:

mkdir -p ~/android/system

cd ~/android/system

repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

repo sync -j8

It ran for HOURS. Again. Then failed: error: RPC failed; result=18, HTTP code = 200. No explanation, no recourse, nothing, just hours of data that didn't go anywhere. I searched the drive, found a folder, Android, not much in it.

Breaks my heart. Starting over.

Chip
[Samsung Galaxy Tab Plus] chip.hughes:
Did not have lzma installed, some sort of compression utility. Trying again...
[Samsung Galaxy Tab Plus] chip.hughes:
Woohoo! I have zImage!
[Samsung Galaxy Tab Plus] chip.hughes:
Well Gary, I tweaked your kernel. Added support for USB wireless, Everything still appears stable.:) Device still shows no wireless extensions for usb0.:( I'm still missing something. Maybe a wifi module?
[Samsung Galaxy Tab Plus] aorth:
I just realized that kernels built using a compiler other than GCC 4.4.3 break the baseband on my P6200. I had read that the prebuilt Atheros wireless module would break, but it was working for me, so I just kept on compiling with Linaro 4.6, etc, frustrated as hell.

On a hunch I recompiled with GCC 4.4.3 from the Android NDK and everything's working now. I feel like a retard. That should teach me to live on the bleeding edge.

Back to hacking. When are we gonna start porting CM9? I'm game! :)
[Samsung Galaxy Tab Plus] SrulDog:
please please please port cm9!!! I wish I had the skills (or the time to acquire the skills) to get it done!
[Samsung Galaxy Tab Plus] Gazorninplat:
Sorry I read through both this and your root thread and haven't come up with the answer. The firmware is listed in device settings right? So if the build ends with P6210XXLB2, I have LB2 firmware?

Does anybody know if LB2 is post-LA3, and therefore probably won't work with this kernel?

Thanks!
[Samsung Galaxy Tab Plus] mike216:
Me to CM9 would be awesome Gary and your the only one with the brains around here. I'll gladly pay for your time
[Samsung Galaxy Tab Plus] garyd9:
Decoding firmware versions:

L == 2012

A == Jan

3 == 3rd something (not sure)

LB2 is 2012, Feb (so it's later than LA3)
[Samsung Galaxy Tab Plus] garyd9:
If I do it, it wouldn't be for money. Don't expect anything to happen any time soon, however. Even samsung developers (who do this as a full time job) haven't managed to get ICS running on this device. Hell, they can't even fix the wifi issues.
[Samsung Galaxy Tab Plus] mike216:
I do mean to bring up the money thing bud BUT I really don't have anything else I can offer. I'm learning Android on my days off so hopefully one day I can contribute to coding. Thanks Gary
[Samsung Galaxy Tab Plus] mike216:
Well your kernel is light years ahead of what Samsung left us stock. I know you used there source to improve it but stock responsiveness sucked.After flashing your kernel the first thing I thought was, why couldn't they have it functioning like this?

The point being that I have a hunch you can get it even if Samsung is struggling
[Samsung Galaxy Tab Plus] Gazorninplat:
Thanks! Dang! Maybe I'll install an older firmware version like KL1 or KL3. Not sure if it's the firmware, but the battery life is definitely less than what I was expecting after reading the reviews for the 7+.

However, LB2 firmware isn't available on the Official Firmwares thread yet. Can I use ODIN tool to make my own flashable backup of LB2 before I try to install an older firmware?

I also have a 7+ that doesn't have the IR port.

Thanks!

Jason
[Samsung Galaxy Tab Plus] ikeny:
I asked the same question here, and got no response. It doesn't seem like it can be done.

Don't you hate it when Samsung came up with all these different variants of the same model? I'm considering returning mine, and order one from the US (with IR blaster even though I'll never use the IR app).
[Samsung Galaxy Tab Plus] bittersound:
Has anyone used this and also the OMGBBQROM Final Release? I wondered how the two compare... I'm currently using the latter but have not tried garyd9's effort yet...
[Samsung Galaxy Tab Plus] garyd9:
They don't compare. What I've done is a kernel replacement, not a firmware replacement. The other is a firmware replacement, not a kernel replacement.

The kernel is mostly invisible, while the firmware is VERY visible:

Kernel: processor control, low level sound routines, low level networking, clocking, charging, etc..

Firmware: the entire user interface and built in applications

Put another way: If you buy a house with property, the land and house's foundation could be considered the kernel, while the house structure itself would be the firmware.
[Samsung Galaxy Tab Plus] bittersound:
sorry, could you dumb that down a bit more for me please?

Is special firmware required to sit on top of your new kernel? I assume that custom firmware should be able to sit on any kernel (with caveats for features added or missing)?

cheers!
[Samsung Galaxy Tab Plus] bdds13:
The problem is that my OMGBBQROM (Custom firmware) is based on LA3 firmware. This kernel was created with older firmware versions in mind (such as KL2). If you install this firmware with OMGBBQROM, it will disable wifi and you won't be able to use it. The good news is that I'm currently trying to create a rom (or custom firmware) that will be compatible with this kernel.
[Samsung Galaxy Tab Plus] nrage23:
Gary is there any way you could add Voodoo Sound support to the kernel? Supercurio has added support for the 7+ to the software but we need a kernel that supports it.
[Samsung Galaxy Tab Plus] garyd9:
If he's willing to tell me what needs to be done in the kernel, I'd be happy to compile it it.

Gary
[Samsung Galaxy Tab Plus] ColMustard:
It appears to be working fine with Gary's Kernel. I just installed it this morning and the only thing I did noticed is the notification sound when triggered, resets the volume level. Not sure this is related to G's Kernel or is an overall issue with the app.
[Samsung Galaxy Tab Plus] Ceelos09:
Voodoo Louder is a paid app though... :confused:

I'm assuming that if Supercurio gives the ok, he will give us a free "slimmed down" version of it. Kind of how he did with Voodoo Control.
[Samsung Galaxy Tab Plus] jancilo:
@garyd9

i have a request...

could you make an UV kernel for p6200?

thanks
[Samsung Galaxy Tab Plus] garyd9:
Do you really expect me to take the time to respond when you didn't even take the time to read the first 3 posts in this thread? I really wish XDA would issue infractions for stuff like this.
[Samsung Galaxy Tab Plus] locerra:
Hey Gary,

Thanks for your work. I've included some of your changes in our cm9 kernel (hope you don't mind, I gave you proper credit). FYI, samsung released an update1 for the p6210, and 3 of your changes made there way into their kernel (verbatim, other than a typo in one your comments).
[Samsung Galaxy Tab Plus] edan1979:
Q: Can you make a kernel for the GT-P6200, GT-P6200L, or SGH-T869?

A: I probably could if I had the hardware to test with. Without a sample of hardware, I can't even begin to guess if what I've done already will work, or what it might take to make it work. If you really want me to do one of those devices, please feel free to send me one. (Making a recovery kernel is quite a bit easier as it doesn't have to work with the ethernet, sound, modem or any other drivers.)
[Samsung Galaxy Tab Plus] garyd9:
Unlike samsung, I'm happy to share my work with others. Actually, I'm flattered that others would use my efforts. Many of my changes are derived from others (who I've tried to give credit to.) That's what makes this a great platform: OPEN SOURCE.

I wonder if it would be compatible with the GPL if I added a condition to my changes: May not be used in closed-source platforms.

Gary
[Samsung Galaxy Tab Plus] nrage23:
He has a link on his XDA post to his github for kernel patches. I believe this will have what you need.

https://github.com/project-voodoo/sound_kernel_patches

If not I'll try to PM him to maybe contact you.

Here is the link to his thread with all of his links and info aswell.

http://xdaforums.com/showthread.php?t=806195
[Samsung Galaxy Tab Plus] jancilo:
thanks a lot

can you explain me how can i do this?

or if you have a guide...

Sorry for my english :o
[Samsung Galaxy Tab Plus] garyd9:
It won't ever be supported. The 7+ uses a much cheaper sound chip (yamaha) that he's not interested in supporting.
[Samsung Galaxy Tab Plus] garyd9:
I'm not being sarcastic or mean.. No, I can't. It's not that I don't want to, it's that I'm not capable. I tried with someone in this (or perhaps another) thread. I'm not a good teacher, as I don't have patience.
[Samsung Galaxy Tab Plus] mike216:
I'm curious where you learned Gary or is computers job related for you?
[Samsung Galaxy Tab Plus] garyd9:
That's a hard question to answer. I learned back in the days when you had to know hardware to write software. My first programming lang was assembly. I learned "C" as a way to shortcut writing code - I'd write the stuff in C, and then hand-optimize the generated assembly.

For the majority of my life (I'm 41), I've been developing software, and I tend to enjoy life more when I'm closer to the hardware (which is why I enjoy kernels, but hate java.)

Where did I learn? Well.. I remember when I was about 12 years old, I was carrying a stack of punch cards at my school and dropped them. They got all out of order and someone ripped me a new one. They made me put them back in order, but I was happy just sequencing them - I had to understand what they were, what they meant, etc. I learned the basics of software development that day.

From that point forward, I learned by diving into the deep end and figuring it out as I went along. My brain seems to work well like that (at least for software/hardware - not so much in other areas.)

Oh, and it's also my profession.

Gary
[Samsung Galaxy Tab Plus] mike216:
Thanks, I'm not sure my brain is big enough to learn Java :rolleyes: but I'm going to try anyways. I'm a miserable machine mechanic at domino sugar and need a hobby and hopefully one day a way out! Just bough Java for dummys and this is where I'm going to start. I wish I grew up with a smart friend or new someone else that had the same interest. All my friends are dummys and can't move music from there computer to there phone :D

Look I remember periods and new sentences for ya ;)
[Samsung Galaxy Tab Plus] kzoodroid:
Here are some of the tutorials I've found on building kernels, its a lot harder than people think, well at least for me as I'm linux illiterate. Took me a weekend to get a linux box up and running to the point of connecting to github but then ran out of free time. The android central link is a little dated, the dev was building for the HTC Hero that came out 3 years ago but its still has some useful information.

http://forums.androidcentral.com/ht...how-build-your-own-kernel-package-source.html

http://wiki.cyanogenmod.com/index.php?title=Building_Kernel_from_source

http://source.android.com/source/building-kernels.html
[Samsung Galaxy Tab Plus] mike216:
Thanks a lot kzoodroid! I really like the first tutorial but there all good. We seem to be in the same shoes. I will start on this Wednesdays night and I'll let you know how far I can get. Going to go for galaxy nexus since there's source for it.

Sorry for getting off topic Gary! Will pm you kzoodroid if I make any progress and think I can help and likewise :)
[Samsung Galaxy Tab Plus] kzoodroid:
The link to Google's site would be the one to follow for building for the Nexus as that is what the site is meant for.

http://source.android.com/source/building-kernels.html

I was trying to follow the one from Android Central for the GTAb as source code is available from Samsung. The first step for me would be to learn how to build a Honeycomb kernel from source then move on to an AOSP kernel for CyanogenMod or MIUI. Only problem is a lack of time and/or commitment as this is just another hobby and not a priority right now.
[Samsung Galaxy Tab Plus] SWFlyerUK:
Hi guys,

Thanks for this,

I'd recommend running this script, works fantastic, all my lag is gone;

http://xdaforums.com/showthread.php?t=1137554

I'm on GT-P6210.
[Samsung Galaxy Tab Plus] mike216:
Hi Gary, I know your busy learning your new device. Was wondering if your still developing for us? Please don't shoot. :)

Take care.
[Samsung Galaxy Tab Plus] garyd9:
There isn't much to do. My kernel for HC on this device is extremely stable for me (been about 2 months since I've rebooted it) with most of the samsung bloatware frozen. Unless samsung actually releases the wifi source, I don't see anymore need for developing this kernel.

Like everyone else, I'm waiting for ICS. Then I'll be waiting for the source release.

Gary
[Samsung Galaxy Tab Plus] mike216:
Thanks Gary! I do agree its smooth as can be. That's kind of where I was getting at. Good to know you'll continue when ICS source call comes. Supercurio put together a display hack for colors and gamma settings.
[Samsung Galaxy Tab Plus] skurys:
Just wondering, I prefer stock JB (XXDM3) but am looking to undervolt. Would this work with JB? If not are there any other kernel options for this tab running stock JB? Thx.
[Samsung Galaxy Tab Plus] loolser:
this cant work on jb, if u want to uv your tab u have to buy tegrak>> play store. No one built custom kernel for us :/
[Samsung Galaxy Tab Plus] skurys:
I'm curious how it is that that would work, if the stock kernel doesn't support UV/OC ex with setcpu, etc
[Samsung Galaxy Tab Plus] loolser:
Try tegrak
[Samsung Galaxy Tab Plus] skurys:
I tried the free version and it seems to be compatible as the options are there since the latest versions, just require to buy the full app.

But what I mean is, how is it that tegrak can accomplish this on a stock kernel, when other apps such as setcpu etc require a kernel that supports UV/OC?
[Samsung Galaxy Tab Plus] loolser:
This program support stock kernels, i bought this app n i can confirm u that u can uv cpu n gpu also oc cpu n gpu, but this app isnt support anymore by developers n app offer u poor tweaks.
[Samsung Galaxy Tab Plus] DigitalMD:
Its ot worth the effort. The power saving is so so small and the risk of instability is so high, why bother under volting.
[Samsung Galaxy Tab Plus] stevenb691:
Om

---------- Post added at 02:30 PM ---------- Previous post was at 02:30 PM ----------

:eek::p;):confused::o:what::cool::banghead:
[Samsung Galaxy Tab Plus] Terrandroid:
Hello, when i try to flash this on stock rom (xxdm3) it hangs while booting. It gets past bootlogo but then its stuck. Tried reflashing but no luck.

Any luck getting this to work? Really want to speed up the tab a little.
[Samsung Galaxy Tab Plus] dustywax:
Can someone please make this flash able with odin for me? I keep trying and get Signature invalid. No matter what I do I can't get it flashed.
[Samsung Galaxy Tab Plus] nrage23:
Is there any way to get ad hoc WiFi support in this kernel?
[Samsung Galaxy Tab Plus] garyd9:
I hope so. It won't happen in the next couple of days, though.
[Samsung Galaxy Tab Plus] garyd9:
new version:

20120101:

undervolting and overclocking support (only up to 1.4GHz)

If you decide that you want to overclock or undervolt your tablet, you are 100% on your own. You can easily fry your tablet's processor by messing with voltages and clock speeds. If you have issues with this kernel, remove all overclocking and voltage adjustments before you even bother posting on this thread.

Use "SetCPU" to change voltages, clocks, and governors. SetCPU can be found on the market and on XDA at the following link: http://xdaforums.com/showthread.php?t=505419 (I am in no way affiliated with the author of that program.)
[Samsung Galaxy Tab Plus] mike216:
Woohoo Gary your F*;+ awesome! Been waiting for this development ever since I bought my tab. I find the development stuff is my favorite and most interesting thing about ANDROID, thanks bud
[Samsung Galaxy Tab Plus] kodfish:
Working fantastic with no frills cpu! Thanks! Any chance you can get this kernel to auto mount sd-ext? I cant get it to mount for tye life of me... Thanks gary! You kick ass!
[Samsung Galaxy Tab Plus] mike216:
Flying at 1.4

Just to let my fellow community members know you can only make 25 step increments when under or over volting. So if you UV by 10 its really going to go -25. This was explained to me by a few kernel dev over on the nexus s forums. If anyone disagrees with me OK but just don't kill me I'm simply explaining what was explained to me
[Samsung Galaxy Tab Plus] chrisrotolo:
boot anims

as for boot animations, CM7 guys have done it with samsungs, I think comment out the samsungani, and replace with a standard /system/media/bootanimation.zip or sanim.zip , I know there is also the samsungloop thing as well ( glowing samsung text ), I would hope the bootanimation.zip would contine to play over that.

I found a few guy threads about it , nothing exact though. If you would like more input, I can find it for you.

excellent job.
[Samsung Galaxy Tab Plus] garyd9:
seems I left in a minor issue (cosmetic only) in this kernel: The kernel version string is showing as 'dirty.' (seen in cpuSpy or by typing 'uname -a' from a shell)

Why? The linux kernel makefile will append this string to the version information is the kernel is part of a git repo AND if any files are modified from the repo. I have a script that modifies the "Makefile" so the "version" of the build is included (ie: 20120101.) However, modifying the Makefile puts that particular file "out of sync" with the repo... so it's flagged as dirty.

Not a big deal, and it'll be corrected in the next build...

Take care and happy new year

Gary
[Samsung Galaxy Tab Plus] garyd9:
It's not that simple. As I posted somewhere before, the problem isn't implementing it (I already did.) In fact, if someone wants to drop a bootanimation.zip in /system/media and reboot, they'll see samsung's bug in all it's glory.

Samsung's own "bootanimation" binary that lives in /system/bin does exactly what I'd expect it to do. However, it never STOPS doing it. I tested it with a boot anim from my phone, and it plays and loops the anim just fine. The problem is that it never STOPS playing the animation. Ever.

I'm sure there's a way to deal with that, but I'll need to spend the time to actually dig in to how the bootanimation stuff is supposed to work, how it knows when to stop working, etc. Being that it's a purely cosmetic issue and there are more serious things that I need to resolve (such as the ethernet driver), it might take more than a day or two.

Gary
[Samsung Galaxy Tab Plus] diospada11:
I'm so darn envious with p6210 owners! I hope someone with knowledge starts developing kernels for p6200. :))

Anyways, nice work garyd9!
[Samsung Galaxy Tab Plus] bwtl1000r:
Setting device governor to performance seems to lock it into 800mhz. I've delved into some other Exynos 4210 cpu sources on github. I'm looking for a fix so I don't have to try to reinvent the wheel. I've also added some other basic changes from netarchy. Gary you should see the commits in github if I've got it all set up right.
[Samsung Galaxy Tab Plus] garyd9:
Want to trade? Of course, then I'd be doing development for the p6200...

Take care

Gary
[Samsung Galaxy Tab Plus] garyd9:
It locks to whatever the scaling_max_freq is. I've confirmed this working. (I believe there's a safety factor that will lock it to 800 is max is below 800.)

You are free to do what you'd like with the source, of course. My primary focus is stability and efficiency. As I mention in my OP, I don't care about benchmark results. I _do_ care about how long the battery lasts, however.

I've noticed that you have at least one commit that sacrifices battery for performance. That's something I just won't put in a kernel for a portable device. Using something like SetCPU, a user can tweak the scaling parameters all they want if they like to recharge often. The conservative governor should be conservative. If you want more performance by default, switch to ondemand.

Also, you might want to wait a few days before going nuts with performance based changes. I'm in the process of adding android ram_console support, which can help in debugging problems that cause kernel panics, etc. I wish I had done the ram_console support BEFORE the voltage tweaking - it probably would have saved me some headaches. (My 6210 doesn't UV nearly as well as my i777.)

Take care

Gary
[Samsung Galaxy Tab Plus] bwtl1000r:
Sorry friend, I won't hijack your thread anymore. I got all excited with putting pieces of the puzzle together for this device. I do enjoy the company of such level headed folks here so please don't run away.

Thanks
[Samsung Galaxy Tab Plus] nrage23:
Flashed and everything is working great. Thanks for getting this done.
[Samsung Galaxy Tab Plus] chrisrotolo:
how about remove samsungani binary all together? If you've gotten the file decoded and can just re write the code thats probably the best way.

just trying to offer advice, but you are all over this stuff.

brilliant work.
[Samsung Galaxy Tab Plus] Entropy512:
Adhoc is actually usually wpa_supplicant, not the kernel 95%+ of the time.

Check my initramfs commits for the I777.

I had the same problem, there's a way to kill the bootani when the time is right. (I forget what, look at my git. :P)

I also have stuff in there that only uses the bootanimation binary when there is a bootanim present - it safely falls back to samsungani when needed. (Otherwise, you get the "shiny android text" animation).

This is a known issue on I9100/I777 Gingerbread sources that's a result of how frequency scaling is handled.

https://github.com/arighi/linux-gt-i9100/commit/0f5fe9b5dbe0c0387a7c274e08720122fed8d501

May be different for HC sources though
[Samsung Galaxy Tab Plus] raqball:
Picked one up today and it was rooted using your method and running this kernel in a matter of minutes after making it's way out of the box.. Thanks Gary!!!! :-)