Rockbox Technical Forums

Rockbox Development => New Ports => Topic started by: Viper_zer0 on April 14, 2016, 12:07:31 PM

Title: FiiO X3 2nd gen
Post by: Viper_zer0 on April 14, 2016, 12:07:31 PM
Hello everyone, the FiiO X3 2nd gen has nearly identical hardware as Xduoo X3.
-Same SoC: Ingenic JZ4760B
- CS4398 DAC chip
- LMH6643 for current amp
the only difference is the low pass filter and voltage amp which is OPA1642 instead of OPA1612.
Seeing the ongoing development on FiiO X1 and the test builds for the Xduoo X3 I'd assume the FiiO X3 2nd gen also has good chances of being rockboxed, right?
Title: Re: FiiO X3 2nd gen
Post by: Viper_zer0 on April 14, 2016, 12:13:47 PM
PCB shots (Can't really find a wiki page for X3II so will post them here):
http://soundnews.ro/wp-content/uploads/headphones-1-of-1-55.jpg
http://soundnews.ro/wp-content/uploads/headphones-1-of-1-58.jpg
http://soundnews.ro/wp-content/uploads/headphones-1-of-1-57.jpg
http://soundnews.ro/wp-content/uploads/headphones-1-of-1-59.jpg
Title: Re: FiiO X3 2nd gen
Post by: pamaury on April 15, 2016, 10:40:59 AM
Hi,
thank you for the PCB scans. Indeed, the fiio X3 seems close to the Fiio X1 so when the X1 port is done, the X3 port should be much easier.
For now, I will put those photos on a newly created X3Gen2 wiki page.
Title: Re: FiiO X3 2nd gen
Post by: krikkit on October 05, 2016, 12:27:36 AM
Any updates on this? As the priced of the device dropped, I am planning to use my current FiiO for dev./testing purposes.

Here is the beginning of my contribution: http://imgur.com/a/ESSjq and http://pastebin.com/QgZqGYiL
Hooking up on the UART available on the PCB, we can get some information about the system while running and at boot time (c.f. Patebin, i.e. IPL)

Anyone would know what is the display from the reference written on its back? I was unable to find any datasheet around.
Title: Re: FiiO X3 2nd gen
Post by: pamaury on October 11, 2016, 03:59:43 PM
Hi,
sorry for the late answer. I started doing stuff on the Fiio X1. I wrote some things on the wiki: http://www.rockbox.org/wiki/FiioX1 (http://www.rockbox.org/wiki/FiioX1). I think the boot procedure is the same with the Fiio X3 gen2 since it is not linux-based afaik. I also disassembled the IPL and SPL, you may want to check if what I wrote in the wiki page applies to the X3.
It is generally very hard to get datasheets for LCDs. What we usually do is we disassemble the OF to find the init sequence, and from it we guess the controller that is used (because in practice only a few display registers are important). But just so you know, on the X1, the SPL initialises the LCD, that's probably the simplest way to get the code.

If you are interested in helping the port, you could come on our irc channel http://www.rockbox.org/irc/ (http://www.rockbox.org/irc/), I can explain you how to dump the SPL and IPL.
Title: Re: FiiO X3 2nd gen
Post by: krikkit on October 19, 2016, 12:09:17 PM
Hi pamaury,

No worries, I also have a lot to do. I took more, clearer, pictures and fully disassembled the X3 2nd Gen (i.e. I removed the metal plate).
I will soon start digging into the firmware and ""TRM"" of the SoC.

I gladly accept your offer, I will come on IRC so we can talk: I would like to make a list of things to do for porting this device.