[Kernel] TRIM: Fast and Stable CyanogenMod 11 on the Galaxy S2 AT&T i777

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
UPDATE: new CM 13.0 kernels are up, in both standard and Crossflash versions !!!

Follow instructions in the OP to flash official CM 13.0 for the i9100 on your i777 device.
Compatible with CyanDelta.

enjoy!

EDIT: current crossflash kernel is not able to flash sec_touchkey.kl by itself, you will need to copy the file manually.
EDIT2: i don't trust the sec_touchkey.kl report, i'm unable to reproduce. it looks likes it works fine, i'm waiting for more info...
EDIT3: the problem was there and was caused by missing busybox in the CM13 recovery. get the newest kernel, this has been fixed.
 
Last edited:

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
I'm guessing kernel seeing the commits in the i9100 changelog.
i made new CM 13 kernels for you. please *DONT* use the standard kernel, use the crossflash version instead as described in the OP. you don't need to manually modify anything to flash i9100 roms.

please report how it works, thanks!
 
  • Like
Reactions: yosmokinman

yosmokinman

Senior Member
Sep 30, 2012
292
127
0
Wow. Thanks man. Works great. :good:

I wasn't expecting to see the CM13 Recovery since I haven't seen a working one yet.. but it does.

Looks like everything works except sec_touchkey.kl stays the i9100 version even though you have the right layout in the kernel zip. Not a problem for me. Replacing with the i777 sec_touchkey.kl is quick and easy.

Buuut... looks like this kernel only works on the 0314 rom, lots of changes in the 0315 build so now wifi doesn't work with your "old" kernel lol, confirmed by only flashing the i9100 15 rom without your kernel and wifi works, of course calls and buttons don't.

Oh well, I don't flash regularly and 14 works good. Hopefully the i777 can jump on the official cm13 train sometime. I understand the repit issue and how i9100 people updated without knowing. That was a mess.

Everything works fine though (-callbug) it just needs the up-to-date kernel (and the right key config).



About your device-dump questions, the output was in the dump-out.txt file.

I looked at the script before I did it and yeah those errors on those lines.. no sense.

When I said I pushed the dump.sh file I mean I ran the commands in the batch manually after running it as you said first and getting that output just to try, same results. Not worried about it.
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
Wow. Thanks man. Works great. :good:

I wasn't expecting to see the CM13 Recovery since I haven't seen a working one yet.. but it does.

Looks like everything works except sec_touchkey.kl stays the i9100 version even though you have the right layout in the kernel zip. Not a problem for me. Replacing with the i777 sec_touchkey.kl is quick and easy.

Buuut... looks like this kernel only works on the 0314 rom, lots of changes in the 0315 build so now wifi doesn't work with your "old" kernel lol, confirmed by only flashing the i9100 15 rom without your kernel and wifi works, of course calls and buttons don't.

Oh well, I don't flash regularly and 14 works good. Hopefully the i777 can jump on the official cm13 train sometime. I understand the repit issue and how i9100 people updated without knowing. That was a mess.

Everything works fine though (-callbug) it just needs the up-to-date kernel (and the right key config).



About your device-dump questions, the output was in the dump-out.txt file.

I looked at the script before I did it and yeah those errors on those lines.. no sense.

When I said I pushed the dump.sh file I mean I ran the commands in the batch manually after running it as you said first and getting that output just to try, same results. Not worried about it.
hmmm... so the sec_touchkey.kl flashing didn't work, i wonder why, it used to before.

btw, i published REPIT for i777 just now.
 

yosmokinman

Senior Member
Sep 30, 2012
292
127
0
I wish I had more knowledge.

Maybe the key layout needs to be in the system to begin with? i777 12.1 official worked fine. Was the key config for that in the kernel or system img I don't know? But thanks again.


btw, I formated the recovery partition with mkfs.ext2 /dev/block/platform/dw_mmc/by-name/RECOVERY

That cleared isorec but after reflashing still twrp isorec will not work, only cwm isorec. I really don't care but just to document. I guess I'll try a full repit and format at some point to see if it clears up the problem. I don't care at this point cwm works fine for nandroids.
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
Looks like everything works except sec_touchkey.kl stays the i9100 version even though you have the right layout in the kernel zip. Not a problem for me. Replacing with the i777 sec_touchkey.kl is quick and easy.
did you flash the crossflash kernel twice as per the OP instructions?
it's strange that the kernel modules get updated but not the sec_touchkey.kl
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
Looks like everything works except sec_touchkey.kl stays the i9100 version even though you have the right layout in the kernel zip. Not a problem for me. Replacing with the i777 sec_touchkey.kl is quick and easy.
i just flashed this on my i9100. the sec_touchkey.kl GETS REPLACED CORRECTLY, on both TWRP and CM recovery.

