yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] Hundsbuah:
Working hardboot kernel: 3.4.1-hardboot support

http://d-h.st/Hpe

sorry for the late answer regarding hardboot. now i find finally some time to look into it.

- the old adressess were correct, ill revert the latest commit.

- how to boot to linux from my android kernel follow following instructions:

(1)

download the installer and a rootfs image (ubuntu or lubuntu) from here:

http://xdaforums.com/showpost.php?p=44699716&postcount=3

put the rootfs tar.lzma archive to sdcard or external sdcard

(2)

download this zip and extract its content to /data/bootlinux (for example):

http://d-h.st/n0V

(3)

flash the installer from the dualboot thread in twrp and install the linux as an virtual image.

(4)

reflash back my new kernel from above (yes reflash MY kernel again :))

http://d-h.st/Hpe

(5)

everytime you want to boot to linux from android, open a terminal and enter:

su
cd /data/bootlinux
sh bootlinux.sh

(6)

have fun with linux (please use hybrid kernel for now when asked)

(7)

if the kexec hardboot doesnt work the first time, try it again. i dont know why it sometimes does not work ... :( if it still does not work, try to play with the --mem-min adress (0x85000000 or 0x86000000 in the bootlinux.sh file)

maybe s.o can tell me why it sometimes work, and sometimes not? - thx for your help!

/edit: Maybe a sync command before ./kexec.... and before sleep 4s in the bootlinux.sh?
[Asus Transformer TF700] ubefuct:
For a couple days I've been tring to get this to work. Thanks for putting this together :good: finally got it running. I had to change permissions on kexec to777 and change image location in bootlinux.sh( /data/media/linux) before it would work for me (./kexec cannot execute. permission denied, fixed when changed to 777)

not much but a thanks from me to you..

12U11347F1691035W
[Asus Transformer TF700] maximebr77:
hi, I have a small question, is this kernel compatible with the TF201 prime, thank you
[Asus Transformer TF700] Hundsbuah:
yes it is. please ask flumpster.

He can extract the kernel from the blob file and make a new blob file with my kernel and the tf201 ramdisk. flumpster knows what to do if you tell him, this kernel is for the tf700t with the tf700t ramdisk and you need this kernel repacked with the tf201 ramdisk from flumpster.
[Asus Transformer TF700] _that:
You can extract init.??.rc from my kernel's ramdisk and repack it into yours, or simply copy it to / at boot time it via a short /system/boot/preboot script without needing to repack the kernel.

You may also need different WiFi modules, I don't know if the Prime also uses a BCM4330.
[Asus Transformer TF700] Hundsbuah:
Yes thank s for the Info. Afaik flumpster Made some other changes too

Gesendet von meinem GT-I9100 mit Tapatalk
[Asus Transformer TF700] maximebr77:
Ha OK and what is or flumpster , what theard ?

---------- Post added at 06:33 PM ---------- Previous post was at 06:29 PM ----------

I find theard ,excuse me
[Asus Transformer TF700] Hundsbuah:
i thought i posted a hyperlink on his name :) sorry
[Asus Transformer TF700] maximebr77:
it does not matter, I understood
[Asus Transformer TF700] Hundsbuah:
New beta kernel v3.4.1

- kexec hardboot support

- dynamic fsync added

http://d-h.st/7jX

New app v2.4:

- added boot to linux tab

http://d-h.st/Y3T

What do i have to do when i want to boot to linux from your Hundsbuah App?

- Just download this linux installer zip, flash it in recovery and be sure that you are on the latest beta kernel (v3.4.1 from 2013-10-29)

- You can install Linux as a virtual image and use all the default settings during installation!

- This linux installer does not install any new/other kernel! it just installs linux and the needed kexec hardboot files!

http://d-h.st/GBy
[Asus Transformer TF700] JoinTheRealms:
Awesome, works really well. From the init.sh script you could point it straight to 02-find_linux.sh to avoid that first menu.

