yashsingh1/xdaforums huggingface dataset:
[G Tablet Android Development] Blades:
Well either that or just issue all commands after

#!/system/xbin/busybox sh

Or paste them in gscript.. I don't know if the #! Is necessary with that..

Doing it without gscript, you can use notepad++ (windows) to create a text file with unix EOL formatting (edit->EOL conversion) and paste the script that was written... save to file without extension.. transfer to /data/local/ on the gtab..

cd /data/local/

chmod 777 scriptname

./scriptname

This assumes you have busybox in /system/xbin

You use linux everyday tho.. :) even if there's a bunch of java crap sitting atop of it.
[G Tablet Android Development] pgonza02:
OK, I typed the commands in, couldn't get the gscript to work.

You were correct, eht0 was not up, so I brought it up.

Now it shows in ifconfig, but it has no IP address.

Thanks.
[G Tablet Android Development] pgonza02:
Found it, just enter:

dhcpcd eth0

Now, I just need to make this stuff survive a reboot :)
[G Tablet Android Development] Blades:
All that will happen if you boot it up with the device docked.. otherwise, just create a script to automate the process. I could create one for you if you'd like.. it may be just as easy/convenient to use gscript to do this..

I don't know if the rom has a dhcpcd-hooks script.... I think that would automatically get the device an ip address when it was brought up... may even let android framework know of it so it does sync and doesn't give you **** about no internet connection.. I'll try the stuff from my cm7 g2.. same iface name (eth0)
[G Tablet Android Development] pgonza02:
It doesn't seem to happen automatically when it boots up.

I was thinking of just creating a gscript with:

/system/bin/ifconfig eth0 up

/system/bin/dhcpcd -ABKL eth0

I can then just tap it when I need it.

The only problem I'm having now is that DNS does not seem to be working. Somehow dhcpcd is not setting up the DNS properties for eth0

Thanks.
[G Tablet Android Development] Blades:
getprop | grep dns

That should show you something.. it gets the dns servers from your router.. android messes with stuff... I'm not so sure using dhcpcd.conf and using prepend domain-name-servers would work out...
[G Tablet Android Development] pgonza02:
At work, where I have no WiFi, it returns nothing.

This is what I get at home:

[net.change]: [net.dnschange]

[net.dnschange]: [3]

[dhcp.wlan0.dns1]: []

[dhcp.wlan0.dns2]: []

[dhcp.wlan0.dns3]: []

[dhcp.wlan0.dns4]: []

[net.dns1]: [192.168.1.1]
[G Tablet Android Development] binkz:
pimpmycpu "save as boot" issue

Hi helpers!

I'm using this kernel with vegan 5.1 beta and I'm having difficulties to enable pimpmycpu to set on boot.

I have set "Save as Boot" however it doesn't stick when I reboot my gtab. I also have tried remount system as rw and chmod 777 on /etc/init.d and /system/etc/init.d with no luck. Btw I can see the S_volt_scheduler file in init.d folder.

Anyone using this kernel with vegan 5.1?? Does it work with you guys?
[G Tablet Android Development] Djapatos:
Quick question

i m running vegan ginger, which version of this kernel to choose?
[G Tablet Android Development] clemsyn:
i'm not sure if vegan 5.1 beta have init.d folder support. I know Calkulins combo has support in his build.
[G Tablet Android Development] clemsyn:
This

http://xdaforums.com/attachment.php?attachmentid=584203&d=1304305758
[G Tablet Android Development] lamlam01:
hi clemsyn, would it be possible for you to compile a 1.7 oc/uv kernel for the new 1.2 builds that roebeet is working on over at slatedroid? many of us prefer your kernels because you have many libs compiled in w/out having to load them manually. also pershoot's oc kernels max out at 1.4Ghz at the moment. thanks!
[G Tablet Android Development] clemsyn:
Please send me the link for the 1.2 build. It should be a minor fix :)
[G Tablet Android Development] lamlam01:
I dont' think I'm allowed to link directly to it. It is on slatedroid.com - here's the breadcrumb:

SlateDroid.com > Tegra 2 > Viewsonic ViewPad/G-Tab > Viewsonic ROM Development

