yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] b1g.p0ppa:
Bummer, didn't work for me. I ran the commands interactively and none failed (even used the included busybox) but I still get the dreaded yellow triangle on reboot. About Phone / Kernel Version shows 2.6.35.7-LoStKernel+.

Here's my session:

[b1g.p0ppa@arch FlashzImage]$ adb push script.sh /data/local/tmp/script.sh

5 KB/s (247 bytes in 0.040s)

[b1g.p0ppa@arch FlashzImage]$ adb push zImage /data/local/tmp/zImage

7329 KB/s (5164992 bytes in 0.688s)

[b1g.p0ppa@arch FlashzImage]$ adb push busybox /data/local/tmp/busybox

7264 KB/s (1506792 bytes in 0.202s)

[b1g.p0ppa@arch FlashzImage]$ adb shell chmod 777 /data/local/tmp/script.sh

[b1g.p0ppa@arch FlashzImage]$ adb shell chmod 777 /data/local/tmp/busybox

[b1g.p0ppa@arch FlashzImage]$ adb shell chmod 777 /data/local/tmp/script.sh

[b1g.p0ppa@arch FlashzImage]$ adb shell

# BB=/data/local/tmp/busybox

# Z=/dev/block/mmcblk0p5

# $BB dd if=/data/local/tmp/zImage of=$Z

10087+1 records in

10087+1 records out

5164992 bytes (4.9MB) copied, 2.046629 seconds, 2.4MB/s

# su

# $BB rm -Rf /data/dalvik-cache/*

# $BB rm -Rf /cache/*

# $BB rm -Rf /data/lost+found/*

# $BB rm -Rf /data/tombstones/*

# rm -R /data/local/tmp

# sync

[b1g.p0ppa@arch FlashzImage]$ adb reboot

*EDIT* Flashed zImage using Heimdall and same results--still seeing yellow triangle on reboot and CUSTOM BINARY DOWNLOAD: YES (21 counts) in Odin mode. Also, init.d support isn't working.

*EDIT 2* I hadn't read the instructions in the OP. Once I flashed bubby's 'pulled' kernel I re-ran this script everything is working. (Except init.d support.)
[Samsung Epic 4G Touch] buggerritt:
Ok, This worked like a charm. I used the included CWM to flash Zedo's 4.1 kernel. I've been on it for longer than ever without LOS. One thing weird is that after flashing the kernel, I ended up with CWM 4 instead of 5. I imagine it is part of his kernel zimage. Is it possible for me to easily remove it from the zimage?
[Samsung Epic 4G Touch] 12MaNy:
Did you flash bubby's stock kernel first?
[Samsung Epic 4G Touch] maddoggin:
same thing here, still have damn triangle but have the lostkernel and it didnt ask for su when i ran the bat. if i odin bubbys stock kernel wont that remove root?

edit i do have su installed so dont know why it didnt ask for permuission does this mean my phone isnt rooted?

---------- Post added at 05:31 PM ---------- Previous post was at 05:24 PM ----------

anybody?? i really want this to work man i hate the damn triangle!! chris good work man very much apreaciated. awesome that the best work for this phone so far has come from someone that doesnt even own the phone. they should be ahamed of themselves. lmao!!!

---------- Post added at 05:34 PM ---------- Previous post was at 05:31 PM ----------

hey bud did it ask you for su? cause i got the same result as you and it didnt ask me for su permission so im thinking our phone didnt have root or something i dont know. or maybe we got a bad download and firewall nust have removed something form the dl idk just trying to figure out why it didnt work for us

---------- Post added at 05:45 PM ---------- Previous post was at 05:34 PM ----------

aw ef it ill just wait for my jig to come in so i can get jiggy with it? rofl!!!
[Samsung Epic 4G Touch] b1g.p0ppa:
It didn't ask me for su because a while back I gave it permission and checked the box to remember. I definitely have an su that works.
[Samsung Epic 4G Touch] buggerritt:
Now we just need some custom kernels that don't have CWM cooked into them.
[Samsung Epic 4G Touch] b1g.p0ppa:
I was on midNIGHT 2.1, which comes with chris' unrooted eg30+ kernel. Flashed straight from there. Never lost root or anything. Have gone back to regular rooted eg30+ for now. I love it.

