yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Lanchon:
YES, it is normal! the script outputs text explaining not to worry about this error, did you not read that?

you did not need to flash TWRP after partitioning. the script printed out exactly what you needed to do after partitioning!

i dont know what TWRP you flashed (i never published any TWRP), but it looks like you were able to reboot into it, so the partitioning was ok.

something after that went wrong, no way of knowing what with that info. either that TWRP you flashed effed up the bootloader, or -much more probably- you emmc was about to die and finally gave in.

if you cant boot into download mode, (i think) it means the phone is bricked and you cant bring it back to life without a JTAG rig. but more importantly, it looks like your eMMC is fried, so even JTAG could not cure it. years of running without TRIM takes a heavy toll on the flash chips, many have been dying recently
[Galaxy S II Android Development] 7med:
Thank you.

I left the phone charging for a couple of hours and it booted and now everything it's OK :fingers-crossed:

I think i couldn't enter download mode because the home button don't work very good (I have to press many times to get home)

So it's time to change the phone
[Galaxy S II Android Development] Lanchon:
lol, ok! always make sure you have battery before flashing :)

unfortunately the home button cannot be repaired. opening the screen to reach the button is a very difficult procedure.

on the other hand, it's very easy to have CM display the navigation bar (soft buttons) on the screen. you can also change the action of the menu button, say short for home, long for app switcher.
[Galaxy S II Android Development] 7med:
For the home button that what I used to do, but to enter download mode via buttons when the phone is off it's not easy (Advanced reboot or adb are doing the job)

It's really strange that the phone was stuck at the Samsung logo when I tried to boot, but booted after a couple a hours and I charged the battery before flashing

Anyway, thank you for your help and your contributions
[Galaxy S II Android Development] Lanchon:
UNOFFICIAL RELEASE: CM11 NIGHTLY for i9100

http://xdaforums.com/galaxy-s2/deve...yanogenmod-11-nightlies-t2634693/post62676820
[Galaxy S II Android Development] x3dnd3x:
Is it okay to use it on the latest nightlies? :confused:
[Galaxy S II Android Development] playitlouder:
My old S2 was used almost it's entire life with CM (flashed CM7 2 weeks after I bought it in 2011).

It went CM7-->CM9-->CM10-->CM10.1-->CM10.2-->CM11.

Brickbug never occurred on the thing even though I just found out the flash is affected (VYL00M 0x19 Firmware).

So lets take the risk and give the thing the right to trim ;)

Will flash 2015_09_04 Kernel with 09_05's CM11 build and see, how it goes :)
[Galaxy S II Android Development] Lanchon:
don't worry, there's no risk :) but do tell us how it goes!
[Galaxy S II Android Development] playitlouder:
Works fine for now :)

I noticed quite an improvement since I trimmed my partitions, that S2 feels nice and snappy again with CM (not that many background apps installed).

Thanks for your work and fixing the bug that Samsung never found (PFBug).
[Galaxy S II Android Development] stefano91av:
Hello , I tried to re-partition a I9100T with the pit of this thread , but nothing to do . Does not work.

The phone is now only DOWNLOAD MODE .

How to restore the stock firmware with Odin also restoring partitions ? Thank you :)

I've tried to flash I9100TJJLS4.

This is the result... FAIL.

http://www.tiikoni.com/tis/view/?id=a06003d