Brilliant Corners alternative 1.2-based firmware v1.2.0
[G Tablet Android Development] gpzjack:
I went back to vegan for a while and this kernel worked great..i'm now back on ginger and i have the same problem...it loads but i have no wifi
[G Tablet Android Development] Blades:
What built in features do you need?
[G Tablet Android Development] clemsyn:
Here you go..1.5ghz for bootloader 1.2 as requested :)
[G Tablet Android Development] brookfield:
Question: I used the CPU MASTER app set to Powersave with Set On Boot checked so that I could run "Pimp My CPU". After configuring pimp my cpu selecting the Frequencies to use, saving a profile and setting that profile for Boot, When I Re-bbot, I see a message that CPU MASTER is changing the Frequency, but nothing regarding Pimp my CPU. Is this normal. The CPU max is running at 1.5 Ghz (Per CPU Tests), but I am not sure if the FORCE MIN CPU when sleeping is working as I see no messages from Pimp My CPU durring or after boot.

BTW: Love the speed increase MANDRO Bench = 3781
[G Tablet Android Development] clemsyn:
Bootloader 1.2 is pretty nifty, we are able use Notion ROMS :) I'm currently using HoneyComb alpha 9 and it is nice (no Market yet though). I've posted my kernels for 1.2 at Slatedroid but will make another post when I get done with chores.
[G Tablet Android Development] clemsyn:
Yes, that should be good :)
[G Tablet Android Development] binkz:
Thanks Clemsyn! It's very exciting to see the progress on Gtab development recently, especially HoneyComb. Hope to see more kernels and roms on 1.2 branch.
[G Tablet Android Development] whodatxevg:
Mine wont boot after i install any kernel gtab on vegan ginger
[G Tablet Android Development] raidzero:
pretty great...

wasn't expecting a boost like that...

thanks!
[G Tablet Android Development] austontatious:
My gtab just eats up the overclock *nom nom nom * I would love to test fly a hIgher oc if you have any interest in coding one. I run 1.7 on cm7 all day. Do you think it possible to hit 2ghz or is that way out of the ballpark?
[G Tablet Android Development] raghu_mp:
I used the CPU MASTER app set to Powersave with Set On Boot checked so that I could run "Pimp My CPU". After configuring pimp my cpu selecting the Frequencies to use (1.5 GHz), saving a profile and setting that profile for Boot, When I Re-bbot, it is stuck at the "android" screen. I am using the latest nightly build of CM7. Restoring to a previous snapshot (prior to installing and configuring CPU Master/PimpMyCPU), the table boots just fine. Anyone experience the same problem? Please help
[G Tablet Android Development] h3llphyre:
Disregard my incompetence.
[G Tablet Android Development] 4Incredible:
Even though this is probably a noob mistake on my part, I'm going to ask anyway.

I am having some stability problems with this kernel. I used the version 11 1.5 OC kernel for Froyo, I am running Vegan beta 5.1.1. I also had pimpmycpu and cpu master free installed. The problem I was having was at random times my tablet would lock up, the screen would turn one solid color, and I could not do anything. The only thing I was able to do was hold down the power button and the tablet would shut off. And I mean completely shut off. It would start at the viewsonic screen when I would reboot it, it never soft rebooted.

This problem would get worse whenever I overclocked (using cpu master), though it still happened when I clocked down to 1GHz. When I overclocked to 1.2 or 1.5GHz it seemed like every 5 - 10 minutes the tablet would crash. When I clocked down to 1GHz it still crashed, though not as frequently. I also never undervolted at any time.

When I flashed Clemsyn's kernel I did wipe the cache and wipe the dalvik right after I flashed it. Are there any steps that I missed after I flashed the kernel? Information was kind of hard to find on how to flash it, and I searched all over. Also, does anybody has any idea about what is going on? I would like to go back to using this kernel because the sleep and wake were flawless and the stock vegan kernel I recovered back to is driving me crazy with its many issues.
[G Tablet Android Development] sambino:
Stupid Question

I'm running bottle of smoke bl 1.1 on my g tablet which uses this kernel, I believe. Sorry for my ignorance, but I can't seem to find a way to get my tablet to run at 1.5 ghz regardless of the battery state. I would prefer on demand scaling. Is this possible? Thanks!
[G Tablet Android Development] wtang:
Does anyone know if the clemsyn kernel supports using a swap file? I tried Swapper2 from the Android Market on the pershoot kernel and it just FC's. I'm trying to enable swap to see if I can get Plants vs Zombies HD (the tablet enhanced hi-res version) to run on the GTablet.

If clemsyn doesn't support swap, does anyone know of another kernel that supports swap?
[G Tablet Android Development] siptang:
Mods please delete.

wrong thread.
[G Tablet Android Development] Mad A:
Hello All.

I am currently running Pershoot's Kernel on Vegan 5.1.1 (froyo). I would like to try this Kernel out. Can someone give me step by step instructions, kind alike pershoot provides on his thread/website?

I assume I would download the kernel and move it to my device then

-Boot into recovery

-clear user data/cache

-install the kernel