*EDIT* I just read the instructions in the OP. Downloading bubby's kernel now. Gonna take a proper run at it this time.

/doh!
[Samsung Epic 4G Touch] 12MaNy:
It says in the OP to flash bubby's stock kernel first, then run chris41g's Install.bat

...just sayin'.
[Samsung Epic 4G Touch] iondokk:
You have to flash the stock pulled kernel first reboot then make sure debugging is on then run installer.bat wait for SU prompt hit OK, or it will not work!

From Galaxy IIs
[Samsung Epic 4G Touch] b1g.p0ppa:
Followed the instructions exactly this time and it all works fine now (except init.d support still doesn't work).

I did NOT lose su when flashing bubby's kernel. If you're paranoid, run the su update fixer from the market and tell it to Force Anyway. Not sure, but I *think* that copies su to a location that most kernel flashes don't wipe out.
[Samsung Epic 4G Touch] slick4mitch:
Everything worked perfectly, no errors, no drama. I really like the boot animation. I thanked you, good work sir, I appreciate it :)
[Samsung Epic 4G Touch] b1g.p0ppa:
OP states: "you can install any kernel you want from CWM using zips, and not increase your odin mode binary counter."

Does that mean flashing kernels through Odin will bring the yellow triangle back?
[Samsung Epic 4G Touch] 12MaNy:
Yeah, I'm thinking that Odin flashing will bring triangle back. Don't quote me on that though.
[Samsung Epic 4G Touch] Devi0124:
Worked perfect.. that was the only thing bugging me about my phone... perfect now. Thanks!!
[Samsung Epic 4G Touch] chris41g:
That's correct, any nonsigned kernel in odin will bring it back, but you can do these steps again.
[Samsung Epic 4G Touch] krazyflipj:
ok only command that failed was the following:

mkdir -p /data/local/tmp

Looks like everything is working. Is the above important?
[Samsung Epic 4G Touch] smark72:
This is a nice fix. Followed instructions and not only am I free of LOS, my data speeds are great now.
[Samsung Epic 4G Touch] maddoggin:
ok odined bubbys stock kernel and then flashed the script again and got something -p failed system read/only pressed any button to continue got su permissions and worked ok but got the android boot animation is that normal?
[Samsung Epic 4G Touch] b1g.p0ppa:
Not important. It's just a bad error msg that should read 'directory already exists'. Chris was just making sure the directory existed before pushing files to it.
[Samsung Epic 4G Touch] Tiffany84:
I'm at work and am on a computer that has never had adb installed on it but does have Odin, Kies and the drivers that get installed with Kies. I'm wanting to try this now but was wondering if someone could tell me what drivers I would need in order to run this. Do I need to install Adb? If so I'll wait until I get home but if not I would love to try it now. Thanks.
[Samsung Epic 4G Touch] buggerritt:
You're good to go. Just run it.
[Samsung Epic 4G Touch] Tiffany84:
Awesome. Thanks for the reply.
[Samsung Epic 4G Touch] buggerritt:
I spoke too soon. I did receive no LOS until I was on a phone call. My call was cut short by LOS. I rebooted and was again cut short in the middle of the callback. This happened a total of 4 times. Now, I am trying your included kernel.
[Samsung Epic 4G Touch] qbking77:
How to video is up!! http://www.youtube.com/watch?v=ySskTt-S-cM
[Samsung Epic 4G Touch] Entropy512:
You are correct.

Why? It doesn't hurt you, and once you've gotten rid of the !, you can flash kernels from CWM without triggering it.

Yes, the only thing that seems to trigger the yellow triangle is flashing an unsigned kernel with Odin/Heimdall on the I777. I'm assuming your device is the same.

Flashing a prerooted system image with Odin/Heimdall won't trigger the counter. Neither will flashing anything from on-device (either CWM, or DDing from the phone.)

For those that don't want to run a random batch script, from looking at your .pit, you have the same kernel partition as the I777:

Ensure your system partition is rooted (/system/xbin/su and /system/app/Superuser.apk exist)

