yashsingh1/xdaforums huggingface dataset:
[Zenfone 5 General] ozank:
That depends, but start trying from 1.14, I am using this.
[Zenfone 5 General] thepomp:
Unlock bootloader on stock firmware or custom rom? Can i unlock it on stock kitkat? And which file i must select? Want to flash rr mm rom
[Zenfone 5 General] ozank:
You can unlock stock as well, any of it does fine. Only they change freezing frequency.
[Zenfone 5 General] thepomp:
Im running stock lollipop now. I wanna revert back to stock kitkat .54 and flash rr mm rom? Which ifwi must i use? Your opinion?
[Zenfone 5 General] ozank:
Use 1.14

If you didn't unlock yet (if it's the first time) i recommend manually unlocking with if.bin.

But if you're lazy, go for 1st option
[Zenfone 5 General] thepomp:
Choose first option and select 1.14 right?
[Zenfone 5 General] ozank:
Yes exactly
[Zenfone 5 General] thepomp:
How to use if.bin? Guide me please
[Zenfone 5 General] ozank:
fastboot flash dnx generaldnx.bin (dnx_fwr_a500)

fastboot flash ifwi if.bin
[Zenfone 5 General] thepomp:
Words in that bracket must be type or not?
[Zenfone 5 General] ozank:
If you run these commands from my file you don't write them.

If you run these commands from any normal ubl files, write there instead of generaldnx
[Zenfone 5 General] thepomp:
Okay sir. Which one is optional? Using first option or unlock manually? If unlock manually just run command in your files and type what you told just now. Am i right?
[Zenfone 5 General] ozank:
I think you should unlock automatically, if you do something wrong manually, it maybe brick the device.
[Zenfone 5 General] thepomp:
Okay. I use the first option. Thanks for quick respond
[Zenfone 5 General] adhit_barker:
Ar'you frezze after ubl with your method [MENTION=7421493]ozank[/MENTION]?
[Zenfone 5 General] ozank:
Less freezes but not "no-freezes-at-all".

I will think about it later.
[Zenfone 5 General] Boomshiva:
So I got lucky then with the script no freeze at all after unlocking bootloader since the day the first automated script was uploaded .;)
[Zenfone 5 General] testgame01:
what is the reason of freeze?

ifwi_ctp_a500cg.bin or fastboot.img or if.bin ??????

bro ozank???
[Zenfone 5 General] ozank:
ifwi_ctp files are the reason.

if.bin is not a replacement, it makes a patch on ifwi_ctp.

If you use better ifwi_ctp before unlocking, you get more stable system.

Btw: there's no difference in ifwi_ctps when using locked. they behave all stable.
[Zenfone 5 General] testgame01:
So, flash ifwi_ctps from 1.14 and 1.15 and 1.18 ,.....lolipop rom ( jb, kk, lp)?? Fix freeze???
[Zenfone 5 General] ozank:
Not fixing, just getting less frequent freezes. Everyone has different configuration. Some guys were good on 2.x some on 1.15. Mostly 1.14 was the better one.
[Zenfone 5 General] testgame01:
Asus can fix freeze problem, why not fix, why :( or asus can't fix it
[Zenfone 5 General] ozank:
I don't know but I think these guys don't know how to fix as well.

Otherwise you care your customers even they have an old device and out of warranty. Because being a lovemark is happening like so.

I don't know actually why don't they try.
[Zenfone 5 General] testgame01:
people using zen and researching zen in xdaz don't find the reason and fix absolutely it? I'm so sad
[Zenfone 5 General] ozank:
I am still trying to find a way but that will be slower than now.
[Zenfone 5 General] testgame01:
maybe it is never fixed :(((
[Zenfone 5 General] ozank:
Just taking a note here:

I was going to flash an edited ifwi by me, I thought it will brick the device and I decided to try something else.

I flashed dnx_fwr_ctp_vv3.bin and ifwi_ctp_vv3.bin and rebooted bootloader. Seems nothing changed and it booted. Let me test for a day or so.
[Zenfone 5 General] pintuvirani:
What this file do bro?
[Zenfone 5 General] ozank:
I don't know actually, I am trying randomly another files' behaviors. I know how to debrick device everytime, so I backupped my files, data, system etc. and then I am trying randomly the other files for another behaviors.

Now, my phone is cool and nothing happened (yet). I will test for two days and if I found some solution (no freezes for 2 days) I will share it.
[Zenfone 5 General] pintuvirani:
I told you before that ifwi.zip.have.many files. I am sure that our freezing solution in there.

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

I will try on kitkat stock rom lets try together. If 2 days not get freeze i will let you know
[Zenfone 5 General] ozank:
Okay I flashed vv3 fyi.

Btw do you know any of method makes freezing faster? Like playing x game or using x app?
[Zenfone 5 General] pintuvirani:
Indian rummy getting very fast freeze and clash of royals
[Zenfone 5 General] pintuvirani:
Ozank bro did you get freeze?
[Zenfone 5 General] ozank:
10 hours now from the last reboot. I need more time to see the effect.

Did you get freeze?
[Zenfone 5 General] pintuvirani:
Yes i got freeze i flashed dnx fwr ctp vv3 & ifwi ctp vv3.

---------- Post added at 04:06 PM ---------- Previous post was at 04:04 PM ----------

After that today mirning i flashed dnx osr ctp vv3 & ifwi ctp vv3. Still dont have freeze. Will see more time.
[Zenfone 5 General] ozank:
You flashed osr?! How?

Osr is operating system file for download and execute
[Zenfone 5 General] pintuvirani:
Yes i flashed dnx osr ctp vv3 after that still i dont have any freeze. I m on kitkat rom not custom rom. If i dont get freeze in few days then i m going to custom rom.

---------- Post added at 06:02 PM ---------- Previous post was at 06:00 PM ----------

I extracted from ifwi.zip dnx osr ctp vv3 and ifwi ctp vv3. First i flashed dnx osr ctp vv3 and after that i flashed ifwi ctp vv3 n fastboot reboot-bootloader.
[Zenfone 5 General] aditia581999:
If you flash that ifwi, it means that it is locked bootloader bro, am i right ? [MENTION=7421493]ozank[/MENTION]
[Zenfone 5 General] pintuvirani:
No my bootloader still 59.A1 after that above file flashed

---------- Post added at 06:19 PM ---------- Previous post was at 06:15 PM ----------

I again show fastboot its still 59.A1 BUILD DEC 8

---------- Post added at 06:20 PM ---------- Previous post was at 06:19 PM ----------

Its not locked bootloader bro its unlocked
[Zenfone 5 General] ozank:
But osr is os file, it can't be flashed like this. Fwr is firmware file. Eh, never mind, let me know about your situation if you don't get freeze.

We are not based on locked bootloader for a week, we are trying on fully unlocked bootloader. Locked bootloader was for older script of mine.

Yes, mine as well. I am on 14+ hours. I need 15 hours more to be sure.
[Zenfone 5 General] pintuvirani:
I got feeze after 10 hours. Now i flashed dnx ctp vv2 n ifwi ctp vv2.
[Zenfone 5 General] ozank:
15 hours 20 minutes and still going.

I wonder what the OS DNX does actually.
[Zenfone 5 General] pintuvirani:
Great bro. From which firmware did u get vv3 file?

---------- Post added at 08:28 PM ---------- Previous post was at 08:26 PM ----------

I get this file from 2.21.40.30 firmware and flashed.
[Zenfone 5 General] ozank:
1.15 or so and was using 1.14's a500 ifwi.

If you want I can release a quickscript with my options at all.
[Zenfone 5 General] pintuvirani:
Ok bro when you going to release it scrip.
[Zenfone 5 General] ozank:
https://drive.google.com/open?id=0B6AxuGkWld1yMUhpWWd5TWN0ZFk
[Zenfone 5 General] pintuvirani:
Thank you bro i will flash this tools and let you know if getting freeze or not.
[Zenfone 5 General] ozank:
I will wait your feedback. 17 hours for me and I played NFS No Limits, watched youtube etc.
[Zenfone 5 General] pintuvirani:
Very good bro
[Zenfone 5 General] Dudumaia55:
did not work with me, I 've been following from the beginning, have tested all methods and always freezes after 5 minutes , my zenfone is the 10/14 :(:(:(
[Zenfone 5 General] ozank:
You tested 6 of 6 and there's no "less freezing script" at all?

You tested the latest beta as well?

For me i am now on 21 hours without freeze.
[Zenfone 5 General] kanodiatushar:
i tried the latest script... it still freezes but its less frequent....
[Zenfone 5 General] ozank:
Today's script?
[Zenfone 5 General] kanodiatushar:
yes
[Zenfone 5 General] pintuvirani:
Try ozank bootloader.zip beta script i think its work for you.
[Zenfone 5 General] ozank:
Sad to hear that. I will see when it freezes or reboots. If it doesn't reboot for 3 days at least we will see something and I will think about it.
[Zenfone 5 General] kanodiatushar:
sure thanks :)
[Zenfone 5 General] ozank:
Btw I don't recommend but can you try pr3, pr2, vv2 things provided in 1.15 (or 1.14) ifwi under your risk?

The worst case you can debrick with that script. Do a backup and try them. I believe they are doing something somewhat; but I don't know and here's the only thread on the internet discussing about this strange files, so I couldn't find anything technically.
[Zenfone 5 General] Dudumaia55:
Yes , I tested all even the beta , the release 1:15 managed to get the brand 1h30 without freezing the screen , yet still freezing , the more I appreciate the efforts I see that lack little to the problems run out of time.

I'm using a rom recreated remix leopard [ black ] with kernel stock .87
[Zenfone 5 General] kanodiatushar:
well, i already have... 3.1 was the best working amongst them but it froze after a while

its just that i am losing hope...

but then boomshiva is an example of success...
[Zenfone 5 General] ozank:
Maybe you should change your base ifwi as well.
[Zenfone 5 General] kanodiatushar:
base ifwi?
[Zenfone 5 General] ozank:
114ifwi, 115ifwi like (originally ifwi_ctp_a500's)
[Zenfone 5 General] pintuvirani:
I got a freeze after 5 hours.
[Zenfone 5 General] ozank:
Same, that restarted at night.
[Zenfone 5 General] pintuvirani:
I flashed pr2 and got freeze after 10 hours. Ozank bro are you getting freeze?
[Zenfone 5 General] ozank:
As I said, i got reboot at night, but I didn't change my configuration yet.

If you get freeze, change it again.
[Zenfone 5 General] pintuvirani:
Change it what bro?

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

Can you tell me bro 1.15 ifwi full firmare build no.
[Zenfone 5 General] ozank:
Change to another ifwi

1.15.40.35 if I remember correctly
[Zenfone 5 General] pintuvirani:
I never tried 1.15 ifwi. I will try n let you know.
[Zenfone 5 General] jiyaad1:
hey ozank, i not sure about this theory but assuming you have hard bricked your device you'd probably use the de-brick method available when doing this it doesn't fully clear out the system so im assuming using the methods provided in the link below could solve the issue of having to find the original rom of your device as this method wipes everything based on the scripts coding then you can just use the ifwi and dnx form the same file and see if it works

how ever it it fails to help and bricks your device (which i doubt will happen cause dgadelha created the script) you always have the de-brick method :D

http://xdaforums.com/zenfone-5/help/config-factory-partition-backup-t3316469
[Zenfone 5 General] ozank:
i used a nearly same thing (xfstk and partitioning) but i will check that. Thanks

Yes I checked that and I used this method, nothing changes.
[Zenfone 5 General] jiyaad1:
Well that's too bad looks like just as we got new roms coming out the urge to use them have grown but thanks to asus's "customer satisfaction policy" some of its customers bought their God forsaken zenfones andare stuck on trouble shooting threads and not on android development thread :eek:
[Zenfone 5 General] ozank:
Absolutely. Thanks for trying to help, I will think something again about this case (my freezing time gets frequent).

I was going to buy Asus RoG laptop; but eh, they lost a customer thankfully.

At weekend I will try about edited ifwi files I think (with a backup and see if it makes any sense or not.)

Thanks for keeping up the thread's hype with me, have a good day. :)
[Zenfone 5 General] pintuvirani:
I unlocked with asus official app and still freeze.
[Zenfone 5 General] ozank:
Yes, I said that; the app makes no difference. It only sends serial number to asus, then it runs a .sh script that changes ifwi files from system/etc/firmware.

Bad thing is, there's no documentation provided by intel about bootloaders of atom proccessors. If I have some knowledge about it, we could find a solution way too easier.
[Zenfone 5 General] adhit_barker:
Any info about ubl [MENTION=7421493]ozank[/MENTION]?
[Zenfone 5 General] ozank:
Nothing, I am trying to build and test a kernel for freeze. But probably it will do nothing.
[Zenfone 5 General] Boomshiva:
Keep up the hard work bro ! I hope you get success on this boot loader stuff quickly . So that others can use custom Rom as well
[Zenfone 5 General] ozank:
Thank you, the proccess is slow, I am sorry to say that, I am compiling it on spare time; when I am busy I suspend the proccess for the next time.

%70 of normal kernel is done (first I am compiling normal CM kernel to study the proccess.).

Edit: I compiled my first CM13 kernel from [MENTION=6292495]dgadelha[/MENTION]'s sources (thanks for the answers of my questions :) ) now I am downloading Borets24's sources as well. I am not going to share the first kernel yet (because it's standard CM13 kernel).

Edit2: That warmed well, so I use RR's kernel as daily driver; but I have some plans about this kernel, will compile later again.
[Zenfone 5 General] Ghi98:
Any progress about auto screen lock ?
[Zenfone 5 General] ozank:
Nothing yet, I compiled a kernel but that heated well; about of ifwi files, it's nearly impossible to edit (thanks to signature). I will try on kernel a bit more. So far, there's no progression at all.

Oh you asked lock, [MENTION=6292495]dgadelha[/MENTION]'s kernel has a tweak about it.
[Zenfone 5 General] adamilmanns:
Freeze bcs ROM i think. This freeze bug from Lollipop StocK Rom. And our rom is base on that.
[Zenfone 5 General] adhit_barker:
Your method ubl still get frezze bro [MENTION=7421493]ozank[/MENTION] ??
[Zenfone 5 General] Ghi98:
Yes I know, but this tweak cause a huge battery drain. In fact he has removed it immediately
[Zenfone 5 General] ozank:
Sad to hear that, but I don't have any work on screen lock (I don't have this bug).

I am just working on non-freezing phone. Sad to say that. Good luck
[Zenfone 5 General] ozank:
I don't think it's from rom based. I think when asus designing the phones, they based on 2.0 ghz variant. So t00f guys not having issues at all. When I changed ifwis, the frequency of freezes changed and can't see the freeze events on logcat. So I was thinking this was a hardware-level problem. In the same time, when I get freeze on whatsapp, cursor was blinking or when on music, my phone was fully frozen but the music was still playing. So, I don't understand what causes about freezes still.

Yes it still gives freezes. The only thing is, it changes frequency of freezes and give you better timing (for me it's nearly 30 hours between the freezes).

===========

Summary:

And I am still thinking about it. So project is still online, I am still trying but it's slower than before. Because I am nearly out of thoughts and thankfully there's no documentation provided.

Only I got a Russian document about ifwi editing; but when I try that the our device's ifwi has signature partition which is only editable by Asus and device won't boot.

Noone knows what causes freeze, I searched on asus, xda, intel forums and some forums (you know where I am mentioning about, I don't know XDA is being friendly to this site or not so I am not mentioning).

Nowadays I am trying on kernels but I don't think kernel would change something.

Edit:

I changed governor interactive to powersave and IO cfq to noop, that froze frequently.
[Zenfone 5 General] dgadelha:
I've only set it to disabled by default. You can enable it.

Check my CM13.1 topic, first page, second post, for details.
[Zenfone 5 General] Ghi98:
OK, but if I enable it I will have battery drain problem
[Zenfone 5 General] dgadelha:
Well, I can't say if you'll have a battery drain. But, I'm sure that some optimizations are yet pending to be like stock (stock turns off this tweak when screen is turned off).
[Zenfone 5 General] ozank:
For those who wants to where DNX and IFWI files go to:

/sys/kernel/update_fw and there's a fw_info folder as well.

Not a big deal but that shows it's related to kernel section.

Edit: I found a Intel Image Sign Tool. I will try to sign a custom kernel if I can do it and try with locked bl. Just an announce about what's going on.
[Zenfone 5 General] pintuvirani:
Best of luck bro.
[Zenfone 5 General] adamilmanns:
It will not work i guess.
[Zenfone 5 General] ozank:
Eh, I compiled that; flashed but it's not booting at all. Stuck on Asus logo.

At least I tried :D

Edit:

Here's the boot images for curious people:

Boot.img boots, others not.

https://drive.google.com/open?id=0B6AxuGkWld1yX1Bvajl2Rkx4ekU

Edit2:

Dell provides some information about these ifwi files, check opensource.dell.com (venue devices).

Edit3:

Some misc. junk files if anyone wants to try and read it:

https://www.scribd.com/mobile/doc/77089382/Medfield-BSP-SOP-Tom-v1-0 (a document that signed by some asus staff)

https://github.com/alef78/intel-ifwi-study

https://github.com/alan-shen/sign_stitch_intel

(Kernel signing things and a signature cert. from Borqs)
[Zenfone 5 General] farhankn:
More Stable Bootloader

I'm Using ASUS Zenfone A500CG - Cyanogen 13.1

Day3 - No Freezing

Current issue - Reebot During Phone calls

Phone have become more stable

---------- Post added at 12:46 PM ---------- Previous post was at 12:41 PM ----------

You have the Link for this CM13 Kernel

---------- Post added at 12:53 PM ---------- Previous post was at 12:46 PM ----------

You really are doing an awesome job. Hats off !!
[Zenfone 5 General] ozank:
Thank you, try to disable dt2w, it may or may not be causing reboots. Disable it for a day and see if it reboots or not, if it still reboots enable it again at least for comfortable usage.

https://drive.google.com/open?id=0B6AxuGkWld1yX1Bvajl2Rkx4ekU

In this zip archive, boot.img works. Don't flash boot_sign ones, these are faulty kernels.

Or you can find it from [MENTION=6292495]dgadelha[/MENTION]'s CM13 thread or [MENTION=5875920]tank0412[/MENTION]'s RR thread for a better kernel. :)
[Zenfone 5 General] arraiyan123:
[MENTION=7421493]ozank[/MENTION] can I flash the boot.img with locked bootloader? Now I'm on AOSP 5.0.2 ,gonna flash CM13 when I can flash it with locked bootloader
[Zenfone 5 General] ozank:
No, it won't boot. I shared because he asked.

Boot.img works on unlocked bootloader

Boot_sign.img doesn't work at all (even on ubl).

I tried, compiled but didn't work.

Didn't you unlock bootloader? (Assuming that you are using Aosp)
[Zenfone 5 General] arraiyan123:
[MENTION=7421493]ozank[/MENTION] no, I didn't unlock the bootloader. Just read on Intel forum and the fact is: you can't sign boot,recovery,and ifwi files.
[Zenfone 5 General] ozank:
How can you use aokp then? How did you flash this? (Just asking for an idea on CM13)

But the vendors can sign that, right? I shared a link that there's a certificate of Borqs (chinese phone vendor) for signing Intel Ifwi and that used on Dell. So I tried that. In theory kernel was compiled successfully but that didn't work.

We cannot believe all the things vendors said, at least we have to try them when we have a chance :)
[Zenfone 5 General] arraiyan123:
I'm use AOSP, not AOKP. Even I don't know there is a AOKP rom for zenfone 5.

And about the kernel, may you can try this to fix freeze: xdaforums.com/showthread.php?p=64260780#post64260780
[Zenfone 5 General] ozank:
Oh, i was saying aosp. Wrongly wrote. Sorry.

So how do you install aosp without ubl?

Thanks for the info, I will recompile the latest kernel with this thing again and use if.bin in firmware folder and test again. :)
[Zenfone 5 General] ozank:
New Kernel (16.05.16):

Changelog:

Used [MENTION=6292495]dgadelha[/MENTION]'s latest repo, next time probably I will try to use newer sources.

Inspired from [MENTION=6425564]X AnwarMov[/MENTION]'s old if.bin attachment to kernel. (thanks to [MENTION=6276488]arraiyan123[/MENTION])

Download:

https://drive.google.com/open?id=0B6AxuGkWld1ycnY1QTgtbkxKbWs

Usage:

Extract boot1605.zip

Push if.bin to /system/etc/firmware

Permissions: rw-r--r--

Go twrp and use bootozan.zip as flashing zip.

Bugs:

Cellular state on battery graph is not showing at all. Fully blank (Cellular network is pretty okay, only it's not showing).

Offtop: Btw, there was (on system/etc/firmware) again if.bin from 3.87's ifwi.

I really don't know why. I know I removed this file.

Edit: No heating and draining. Only when newly installed it makes. Then just a normal kernel.
[Zenfone 5 General] Dudumaia55:
I will test , then give feedback.
[Zenfone 5 General] milano88:
set chmod 0644 in twrp
[Zenfone 5 General] ozank:
I set it by file explorer but if it changes again, i will replace again and do that, got it. Thanks. :)
[Zenfone 5 General] aditia581999:
So [MENTION=7421493]ozank[/MENTION] did the freeze gone? And what does it mean set chmod 0644 in twrp?
[Zenfone 5 General] Dudumaia55:
still freezing but only when I use whatsapp or other applications , if I leave the phone stopped and the screen turned on he gets hours without freezing :rolleyes:
[Zenfone 5 General] milano88:
Try guys...

Usage: Go to fastboot > connect to device > after click unlock > wait to finish

Note: Check your device in fastboot by typing fastboot devices after run tool and click to unlock

Download:

Unlock-Relock-milano88.zip
[Zenfone 5 General] pintuvirani:
bro your links its not working.
[Zenfone 5 General] adhit_barker:
It will not get frezze bro?
[Zenfone 5 General] farhankn:
http://xdaforums.com/zenfone-5/development/rom-cyanogenmod-13-0-stable-builds-t3361579

This was the one which I used

and I'll try Disabling DT2W and Check for the reboot issue

and I'm sorry "In this zip archive, boot.img works. Don't flash boot_sign ones, these are faulty kernels." didnt understand this
[Zenfone 5 General] ozank:
Still got reboot at night

Yes. I just tried

I doubt that (because we tried nearly all files); but I will try that as well. So, what's the difference about your unlocker?

Whose links?

Here you can download the latest kernel of me: (It still gets freeze, but, eh).

http://xdaforums.com/showpost.php?p=66882948&postcount=484
[Zenfone 5 General] farhankn:
Stable

Working fine

Not Freezing or Restarting

CM 13.1 and Zenfone 5 T00F

Battery Fine

No Overheating

Thanks [MENTION=7421493]ozank[/MENTION]
[Zenfone 5 General] ozank:
I messed up, now I cannot change ifwi (even with xfstk).

Good thing is fastboot is still somewhat working. I backed up my files. I will try to reinstall to JB.

If I can't change ifwi anymore I maybe probably cannot use stock rom anymore.

Edit: Well, at least, Jellybean booted well.

Well, I reunlocked and I need to save the state of twrp, rom and my backups.