-clear dalvik cache in advanced settings

-reboot to OS

Am I missing anything?

Thanks in advance!
[G Tablet Android Development] Mad A:
No one who's installed this kernel can confirm or correct my steps?
[G Tablet Android Development] tekrhino:
All you need to do is flash the zip file via Recovery mode..

Thats it.. None of the other steps neccessary..
[G Tablet Android Development] timshady337:
1.8 Ghz

Hello Clemsyn. I've been experimenting with a heatsink on the tegra2. I'm running your 1.7 gingerbread kernel with pimp my voltage on CM7.1 2.3.7 stable. I was able to score the highest benchmark ever for a g tablet on antutu. I would like to know if you or anyone can make a custom kernel for1.8Ghz@1.5v. I want to see how high I can get the g tablet stable. Thanks for your time and all your hard work.
[G Tablet Android Development] dony71:
ppp support

hi clemsyn,

is it possible to enable ppp feature in your kernel

i have this message below when i try

pppd /dev/rfcomm0 call xxx

pppd: This system lacks kernel support for PPP. This could be because

the PPP kernel module could not be loaded, or because PPP was not

included in the kernel configuration. If PPP was included as a

module, try `/sbin/modprobe -v ppp'. If that fails, check that

ppp.o exists in /lib/modules/`uname -r`/net.

See README.linux file in the ppp distribution for more details.
[G Tablet Android Development] HungLu:
Clemsyn,

Do you have the ntfs.ko for your ROM Clemsyn 2.6.32.9(MM061 #128) ?

I try to mount the NTFS usbdisk using /system/lib/modules/ntfs.ko but it says failed (exec format error) ?

Thank you very much.

Added:

dmesg shows "ntsf: disagrees about version of symbol module_layout"

I tried to use your ntfs.ko working with clesym older kernel version.

Thank you
[G Tablet Android Development] plasticarmyman:
will this work on CM7?....1.1 bootloader...just wondering...i kinda would love to be able to oc that much
[G Tablet Android Development] rcgabriel:
Hey raydog, I've taken a look at the clock limiting code for the Tegra 2. I will say this - like much of the Tegra 2 architecture code, there is some serious black magic voodoo.

I believe I have traced much of the clock frequency limiter code down to a file called arch/arm/mach-tegra/nvrm/core/common/nvrm_clocks_limits.c.

I could very easily hack and slash that file to set the MaxKHz to something higher than 1000. However, there is a bunch of so-called "shmoo testing" logic, adaptive voltage scaling, and other such things going on in the setting of MaxKHz in that file. So the hack and slash approach may break something important.

Somebody more familiar with mobile CPU chipsets and low level ARM architecture stuff than me can hopefully help figure this file out and help figure out how to safely change the MaxKHz setting without breaking other critical logic.
[G Tablet Android Development] clemsyn:
I agree, too many variables...You might want to look ~/mach-tegra/at tegra2_clock.c, I'm currently very happy with the speed but a speed bump would be great :)
[G Tablet Android Development] prscott1:
Hi, I have a basic question about trying to create a tun.ko from the tegra kernel source.

I downloaded the tegra source and then applied your patch differences and made a tun.ko. When trying to install the module I am getting a Exec format error. Maybe you can guide me?

Here are the things I did (I'm on ubuntu 10.04).

git clone -o linux-2.6 git://nv-tegra.nvidia.com/linux-2.6.git

cd linux-2.6/

git checkout tegra-10.9.3

patch -p1 < ../tegradiff.txt

make ARCH=arm tegra_harmony_android_defconfig

then I extracted the config.gz , did a gunzip and changed config to .config. I edited .config and added CONFIG_TUN=m.

I also edited the Makefile and added .9-dirty to the EXTRAVERSION parameter (I had read somewhere to try that).

Then, back at command line, I setup some variables and did make modules:

export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=/home/prscott/android-tegra/linux-2.6/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/:$PATH
make modules

The tun.ko was created (amongst many others) in the drivers/net folder. I copied it to device under /system/lib/modules and tried insmod /system/lib/modules/tun.ko but got the Exec format error.

I'm sure I made some glaring newbie errors but not sure what else to try.

Forgive my novice approach and questions - just trying to learn and possibly help. :o
[G Tablet Android Development] jaybob413:
With the current .config set to CONFIG_TUN=y the TUN/TAP device driver is built into the kernel instead of a loadable module, so no tun.ko file should be needed, although some apps or scripts that expect to do an insmod may have issues. Setting CONFIG_TUN=m will build the module tun.ko, which by default goes into /system/lib/modules/2.6.32.9-dirty/kernel/drivers/net which is where 'make modules_install' puts it. You do need to set the environment variable INSTALL_MOD_PATH so that make knows where the system root is.
[G Tablet Android Development] TeutonicWolf:
Newb question perhaps -- but does this kernel (or will this kernel) support an Interactive or OnDemand governor?

Or maybe additional CPU profiles to step through? The stock appears to only have "Performance" and "PowerSaving" -- which clock the procs at 1000MHz and 216MHz respectively...

The Tegra2 does appear to support a lot more clock speeds than is currently enabled base on what I've found:

http://permalink.gmane.org/gmane.linux.kernel.cpufreq/6605
[G Tablet Android Development] prscott1:
I'll give that a try. I'm using the OP's new kernel with tun support but I can't get my vpn app to work. I'm still trying!
[G Tablet Android Development] clemsyn:
I see, I thought I set it as M on my configuration. I am getting too old for this.... :)
[G Tablet Android Development] jaybob413:
At least ondemand and conservative governors are in the source. With some work, we should be able to add interactive and smartass as well.
[G Tablet Android Development] prscott1:
vpn working!

Clemsyn - thank you so much - My vpn is now working! :D

I use the VPNC frontend gui and realized that it wasn't working on my first attempt because of a problem with the /system/bin/ifconfig and /system/bin/route.

Once I repaired those I was in!! Thank you a million times!!

prscott@golf2nut:~/android-tegra$ adb shell
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
tun0 UP 10.65.200.4 255.255.255.255 0x000010d1
wlan0 UP 10.83.94.159 255.255.255.128 0x00001043
[G Tablet Android Development] prscott1:
It worked fine as is! :D Thank you.
[G Tablet Android Development] rushless:
On TnT Lite 3.14, the 10.9.7 kernel is even better than what the Colonel cooks up at KFC :) Stable and lag free tastiness :) Prefer the grilled chicken BTW ;)

The one thing tried that I can not get to work is NTFS formatted drives. Tested two portable 1gb Western Digital W71s. Anyboby get NTFS drives to work?
[G Tablet Android Development] gasch1:
Thank you for all the wonderful kernel work!

Quick question: I am running clemsyn's latest kernel and am trying to use the simple PPTP VPN connection that comes in Froyo. I setup a connection using no encryption and when try I connect, what I see in the system log is:

mtpd Creating PPPoX socket

mtpd Socket() Address family not supported by protocol

This is the same error I saw with the original VS kernel. Is there some other step for enabling VPN that I am missing?
[G Tablet Android Development] clemsyn:
Your welcome. Great we got vpn working: ) I guess we can add VPN support on our thread tittle.
[G Tablet Android Development] rob_z11:
Where one can get the vpnc frontend GUI? - nevermind I found it.
[G Tablet Android Development] chstephens5219:
Perhaps a dumb question...but here goes.

To apply clempatchVEGAN10.9.7CIFFsTunNtfsUpdate.zip when I am already on 10.9.3; does this install over 10.9.3 with update.zip only OR do I apply it after a format boot in CW as I did with 10.9.3?

Thanks!
[G Tablet Android Development] prscott1:
I did "format boot" before applying that kernel and haven't had any problems.
[G Tablet Android Development] rob_z11:
Please read post #25 on this thread.
[G Tablet Android Development] prscott1:
If you are using the TUN support kernel, then you might want to try the OPenVPN Installer from the market. It will attempt to install the openvpn binary. That same developer also has OpenVPN settings that may be of use to you if you can successfully install the binary.
[G Tablet Android Development] anlog:
I'm showing build #42 as the latest 10.9.7 patch. Does this look right?

BTW: So far the kernel seems awesome. Great work!
[G Tablet Android Development] rob_z11:
This is what I have. It is fairly smooth as silk.

export PATH=/data/local/bin:$PATH

$ $uname -a

Linux localhost 2.6.32.9-dirty #42 SMP PREEMPT Mon Jan 3 09:41:28 CST 2011 armv7l GNU/Linux

$
[G Tablet Android Development] Tester30:
What went wrong?

The other night I tried to install 10.9.7 patch on my G-tab that is running TnT light 3.1.4.

Using clockworkmode .8 I selected the ZIP and began installation.

At the end it said that installation unsuccessful with ERROR 7?

Am I skipping some steps?

Thanks a lot!!!
[G Tablet Android Development] jaybob413:
With Clemsyn's help, I have posted his current sources to github.

You can fork the tree within github, download a tarball from the repo, or clone the tree to your local machine.

[EDIT] removed due to lack of sync and use

Repo location: https://github.com/wjb/tegra_kernel

Local clone: git clone git://github.com/wjb/tegra_kernel -b gtablet_kernel

Enjoy, and all credit to Clemsyn for the outstanding effort.
[G Tablet Android Development] rushless:
Check your "About" in settings. If the kernel changed you are good. Clem metioned the update may show an error due to how is was set up. I got the same error and the kernel updated.
[G Tablet Android Development] oshea85:
You show build #38?
[G Tablet Android Development] rushless:
Yep. clemsyn-MM061 #38.

Good news is the device has not had the usual lag issues and no need to reboot to speed it back up. Bad news is I have

not been able to get NTFS portable USB drives to work yet, but it could be due to them being 1tb drives... No other NTFS

drives to test, so moot now for me- unless I buy another (no need, since also have two 500gb fat32- NOT changing them to NTFS).

added: Summary:

1. No lag issues compared to at least two reboots a day prioir to kernel update

2. Quandrant scores decreased from 2400 average to 2270 (130 drop)

3. In spite of the 130 drop, the device seems faster, snappier and any other "er" I can think of in a good way

4. Battery life seems even better

5. Wifi locks on even better and no drops so far.

6. Tried two 1tb portable NTFS drives and neither would work. The drives power up, but are not read by the G.
[G Tablet Android Development] digger44:
For TNT... What is the difference in zips

Is there any difference between:

clempatchtnt10.9.7CiFFSfix.zip

and

ClempatchTNTciffstunntfsUpdate.zip

It doesn't look to me (from looking at zip contents) that there is any differnce.

Thanks.... Oh, and what should uname show?... mine shows #38
[G Tablet Android Development] prscott1:
The latter zip has tun support.
[G Tablet Android Development] Chumley.Wonderbar:
Updated Kernel, lost Market

Hi...

Running TnT Lite 3.1.4

Updated Kernel.

Kernel Version now reads

2.6.32.9-dirty

clemsyn@clemsyn-MM061 #38

After boot, I went to run Market and it asked me to accept Google's policy agreement. I did. Now the market is only a smattering of apps (for instance, there's no results for things like Angry Birds, docs, etc.). It runs, but it's very, very crippled.

I've tried doing the market fix twice, and both times I end up back at the Accept button on the market policy/provisioning agreement screen.

Any suggestions? I want to avoid rebuilding if at all possible.

*EDIT* Got my market back - had to run the market "fix" three times before it got it right. Phew.
[G Tablet Android Development] clemsyn:
Thanks, I'll try to enable NTFS debug in the kernel and post it for you and see if it will work better.
[G Tablet Android Development] sixvoltsystem:
Extracting the latest build clempatchVEGAN10.9.7CIFFsTunNtfsUpdate (got the kernal installed fine ), but was wondering why the 3 Nook color apps were in there along with the tegra.bmp? Just wondering thank you sir.

*jeeeez nevermind, left the computer alone for a second 2yr old worked his magic, please forgive me and erase this*
[G Tablet Android Development] rushless:
Thanks! I am happy with kernel now, but NTFS would be nice to have. I thought NTFS support for Linux / Android is only reliable for reading and not writing?
[G Tablet Android Development] vsc:
For reference I enabled NTFS support in the kernel I built and tested it with a 1 TB Toshiba portable drive without issues. There really isn't much to getting NTFS support, enable one option. This isn't helping, but it shows that it is possible.

You are mounting the drive from the command line? I'm told vold won't deal with NTFS without a recompile, but to be honest I haven't looking into the matter myself. And without vold working you have to manually mount the drive.
[G Tablet Android Development] rcgabriel:
There are other kernel builds out there by me and vsc based on the stock Viewsonic source with the lag-on-wake issue fixed - they benchmark just as high as the stock kernel did.

So whatever caused the Quadrant score to drop, it was another patch, not the lag fix.

I also don't believe there is any significant battery life difference between Clemsyn's kernel and our 10.8.2+lag fix builds. I could be wrong on that as I haven't tested extensively, but it doesn't look so far like any of the 10.9.7 diff has changed battery life.

I am honestly not sure about wifi. There could be something changed, but it seems roughly the same to me. :)

All that being said, I'm currently using Clemsyn's 10.9.7 build with CIFS and TUN, because 1) it has the lag fix 2) it has CIFS, which I use quite a bit now 3) I want to continue testing to see if all the other 10.9.7 stuff changes/fixes any other system behavior and 4) the ~75-100 point drop in Quadrant scores doesn't seem to have any meaningful impact in real world usage scenarios to me - i.e. it seems just as fast and smooth as my previous kernel build, and I don't really care about the benchmark scores in day-to-day usage.