Flash the stock kernel in Odin

Choose a CWM-enabled kernel, any one will do. Doesn't even have to be CWM-enabled, but it's a good idea anyway.

Then run the following (requires ADB to be installed and working)

adb push zImage /sdcard/zImage
adb shell su dd if=/sdcard/zImage of=/dev/block/mmcblk0p5

If you're a kernel developer and flashing kernels a lot, the following works if your kernel is already insecure (ADB defaults to root privileges)

adb push arch/arm/boot/zImage /sdcard/zImage
adb shell dd if=/sdcard/zImage of=/dev/block/mmcblk0p5
[Samsung Epic 4G Touch] chris41g:
yes thats what the batch does, just made it to simplify it... its a proof of concept, so that people look at it!
[Samsung Epic 4G Touch] buggerritt:
Because they all have different CWM. As an example, when I flash zedo's 4.1 beta, I check and my CWM ends up being the old version 4. It also caused me to lose connection with 4 phone calls in a row due to LOS. Say what you want, I have been on stock kernel for 3 days with no LOS, at all. I don't really care about the triangle. I am more concerned about the frequent LOS I get with other kernels. I believe it has to do with the way that CWM is being flashed with them. As far as I know, it wasn't this way with the OG Epic. All of a sudden, we have to flash kernels with CWM cooked in with them with this new device. It's wonky and very buggy. So far, this kernel is working fine for me. I just made a few test phone calls with no LOS. I tried every other kernel and the only other one that is not turning my phone into a useless pos is stock pulled. The rest cause me to have super frequent LOS. I really want to have custom boot animations and be able to make nandroid backups but, not if it's at the cost of not being able to use my phone for calls and texts reliably. I have a feeling that this is the way to flash the CWM to the device instead of the Odin method. I want to test my theory out with other kernels but, they have to be CWM free to test.
[Samsung Epic 4G Touch] hermeticist:
I found a short cut.

After pushing with adb, just restore nandroid backup, and system is, just as you had it but with stock splash!

Yes!
[Samsung Epic 4G Touch] chris41g:
If all you are doing is pushing files then you aren't doing anything...
[Samsung Epic 4G Touch] Entropy512:
CWM has to be in the initramfs for it to work. CWM in the initramfs isn't going to cause LOS.

However, a LOT of your CWM-enabled kernels were using initramfs images that were NOT derived from stock - it took the E4GT community a LONG time to figure out how to pull a stock kernel image, and it wasn't until a few hints were given - http://xdaforums.com/showthread.php?t=1264188&page=5 I wouldn't be surprised if some of your kernel developers are still using hacked-together initramfses not derived from stock.

Of course, it could also be a problem in the kernel sources or the defconfig... The only way to tell for sure would be to build a bone stock (but compiled) kernel using the supplied defconfig, the Samsung sources without modification, and the stock initramfs without any changes. If it still LOSes, there's something wrong in the kernel sources or defconfig.

Over on the AT&T side of things, we had the stock kernel image with stock initramfs within 4 hours of launch, and half of that was me driving home...
[Samsung Epic 4G Touch] 12MaNy:
Man, it sure is nice not seeing that damn triangle. Thanks chris41g. You da man.
[Samsung Epic 4G Touch] cidica:
Thank you for this. When I do finally get around to rooting this phone this will be very nice to have :)
[Samsung Epic 4G Touch] evanigma:
This worked for me in linux with heimdall. Thanks!

And thank you, Chris.
[Samsung Epic 4G Touch] buggerritt:
I'm no dev. I wish I had the knowledge. I only know what I am experiencing on this phone. So far, the supplied kernel in this thread's process and stock pulled kernel are the only ones that I can run without LOS. I'm sticking with this one since it's deodexed, supports boot animation, and has working CWM until something else comes along that is OC'able and claims to be able to do the same (or if this one turns out to start acting wonky in a different situation). Zedo's 4.1 worked fine for me until I tried to use the phone for actual phone calls.

---------- Post added at 07:48 AM ---------- Previous post was at 06:57 AM ----------