Oh and ive found, under linux if i enable boot_finished without first setting cpu and gpu freq lower, it will lockup and reboot once it goes under sustained load. Yet its fully stable on android, im guessing this is because linux is more resource hungry than andoird. I wrote a silly little script(https://www.dropbox.com/s/hkqhog4gjqw0lef/overclock.tar.gz) to manage the overclock of your kernel under linux, ive found 1800mhz cpu, 650 mhz gpu perfectly stable. At risk of exposing my self as a programming noob, would it be possible to compile your android app for linux? or would it be to much work?

Cheers
[Asus Transformer TF700] Hundsbuah:
Thanks for the feedback.

- At the momemnt the running linux kernel is not my kernel. Its the kernel from the 6.8 installer from your thread: http://xdaforums.com/showpost.php?p=44699716&postcount=3

Is this kernel based on my kernel? I dont think so because i cant find the boot_finished interface.

- If we want to use my kernel for linux, ill have to limit the gpu frequency also. Currently only the cpu is limited with boot_finished.

- Its not possible yet to simply compile the app for linux and not for android. ill have to rewrite parts of the app if we stay on java (especially the gui)

- nice scripts you wrote - for the beginning we can set it up that afer each boot the terminal opens and you can select between lets say 10 default oc settings just with a number from 0 to 9. your script would be a great starting point for this :) what do you mean?
[Asus Transformer TF700] JoinTheRealms:
lol the 6.8 installer is basically _thats kernel, but i packaged your kernel into a blob a bit down in that post.

ill do some testing with the overclock, i was guessing it was the cpu giving me troubles, but it could be the gpu. Another strange thing i haven't been able to figure out is with cpuquiet (which i also wrote a script for https://www.dropbox.com/s/qs7iqyvoxfygef6/cpuquiet.sh) if its set to userspace, it refuses to clock down past 475mhz and chews the battery. with balanced selected it clocks back to a more reasonable 204mhz. (I wasn't sure about how runnable was implemented, as it wasnt in available_governours.) i cant figure out what holdingit to those frequencies.

I did try to implement a save and apply at boot with that script, but i couldn't get it to work at the time. but i think i can get it working now. I dont think it would be too hard to tear a python gnome applet apart for a overclock interface (something like this http://www.omgubuntu.co.uk/2013/04/brightness-control-ubuntu )

oh and i was wondering if you had seen this http://xdaforums.com/showthread.php?t=2469033 as i understand it, its a mainline 3.4 (to be 3.5 )kernel with all Asus's changes on top, im very excited to try it out on linux as it should fix alot of issues mainly suspend, but it could be good for a hundsbuah kernel base:)
[Asus Transformer TF700] butcherbird:
Hi. I am running whichever version came with CROMi-X 5.1.1. In the Hunds app, I changed all "current" CPU settings to max. I then, by stupid coincidence, also changed a minor setting in the CROMI app & rebooted.

My tablet won't boot ... It is stuck on the ASUS splash screen with the blue CROMI logo.

I already wiped cache & dalvik. Still stuck in boot.

Is the symptom common when CPU has been adjusted?

I will re-flash when I get home. Stuck for now.

Thanks for input.
[Asus Transformer TF700] JoinTheRealms:
Nah, the overclock isnt applied until android is booted, im not sure exactly when under android. Its most likely to do with the option you changed in cromi, but its very hard to tell without logs.

Hunds, just too let you know 3.4 is completely stable at 1.8ghz and 650mhz. Ive been compiling xbmc all day, a make -j5 job has been crunching away for about 5-6 hours all up, sitting at 100% on all cores 68-73c temp (strangely only 1300mhz underfull load, but it would start overheating if 100% at 1800mhz i guess)

Out of interest, what have you set thermal throttling to begin at? Its normally around 75c for tegra 3 and shutdown at 85c if i remember correctly. Just wondering if i should be concerned at running the tablet this hot for extended periods of time.
[Asus Transformer TF700] LetMeKnow:
If I remember correctly, throttle is around 65C and shutdown is around 100C on 3.4..:)
[Asus Transformer TF700] Hundsbuah:
Thx for the Info. Throttling begins AT 75 (1300mhz)and shutdown at 85.

Gesendet von meinem SM-N9005 mit Tapatalk
[Asus Transformer TF700] LetMeKnow:
I found the information about the throttle and shutdown numbers in your kernel but I guessed that numbers are not correct. This is a second time that I made a wrong statement about the throttle temperature. I will try not to say anything about the throttle temperture again...:)

[MENTION=4582979]JoinTheRealms[/MENTION]

My numbers are wrong and sorry about that, haha..:o
[Asus Transformer TF700] ubefuct:
Everytime I install an update for hunds app, the next reboot it reverts back to whatever version was flashed with it. This has always happend, I usually just wait for a new kernel or cdromi kernel installer. Is there some way I can get around this?

BTW :good: on the boot to linux in app
[Asus Transformer TF700] Hundsbuah:
maybe its caused by the "older" version of my app which is included in the cromi rom. you can try to remove the Hundsbuah.apk in /system/app with Rootexplorer i.e
[Asus Transformer TF700] aracy:
Works great! thanks!
[Asus Transformer TF700] aracy:
trying the linux ,

any idea why does this happens?

