yashsingh1/xdaforums huggingface dataset:
[G Tablet Android Development] Blades:
You know what drives me nuts? The huge difference in the 2.6.38-rc4 tegra source versus our current source.. Specifically the cryptic clock sources.. On the 2.6.38 tegra2_clocks.c, there are a couple comments here and there to help clear things up..

heres an example

static struct clk_pll_table tegra_pll_x_table[] = {

/* 1 GHz */

{ 12000000, 1000000000, 1000, 12, 1, 12},

{ 13000000, 1000000000, 1000, 13, 1, 12},

{ 19200000, 1000000000, 625, 12, 1, 8},

{ 26000000, 1000000000, 1000, 26, 1, 12},

/* 912 MHz */

{ 12000000, 912000000, 912, 12, 1, 12},

{ 13000000, 912000000, 912, 13, 1, 12},

{ 19200000, 912000000, 760, 16, 1, 8},

{ 26000000, 912000000, 912, 26, 1, 12},

/* 816 MHz */

{ 12000000, 816000000, 816, 12, 1, 12},

{ 13000000, 816000000, 816, 13, 1, 12},

{ 19200000, 816000000, 680, 16, 1, 8},

{ 26000000, 816000000, 816, 26, 1, 12},

Thanks for clearing up all that confusion! whew.. jk.. None of this really translates to the current source.. pll_x_table seems to only contain 1ghz and 750mhz.. Theres also no reference to tegra_clk_virtual_cpu in current source.. from the 2.6.38 source theres this little diddy -

/* virtual cpu clock functions */

/* some clocks can not be stopped (cpu, memory bus) while the SoC is running.

To change the frequency of these clocks, the parent pll may need to be

reprogrammed, so the clock must be moved off the pll, the pll reprogrammed,

and then the clock moved back to the pll. To hide this sequence, a virtual

clock handles it.

*/

In the 2.6.38 source theres tegra2_dvfs.c which seems to give us a nice run down of acceptable vdd according to specific clocks

static struct dvfs_table virtual_cpu_process_0[] = {

{314000000, 750},

{456000000, 825},

{608000000, 900},

{760000000, 975},

{817000000, 1000},

{912000000, 1050},

{1000000000, 1100},

Theres a separate cpu_process_1 for the other core.. which is obviously identical.

Currently, there seems to be no rules on the flexibilty of the clocks.. I've seen some values that I don't remember seeing defined in the source (when I cat /sys/devices/cpu/cpu0/cpufreq/scaling_cur_freq).. and when I set them to be the minimum scalable value.. its fine and dandy.. But thats just an obscure thought.. I'm itching to overclock this thing.. but more so make sense of everything as I'm coming from mach-msm land..

I don't know how you do this pershoot.. :) or even put down 'pick apart dvfs-nvodm' on your to do list.. If you want me to test any risky stuff out.. I'll do it in a heartbeat.. It seems to be all I'd be capable of.

Thanks again!

edit:

after my novel of a post I took a look at cpu-tegra.c in 2.6.38 (doh, I can't believe I didn't see this before).. theres a whole bunch of goodies from google.. basically a retake of nvidias setup.. now that I think of it, I do remember seeing a commit from android's git in the logs.
[G Tablet Android Development] stiphy:
Thanks pershoot,

Applied the update today. Still no change on my failure to wake issue.

Let me know if there is any additional logging or anything you want me to check.

Thanks,

Sean
[G Tablet Android Development] pershoot:
you must have something else going on. the sleep death issue that's been the norm on this line of tabs usually happens after some time (and not consistently). for you it ocurs immediately and consistently. i have yet to experience this issue (aside from when using the stock kernel; then i can reproduce it).

the device literally slept for 1.5 days before i tapped power. came right back up. im on cm7 tho (but on tnt lite haven't faced it either). i also have not heard of this reocurring for the majority of people.

what does dmesg say? any last_kmsg? what does logcat say right before it goes in to death?

when did this start ocurring for you?

pls see me in irc tonight, and ill have you flash cm7 for testing and also we can go through some things.
[G Tablet Android Development] stiphy:
Thanks pershoot, I'll try to join you later on IRC (back at work now doing some horrible UI work).

My tab has always done this. I guess it's possible that I just have a bad piece of hardware. I can try to do an exchange if necessary (still within 30 days) but I figured that if it was software then it was actually good to have a unit that could faithfully repro the problem.

Thanks,

Sean
[G Tablet Android Development] stiphy:
I just wanted to update the thread with our findings from IRC etc.

After writing a quick shell script to capture dmesg out put on a loop and not seeing anything, and trying some kernel builds, we came to the conclusion that there was likely a hardware problem with my unit. I exchanged it yesterday for another one and the new one is working correctly. So while some of the problems with not waking may be software related, it seems that sometimes the problem is in fact hardware related.

As an interesting side note the woman at the Kmart Appliance store immediately stuck a $279.99 clearance sticker on the one I returned (despte me explaining that it had a problem) and stuck it in the back. I'm going to guess that it will go back to the Sears Outlet store, but it makes me very wary of buying clearance/Outlet stuff if they take something a customer has exchanged with a known problem and just resell it.

Anway, Thanks to all who helped, especially pershoot!

Sean
[G Tablet Android Development] pershoot:
Glad it worked out for you.

Enjoy! :)
[G Tablet Android Development] stanglx:
What is funny is mine did not have this issue for 5 weeks after getting the unit.. it showed up for about another 5 weeks... then wiped and re-installed and it has not show itself again.... This is a very weird issue...
[G Tablet Android Development] stiphy:
Indeed, it makes me wonder if there is some sort of race condition/timing happening, and possibly some units are more prone to it than others.

It is difficult to troubleshoot as once it goes into the "unwakeable" state no logs are generated so its hard to figure out what is going on.

Sean
[G Tablet Android Development] pershoot:
yea.. without it reporting something via log dump (which you saw running dmesg in a loop), it is a bit of a task to track.

i had a hunch or two, and could try to amend those/add some debugging around there, but 99.8% of the units are good to go with it in, so i am suspecting something else at play. i also cannot reproduce it, so it becomes that much harder to troubleshoot.
[G Tablet Android Development] jmdearras:
I would love to understand the power sequencing and sleep in this device. I am a hardware guy and feel totally blind in this box! I want to attach a hardware debugger to it and see where it goes wrong. :mad:
[G Tablet Android Development] pershoot:
Sorry all.. been a lil slow with updates. Been a madhouse as of late for me. Ill try my best to sort for all devices swiftly.
[G Tablet Android Development] pershoot:
gtab/zpad - 2.6.32.28 - http://droidbasement.com/db-blog ; RM updated
[G Tablet Android Development] das7771:
I am also having a similar issue.. It seems that once I install pershoot's kernel I have the problem. I am not 100 percent sure it's the kernel yet but it seems to start after I install the kernel. I have wiped every thing and reinstalled twice and my tab still dies after going to sleep. I am currently running tnt lite 4.2. As of right now I did a fresh install of tnt 4.2 with out pershoots kernel. I will see if the problem arises again. If it does not happen by tonight I will reinstall pershoots kernel and see what happens.
[G Tablet Android Development] pershoot:
pull some logs, if you are certain you do not have a HW issue, as the other person had.
[G Tablet Android Development] pershoot:
remember to keep wifi set to never sleep (it was found that not having it to never caused issues), and ensure dialer is disabled (use autorun manager).
[G Tablet Android Development] das7771:
Thanks pershoot, I forgot about the whole wifi never sleep thing. I have to get caught up on every thing as I have been away a while dealing with the family stuff. I also installed autorun manager and did as you said. I will keep checking it and hopefully the issue will go away.

Thanks for all of your hard work.
[G Tablet Android Development] pershoot:
i did find one scenario where you could get stuck in a situation where the screen wont turn back on.

if you leave usb plugged in for a long time (2+ hours) and let it sleep in that state, the screen may not come back on.

ill look in to it.
[G Tablet Android Development] pershoot:
gtab - 2.6.32.29 - gingerbread/froyo - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] pershoot:
g2,gtab/zpad - refreshed - 2.6.32.29 - http://droidbasement.com/db-blog
[G Tablet Android Development] das7771:
well excuse me for ever remotely thinking that your hard work was causing me problems. i did a fresh install of tnt lite 4.2, put wifi to never sleep and disabled dialer. ran for about 12 hours with no probs...installed your kernel yesterday and its been installed for almost 24 hours and my tab is running great..

i.am.not sure what exactly happened because i never had the issue before and it seemed to arise each time i installed your kernel, but all is good now....thanks pershoot
[G Tablet Android Development] NMCBR600:
I installed the kernel and in looking at dmesg I'm seeing crash messages about cpufreq. Looks to be an undefined symbol. I loaded Bitrex latest rom and cpufreq is not throwing any errors.
[G Tablet Android Development] pershoot:
Have you read the known issues?

They are warnings; yea, i'm aware of them.

The cpu governor in use, in that kernel (its clemsyn's according to the changelog) does not trigger it (the cpufreq kobject warning) .
[G Tablet Android Development] s14tam:
First, thanks for all the hard work pershoot! I was wondering with CPU scaling if it was possible to maybe get the standby battery drain to less than 10ma? Right now it seems like it drains at about 4%+ per hour in standby where other tablets only drain <1%. Is anything like this in the development pipeline to possibly achieve this?
[G Tablet Android Development] stiphy:
Yeah, this is one big drawback of the GTablet at this time for me...can't just let it sit on the bookshelf when I'm not using it the way I can my Archos 101. It dies in about a day wheras the Archos will last weeks.

Sean
[G Tablet Android Development] pershoot:
im getting ~2%, sync on, screen off. pretty common.

if your getting a huge drop at idle, i would check your bg apps.
[G Tablet Android Development] stiphy:
Yep, checked that. With totally clean ROM (TNT Lite 4.2, Dialer killed) I was seeing about 3-4% although its hard to tell exactly as battery calibration isn't extremely accurate. I got about 28 hours once from full charge to dead in a test I ran which indicates between 3-4%/hour. So a little higher than your 2%. Even at 2% that would mean about 50 hours of battery life or just over 2 days in standby. Not bad, but my Archos can go 5+ days (I've had mine on standby without a charge for 5 days and was down to 22% of battery life).

I can run some more tests if anyone needs me to.

Sean
[G Tablet Android Development] pershoot:
the 101 is a different platform. can't really compare.
[G Tablet Android Development] stiphy:
Yeah, I only posted to give an idea of what other chips/devices are accomplishing, fully realizing that this may be completely a hardware difference rather than software/kernel difference.

Thanks!

Sean
[G Tablet Android Development] s14tam:
A user in a moto xoom forum reported only 2% total battery drain over night (9 hrs approx) in stand by with wifi and sync on.

This leads me to believe we could see much better performance out of our g tablets. I suspect this has something to do with the CPU not scaling down enough. HTC HD2 owners were having a similar issue before the devs did something the CPU Governors to get the battery usage down during standby.

Not trying to nit pick and I appreciate all devs for all the hard work, but I just think it would be awesome if we could have standby battery anywhere close to that!
[G Tablet Android Development] ssmr2t:
Read thru this thread, and seems like your the man!!! Thank you!

Im a total NOOB here tho :( sorry.... what does this mod exactly do? Do I install it in the root of my SD like a rom and "Update.Zip"?

Like I said, sorry!!! But we all got to start somewhere, right?

I am currently running "Vegan Tab 5.1.1" android version 2.2.... The Kernel O currently have is 2.6.32.9-dirty

Any help would be greatly appreciated! I am guessing this does an overclock to the CPU?
[G Tablet Android Development] jmdearras:
I charged my GTab overnight and went on an overnight trip out of town. I used the GTab a litte in the hotel room, and when I got home the next night, I had about 22% charge left. That was about 36 hours on 78% of the charge with some use, not all sleep.

Not bad at all! :D
[G Tablet Android Development] s14tam:
I by no means intended to imply that current battery life is bad but only that it could be better. In your example if you had the battery savings of a xoom you might have double or more battery and could go days without a charge.
[G Tablet Android Development] pershoot:
gtab/zpad - gingerbread/froyo - 2.6.32.29 - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] jmdearras:
Thanks!

jim
[G Tablet Android Development] babybacon:
This might help someone, but the dev who made SetCPU just got it running on the xoom and clocked it at 1.2ghz. there hasnt been a new setcpu released but i expect there will be one soon.

we may have to do some hacking with the kernel he used to get everything straight.

Link to article about it.

http://www.androidpolice.com/2011/0...ola-xoom-to-1-2ghz-hits-40-mflops-in-linpack/
[G Tablet Android Development] pershoot:
not for us, at this stage.

we use the nvidia specific drivers, which override certain things (scaling, adjustment, etc.).
[G Tablet Android Development] babybacon:
hmm, im sure we will get something soon.

however, the new version of setcpu does seem to allow us to at least set min and max frequencies. which is helpful.

couldnt we create a kernel using some of the xoom drivers for the proc?
[G Tablet Android Development] jentous:
Pershoot,

Since the Notion Ink Adam and the Gtab share many of the same internals, would this kernel work on the Adam?
[G Tablet Android Development] pershoot:
gtab/zpad - 2.6.32.29 - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] sumdumdude:
Awesome work Pershoot. Seems to be working well on my Gtab.
[G Tablet Android Development] pershoot:
probably not.
[G Tablet Android Development] pershoot:
g2/gtab/|zpad - 2.6.32.30 - gingerbread/froyo - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] drod2169:
any plans by chance to add a BFS? or at least know a patch set i could use to add myself? the one's i've been trying have all failed
[G Tablet Android Development] pershoot:
no plans at this current time.

