yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] LetMeKnow:
Thanks for the report _that. My f2fs is still running strong and I don't have the corruption yet. I hope that it is not the case...:fingers-crossed:

BTW, I see that you still have the ext4 options mounting on your f2fs.

/dev/block/mmcblk1p2	/data	f2fs	noatime,nosuid,nodev,errors=panic	wait,encryptable=footer

This is mine.

/dev/block/mmcblk1p2	/data	f2fs	discard,errors=panic	wait,encryptable=footer

I don't know if those options causing any instability, just wander....:)
[Asus Transformer TF700] _that:
Unlikely - these are general filesystem-independent mount options (see "man mount"):

- noatime avoids filesystem writes for file access times

- nosuid and nodev are for security, so they should stay

- errors=panic causes the tablet to reboot in case of filesystem errors (what happened to me). Actually good because it made me aware of the problem and didn't break even more.
[Asus Transformer TF700] LetMeKnow:
Thanks for the explanations. I will let my 12yrs old nephew abuse the f2fs to see if he can crash it. I will report back if there are any issues...:)
[Asus Transformer TF700] _that:
It was rock stable and fast in normal use... if you want to break it, try rebooting a few times. Worked for me. :p
[Asus Transformer TF700] LetMeKnow:
That is a good idea. I will put it to test and report back shortly...;)

---------- Post added at 04:29 PM ---------- Previous post was at 04:01 PM ----------

I rebooted it about 10 times with 1 minute playing around with the tab in between every rebooting. It is still fine and just want to report back. I will let you know if there is any issue coming up...:)
[Asus Transformer TF700] _that:
OK, today I learned that the current version of fsck.f2fs can really only detect inconsistencies, but there is no code yet to repair the filesystem.

That means that f2fs is definitely not "production ready" yet. Labeled "experimental" for a good reason. Only use it if you don't store any important data on it.
[Asus Transformer TF700] LetMeKnow:
It is a good information....:good:

It is not a totally correct. I believed that Moto X is using it on their data partition. Just want to share what I found...:)

I agreed. Otherwise, you may loose your important data and files....:)
[Asus Transformer TF700] kansasboy001:
_that, any chance of adding frandom support into one of you kernels in the future?
[Asus Transformer TF700] _that:
I know frandom is faster, but is there any app that uses more than a few bytes of random data so it would really profit from frandom?
[Asus Transformer TF700] loner.:
:D
[Asus Transformer TF700] _that:
New release: -that9

Lots of things have happened in the last few weeks, and there are already several pre-releases in circulation - time for an official release!

New features:

- Dock key compatibility with CyanogenMod can be enabled by writing "1" to /sys/module/asusdec/parameters/cm_mode. This restores functionality of the "trackpad toggle", "auto-brightness" and "settings" keys in CM and CM-based ROMs.

- Dock keys in the first row from "WiFi toggle" to "Next Track" together with Shift are mapped to F1 to F12. May only work with native Linux or CM.

- Support for USB Ethernet adapters based on the Asix AX88179 chip. I backported the driver from 3.14-rc6, but it is still buggy. It works, but very slowly and with many error messages in the kernel log.

- Support for USB Ethernet adapters based on DM9601 (untested, someone asked for this).

Bug fix:

- The custom preinit binary failed to reset the kernel log level back to 7 if there was no preinit script in /system/boot, leading to empty /proc/last_kmsg after a reboot. This has been fixed.

Also new:

- The kernel is now compressed with LZMA to make the image smaller, so it can also be packaged with TWRP to produce a F2FS-compatible recovery.

- New ZIP installer using a shell script as update-binary, ZIP compressed with 7zip and signed with a new signing process

- The source code is finally available on github: https://github.com/that1/android_kernel_asus_tf700t with tags for this and all previous releases. Note that if you release a self-compiled kernel based on my sources, it's your responsibility to comply with the GPL - at the minimum you must include a link to the specific commit that represents the source version you used to compile.

Known issues and incompatibilities:

- The preinit script fails to run on CROMBi-kk due to issues with dynamically linked programs. It should work with a statically linked busybox.

- SELinux is not enabled to keep compatibility with the proprietary NTFS and ExFAT modules used by the stock ROM.

- Boot and recovery partitions are not exposed, so if this kernel is used for running a recovery, it can't backup or restore these partitions.

Flashable ZIP: View attachment kernel-10.6.1.14.10-that9-oc.zip