used defaults, virtual, and changed nothing..
[Asus Transformer TF700] JoinTheRealms:
Where you using hundsbuahs installer for his kexec kernel or the installer from the dualboot thread? Eitherway it needs a linux rootfs for it to work. The rootfs is the linux operating system
[Asus Transformer TF700] Hundsbuah:
you need this rootfs i.e

http://www.lugotfl.org/tf700t/rootfs-lubuntu-tf700t-8-22-2013.tar.lzma

copy it at the root directory of the internal or external sdcard
[Asus Transformer TF700] aracy:
of-course :) thank you so much!!
[Asus Transformer TF700] aracy:
how do i get the internet to work?

connected to wireless but no internet, i think it's related to access...
[Asus Transformer TF700] Hundsbuah:
can you see available wireless networks? if yes wlan is working and something else (wrong key?) went wrong
[Asus Transformer TF700] ubefuct:
internet permissions issue. In terminal I su then launch firefox. Haven't tried the commands from other thread yet
[Asus Transformer TF700] JoinTheRealms:
I would recommend against running a browser with root permissions, it opens up lots of security holes. Run the commands workdowg suggested, and Ill fix all the files soon.
[Asus Transformer TF700] LetMeKnow:
Hi Hundsbuah,

I just wander if it is easy to have the westwood tcp congestion control on your kernel. Currently, I think that it only supports reno and cubic...:)

BTW, your v3.4.1 is running great without any issue so far and thanks for the great kernel..:)
[Asus Transformer TF700] Hundsbuah:
sure, here you go:

http://xdaforums.com/showpost.php?p=37848051&postcount=1

v3.4.2

/edit: you know how to change the tcp congestion control? su terminal with interface writes or fauxclock app i.e
[Asus Transformer TF700] Hundsbuah:
sorry there was a small "bug" left which prevents oc over 1750mhz.

i did some modifications a few days ago and forgot to revert them.

here is the "new" v3.4.2 with TCP congestions and oc to 1900mhz. sorry for that.

here is the new link: (the old download link one will not work any longer to prevent downloading the "buggy" 3.4.2 version)

http://d-h.st/bXd
[Asus Transformer TF700] LetMeKnow:
Thanks Hund. You are fast and rock...:good:

Yes, I do and thanks for v3.4.2. I just run your v3.4.1 with the Dynamic Fsync and so far so good without any problem and very fast. The dynamic Fsync is a little slow for about 3-5 second before it is actually disable when you turn on your screen. It is just my observation and would like to report it to you.....:)

---------- Post added at 10:50 AM ---------- Previous post was at 10:49 AM ----------

I am downloading it and report back later....:good:

Thanks and thanks again for the great kernel,

LMK

---------- Post added at 11:45 AM ---------- Previous post was at 10:50 AM ----------

Hi Hund,

Does v3.4.2 supports both westwood and westwood +?

Thanks...:)
[Asus Transformer TF700] Hundsbuah:
yes its westwood+ :)

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 4
[Asus Transformer TF700] LetMeKnow:
Thanks....:good: That is what I am looking for...:)

Another quick question, I like to ask questions so I have better understanding of what I am using. Therefore, if you don't mind, I will ask more question about your kernel..:) Please let me know it it bothers you..

I am optimizing your kernel to the way that I like and it seems to work. Would you like to discuss what I am doing so we can have them build in on your kernel for the next release?

Thanks,

LMK
[Asus Transformer TF700] Hundsbuah:
Sure just ask. I'll do my best to integrate it in the kernel :)

Gesendet von meinem SM-N9005 mit Tapatalk
[Asus Transformer TF700] LetMeKnow:
First, your available freq is down 51MHz but your minimal policy only allows to go as low as 204MHz. So is there any way to bring the minimum freq down to 51MHz?

Second, there are a lot of values in kernel set as default. If we can optimize them to the speed of the tf700, it would run better and smoother..:)

Third, your kernel write speed is very fast comparing to _that v6 but the read speed is about 4 or 5Mb/s less with the same setting. Is it because of the framebuffer?

I have some optimal values that I am using on your kernel. I will share them with you to see if they are valuable for your next release..:) I have to run off for some errands and be back to talk more with you later..

Thanks,

LMK
[Asus Transformer TF700] _that:
Unlikely that the framebuffer console would have any impact on I/O speeds. But did you compare different I/O schedulers?
[Asus Transformer TF700] LetMeKnow:
I am using the same setup on both kernels and using two different apps. They were shown your read speed was faster almost every time... I have no clue why...:o

Yes, I was using ROW on both kernels and later on using deadline scheduler. Something must be different between the two kernels. I really love to figure it out...haha..;)

BTW, your v6 seems to run smoother than v5...:good: Both of you do a very good job on kernels for the tf700. Great job....:good:

Thanks,

LMK
[Asus Transformer TF700] _that:
There are a lot of differences between my kernel and Hundsbuah's. Mine is very close to stock, this one contains lots more experimental features and changes.

Have you tried CFQ as I/O scheduler?

Maybe your testing methodology is broken, there should be no difference in smoothness. :) That is by the way also the main reason why I am so conservative: I try to include only changes into the kernel that have a measurable effect. I still don't have a good way to objectively measure "smoothness".
[Asus Transformer TF700] LetMeKnow:
No, I have not...:( I will try it when I have time..

Maybe, I tested your v5 a while back and just tested your v6. I did remember that your v5 was a little choppy in transistions between pages but it was not in the v6...:) However, there are a lot changes between the two tests...:)

[MENTION=2170908]Hund[/MENTION] and [MENTION=4878287]_that[/MENTION]

Have you guys looked into the entropy available for the kernel? I have noticed the smoothness with the increasing of entropy...:) Once again, it is only feeling and maybe just a placebo...:) If both of you are interested, you can take a look at the seeder random generator...

Thanks both of you for all the information and great kernels...:good:
[Asus Transformer TF700] ubefuct:
+1

My tab loves the low frequencies, and i've asked for those back as well. I stayed on an old kernel just for those two frequencies, until hunds added a bunch of features I wanted to try. Been tempted to rom2sd with old kernel as I get great battery life, i've got stats a few pages back.(~20+pages ago)
[Asus Transformer TF700] sbdags:
Which version have you been using?
[Asus Transformer TF700] ubefuct:
i stay on 3.4 at home, but when I go out on the road/work i keep 3.2 on my sd to flash. Haven't temped the dual boot setup yet. Only thing is 3.2 don't have alot of the 'new goodies'.
[Asus Transformer TF700] Hundsbuah:
With 51mhz some devices ending up in a sod. That's why I went back to 204mhz

Gesendet von meinem SM-N9005 mit Tapatalk
[Asus Transformer TF700] _that:
Yes, I have found no sign of anything having to ever wait for random numbers.

Placebo. :)
[Asus Transformer TF700] LetMeKnow:
I understand...;) Thanks..

---------- Post added at 08:13 PM ---------- Previous post was at 08:10 PM ----------

I knew that you are going to say that... Did you actually check to see if it is actually using it? Anyway, thanks for your opinion...:)

You are probably right about it...thanks..
[Asus Transformer TF700] LetMeKnow:
Your v3.4.2 is working great so far without any hiccup or issue...:good: Moreover, thanks for a lot more extra congestion controls that you added in for the internet but so far I like the westwood and test more on others and report back to you...:)

Thanks,

LMK
[Asus Transformer TF700] lucius.zen:
Hello all,

In case anyone was wondering the following line can be used to set the TCP congestion algorithm in an init.d script or root terminal.

/system/xbin/sysctl -w net.ipv4.tcp_congestion_control=westwood

Just change the portion in red to the name of the TCP algorithm you wish to use.

All the best,

Lucius
[Asus Transformer TF700] Hundsbuah:
Very nice thanks!

Gesendet von meinem SM-N9005 mit Tapatalk
[Asus Transformer TF700] LetMeKnow:
I agree with you on your testing...;) The westwood algorithms will give the users a best experience on wifi especially on heavy or large bandwidth.. About the reno vs. westwood, they are using the same algorithms which the westwood is a modification of the reno to handle a larger and faster bandwidth from the sender side only. So they are exactly the same but westwood is better for our modern high speed wifi..:) It would be interesting to see the TCP cubic vs. TCP westwood because they are totally different algorithms.. I prefer cubic when I have a good signal for my wifi because it loads the pages faster. However, when I am a way from my router, the westwood give me more consistent buffering when streaming video or big files.. In short, I prefer the westwood control over cubic because I am moving around a lot with my device and most of the time I am not next to the router...:)
[Asus Transformer TF700] lucius.zen:
Nice thanks for the quick explanation I hadn't done any research into the specific behaviour of each algorithm, had to teach myself how TCP/IP actually works in the first place lol. I do a lot of streaming and moving around my campus while connected to wifi so I will be sticking with westwood for a bit.
[Asus Transformer TF700] Hundsbuah:
thx for the detailed info. dont u mean 99hundsapp in init.d? 99loadmodules is just for insmod modules