merge this in by hand:

http://ck.kolivas.org/patches/bfs/2.6.32/2.6.32.27-sched-bfs-363.patch
[G Tablet Android Development] RevB52:
Error installing Froyo .zip file of 2.6.32.30 on Vegan 5.1.1
[G Tablet Android Development] pershoot:
what is the error?
[G Tablet Android Development] jwischka:
Vegan 5.1.1 installed fine for me (2.6.32.30).
[G Tablet Android Development] jmdearras:
Thanks!

Does this one handle the CPU speed differently? my setcpu widget shows it at 1000Mhz more than I remember, and the battery seems to be going down faster, though not alarmingly. It is more responsive.

Jim

Vegan 5.1.1
[G Tablet Android Development] pershoot:
cpu speed handling is the same. battery seems fine over here.

check your bg apps if you are concerned.
[G Tablet Android Development] RevB52:
Here's the error:

E:Error in /sdcard/download/boot-cm_2632.30-oc-uv-xtra-neon_fp-

030311.zip

(Status 0)

Installation Aborted.

Edit: Nevermind! Noob here grabbed the wrong file. Thanks pershoot!
[G Tablet Android Development] drod2169:
thanks! by hand, i'm guessing don't patch -p1 > ...yaddayadda.

I'll give it a shot. Thanks again
[G Tablet Android Development] Blades:
Wow .31 already huh? Workin great over here.
[G Tablet Android Development] pershoot:
g2/gtab/|zpad - 2.6.32.31 - gingerbread/froyo - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] jmdearras:
Not sure if this is the cause, but since loading it, my GTab has crashed back to the boot animation several times while I was using it. It has never crashed like that before.