Source code patches (ignore if you don't want to recompile the kernel): View attachment patches.zip
[Asus Transformer TF700] corey113888:
can you remind me how we flash kernels when we have a rom2sd setup? i am i have tried the rom2sd zips and cant seem to figure it out...
[Asus Transformer TF700] drewski_1:
Flash ROM2SD1.zip and it will point TWRP at the SD partitions.
[Asus Transformer TF700] berndblb:
http://xdaforums.com/showthread.php?t=
[Asus Transformer TF700] _that:
More details please, it depends on the ROMs you want to run.

Remember there is only one kernel that is shared by all ROMs, but multiple ramdisks (one in the kernel, one on the external /system/boot).
[Asus Transformer TF700] corey113888:
I running CROM 5.4 on the microSD card rom2sd. It is working fine but when i want to flash a kernel i seem to mess up the booting. I wanted to flash your that9 kernel an see how it runs rom2sd.

:)
[Asus Transformer TF700] LetMeKnow:
Question on your kernel source!

I hope that it is the right place to ask this question...:) Please let me know if I need to move it somewhere else.

I got your kernel source setup and ready for compiling tonight but I have one quick question about _defconfig. Currently, I pulled one out from the tf700t and use it during the compilation but it is hund's kernel that I am running on the tf700t. Should I pull another one with your kernel installed or create a new one from scratch or is it ok to use the existing one that I have? I can not find much information about the _defconfig on the internet...:( Thanks..
[Asus Transformer TF700] ebildude123:
cp arch/arm/configs/that_tf700t_defconfig .config

?

:)
[Asus Transformer TF700] LetMeKnow:
Thanks for the information...:good: I will give it a shot tonight...;)
[Asus Transformer TF700] LetMeKnow:
Good news!

Deleted, did not work yet...
[Asus Transformer TF700] lmmohr4:
Encryption Error on Load of v9

Loaded v9 on top of v8, on good working 5.4 internal, with fsync off, forced gpu nothing else and got the failed encryption error on reboot. Shouldn't I be able to load it that way?

Went back to recovery and reloaded last nandroid.

Wanted to see what v9 gave me.

lmm
[Asus Transformer TF700] _that:
Probably filesystem corruption. How did you reboot to recovery before you installed v9? Did you do a regular shutdown before, or were you using any "reboot to recovery" app or "adb reboot recovery"?
[Asus Transformer TF700] berndblb:
Something IS fishy here... Too many encryption errors...

Could it be something in Aroma causing this?
[Asus Transformer TF700] _that:
The kernel doesn't even use an Aroma installer.
[Asus Transformer TF700] lartomar2002:
Will _that_oc_v9 kernel that is used on Crombi-kk support the Cromi-X 5.4 or should I select one in the Aroma installer?
[Asus Transformer TF700] _that:
The CROMBi-kk team repacked the kernel with the CM ramdisk, so if you want CROMi-X or another stock-based ROM, you'll have to install a kernel with a stock-compatible ramdisk - either from CROMi-X installer or from this thread.
[Asus Transformer TF700] lmmohr4:
I was still in Twrp 2.6.3_that3 after flashing the v9. Just rebooted from there.

Entered recovery by using PWR/VDN
[Asus Transformer TF700] lmmohr4:
Retry

Just got a wild hair and decided I'd try to flash v9oc again. This time it took. Wonder why the encryption error happened earlier with no rom flash.

Anyway, I've got v9oc up and ready to take a shot at rom2sd. I've got 5.4 internal, and I believe the rom2sd load, (which I think also loads v9oc) and a wipe of the sd /data, should do it. Right? ,

Thanks for the help.