HELP ME, PLEASE!!! :(
[Galaxy S II Android Development] Lanchon:
this is not a partitioning thread, this thread is to discuss trim kernels. please ask for help in the proper thread.
[Galaxy S II Android Development] makix13:
I've sent you an email with some instructions, next time read carefully and use Google before, don't spam the thread or you will be banned.

S2 LA Cyanogenmod 5.1.1 [unofficial] [06/17] - Xposed [unofficial romracer's framework] - [rovo's beta 4 apk] - Viper4Android
[Galaxy S II Android Development] wolfanger:
Is latest kernel for i9100 (09/10) with trim enabled compatible with recent official nightlies cm 12.1 ?
[Galaxy S II Android Development] Lanchon:
consider it so until someone reports otherwise. in case of trouble you just reflash the nightly, no biggy. note that recovery will always boot; it is completely independent of the rom.
[Galaxy S II Android Development] Pa9an:
Installing this kernel (20150910) with the newer CM12.1 dailies gave me many errors lately.

Tried to upgrade to 20150929 Daily yesterday, resulted in Trebuchet being shut down on device startup.

What I did was:

Formatted the device (data, system, cache, dalvik).

Flashed daily.

Flashed Lanchon ROM.

Flashed GApps.

Flashed Touch recovery.

Reboot...and Trebuchet crash.

Same as above, without the kernel this time - and it worked.

Now the battery drains lots faster than before (FPBug fix not yet incorporated into regular CM12.1 ROM?).

Other than that the S2 works like charm.

Could you look into that (hope it can be reproduced) and fix the kernel any time soon?

Thanks!!
[Galaxy S II Android Development] wolfanger:
Trebuchet Launcher crashing it's not related to lanchon trim kernel but it is an issue with official build cm 12.1 . Revert to previous build or wait for next one. As you see in nightly changelog, fixes for trebuchet are coming. http://www.cmxlog.com/12.1/i9100/
[Galaxy S II Android Development] Pa9an:
Good to know.

Strange, though, as I thought I tried most combinations of dailies 20150914, 20150921 and 20150929

with

the kernel - and was eventually only successfull

without

it...

I had been on DAILY-20150921 before, this also brought some Trebuchet errors (and others) but these could be solved by deleting Trebuchet (and some other gapps) settings and rebooting (and setting up the launcher again from scratch).

When did these Trebuchet issues start?

Or even better: Do the many Trebuchet mentions in todays changelog mean that the issue(s) might be solved and I can use this version?

(Sorry to be off-topic when this is not kernel related...)
[Galaxy S II Android Development] wolfanger:
Trebuchet crashes are related to 20150929 build. Right now i am flashing 20150930 hoping trebuchet works.
[Galaxy S II Android Development] Pa9an:
Grazie :)

Will also try tonight - unless you tell me before better not to... ;)
[Galaxy S II Android Development] wolfanger:
With today nightly 20150930 Trebuchet works perfectly.
[Galaxy S II Android Development] Pa9an:
Great!! Will give it a go tonite then. Thanks again!! :good:
[Galaxy S II Android Development] Pa9an:
I do like the idea with the TWRP recovery, though :)

Any chance, your builds can contain that?

Or has anyone a proper link for an updated TWRP recovery that doesn't come with a kernel?

Or will the following work? :

- flash CM12.1 daily

- flash twrp+stock-kernel

- flash Lanchon kernel

Will this lead to updated daily, TWRP and Lanchon kernel?

Or will Lanchon's kernel overwrite the TWRP again?

Anyways...with TWRP built into Lanchon's kernel directly (and be it as an optional build, as TRIM/NO-TRIM is), the second step could be saved...
[Galaxy S II Android Development] FiSh-MoB:
On our sgs2 its only possible to flash recovery with kernel. LA updates his default kernel with twrp today (See first post in bis cm12.1 thread). This is the best option atm.
[Galaxy S II Android Development] daniu:
Hi

But you still got these 4 choices:

*cm stock kernel with cm recovery - no nandroid, no trim

*Lanchon's kernel with cm recovery - no nandroid but trim

*La's kernel with twrp - nandroid backups - no trim

*dorimanx kernel by gsstudios - nandroid backups (don't remember twrp or cwm) - and trim but - it's quite some time ago - last time I tested it was really unstable: in my opinion it has too many features that I do not need and that cause problems (dual boot, oc, uv)

Or is there another option now? I think what most people still would love to see is:

*cm stock kernel but with twrp or cwm (supporting nandroid amongst other features) and trim enabled - no further features that can cause trouble ...

Regards
[Galaxy S II Android Development] Lanchon:
you can use my kernel and have twrp around and flash it when you need it, its not a big deal.
[Galaxy S II Android Development] Naudiz:
Seeing that latest nightly of CM12.1 added zRAM, is it correct to assume that your Trim kernel from Sept 10 will not work with recent nightlies?

Gesendet von meinem Nexus 7 mit Tapatalk
[Galaxy S II Android Development] Spyr0s:
Propably it will work but without zram.
[Galaxy S II Android Development] Pa9an:
I'm using Lanchon's kernel mainly because of the FPBug fix, less because of TRIM.

Has FPBug fix already been implemented (properly) in the CM12.1 stock kernel??

I once only updated the new daily (back in Sept) but had the feeling that the phone got hotter and battery drained quicker...so I presume FPBug is not fixed in stock?
[Galaxy S II Android Development] :
FPBug has been patched in later(after about february) CM11 and all(afaik) CM12 kernels
[Galaxy S II Android Development] Pa9an:
I also read about the fix being in the CM11 builds, but I thought that I read somewhere that it's not (yet) in the CM12(.1) builds.

Does anyone know

for sure

what the status is for the current CM12.1 nightlies?
[Galaxy S II Android Development] Lanchon:
every maintained kernel has fpbug fix nowadays, and have for a long time.
[Galaxy S II Android Development] Pa9an:
That sounds sure enough for me :) Thanks for the clarification!!
[Galaxy S II Android Development] tiagosantos88:
Is there any kernel for cm11 that have FPS limit off?? On cm10 mcm maked one with FPS limite set to 90 ....