I'm trying rolling back, and might d a clean install, but thought I'd give you a head's up.

Thanks,

Jim
[G Tablet Android Development] pershoot:
i need logs (dmesg/logcat).

soft reset back to boot animation is 'usually' not indicative of the kernel. when the kernel sends a restart for fault, its a full system restart.

if your running vegan, try something else (tnt lite). that rom is not up to date.
[G Tablet Android Development] Coldfirex:
I just installed your kernel for the first time on top of TNT Lite 4.2.5. I noticed that it is using GCC 4.3.3, whereas the previous default kernel was using 4.4. Should that really matter?
[G Tablet Android Development] pershoot:
the toolchain i use is based off of 4.3.
[G Tablet Android Development] NMCBR600:
Pershoot, what is the command string you use to build the boot img?
[G Tablet Android Development] pershoot:
I don't.

Anykernel gets it from what is on the system already.
[G Tablet Android Development] jmdearras:
Do we have source for the boot code?
[G Tablet Android Development] pershoot:
https://github.com/koush/AnyKernel
[G Tablet Android Development] pershoot:
g2/gtab|zpad - 2.6.32.32 - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] pershoot:
Is this working out ok?
[G Tablet Android Development] jmdearras:
For the 40 minutes I've had it installed, yes.;)
[G Tablet Android Development] jmdearras:
That seems to be the way to assemble a boot.img. I was wondering if we had source to the actual code that executes at boot?
[G Tablet Android Development] pershoot:
check the update.zip. you will see the flow of what it executes, how and where.
[G Tablet Android Development] jmdearras:
I'm having a thick day. Where is the update.zip file?