lmm
[Asus Transformer TF700] _that:
Depends on what you install exactly. The workings of ROM2SD are documented quite exactly in my ROM2SD thread, so you should read that thread (but don't use the rom2sd2 there, it installs old kernel modules).
[Asus Transformer TF700] lmmohr4:
Sorry, I'm lost. I searched "_that rom2sd", "_that rom2sd thread". and everything else I could think of and keep coming back to sbdags rom2sd thread.

I try not to ask frivolous questions and strive for clarity. I didn't do a good job here. I'm trying to load KK as rom2sd with 5.4 on internal.

Where can I find "my rom2sd thread"?

You're one of the few voices who do a good job at being clear. Thank you.
[Asus Transformer TF700] lj50036:
Maybe [MENTION=4878287]_that[/MENTION] is talking about this thread

http://xdaforums.com/showthread.php?t=2501129
[Asus Transformer TF700] _that:
Correct. I didn't create that many threads, and with only 6 total pages in the TF700 Dev subforum I thought it should be easy enough to find.
[Asus Transformer TF700] lmmohr4:
Thanks, Josh. I really appreciate it!

lmm
[Asus Transformer TF700] digithom:
Hi,

Installation of this kernel ended with a "failed" message, on the log "can't execute update binary" ...

What's wrong ?

My tablet doesn't boot anymore, i can only get into recovery (TWRP 2.5.0.0), I don't remember the version of the running rom :p but it was a clean rom (Xenogenesis or Cromix)

Can I change something to try again or do I need to install the whole rom ?

Thanks,

Thomas.
[Asus Transformer TF700] _that:
Are there any more detailed messages in /tmp/recovery.log? (use adb pull to get it)

You can try one of these and see if it helps:

- Upgrade TWRP to 2.7

- Install the previous version of the kernel (-that8) instead of the latest
[Asus Transformer TF700] digithom:
I downloaded the -that8 version as suggested and installed it from a SD card and it worked perfectly, without install errors.

So I minded that I downloaded the -that9 directly from the tablet and it could be corrupted ... I downloaded it again from my pc, transferred to the SD card and installed from there.

No errors, and it runs perfectly.

Definitely, it was a corrupted file issue.

Thanks a lot :o
[Asus Transformer TF700] whatsisnametake2:
cm11

i am looking for a kernel supporting data2sd for a cm11 rom install. will the latest release of this kernel work?
[Asus Transformer TF700] _that:
I'm not sure if CM11 now requires SELinux support in the kernel - if it does, this kernel won't work (enabling SELinux in the kernel breaks the binary modules for NTFS and exFAT for the stock ROM).

If not, it should work if you use the preinit script to copy the CM11 ramdisk files (modified for Data2SD) to / at boot time.
[Asus Transformer TF700] lj50036:
If I am not mistaken, CM-11 doesn't need SELinux to be enabled....

I think goggle may change all this in their next release, so this may be the last android OS that will not need it...

Thx Josh
[Asus Transformer TF700] _that:
I remember you guys changing some SELinux setting to "permissive" on your ROM (and that it fails spectacularly if you don't), but I don't know if that's because the kernel doesn't support it or because your SELinux policies are incomplete.

What/where was that setting again exactly?
[Asus Transformer TF700] lj50036:
It is a BOARD_KERNEL_CMDLINE

It is contained in BoardConfig.mk

This is the commit of me setting it to 'permissive'

Commit Link

Thx Josh
[Asus Transformer TF700] _that:
OK, so this sets the kernel's SELinux mode directly - if the kernel doesn't support it anyway, it should have a similar net effect. :)
[Asus Transformer TF700] _that:
Release -that10

Have fun with this new kernel release!

New features:

- Simplified version number - I don't expect any further updates from Asus, so the Asus build number has become irrelevant.

- Removed the special overclocking mode (system_mode 3) - instead, clock speeds for balanced and performance modes are now user-configurable.

- More options for dock key mapping for GNU/Linux and autorepeat, thanks to [MENTION=1626944]cogano[/MENTION] for inspiration

- File system auto-detection in init for use in preinit script (using CONFIG_DEVTMPFS)

More detailed documentation for the new features: http://xdaforums.com/showpost.php?p=40168242&postcount=3

Flashable ZIP: View attachment kernel-that10.zip

Source code: https://github.com/that1/android_kernel_asus_tf700t/releases/tag/release-that10 - Note that if you release a self-compiled kernel based on my sources, it's your responsibility to comply with the GPL - at the minimum you must include a link to the specific commit that represents the source version you used to compile.
[Asus Transformer TF700] _that:
I finally managed to upload the flashable zip, see post above.

An updated preinit package for the new kernel is 90% finished and still needs a lot of polishing and testing before it can be released. It contains scripts for:

* auto-detecting Data2SD and System2SD

* auto-detecting f2fs on internal and external /data and modifying the fstab automagically

* setting clock speeds

* setting CM-compatible dock key mode

All this can be configured from a simple central configuration file that currently looks like this:

# filesystem config
use_data2sd=1
use_system2sd=1

# pre-init console
run_shell_if_docked=1

# clock frequencies
override_edp_limit=1
mhz_balanced=1300
mhz_performance=1800
[Asus Transformer TF700] lj50036:
Just about everything you do is magical :D

At least when it comes to android :p

Thx for all your help... Without you CROMBI-kk would not be where it is today..

Thx Josh & Team CROMBi-kk
[Asus Transformer TF700] loner.:
I installed that10 kernel. It got to the Crombi-KK boot animation screen and stayed there. I am on the latest Crombi-KK 20141105. I flashed it to the internal drive. Ext4, journaling off, fsync off, DPI 213. :( I can't wait to try this kernel :)
[Asus Transformer TF700] workdowg:
Love the Android Linux penguins...
[Asus Transformer TF700] norkle:
Version confusion for F2FS

I'm having some version confusion. Am trying to progress towards a F2FS install and wanted to check if what I'm doing is correct.

Am using CROMi-X 5.4 and latest CROMBi-kk. Following the F2FS instructions at

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

it recommends the use of a modified _thatv8 kernel.

My attempts to use the modified kernel led to booting CROMi-X ending in android reporting a problem with encryption and to reboot my device.

However I've loaded thatv10 and am not experiencing any problems. Does this mean thatv10 fixes the problems of the modified thatv8 kernel, but DOES support F2FS, ie. v10 includes the F2FS modifications?
[Asus Transformer TF700] _that:
Both v8 and v10 support f2fs, it's just a matter of the correct ramdisk. The ramdisk included in my flashable zip is suitable for stock and stock-based ROMs on ext4. For anything else you need a preinit script that installs the correct ramdisk, or a repacked kernel.
[Asus Transformer TF700] norkle:
Thanks for the explanation _that. I guess my confusion comes from Praetoriano80 describing at http://xdaforums.com/showthread.php?p=51089828 describing WHAT to do, rather than WHY it is doing it. I may still be a little confused by your explanation, I hope you don't mind me clarifying?

From what you said I'm presuming That_F2FS.zip from Praetoriano80's post is a v8 kernel plain and simple. So I can replace it with v10?

The rest of Praetoriano80's post includes Rom2SD_F2fs.zip which includes preinit scripts (that go to /system) which I presume deals with the ramdisk.

If I'm sounding hesitant, it's just that when I used That_F2FS.zip kernel (haven't installed Rom2SD_F2fs yet) it caused problems with CROMi-X (halting during boot due to an 'encryption error') while v10 works. So I felt it best to ask here.

I should've mentioned I did search this topic for 'encrypt' and found references to my problem but nothing that was obvious to me.
[Asus Transformer TF700] _that:
According to his post it's my kernel's zImage (v8? v9-pre3? I don't know) with a modified ramdisk.

The "encryption error" comes up when Android can't mount your data partition. This can be because it's corrupted or because it's formatted with a different filesystem than expected.

The next version of the preinit scripts which I'm currently testing and finishing together with sbdags will auto-detect the filesystems currently in use and modify the fstab accordingly. One of the next releases of CROMBi-kk will include -that10 and the new scripts, and this should then hopefully work "out of the box" in all combinations of internal and external ROMs and filesystems.
[Asus Transformer TF700] norkle:
Aaah, I see what you were saying now. So that explains why the kernel causes problems - it has an F2FS-only ramdisk in the kernel .zip and can only be used WHEN a F2FS /data is available. So when dual-booting (and without your upcoming kernel with filesystem auto-detection) the only practical way to use F2FS is to have both internal and Rom2SD /data converted to F2FS?

Now that I realise my problem was nothing to actually do with the _that kernel, my apologies also for posting in this thread. Also it wasn't clear to me that Praetorian had rolled his own That_F2FS.zip
[Asus Transformer TF700] captaincrook:
Possible for an ME301T kernel build of latest? Who do I have to smooch with? ;)

EDIT: Oh I missed the part in the thread that it detects all the Tegra devices. It works on Smart 10. Wahoo! Thanks for the work.
[Asus Transformer TF700] lj50036:
Don't poke the bear.... :p

Maybe this thread could help ??

http://xdaforums.com/showthread.php?t=2562620
[Asus Transformer TF700] captaincrook:
Ah yes I used that for 4.4x.

The currrent one in this thread works perfectly fine. I just glossed over the overall Tegra device support. My bad! But the kernel is working fine for ME301T. So if anyone else was wondering the latest zip does work on 4.2.1 ROMs.

I am one happy camper. :good:
[Asus Transformer TF700] workdowg:
I still say you should include your tagline in the OP...

"Making the TF700t suck less, since 2012"

Btw... Thank again for the encouragement and instruction...
[Asus Transformer TF700] _that:
[MENTION=518363]sbdags[/MENTION] is currently testing and fixing the new preinit scripts - after I did the first 90%, he is now doing the second 90%.

(anyone who says I got the percentages wrong apparently has never been involved in a software development project ;))
[Asus Transformer TF700] sbdags:
lol too right! Mind you I got some more ideas out of it :) You did all the hard work mate.
[Asus Transformer TF700] erisi:
Adding "djmount" as experimental code

Hello!

Would you consider adding "djmount" (DLNA client that allows access to DNLA server content as if it were a file system ) to your kernel? The home page for "djmount is" http://djmount.sourceforge.net . This would allow any media player to access DNLA "compatible server" content.

Thanks!

Gene
[Asus Transformer TF700] _that:
The kernel already supports FUSE, you only need to run djmount.
[Asus Transformer TF700] erisi:
Is running djmount as straightforward as compiling the source with the appropriate ndk?

Thanks!

Gene
[Asus Transformer TF700] _that:
Running should be easier than building. ;)

