Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio X3
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: Fiio X3  (Read 37875 times)

Offline undersys

  • Member
  • *
  • Posts: 4
Fiio X3
« on: October 08, 2013, 02:46:29 AM »
Hi All,

You may not know but James of Fiio has released a tool to unpack the x3's firmware (to a certain level)
http://www.head-fi.org/t/684793/diy-your-own-theme-for-your-lovely-x3

I've done a very high level peek at the f/w :

File list :

Code: [Select]

DIR   - fonts
DIR   - litegui
FILE -  logo.bmp
DIR   - str
FILE - sys.bin
DIR   - system_attribute
DIR  - unicode

Contains some gzip'ed data :
Code: [Select]

binwalk --dd=gzip:gz:2 sys.bin


DECIMAL    HEX        DESCRIPTION
-------------------------------------------------------------------------------------------------------
728086    0xB1C16    gzip compressed data, ASCII, has CRC, was "]O\342\326qe\327\344%\270}\213\251\213(\260\235\243\247\255\263\265\277\301\305\307\323\337\343\345\351\357\021\004\274 \031\017\244\266\003%\214\230)=\373\376Q]\341wN\375\373\177mG\223\225\243\245?", last modified: Thu Jul  4 01:41:03 2002

This extracts "B1C16.gz , size 3520386"

Strings does not show up anything useful and I can not as of yet extract the gzip'ed data.

This is not a request for a port... :)

Just what I've found and hope its helpful for myself and others

The x3 uses the JZ4760B CPU so thats also helpful given there is a port in progress for that.
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Fiio X3
« Reply #1 on: October 08, 2013, 03:13:18 AM »
Does strings on pure sys.bin show anything useful?
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Fiio X3
« Reply #2 on: October 08, 2013, 03:16:38 AM »
And BTW. James says they have no time to do rockbox (not we don't want to do so). If you are interested in port I would start with contacting company if it is willing to disclose information allowing rb community to do the port (and maybe donating 1-2 units for developers)
Logged

Offline undersys

  • Member
  • *
  • Posts: 4
Re: Fiio X3
« Reply #3 on: October 08, 2013, 05:36:29 AM »
Hi wodz,

Strings gives me nothing useful sadly.

James has been asked about giving out info to make rock box possible , this was a stern no.
So we are on our own :)
Logged

Offline Songs0fFailure

  • Member
  • *
  • Posts: 19
Re: Fiio X3
« Reply #4 on: October 19, 2013, 08:08:42 AM »
X3 must be really good "new target".
Quote from: wodz on October 08, 2013, 03:16:38 AM
information allowing rb community to do the port
I found datasheets and "programming manuals" for jz4760\jz4760B, ingenic u-boot patches, firmware updates for X3, looks like it IHFS - http://www.rockbox.org/wiki/ChinaChip#IHFS_file_system_format

Ingenic FTP ftp://ftp.ingenic.cn/
this summer a lot of useful info were removed from ftp, but i found ftp-mirror with all old docs, tools, source, e.t.c
Logged

Offline Songs0fFailure

  • Member
  • *
  • Posts: 19
Re: Fiio X3
« Reply #5 on: June 09, 2014, 10:17:13 AM »
upd. New Fiio X5 and Hidizs AP100 based on same soc - JZ4760b and use same firmware format.
and it's not Ingenic µC/OS-II or Android, probably ChinaChip rtos ?

+ there is available tool from FiiO for packing\unpacking firmware, current version IHFSsplit can't unpack FiiO firmwares.
« Last Edit: June 09, 2014, 10:24:26 AM by Songs0fFailure »
Logged

Offline Bundi

  • Member
  • *
  • Posts: 4
Re: Fiio X3
« Reply #6 on: June 21, 2014, 12:27:28 PM »
http://www.prplfoundation.org/members/ list ingenic as a member so maybe dev tools / docs will be made available (again?) at some point.
Logged

Offline De_Cadanz

  • Member
  • *
  • Posts: 6
Re: Fiio X3
« Reply #7 on: June 30, 2014, 06:10:31 PM »
HiFiMan HM-701 based on 4760B too.

Do you try Binwalk to analyze firmware?

I have a X3 and Rockbox will be great on it!
« Last Edit: June 30, 2014, 07:25:29 PM by De_Cadanz »
Logged