Thanks,

Jim
[G Tablet Android Development] pershoot:
What you downloaded to flash:)
[G Tablet Android Development] WillieBH:
Been using all day. Works great on Vegan 5.1. No problems, fast and smooth.
[G Tablet Android Development] pc2828:
Thank you Pershoot, latest kernel running great with Gojimi's latest CM7 Experimental.
[G Tablet Android Development] roebeet:
Just a heads up on a new TNT Lite release

version 5.00, based off their 3991 version. This version has a new kernel / bootloader and they don't seem to be compatible with any previous kernels. Even clockworkmod had issues and i needed to create a new version with the 3991 kernel.

I know that a lot of people layer this kernel on top of TnT Lite, but I don't know if this will work with TnT Lite 5.00 given the large under-the-hood changes that Viewsonic has made. Just a heads up.
[G Tablet Android Development] pershoot:
it should work fine.

throw me a copy and ill test it.

if it does contain a bootloader, i probably wont flash that.
[G Tablet Android Development] roebeet:
TnT build 3991 is here: http://tapntap.http.internapcdn.net/tapntap/viewsonic/update-smb_a1002-3991-user.zip

It requires 3588 stock to install - anything else and the device fails to boot, and nvflash is needed to restore. TnT Lite 5.00 is 95% the same as 3991, with the usual extras / changes. When 3991 installs, it actually does two reboots -- the first updates BCT(?) going on the quick flash I saw, then it reboots again.