Enviado do meu GT-I9300 através de Tapatalk
[Galaxy S II Android Development] Pa9an:
What has changed?

Cannot find a changelog on the first page of this thread - or am just unable to find it in the massive starting posts... ;)
[Galaxy S II Android Development] :
Just updated ramdisk and compatible with latest nightlies
[Galaxy S II Android Development] Pa9an:
zram support?
[Galaxy S II Android Development] Lanchon:
it's just a refresh with recent changes by LA.
[Galaxy S II Android Development] cherryb8844:
Can I flash it on any other ROMs like [MENTION=1597520]Markox89[/MENTION] builds
[Galaxy S II Android Development] _Atom_:
Yes you can flash with markox build..the lanchon trim kernel is from CM 12.1
[Galaxy S II Android Development] Lanchon:
there are CM11 and CM12.1 kernels.

CM11 kernels are somewhat old because CM11 is dead: no more commits accepted on CM's tree; not even bugfixes.
[Galaxy S II Android Development] daniu:
Hi Lanchon,

I am using your kernel with Markox ROM. I am a bit surprised that trimmer tells me that it trimmed 1,4GB each time I apply it, even when I trimm 2 times in a row ... Is there a way to check if I really use your kernel? Also: recovery trimmer does not work - it crashes. Is the zip signed?

regards
[Galaxy S II Android Development] Lanchon:
1) that is normal, it trims the free space.

2) no, not signed. old thing, dont use it!
[Galaxy S II Android Development] varun94:
[MENTION=4141005]Lanchon[/MENTION] can u provide trim enabled cm 12.1 snapshot kernel
[Galaxy S II Android Development] Lanchon:
why? is the current one not working?
[Galaxy S II Android Development] varun94:
have you provided kernel for the snapshot build.i could not find it.kernels are only available for nightlies.sorry if i am wrong
[Galaxy S II Android Development] Lanchon:
you missed part of the thread. the kernels are no longer matched exactly to the system. just use the latest kernel over the snapshot
[Galaxy S II Android Development] varun94:
latest nightly kernel is from 25/10/15 while snapshot build is from 16/11/15.what to do?
[Galaxy S II Android Development] Lanchon:
read my previous msg
[Galaxy S II Android Development] varun94:
okk understood
[Galaxy S II Android Development] Naudiz:
Is there any app that allows regularly scheduled trimming of customizable mountpaths?

All apps I have tried allow /data, /cache and /system, but I would like to run scheduled trimming of /mnt/media_rw/sdcard0 (& ...sdcard1), as I have ext4 on these as well.
[Galaxy S II Android Development] ajislav:
E.g. Tasker
[Galaxy S II Android Development] daniu:
Since when/how can you trimm using tasker?
[Galaxy S II Android Development] ajislav:
Task

Run shell

fstrim -v /data; fstrim -v /system

Use root (check)
[Galaxy S II Android Development] ringen00:
Moved to Q&A thread!

Sorry! Please delete this post - Tapatalk won't let me delete the pics.
[Galaxy S II Android Development] kai_15:
if i install this on my samsung S2 i9100 running ressurrection remix 5.1.1 is that ok? do normally task im my phone without tweaking every reboot?
[Galaxy S II Android Development] :
It should work on res remix as it is based on CM12.1, but there have been recent compatibility problems for some users with other kernels(dorimanx for example), so I wouldn't guarantee it. You could try and if it bootloops or something then just reflash the rom with no wipes.

I'm not sure what you mean with your last sentence, but if you are talking about trimming, you can do it automatically with trimmer app with no need to do anything after a reboot
[Galaxy S II Android Development] kai_15:
---> thankyou sir by the way do i need to flash this kernel then thats it? because when i read the firstpage it make me confuse of the guidelines. hehe
[Galaxy S II Android Development] :
If you are on stock res remix kernel, you should be able to flash the latest trim CM kernel then reboot to system. As I said though, it may or may not work with that rom. Let us know if it does boot properly :)
[Galaxy S II Android Development] kai_15:
---> may be cant do it im scared of possible bricking of my phone hehe thankyou sir for inputs.
[Galaxy S II Android Development] ringen00:
[MENTION=4141005]Lanchon[/MENTION]