Offline Songs0fFailure

  • Member
  • *
  • Posts: 19
Re: Fiio X3
« Reply #8 on: July 02, 2014, 02:30:11 PM »
Quote from: De_Cadanz on June 30, 2014, 06:10:31 PM
HiFiMan HM-701 based on 4760B too.
Do you try Binwalk to analyze firmware?
HM-701 ? HM-700  based on STMP3770 http://www.head-fi.org/t/681370/two-new-hifiman-players-announced-hm700-and-hm802/210#post_10266609
X3 firmware ? nope.
Logged

Offline De_Cadanz

  • Member
  • *
  • Posts: 6
Re: Fiio X3
« Reply #9 on: July 06, 2014, 03:21:13 PM »
Sorry, my mistake.
« Last Edit: July 07, 2014, 10:09:45 AM by De_Cadanz »
Logged

Offline Bundi

  • Member
  • *
  • Posts: 4
Re: Fiio X3
« Reply #10 on: September 10, 2014, 11:24:18 PM »
It seems that there is a mirror of ingenic ftp site here ftp://94.23.144.183/mirror/ftp.ingenic.cn/ Including all the 4760B docs / dev tools e.t.c. The folder called "NDA" seems empty.
Logged

Offline Bundi

  • Member
  • *
  • Posts: 4
Re: Fiio X3
« Reply #11 on: September 13, 2014, 06:41:29 AM »
http://www.gcw-zero.com/develop These people maintain an SDK for a jz4770 handheld with GCC 4.9.1

The handheld runs OpenDingux http://www.treewalker.org/opendingux/ Linux distro.

What's needed after that? Drivers for the LCD, USB and DAC chips?

Ram init values? What am I missing? (I'm not a programmer but I can take my X3 apart and report on chip ID numbers, I found a datasheet for the hynix Ram already somewhere.)
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Fiio X3
« Reply #12 on: September 13, 2014, 08:26:57 PM »
Quote from: Bundi on September 13, 2014, 06:41:29 AM
What's needed after that? Drivers for the LCD, USB and DAC chips?

Eventually, someone interested in porting to the X3.  But in the meantime, I don't even think there is a wiki page setup for the X3 or any scans of the boards posted.  Take a look at the NewPorts wiki page?
Logged

Offline aires317

  • Member
  • *
  • Posts: 1
Re: Fiio X3
« Reply #13 on: October 07, 2014, 02:55:35 AM »
Quote
Quote from: wodz on October 08, 2013, 02:16:38 AM

    information allowing rb community to do the port

I found datasheets and "programming manuals" for jz4760\jz4760B, ingenic u-boot patches, firmware updates for X3, looks like it IHFS - http://www.rockbox.org/wiki/ChinaChip#IHFS_file_system_format

Looks like, but not exactly in Fiio Xn series.

I was programming on a tool about pack/unpack x3.fw on linux,

It mostly follow IHFS file format, but there is a 4-bytes data at the file tail.

That causes X3 prompt "Update file corrupted" when updating .fw file.

try this (x3.fw Version 3.0) :
Code: [Select]
hd -s 0x2488400 x3.fw

You can find that 4bytes data is not in the table.

I speculate that is some kind of value to verify IHFS file table is fine.

If any who read Chinese, you may check my article at fiio official forum.
http://www.fiio.pw/forum.php?mod=viewthread&tid=49549&extra=page%3D1
« Last Edit: October 07, 2014, 03:26:10 AM by aires317 »
Logged

Offline ScaV

  • Member
  • *
  • Posts: 4
Re: Fiio X3
« Reply #14 on: November 20, 2014, 11:17:14 AM »
Hm.. Only differences with http://www.rockbox.org/wiki/ChinaChip#IHFS_file_system_format i found are:

Header:
1. Instead of 476 bytes of zeros there is "0000 0200 0000 0000 0000 0000 0000 0000 0000 7833" sequence, where 7833 == "x3" string, and then 458 bytes of zeros.
2. Instead of  0xfffff000 bytes with offset 0x000c, there is 0x00000000

File:
3. Instead of padding to sector with 0xff, there is padding with 0x00 (maybe in cause of paragraph 2 of this list).

And 4 bytes tail.
This tail i found in fiio x5 firmware file too.
Logged

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio X3
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.119 seconds with 15 queries.