Here's the uname, on the new TnT kernel:

Linux localhost 2.6.32.9-00001-g0e0c333-dirty #1 SMP PREEMPT Fri Jan 28 14:45:21 EST 2011 armv7l GNU/Linux
[G Tablet Android Development] pershoot:
oh i meant tnt lite 5.

the stock rom i cant flash at this stage.

i am using the libs, etc. for it on cm7 tho...
[G Tablet Android Development] roebeet:
Here's TnT Lite 5: http://xdaforums.com/showthread.php?t=842004 I just released it.
[G Tablet Android Development] pershoot:
is this bootloader safe to flash?

what is in this?
[G Tablet Android Development] dony71:
I just try to flash this on TnT-lite v5.0.0

Tab hang right after boot :(
[G Tablet Android Development] pershoot:
this should sort you out:

http://droidbasement.com/gtab/kernels/2632/18/boot.img

stick that in the tnt lite update.zip (replacing the one thats there), turn off sig checking in clockwork mod, and flash it. if i were you, i'd take out the botloader.bin, as you don't want to repeatedly flash that.

if that doesn't work, then i dont know what to tell you.

i could not even flash tnt lite 5 properly without being stuck (and other things). i did not investigate.

the update.zip l i ship works fine with the new bootloader bundled in tnt lite 5 (im on it).
[G Tablet Android Development] dony71:
pershoot,

i have restore tnt lite 5 backup using cwm so my tab working now.

since it's working now, i don't want to reflash tnt lite 5 from fresh again

since i have lots of software installed. i just want to update it with your custom kernel. is it possible and how?
[G Tablet Android Development] dony71:
pershoot,

i replace zImage in boot-cm_2632.32-xtra-vfpv3_fp-030711.zip with boot.img

which you gave me earlier. tab still hang after flash
[G Tablet Android Development] pershoot:
that will not work.

replace it in your tnt image, or find another update.zip that contains a boot.img and replace it.
[G Tablet Android Development] dony71:
Clemsyn has kernel patch for vegan which has boot.img inside.

I replace your boot.img in the zip attached and still hang after reboot
[G Tablet Android Development] case-sensitive:
I'm trying to install this kernel on my vegan 5.1.1 gtab via CMW (v2.5.1.1-bekit-0.8), and something weird: CWM can't see the kernel zip file!

Following the OP, I went to

http://droidbasement.com/db-blog/?p=1634

and downloaded

boot-cm_2632.32-xtra-vfpv3_fp-030711.zip

I could see this zip on my linux desktop

ls -ls *.zip

2916 -rw-r--r-- 1 XXX XXX 2983280 2011-03-11 19:58 boot-cm_2632.32-xtra-vfpv3_fp-030711.zip

but on CWM "install zip from scard">"choose zip from sdcard" this zip simply is not there. I have flashed many zips before so I know that my CWM works, and it sees all the old zips. Interestingly, my linux desktop does NOT seem the old zips either.

I thought that this might be a permission issue so I did

sudo chmod 777 boot*.zip

but the permission stays the same (-rw-r--r--)

I'm baffled. Help! (and thanks!!)

EDIT: I didn't move the zip from the sdcard to /sdcard! I have 3 android devices and I momentarily lost track of things... :-(
[G Tablet Android Development] pershoot:
g2/gtab|zpad - 2.6.32.32 - gingerbread/froyo - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] jmdearras:
With the last 2 or 3 kernels (could certainly be coincidental), I have started having wake a from deep sleep problem. For the first few seconds, it is responsive, but after that, it basically freezes for about a minute.

The only oddity I see in the log is a LOT of:

E/JavaBinder( 1017): !!! FAILED BINDER TRANSACTION !!!

entries. I'm not saying it is kernel, just presenting it for your opinion and advice.

Jim
[G Tablet Android Development] pershoot:
what does dmesg say?
[G Tablet Android Development] jmdearras:
How do I read that?
[G Tablet Android Development] jmdearras:
I have cold booted, so I can capture whatever you would like next time it freezes.

Thanks,
[G Tablet Android Development] pershoot:
adb shell dmesg.
[G Tablet Android Development] jmdearras:
never set up adb on my PC for the GTab,

is

dmesg > filename

in a terminal window OK?
[G Tablet Android Development] pershoot:
thats fine.
[G Tablet Android Development] pershoot:
g2/gtab|zpad - 2.6.32.33 - gingerbread/froyo - http://droidbasement.com/db-blog ; RM updated.
[G Tablet Android Development] dony71:
still no support for TnT kernel build 3991 :(