Gesendet von meinem ASUS Transformer Pad TF700T mit Tapatalk 4
[Asus Transformer TF700] lucius.zen:
When your kernel is installed via CROMi-X a line editing rt_config is added to the 99loadmodulles script. Only applies if you flash hunds kernel included in CROMi-X.
[Asus Transformer TF700] Hundsbuah:
oh thanks, didnt know that. that is bad because if u set some values in my hundsapp, after reboot it maybe doesnt work because its overwritten by 99loadmodules :(. and 99hundsapp has also the rt_config line set by my app
[Asus Transformer TF700] lucius.zen:
I was thinking the same thing bc 99loadmodules follows 99hundsapp thus overwriting any changes made in your app. It might be best to rename 99loadmodules to 00loadmodules so that it executes first.
[Asus Transformer TF700] lucius.zen:
Huns App Script Name

Hey dude,

Just had a thought. To ensure that none of the tweaks made by your app are overwritten by other scripts it might be best to rename 99hundsapp to ZZhundsapp. This would make it easier for people who rely entirely on apps for tweaking.

Lucius
[Asus Transformer TF700] _that:
Right, and the next tweaking app will use "ZZZZZZZZZsupertweaks". What's wrong with using the recommended naming conventions "00script" to "99script"? ROM and app developers should stop abusing the "99" prefix for *all* tweaking scripts, it makes zero sense.
[Asus Transformer TF700] lucius.zen:
Dont get me wrong here, I agree with you. I rename all init.d scripts on my tab to use conventional naming system. However, the issue has been around for a while and nobody has said anything. Obviously nobody checks their init.d scripts to make sure there are no conflicting or duplicate lines. In the long run, to help prevent other scripts from overwriting changes made in hunds app it would be best to rename it with a ZZ prefix, because, like you said, 99 gets abused and the average user doesnt check their init.d scripts. I am only saying this bc it is less likely to cause problems for the average user, I dont necessarily think it is ideal.

---------- Post added at 05:20 AM ---------- Previous post was at 04:37 AM ----------

Yo,

Just realized I made a typo. Hotplug is 2 4 8, not 2 4 6. My bad! Fixed OP.

Also changed midrange_freq to 760000 rather than 910000. 910000 is most appropriate if you typically use profiles capped to 1.75Ghz-1.9Ghz, 760000 is better for profiles capped between 1.5-1.7. I find I am using the latter lower range more often now so I am going with 760000.

Lucius
[Asus Transformer TF700] sbdags:
Thanks for the info. Does 76000 give better battery life?

BTW I got all your tweaks working in init.d except for Max_boost which doesn't want to take for some reason.......
[Asus Transformer TF700] LetMeKnow:
My is working fine and just check it....:) Is this what you are using?

echo 1900000 > /sys/devices/system/cpu/cpufreq/interactive/max_boost
[Asus Transformer TF700] sbdags:
Yes well 1800000 but the file just reads 0. But I'm on that v7 so maybe that is the issue?
[Asus Transformer TF700] LetMeKnow:
You can check the available frequencies on _that v7 to see if it supports up to 1800000....;)
[Asus Transformer TF700] _that:
root@android:/sys/devices/system/cpu/cpu0/cpufreq # echo 1800000 > /sys/devices/system/cpu/cpufreq/interactive/max_boost
root@android:/sys/devices/system/cpu/cpu0/cpufreq # cat /sys/devices/system/cpu/cpufreq/interactive/max_boost
1800000

root@android:/sys/devices/system/cpu/cpu0/cpufreq # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
51000 102000 204000 370000 475000 620000 760000 910000 1150000 1300000 1400000 1500000 1600000 1700000 1800000
[Asus Transformer TF700] lucius.zen:
I have dont have any specific measurements but i used the tab with full charge from 10 last night to 10 this morning without a break (exam studying, dont ask) and I had 25% battery left, which is definitely good enough for me. I do know that scaling is more efficient. 910000 is best if freq caps are generally high (1.7-1.9), which i tend to use much less now. I used to set the balanced profile at 1.75/1.7 bc i needed more power to eliminate lag in general use. With a tweak I havent released I can run CROMiX 5.2a with Hunds 3.4.2 at lower power 1.6/1.54 and never notice lag. The tweak is super simple, when i realized what needed to be done i couldn't believe i didnt notice it before. Bonus to performance and battery. Im not releasing it bc i want to record the difference it makes. Its easy to understand why performance is better but the logic behind the battery improvement isnt so obvious. You need to see measurements in real time. I want to make a vid so i can show the data and demonstrate performance in actual use. Awesome work with 4.2 btw, ****s runnin awesome :)

Funny that max_boost isnt working for you. I am having a similar issues with time_rate and min_sample_time. My script works when i run it manually but for some reason won't apply at boot. I have checked everywhere for something that could be overwriting my script but I can't seem to figure it out. Everything else works perfectly.