I almost flashed

kernel-Lanchon-TRIM-FPBug-20151025-cm-12.1-i9100.zip

but then I checked for brickbug:

VYL00M

0x19

Read the first posts of this thread where it's about the same chip and now I'm not sure what works and what doesn't!

It looks like [MENTION=3668510]empulse92[/MENTION] is using the phone as a daily driver...

What was it again that caused the bootloops? ART ... whatever this means : -) ?

I thought I could stay on the trim kernel (just changing to TWRP for to make Nandroids) and let tasker do a automatic trim every week or so. But isn't CM 12 not automatically trimming meanwhile?

Right now I feel like better not to brick my phone : -)
[Galaxy S II Android Development] :
[MENTION=349465]ringen00[/MENTION]

I have the same chipset and revision as you(VYL00M/0x19), and I use trim. Basically before Lanchon began investigating the trim related superbrick bug, these chips were susceptible to corruption and hard brick when using the erase command.

Once the correct patches are applied when building the kernel, they are safe. Using kernels like this one has been safe for some time, I don't think there has been anyone who has bricked their phone using this safe trim.

I'm not sure what you mean about bootloops and ART. ART is the default runtime in all LP roms and any issues in the past I think would have been fixed by now.

Stock CM12.1 has trim disabled by default. You must use a kernel that has trim enabled like this one
[Galaxy S II Android Development] ringen00:
[MENTION=6418283]noppy22[/MENTION]

Cool!

Think I'll give It a go...

---------- Post added at 11:20 PM ---------- Previous post was at 11:05 PM ----------

[/COLOR [MENTION=6418283]noppy22[/MENTION]

At LA's thread they are discussing a kernel leak. Will Lanchon update his kernel once it is fixed? Do I have to watch out for this?

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

How can I format the /preload partition?
[Galaxy S II Android Development] :
The kernel leak is present in all LP roms afaik. If you have used any LP roms and experienced freezes, then that is what that is.

You can format /preload if you open a terminal and type:

EDIT: Sorry, my mistake. That is the trim command
[Galaxy S II Android Development] the.gangster:
No, that is the trim command!

Formatting it e.g. for the first time after pitting takes an mkfs-command. But also that can be found in the OP of this thread. [MENTION=349465]ringen00[/MENTION]

Please read that again and you'll find the highlighted section with the command you need. Or use a recovery that can do that.
[Galaxy S II Android Development] Lanchon:
this is in the OP of this thread man!! noppy22 got confused, its:

adb shell su -c "mkfs.ext2 /dev/block/platform/dw_mmc/by-name/HIDDEN"
[Galaxy S II Android Development] :
Sorry, my bad. I had trim on the brain :)

I read trim when [MENTION=349465]ringen00[/MENTION] asked about format
[Galaxy S II Android Development] ringen00:
[MENTION=6418283]noppy22[/MENTION] [MENTION=4141005]Lanchon[/MENTION] [MENTION=6560258]the.gangster[/MENTION]

Trimming worked nicely!

I let tasker do it once a week now.

But that's what my terminal (Windows 7) is giving me:

C:\Android\ADB + Fastboot>adb shell su -c "mkfs.ext2 /dev/block/platform/dw_mmc/

by-name/HIDDEN"

mkfs.ext2: can't format mounted filesystem
[Galaxy S II Android Development] Lanchon:
trim every night.

that means the partition is already appropriately formatted, you dont need to do anything
[Galaxy S II Android Development] the.gangster:
[MENTION=349465]ringen00[/MENTION]

From your screenshots in #880 you can see that you pitted with pit for 1GB system & 6GB Data but unmodified 512MB preload partition. In that case it was not changed, so it also does not need (re)formatting.

Reformatting preload is needed for resized preloads after pitting.
[Galaxy S II Android Development] Lanchon:
UPDATE: new CM 11 and 12.1 kernels are up!

unfortunately we are still not there where TRIM goes official and this thread is finally retired.

so in the meantime i bring you new kernels with zeitferne's freezefix, the fix for a notable bug that haunted the Exynos 4210 platform from JB days until now. in fixing this, once again zeitferne showed his amazing prowess as a kernel developer. in CM-12.1, which exists thanks to Lysergic Acid's awesome work, this bug caused periodic freezes and reboots and made the platform unstable enough for me to recommend CM 11 instead for daily usage. this bug also existed in CM 11 -hence the new 11 kernels- but for unknown reasons it hardly manifested itself there.