All I've built with the Android NDK toolchain so far was Android itself, the kernel, and very simple one-source-file utilities. I don't know how well it works with the GNU build tools.

Maybe this is helpful:

http://stackoverflow.com/questions/8941143/configure-failing-with-android-ndk-standalone-toolchain
[Asus Transformer TF700] laithaiphu:
Hi. I using a TF300T SKU JP version. I unlocked bootloader and it's running on CROMi-X 5.4. All things is ok but Dock keyboard can not active when i connect to tablet, can't changer, can't read SD Card, anything. Can you help me to fix that problem? thank you
[Asus Transformer TF700] _that:
You can read the kernel log (run "dmesg" in a root shell) after connecting the dock and see if it notices the docking event at all.

You can also read /sys/class/switch/dock/state to check the dock state - if the keyboard dock is connected it should return "10".
[Asus Transformer TF700] boldnuts:
Running version 10 with CromiX 5.4 on my tf201, just wondering about the gpu speed, any way of setting it?
[Asus Transformer TF700] _that:
The GPU speed is set automatically depending on the core voltage. What you can do is limit the maximum core voltage, which will in turn limit the maximum GPU speed:

e.g. to limit the core voltage to 1200 mV:

echo 1200 > /sys/kernel/tegra_cap/core_cap_level
echo 1 > /sys/kernel/tegra_cap/core_cap_state