Well, scratch that. I just tried to make a call after the phone was charging all night. It shows full bars but, it just kept dialing. After a minute of it doing that, I ended the call. It kind of froze and I had to hit home button, since the back button wouldn't respond. I tried to call again. The message displayed was "call not sent". It the notification area, the first call is still there but I cannot get back to it or end it. Tried to send a text and it fails. However, the internet is working on 4G. Looks like I need to go back to stock kernel. I have no issues with that.
[Samsung Epic 4G Touch] maddoggin:
ok well after using this kernel since yesterday ive noticed a couple of things. no 4g connection and social hub connects but after a short while says i need to reconnect my session has expired. also when i make a call or recieve a call i hear static. wifi connected no problem but no 4g this sucks!! anyways i want to go back to bubbys kernel but he doesnt have a zip or zImage that i can flash i dont want to have to odin a damn kernel should be able to flash!! thanks for reading my rant!!! lmao!

also get some wierd error when trying to use tegrak!!
[Samsung Epic 4G Touch] Skorpion56:
Concept...

The $4 jig resets the counter and you dont need root or custom anything. I flashed CWM w/ root on my FIRST E4G. After i got my replacement from LOS, id rather get rid of the triangle ad actually reset the counter.
[Samsung Epic 4G Touch] maddoggin:
chriss does this support custom bootanimation.zip or sanim.zip or what?
[Samsung Epic 4G Touch] hermeticist:
Custom boot animation is working for me with these:

starburst rom 1.5

Zedomax kernel 4.1

Custom boot animation
[Samsung Epic 4G Touch] HondaCop:
Quick question... Once I do the procedures as outlined in the OP, then I can flash a ROM/Kernels and anything else via CWM without ever getting the triangle again after flashing?

Sent from my Samsung Galaxy S II Epic Touch 4G WTF BBQ
[Samsung Epic 4G Touch] darren.wlsn1:
yep, thats how its working for me.
[Samsung Epic 4G Touch] paranoid android85:
this sounds awesome. how do i get it to work on ubuntu based linux?
[Samsung Epic 4G Touch] rbaucom:
Good to know!
[Samsung Epic 4G Touch] 12MaNy:
Just a heads up....I haven't had any LOS since pushing this mod to my phone yesterday morning.
[Samsung Epic 4G Touch] Snazarian:
/rant

Why dont we have clear and concise instructions like this on this message board? Are we all hardcore android devotees and/or developers?

We all appreciate the hardwork that developers like chrisg41 put in but damn do we need to get to post #32 just to make it easy......???

thanks iondokk!

/endrant
[Samsung Epic 4G Touch] chris41g:
Now, I may not be the best at explaining ****... but what in his post is not explained in the OP? Or needs to be made more clear? Also.. due to my lack of ability to explain ****, qbking77 makes videos.... and I put them in the OP..
[Samsung Epic 4G Touch] chris41g:
If you understand how to write a sh script, then convert that install.bat to a sh script, and post it... if not, just manually run the commands in the bat file...
[Samsung Epic 4G Touch] smark72:
Instructions are fine. I had no problems whatsoever. I think some people just have a hard time taking it slow. They just rush through, screw **** up and then want to blame someone else.

Do a little more reading and research if you are not comfortable with a process, don't rely on someone else who already puts massive amounts of time and effort into helping out, to hold your hand.
[Samsung Epic 4G Touch] paranoid android85:
Thanks. I'll give it a shot
[Samsung Epic 4G Touch] Entropy512:
See my post on page 5.
[Samsung Epic 4G Touch] paranoid android85:
never used ADB. is it a pretty easy setup? ill try to mess with it when i get home
[Samsung Epic 4G Touch] maddoggin:
im sure they work fine with those but my question was does THIS kernel suppoert custom bootanimation.zip and since ive tried it already im guessing it doesnt. chris can you add custom bootanimation.zip to this please . i dont like the android animation this comes with. or can you put the animation back to stock thank you!!!
[Samsung Epic 4G Touch] >MR.T:
Thank You Good Sir

:Dand thanks ,thank you for your contributions to a phone you dont even own, a selfless good deed if i ever saw one. please continue to help get us started so that we dont have the tradgedy of the original Epic!:)
[Samsung Epic 4G Touch] janitorjohnson:
I don't have the yellow triangle. i just flashed the stock kernel and voila. . . . gone.

Still rooted, still su permission to all the necessary apps. I just don't have recovery.

Another added bonus. No LOS in over TWO WEEKS!! Guess that's just luck though.
[Samsung Epic 4G Touch] xlGmanlx:
Another nice mod
[Samsung Epic 4G Touch] kiekan:
You're missing the point of this. Its allowing you to flash ANY (not just stock) kernel and avoid having the yellow triangle or raise the odin count.
[Samsung Epic 4G Touch] kain144000:
This is GR8... Just wish it'd been released b4 I'd rooted, as my counter should only have "1" rite now. Hope u can reset the counter in the future. ::fingers x'd::
[Samsung Epic 4G Touch] aiverson23:
Does anyone have a problem flashing a new kernel through CWM after doing this. I try to flash different things whether it be a kernel or a theme. And they say finished but nothing is ever changed.

Am I missing something?

Edit: Re did the process (odined a new kernel to get triangle back, and then took triangle away) Looks like its working now. I was able to flash different a kernel. Havnt tried a theme yet. But atleast im back in business.
[Samsung Epic 4G Touch] bman55:
Ping dropped in half dl and ul doubled!!!
[Samsung Epic 4G Touch] buggerritt:
You can achieve a counter reset easily with a $2 USB jig.

Sent from my extra sensory space modulator while performing the slippery cricket
[Samsung Epic 4G Touch] kain144000:
Yeah, I kno. But, since I haven't ordered 1 yet, & h8 waitin' for shipments 2 arrive, just woulda liked it.
[Samsung Epic 4G Touch] paranoid android85:
finally gave in and used windows. thanks for this!
[Samsung Epic 4G Touch] Duce HD2:
Question:

I know it says in the OP that I can swap the zimage file with one of my choice, will the "pulled stock kernel" work with that? And still keep CWR? And get rid of the triangle? lol Thanks for the help!

What I'm trying to achieve is: Stock pulled kernel (no tweaks etc), CWR, custom rom, root. Is that possible? Running stock kernel and being able to flash roms and themes....hope it makes sense..lol

I've read many threads- just confused
[Samsung Epic 4G Touch] smark72:
This is what I was looking to do. I did it and lost cwm recovery. I wish there was a way to flash cwm by itself with odin but it looks like it has to be built into a kernel. I may be wrong though.

I am going to give chris41g's lostkernel w/busy box, cwm5 and root (standard version) a try.
[Samsung Epic 4G Touch] Duce HD2:
Yup, you're right, lost cwr...well I guess I'll look for a closest to stock as possible cwr kernel that I can replace it with.. Thanks
[Samsung Epic 4G Touch] xlGmanlx:
As the poster stated, try the lost kernel
[Samsung Epic 4G Touch] Duce HD2:
I did, not as smooth as stock for me.
[Samsung Epic 4G Touch] chris41g:
I've updated the Zip in the OP and it now no longer includes LoStKernel, but the Stock pulled Kernel, Repacked with CWM5
[Samsung Epic 4G Touch] rickyq12:
Damn Chris, you are on top of your game...thanks for your awesome work.
[Samsung Epic 4G Touch] Duce HD2:
Niceee!! Exactly what i was looking for, thanks!
[Samsung Epic 4G Touch] euklid:
Hey I had a problem with the zimage of this kernel you put on there, it would flash ok but somehow the cwm in this kernel was corrupt, it would sometimes give me a bunch of mounting errors, wouldn't let me do a back up, and when I tried to flash a rom it got me stuck on the galaxy s 2 logo, I know because I tried this like 10 times. As soon as I tried replacing your zimage with the zimage of a different kernel and did all the same steps, it worked perfectly..
[Samsung Epic 4G Touch] repl1ca:
once i had the right drivers installed, worked like a charm! Thanks alot
[Samsung Epic 4G Touch] chris41g:
there was a problem, its been fixed an reuploaded
[Samsung Epic 4G Touch] lokko21:
How do I get out of android system recovery???? Please...I odin all possible tars and nothing..
[Samsung Epic 4G Touch] Zeront:
This worked perfect for me! Thanks a million!
[Samsung Epic 4G Touch] strongsteve:
Adb reboot or press home and return at the same time to select in recovery
[Samsung Epic 4G Touch] lokko21:
Thanks I find the adb command last night, after flashing all kind of stuff, silly me, I didn't know about the home return combo, so I was trying power to select and nothing, but it's OK I have a fresh new install.

