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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio M3k
« previous next »
  • Print
Pages: 1 ... 15 16 [17] 18 19 ... 27

Author Topic: Fiio M3k  (Read 48309 times)

Offline GSV3MiaC

  • Member
  • *
  • Posts: 25
Re: Fiio M3k
« Reply #240 on: June 03, 2021, 02:38:58 PM »
Yes I saw that ... if this is 'quite a bit better' I guess the previous version was truly horrific! :)

I guess I will just have to screw up my courage, dust off my PC, and see whether I can actually follow that far enough to boot RB. First I need a new TF card or two.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 186
Re: Fiio M3k
« Reply #241 on: June 03, 2021, 04:08:09 PM »
Quote from: GSV3MiaC on June 03, 2021, 02:38:58 PM
Yes I saw that ... if this is 'quite a bit better' I guess the previous version was truly horrific! :)

I guess I will just have to screw up my courage, dust off my PC, and see whether I can actually follow that far enough to boot RB. First I need a new TF card or two.

It used to be terrible!

It's now just a one-liner on the command line, more or less. I know the command line is a discouragement to some people, and I wanted to add support into the Rockbox utility but it seems this method of installation is at odds with how it normally works, so I kind of gave up. And making it work without manually running Zadig first is another major annoyance.

Speaking of the new instructions it looks like I totally forgot to announce them properly here...  :(  I was meaning to do that.

Anyway, good luck! If you have any issues feel free to contact me, I'm happy to help.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 186
Re: Fiio M3k
« Reply #242 on: June 06, 2021, 07:25:16 AM »
I'm happy to announce we have a working version of jztool for Mac! You can now easily install Rockbox on the M3K from your Mac. Many thanks to dconrad for doing the testing. Instructions and download links can be found at the installation thread.
Logged

Offline darkstarcumberland

  • Member
  • *
  • Posts: 3
Re: Fiio M3k
« Reply #243 on: June 07, 2021, 08:00:13 AM »
Very cool! I will give it a try when I get some moments to fiddle with it. Right now everything is working "fine enough" and I have some hours of new music to listen to on the device before I start playing with the firmware again ;-)  Cheers
Logged

Offline bahus

  • Member
  • *
  • Posts: 100
Re: Fiio M3k
« Reply #244 on: June 10, 2021, 12:48:48 AM »
Quote from: amachronic on June 01, 2021, 04:31:40 AM
Anyone else annoyed by the tiny font is welcome to try.

Is it possible to extract XVortex .rockbox folder from his images? He seems to made a bunch of changes to standard theme and bigger font is one of them. Would be cool to have it on native port too.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 186
Re: Fiio M3k
« Reply #245 on: June 10, 2021, 04:34:07 AM »
IIRC XVortex is using the Xhibition theme ported to 240x320. You could contact XVortex and ask if he'd release the theme.

The theme can also be grabbed from the M3K.fw package, but you need a Linux box to extract it. M3K.fw is just a zip file. Inside are more zip files named update001.zip, etc. Unzip all of them, and you will see files like system.ubi_001. Use cat system.ubi_* > system.ubi to combine these into a single file. I uploaded a script to the Shanling Q1's wiki page called ubi_extract.sh which you can run to convert the UBI image to a tarball. You need mtd-utils and the nandsim, ubi, and ubifs kernel modules installed in order to run that script.

Alternatively you could install the XVortex firmware and use a script to copy the .rockbox folder from the internal NAND to the SD card. I don't know offhand where it's located though.
Logged

Offline janssea2

  • Member
  • *
  • Posts: 2
Re: Fiio M3k
« Reply #246 on: June 10, 2021, 07:53:00 AM »
For the moment I use Rockbox from XVortex. Can I overwrite this with jztool?
Logged

Offline bahus

  • Member
  • *
  • Posts: 100
Re: Fiio M3k
« Reply #247 on: June 10, 2021, 07:59:31 AM »
Quote from: janssea2 on June 10, 2021, 07:53:00 AM
For the moment I use Rockbox from XVortex. Can I overwrite this with jztool?
It worked for me. I installed it right over XVortex build. Only I had to install libusbk instead of suggested winusb zadig driver. Not sure if it's somehow related or just a some glitch on my system.
Logged

Offline vitt13

  • Member
  • *
  • Posts: 50
Re: Fiio M3k
« Reply #248 on: June 10, 2021, 08:10:46 AM »
Quote from: bahus on June 10, 2021, 12:48:48 AM
Is it possible to extract XVortex .rockbox folder from his images? He seems to made a bunch of changes to standard theme and bigger font is one of them.
zip archive of extracted /ubifs-root/usr/rockbox content form XVortex's firmware
https://www.mediafire.com/file/c7yl5ruftwiwckf/rockbox.zip/file size 16.19MB
Probably you can grab 'fonts', 'themes' and 'wps' folders with included files from the archive.
I use 'ubireader_extract_files' tool from https://github.com/jrspruitt/ubi_reader
Logged

Offline vitt13

  • Member
  • *
  • Posts: 50
Re: Fiio M3k
« Reply #249 on: June 10, 2021, 08:36:15 AM »
Windows users can use the 'kitchen' https://www.mediafire.com/file/gyau3tsje1kwcz7/Firmware_Kitchen_fiio_m3k_m5.zip/file 6.86MB
What this 'kitchen' does:

- extract parts (partitions) from original firmware file format M3K.fw to use the parts with 'USB Cloner Tool' or to modify/customise the parts
- extract/create UBIFS images i.e. 'system.ubi' and 'data.ubi'

How to:
To extract parts from OTA firmware (M3K.fw) you need to place the M3K.fw file to 'in' folder and run the batch file unpack_M3K_to_parts.bat.
The 'out' folder is output directory for extracted parts i.e. x-loader-pad-with-sleep-lib.bin, xImage, system.ubi, and data.ubi (if presents).

To extract the content of UBIFS image 'system.ubi' or 'data.ubi' you need to presence of the file 'system.ubi' or 'data.ubi' in the directory 'out'
Then run the batch file unpack_system.ubi.bat or unpack_data.ubi.bat
You will get the new folder 'unpacked_system' or 'unpacked_data' with extracted UBI image's content and service file 'perms.txt'.

Attention: this 'kitchen' cannot build back M3K.fw file from the parts.
Use mkotapackage https://github.com/VitToCode/linux-recovery-ota/releases/tag/1.0 to build back the M3K.fw
Logged

Offline bahus

  • Member
  • *
  • Posts: 100
Re: Fiio M3k
« Reply #250 on: June 10, 2021, 08:39:14 AM »
Thank you vitt13! Bunch of useful tools indeed.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 186
Re: Fiio M3k
« Reply #251 on: June 10, 2021, 08:56:38 AM »
Quote from: vitt13 on June 10, 2021, 08:36:15 AM
Use mkotapackage https://github.com/VitToCode/linux-recovery-ota/releases/tag/1.0 to build back the M3K.fw

Did you get a hold of the signing keys? ie. will a patched image be flashed by the stock recovery?
Logged

Offline vitt13

  • Member
  • *
  • Posts: 50
Re: Fiio M3k
« Reply #252 on: June 10, 2021, 09:35:26 AM »
Quote from: amachronic on June 10, 2021, 08:56:38 AM
Did you get a hold of the signing keys? ie. will a patched image be flashed by the stock recovery?
Yes. I used to post it https://forums.rockbox.org/index.php/topic,52917.msg247653.html#msg247653
M3K.fw is signed with testkey.pk8/testkey.x509.pem signing keys luckily found on this repo https://github.com/YuanhuanLiang/X1000/tree/master/external/recovery/resource/security
Using these keys I got exactly the same files updateNNN.zip, i.e. binary the same. Only last stage, packing M3K.fw from those archives was different, but original M3K.fw file looks like simple uncompressed and unsigned zip archive.
« Last Edit: June 10, 2021, 12:48:29 PM by vitt13 »
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 186
Re: Fiio M3k
« Reply #253 on: June 10, 2021, 02:11:20 PM »
Wish I had actually paid attention the forum thread back then... I was told the key was unknown.

This would greatly simplify installation for end users, just dump a patched FW file on the SD card and use the stock recovery. All I'd need to do is get dual boot working in the Rockbox SPL, so the OF recovery is accessible once Rockbox is installed.
Logged

Offline Julian67

  • Member
  • *
  • Posts: 132
Re: Fiio M3k
« Reply #254 on: June 10, 2021, 03:54:04 PM »
Quote from: amachronic on June 10, 2021, 02:11:20 PM
Wish I had actually paid attention the forum thread back then... I was told the key was unknown.

This would greatly simplify installation for end users, just dump a patched FW file on the SD card and use the stock recovery. All I'd need to do is get dual boot working in the Rockbox SPL, so the OF recovery is accessible once Rockbox is installed.

Dual boot would be great.  I just bought my M3K, receiving it yesterday.  The original firmware is actually nicely usable.  Gapless works perfectly with albums of flacs, a real deal breaker for me.  But only Rockbox has the perfection of Auto-Change Directory with the option of using random *and* constraining the auto-change.  This is a triumph of civilisation :-)  So I installed Rockbox and it is really impressive on this device.  I've been using iRiver H140 with SSD for years and the M3K seems to be the first time I feel I've found something as good, perhaps better in most ways, which can also handle files of different bit-depth and sample rate with ease.  And the M3K doesn't hiss with low impedance IEMs so that is a big improvement.  The one feature that I'd like to use in the original firmware is the ability to work as a USB DAC.  It would occasionally be very useful.  The experience of installing Rockbox onto this target has been very good.  While Fiio's UI is decent enough, I've been reminded that Rockbox's UI and options are so absolutely focused on the user, so mature and refined (the UI not us users!), that it really serves as an advertisement for what is possible when people collaborate.

Many thanks amachronic for moving this device from a maybe/if only curiosity to a genuine daily driver.

And if anyone is not aware, the M3K is now discontinued.  Here in UK you can no longer find it new on amazon or advancedmp3players or any of the usual Fiio retailers.  But there are retailers on aliexpress who still have stock.  These players are vanishing from retail though.  My first aliexpress purchase was refunded as the vendor actually ran out of product, but the next one had the device at my door in 8 days, so I'm happy.  But if you want one, now is the time.
Logged

  • Print
Pages: 1 ... 15 16 [17] 18 19 ... 27
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio M3k
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.128 seconds with 17 queries.