Here's a table of voltages and maximum GPU clocks for each voltage:

mV - MHz

950 - 200

1000 - 267

1050 - 304

1100 - 361

1150 - 408

1200 - 446

1250 - 484

1300 - 520

1350 - 650
[Asus Transformer TF700] boldnuts:
I take it as all gpu core voltages will vary model to model that this is set automatically by your kernel
[Asus Transformer TF700] _that:
The kernel is primarily for the TF700T, but it includes the overclocking patch from clemsyn that also modifies clock frequencies and voltages for other devices. Not all devices work reliably with the maximum GPU clock - if you get graphical glitches or crashes, you can try limiting the core voltage.
[Asus Transformer TF700] _that:
Gaming mode

Following up the recent discussion about GPU speed - that works of course also the other way round. For GPU-limited 3D games you can run the GPU at full speed while in balanced mode for the CPU; just disable the core voltage limit:

echo 0 > /sys/kernel/tegra_cap/core_cap_state

This will give you up to 650 MHz overclocked GPU, but the CPU will still run at most at 1300 MHz (or whatever speed limit you have set for balanced mode), keeping the tablet cool and extending battery life.

For even more 3D performance you can reduce the rendering resolution (tested with a stock-derived ROM; for KitKat you may need to use wm instead of am):

am display-density 160 && am display-size 1280x800

To switch back to native resolution:

am display-size reset && am display-density reset

Note the order of commands must be as above - reversing them will cause crashes in SystemUI.
[Asus Transformer TF700] sbdags:
wm commands are slightly different as below :)

wm density 160 && wm size 1280x800

To switch back to native resolution:

wm size reset && wm density reset
[Asus Transformer TF700] Atlas7:
Have this kernel some app for makeing profiles and setting GPU&CPU OCing?
[Asus Transformer TF700] workdowg:
Text editor. I like Jota or 920. ;)
[Asus Transformer TF700] lmmohr4:
@that

I'm seeing a lot of references to "_thatv10+".

Are they just indicating v10 and subsequent, or is thatv10+ a new kernel?

Thanks,

lmm
[Asus Transformer TF700] _that:
The "+" is added to the version number automatically by the kernel build system, and it has never bothered me enough to find out how to get rid of it. So it's not a new version. The next version will be v11.