could you please detail the exact step by step details to reproduce the eoor? thanks!
 
  • Like
Reactions: yosmokinman

yosmokinman

Senior Member
Sep 30, 2012
292
127
0
^I did it just as you said. Tried it two maybe three times. Everything works except needing to swap the keys manually.

flash crossflash
reboot recovery
flash the unmodified i9100 rom (it flashes so I am on your kernel/recovery)
flash crossflash again
reboot.

I check md5's on all stuff before I flash so it's not that, though probably wouldn't work anyway if it was corrupt.

I guess it could just be my phone but I doubt it. I thought there were at least a few people still around here, anyone want to chime in?
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
^I did it just as you said. Tried it two maybe three times. Everything works except needing to swap the keys manually.

flash crossflash
reboot recovery
flash the unmodified i9100 rom (it flashes so I am on your kernel/recovery)
flash crossflash again
reboot.

I check md5's on all stuff before I flash so it's not that, though probably wouldn't work anyway if it was corrupt.

I guess it could just be my phone but I doubt it. I thought there were at least a few people still around here, anyone want to chime in?
i assume that wifi works after flashing, which means kernel modules flashed correctly, which means:
a)file extraction works
or b)something really bad is happening

does wifi work?

then the only difference is that the kernel modules were deleted before flashing.
 
Last edited:

yosmokinman

Senior Member
Sep 30, 2012
292
127
0
If it was official I don't think there'd be a problem. 12.1 and previously they always had the right config if I remember right.

Who's **** do I gotta suck to get some official cm13 around here :laugh: :rolleyes:
 
Last edited:

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
If it was official I don't think there'd be a problem. 12.1 and previously they always had the right config if I remember right.

Who's **** do I gotta suck to get some official cm13 around here :laugh: :rolleyes:
you want brazilian c*ck. and you can tell him repit for i777 is ready!
 

yosmokinman

Senior Member
Sep 30, 2012
292
127
0
About the isorec twrp problem I had a page back or so after running that dump script (I did nothing else, just run it as said, after twrp was mostly broke but cwm isorec works).

I didn't repit to see if that would clear stuff up with 2.8.7.0 but did flash arnabs twrp 3 and it works great on the i777. So... sweet.

I guess crossflash would have flashed the i9100 twrp but I removed the asserts to flash because I saw I was on the busted twrp and flashing a working recovery with odin and flashing twrp and crossflash through that was faster than finding and pushing something to the busted twrp.
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
^I did it just as you said. Tried it two maybe three times. Everything works except needing to swap the keys manually.

flash crossflash
reboot recovery
flash the unmodified i9100 rom (it flashes so I am on your kernel/recovery)
flash crossflash again
reboot.

I check md5's on all stuff before I flash so it's not that, though probably wouldn't work anyway if it was corrupt.

I guess it could just be my phone but I doubt it. I thought there were at least a few people still around here, anyone want to chime in?
hi,

i think i know what happened: there was a dependency on busybox on the installation script, and i guess you might have been installing from CM13 recovery (instead of TWRP) which has stupid toybox instead of busybox.

anyway, next batch is not dependent anymore, so please follow the instructions and the touchkey file should be taken care of automatically.

and please report back, thanks!
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
About the isorec twrp problem I had a page back or so after running that dump script (I did nothing else, just run it as said, after twrp was mostly broke but cwm isorec works).

I didn't repit to see if that would clear stuff up with 2.8.7.0 but did flash arnabs twrp 3 and it works great on the i777. So... sweet.

I guess crossflash would have flashed the i9100 twrp but I removed the asserts to flash because I saw I was on the busted twrp and flashing a working recovery with odin and flashing twrp and crossflash through that was faster than finding and pushing something to the busted twrp.
i don't really understand you, sorry.

Pretty sure this still only works with the 0314 i9100 rom. I tried with 315 and it didn't work because of kernel changes in that build and I haven't tried anything since then, doubt it would work.

If anyone needs it here's the 0314 i9100 rom:

https://drive.google.com/file/d/0BxrBOoC3iS_xOC1Ebk9PWjUzT1k/view?usp=sharing

MD5: 7dca42adb799178c5ebbb7f61e9968a1
please, next time just alert me to the problem... :)
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
UPDATE: new CM 13.0 kernels are up, in both standard and Crossflash versions !!!

Follow instructions in the OP to flash official CM 13.0 for the i9100 on your i777 device.
Compatible with CyanDelta (you have to tell it to flash my kernel after each update).

enjoy!
 
  • Like
Reactions: yosmokinman
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone