[KERNEL] FiiO X5iii custom kernel (RK3188) | 2016MHz | ZRAM | ZCACHE | AROMA

Techguy777

Senior Member
May 24, 2018
494
133
43
If anyone has the first firmware the fiio came on or a copy of the boot img aka kernel in a backup I would take that to. We might be able to get magisk to work maybe I think its not true but im willing to try. 1.0.9 firmware has been removed from the fiio site and no one has a copy there rumours that the early kernel can be rooted with magisk but we need a copy so if anyone can help out please do thank you. If we get magisk running it would be possible to systemless get viper to work system wide. That doesnt mean it'll work with Fiio stock sound though it might just sound the same as a phone with viper because thats what it does with bluetooth but bluetooth isnt setup like headphones on the fiio the bluetooth always sound the same in my opinion. Im over the codecs they dont sound any different I havent tried LDAC though. No bs either I dont want some kid to come on here and say I got it and it worked but im not going to give you the kernel cause we know your lying and I hear that every day on XDA because if anyone did do it they would be bragging they figured it out.
 

Techguy777

Senior Member
May 24, 2018
494
133
43
A heads up guys this kernel will not work if you go over 1400mhz. It will freeze and lock up everytime. Its not very safe and if I was you I would do what I do and stay on stock. This isnt a game you can hard brick your device with bad software. But most likely you end up with hours of restoring just to have it happen again. I can appreciate the effort but this is not new he knows it messes up and he blames it on your device being poor quality. It happens to everyone dont listen your device is fine. THanks anyway though love the effort.
 

straubreyyy

New member
Dec 19, 2019
1
1
0
Thanks for your work! My x5iii has drastically improved! However, I do have some questions. Is this an overclock? Is this something that's considered harmful over long periods of time? Also, I followed your instructions by first installing twrp and installing the custom kernel via bootloader mode. How do I install fidelizer? Do I just follow the standard steps? Thanks!
 
  • Like
Reactions: jkbuha

jkbuha

Member
May 31, 2009
46
20
0
Thanks for your work! My x5iii has drastically improved! However, I do have some questions. Is this an overclock? Is this something that's considered harmful over long periods of time? Also, I followed your instructions by first installing twrp and installing the custom kernel via bootloader mode. How do I install fidelizer? Do I just follow the standard steps? Thanks!
Thanks! So a few points:

RK3188's have a default clockspeed of 1800MHz. However the actual proper clockspeed for the FiiO will depend on the other passive components on the board. FiiO downclocked the max speed to 1416MHz however I've found that quite a good range of these players support clockspeeds of 1704 and even 2016 (some can get even higher but they are very rare to find).

Fidelizer is easy to install - the developer has created a great update.img that you can install just using the normal FiiO windows tool. However you'll probably need to reinstall twrp and my kernel again on top of fidelizer. I don't recall if the latest version (1.2.5) overwrites all partitions but let me know if so!
 
  • Like
Reactions: mi_reiche

randytsuch

Member
Sep 25, 2018
8
1
3
This sw works great for me, so I want to say thanks for it.

It improved responsiveness for me, I was thinking about selling my X5, but after installing this sw I decided to keep the X5 for now.

I did have one question.
I'm using bluetooth, and when I'm out walking I get a lot of glitches with bluetooth in aptX.
Was wondering if there is anyway to turn off aptX?

I enabled developer mode, but there are no bluetooth options that I could see there.

Thanks
Randy
 
  • Like
Reactions: jkbuha

jkbuha

Member
May 31, 2009
46
20
0
This sw works great for me, so I want to say thanks for it.

It improved responsiveness for me, I was thinking about selling my X5, but after installing this sw I decided to keep the X5 for now.

I did have one question.
I'm using bluetooth, and when I'm out walking I get a lot of glitches with bluetooth in aptX.
Was wondering if there is anyway to turn off aptX?

I enabled developer mode, but there are no bluetooth options that I could see there.

Thanks
Randy
Sorry only got to read this now, don't have notifications on XDA for some reason.

Unfortunately I don't know of any way to switch off aptX (and/or replace it with a lower-bandwidth codec). However, I've also noticed that the X5iii WiFi/blueooth antenna is poorly designed (very low gain and high attenuation) and I've found the best way is to minimise distance between the headphones and player outdoors due to lower path reflection. So the best solution is to keep the player in an upper jacket pocket (not waist or trouser unfortunately). The type of headset (specifically the size of antenna) also helps - eg: my Sony 1000XM3 has much better range than my 1More true wireless.

Hope this helps :)
 

randytsuch

Member
Sep 25, 2018
8
1
3
Sorry only got to read this now, don't have notifications on XDA for some reason.

Unfortunately I don't know of any way to switch off aptX (and/or replace it with a lower-bandwidth codec). However, I've also noticed that the X5iii WiFi/blueooth antenna is poorly designed (very low gain and high attenuation) and I've found the best way is to minimise distance between the headphones and player outdoors due to lower path reflection. So the best solution is to keep the player in an upper jacket pocket (not waist or trouser unfortunately). The type of headset (specifically the size of antenna) also helps - eg: my Sony 1000XM3 has much better range than my 1More true wireless.

Hope this helps :)
No problem with the delay, my response is kind of delayed too lol.
That does help, jacket I walk in doesn't have upper pockets but I bought an armband which will be more convenient to use my X5 will walking. Your response made me go and buy one, so thanks.
 

bmueller

New member
Feb 16, 2020
1
0
0
Playback speed skipping

First off, thanks for doing this. Truly awesome stuff here.

After running the new kernel/Fidelizer ROM for a few days, one issue in particular has made things totally unusable. When attempting to adjust audio playback speed for podcasts in Antennapod, the sound begins to freeze constantly at anything higher than 1.25x speed (and even there it occasionally skips). I've tried other apps, firmware versions, both the stock and Fidelizer ROM, kernel speeds, etc. and the issue still persists no matter what. I'm a software developer by day but not overly experienced with Android (though I daily drive Debian) so if you need any logs or have an idea of where to start, I'll do my best to help.

Thanks!
 

jkbuha

Member
May 31, 2009
46
20
0
First off, thanks for doing this. Truly awesome stuff here.

After running the new kernel/Fidelizer ROM for a few days, one issue in particular has made things totally unusable. When attempting to adjust audio playback speed for podcasts in Antennapod, the sound begins to freeze constantly at anything higher than 1.25x speed (and even there it occasionally skips). I've tried other apps, firmware versions, both the stock and Fidelizer ROM, kernel speeds, etc. and the issue still persists no matter what. I'm a software developer by day but not overly experienced with Android (though I daily drive Debian) so if you need any logs or have an idea of where to start, I'll do my best to help.

Thanks!
Interesting - hadn't seen this before. But I suspect it could be linked to a Tidal MQ bug I found on v3.4x.

Could you try the following:

1) See if the issue persists in kernel v3.32
2) If it works, could you give me a dump (both dmesg and adb logcat) when the issue occurs in kernel v3.4x?
 
  • Like
Reactions: mi_reiche

mi_reiche

New member
Sep 12, 2019
1
1
0
Interesting - hadn't seen this before. But I suspect it could be linked to a Tidal MQ bug I found on v3.4x.

Could you try the following:

1) See if the issue persists in kernel v3.32
2) If it works, could you give me a dump (both dmesg and adb logcat) when the issue occurs in kernel v3.4x?
Hi,
At very first, thank you so much for all your efforts! I was massively disappointed after I bought an used X5 III but now it’s fun to use.

Moreover, I want to give some feedback on Metall process:
I had the very same install issue when installing the custom kernel on top of Fidelizer reported earlier in this thread. (Installer error 7, reported by Speniopantollor)
However, I could circumvent it by the following: at the end of the faulty process, when you normally would reboot, I quitted the installer and installed the kernel again. On reboot, I got stuck in a bootloop displaying an old „Android“ word logo with some 3D effect animation I haven’t seen otherwise in the usage of the DAP. When forced to reboot into TWRP I started the installer of the kernel again and it went flawlessly and works as intended. I could replicate this behavior after flashing the original Fiio 1.2.5 (not sure about the number, but latest version) firmware for other reasons.

Moreover, I can also confirm I‘m experiencing the Tidal MQ bug on the latest kernel. Referring to the post quoted above, should kernel v3.32 fix the issue?
 
  • Like
Reactions: jkbuha

greigor78

Member
Dec 30, 2007
6
4
0
I just followed all steps to install newest kernel on my fiio X5 but noticed that after running for a few minutes my device just freezes. Is this normal before the 20 minute reboot time lapse or is the device suppose to run as normal before it reboots? I have tried all 3 kernel versions but I am still noticing the freezing. Any suggestions would be helpful thx.
 

WitzyZed

New member
Apr 17, 2020
2
0
0
I just followed all steps to install newest kernel on my fiio X5 but noticed that after running for a few minutes my device just freezes. Is this normal before the 20 minute reboot time lapse or is the device suppose to run as normal before it reboots? I have tried all 3 kernel versions but I am still noticing the freezing. Any suggestions would be helpful thx.
Sometimes it can be a problem with low system free space or formatting of microSD cards (exfat recommended over others to avoid freezing). I’d link to the instruction guide I wrote up, but I’m a new member :) was that the one you followed?
 

Sonorix

Member
Jan 8, 2011
13
1
0
Thanks @jkbuha for your great work on this!

Do you see it as possible to convert this mod for the FiiO X7 and FiiO X7II, this would be awesome.
I don't know how much work it would be, but I still want to ask for it.

Keep up your good work on the kernel.
 
  • Like
Reactions: jkbuha

WitzyZed

New member
Apr 17, 2020
2
0
0
Thanks @jkbuha for your great work on this!

Do you see it as possible to convert this mod for the FiiO X7 and FiiO X7II, this would be awesome.
I don't know how much work it would be, but I still want to ask for it.

Keep up your good work on the kernel.
I'm pretty sure FiiO only released source code for X5iii, and no other devices. They saw the success of this project as a threat to new device sales, and didn't continue to release any other devices' source code, old or current.
 

jkbuha

Member
May 31, 2009
46
20
0
I'm pretty sure FiiO only released source code for X5iii, and no other devices. They saw the success of this project as a threat to new device sales, and didn't continue to release any other devices' source code, old or current.
Unfortunately, that seems to be the case. Any subsequent FiiO players (X7, M5, M9, M11) seem to have incomplete source code. For example the X7 code is missing the source for the ESS DAC which we can all agree is necessary for the proper functioning of the player.

Our only hope is that someone smarter than me can figure out the gaps in the code and compile a fully working kernel for the players. It's stopped me personally from buying the M11Pro...
 

gulebagali

New member
Apr 18, 2015
1
0
0
Songpal dosent detect music from sdcard

After kernel install fiio music player crashed I installed new by downloaded from website, now it's working fine
But I always use to play from Sony music center, I installed that one also but it is not detecting songs from sd card please help me in this
 

szyx

Member
Feb 13, 2019
9
1
0
jkbuha Can you please tell me which file edit to overclock rockchip cpu? I want to overclock RK3318, i think the process is the same...