Thank you anyways.

Sent from my Super Amoled Epic Touch....
[Samsung Epic 4G Touch] Cyclonut:
Followed the directions...works as described! Thanks so much!

Swyped from my Samsung Epic™ 4G Touch.
[Samsung Epic 4G Touch] <3me:
i followed directions and i lose root when i flash stock pulled rom
[Samsung Epic 4G Touch] <3me:
Shameless self bump
[Samsung Epic 4G Touch] Doncabezon:
Worked great for me. Thanks for your hard work. That yellow triangle was nagging me
[Samsung Epic 4G Touch] rickyq12:
[QUOTE=

You should not lose root after you odin bubbys pulled stock kernel.

Once you odin the stock kernel...extract the zip in this thread,double click on the extracted folder and connect phone to pc...run bat. Follow instructions...phone will reboot...done
[Samsung Epic 4G Touch] naulakkim:
yes, I did it as video . It's gone. , But , it didn't work with loStkernel . is there anyone know how to get rid off with LoStkernel? Thanks,
[Samsung Epic 4G Touch] chris41g:
Download the LoStkernel zip extract the zImage, and replace the zImage in the flashimage folder with the LoStLernel zImage... other than that follow the instructions the OP
[Samsung Epic 4G Touch] xlGmanlx:
Don't get any clearer than that, even I knew what you meant haha
[Samsung Epic 4G Touch] <3me:
any help on why i lose root?
[Samsung Epic 4G Touch] chris41g:
Depends on how you are rooting before flashing back to stock
[Samsung Epic 4G Touch] <3me:
As it says in op I flashed a rooted kernel
[Samsung Epic 4G Touch] chris41g:
Please try and be a litte more detailed if you want any help.... like which rooted kernel?...

I suggest flashing LoStKernel, then flashing su zip over it, to repair whatever install of su you have...

Then odin stock pulled.

Then continue as instructed in op...
[Samsung Epic 4G Touch] <3me:
i used zedomax_kernel to root. am i supposed to use clockwork to flash lostkernel over?

im sorry for all the craziness
[Samsung Epic 4G Touch] chris41g:
It doesnt matter
[Samsung Epic 4G Touch] <3me:
this was my process.

odin lostkernel

wipe cache partition x3

flash the lostkernel.zip

reboot

odin eg30pulled

run flash zimage installer

mkdir failed for -p Read-only file system

35 KB/s(247 bytes in 0.006s)

1922 KB/s (8387840 bytes in 4.261s)

3675 KB/s (1506792 bytes in 0.400s)

Press any key to continue. . .

su: not found

Press any key to continue

i do not understand where i am going wrong
[Samsung Epic 4G Touch] chris41g:
You're not reading what I'm telling you to do...

Odin lostkernel

Flash su zip file to repair your root...

Odin stock pulled

Replace zimage in flashimage zip with whatever kernel you want.. for example, the newest lostkernel, or lostkernelexp..

Then and only then.... run the bat file...
[Samsung Epic 4G Touch] <3me:
where can i ger su.zip i have searched acs and sdx and nothing comes up
[Samsung Epic 4G Touch] chris41g:
I link it in my stock repack thread
[Samsung Epic 4G Touch] <3me:
I don't know why I lost root but

I went back to stock then followed your process it worked so THANKS!
[Samsung Epic 4G Touch] xlGmanlx:
just flashed this and replaced the zimage with Stock w/ CWM. Working great, appreciate it!
[Samsung Epic 4G Touch] bones8229:
when doing Flashzimage installer, it says "su not found" ? what did i do wrong?
[Samsung Epic 4G Touch] chris41g:
sounds like you werent rooted..
[Samsung Epic 4G Touch] bones8229:
im not sure but i got it now. thanx though