WARNING: zeitferne's freezefix is incompatible with the PegasusQ CPU governor. make sure you switch away from that governor, ideally before upgrading the kernel, or else freezes will happen. PegasusQ is a problematic old beast; maybe it should be purged away from our repos once and for all.

fun fact: freezefix bug and fpbug were both introduced by samsung in the exact same piece of code... someone there should be shot!

enjoy freezefix!
[Galaxy S II Android Development] daniu:
Hi

Thanks!

I know that changing the governor can be done with tasker but - is there an easier way?

The only thing that I expect this kernel to lack now is TWRP ...

Regards
[Galaxy S II Android Development] makix13:
I use kernel adiutor to change governor [emoji6]

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] daniu:
No way ... it does come with a proper recovery! Cwm is almost as good as TWRP ...

THANKS!

However it did not boot on my device :(

Checking md5 again - installed nicely but reboot ends with black screen turning on boots only recovery ...

Regards
[Galaxy S II Android Development] Lanchon:
maybe you have pegasusq running? you flashed the right one (11 vs 12.1)? it works well on my side.

try flashing my older trim kernel if you want to test a workaround.
[Galaxy S II Android Development] Drx86:
You must have flashed CM11 kernel! :silly:

CM12.1 kernel comes with Cyanogen Recovery! ;)
[Galaxy S II Android Development] chrisXL:
Hi [MENTION=4141005]Lanchon[/MENTION], I would like to try your trim freezefixed kernel on my i9100. I read the first 4 post but i'm a bit confused. These are my questions. To date is the brickbug fixed for all international s2 or I have to perform the test/check table? Once installed the trim kernel, to trim i have to launch some script or the trim is done automatically by the kernel? What is the governor of stock cm12.1? how to check it? Sorry for the noob question and thank you for your work.
[Galaxy S II Android Development] :
The brickbug related to the trim command is effectively fixed. Provided the kernel you use has been patched correctly(which is all of them on xda) there is no risk whether you have an "insane" emmc or not. To trim you need to initiate the command by either using an app like "trimmer" or manually such as through a terminal. Not sure what the default governor is, you could check(and change it) with kernel audiutor.
[Galaxy S II Android Development] makix13:
Hi,

Flash kernel-Lanchon-TRIM-FreezeFix-BuggyPegasusQ-20160105-cm-12.1-i9100,it works great with nightly 5.1.1

Ondemand it's the governor you need to have, to check you can use kernel adiutor

And search in Google Play for Trimmer, with this app you can trim when you want[emoji6]

Regards

S2 Cyanogenmod 5.1.1 [official nightly] - Xposed [official framework] - Viper4Android
[Galaxy S II Android Development] Lanchon:
i think android trims by itself too. you should manually trim /system at least once, especially if you had grown the partition from the initial 0.5GB.
[Galaxy S II Android Development] cescof:
Hi, i trimmed my galaxy s2, but the trimming operation was too quick (i know that my S2 is old so it's impossible) and my phone is still very very laggy

How can i solve? I think that the trim was not executed because of the shortness of the time used to do it. please explain it to me very simply because i don't understand very well english language

i'm running CM11 snapshot M12 (2014/11/15) with the correct kernel for it

edit:

i tried to run the trim from terminal's app and also adb shell and the result was

16 com.android.settings

i think it is a process that i must kill, but how
[Galaxy S II Android Development] Lanchon:
use the trimmer app

or read this thread!
[Galaxy S II Android Development] cescof:
I can't read 91 pages and i had read the first page but i didn't understand how to do.

I used also trimmer app but it is quick (zero time used to write 2 GB? It's strange)

So now i try with lollipop
[Galaxy S II Android Development] Lanchon:
the answer to your question is in the OP
[Galaxy S II Android Development] Drx86:
Here is the answer from OP:

Quick translation for user [MENTION=260793]cescof[/MENTION]:

In pratica è probabile che sul tuo S2 il comando TRIM sia stato disabilitato in fabbrica e se così fosse non c'è alcun modo di abilitarlo.
[Galaxy S II Android Development] Lanchon:
there are other possibilities, like an error on his part: wrong kernel, partition not mounted when he tried, etc. but he didnt reproduce the output so de can't be helped.

anyway that was written before i knew that the i9100 was not a /data/media device (i didn't have one). what i meant was the internal sdcard partition. also, now i know of a way to trim those phones... it is just very very dangerous :)