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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio M3k
« previous next »
  • Print
Pages: 1 ... 11 12 [13] 14 15 ... 27

Author Topic: Fiio M3k  (Read 62506 times)

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #180 on: April 16, 2021, 04:30:16 PM »
Hi, KatsuoHana, I am still working on the M3K. Thanks for trying out g3290 and taking the initiative... did you use the latest patchset 22? IIRC, the main change there is the PLL/system clock initialization. I've got some changes locally which do the same thing in a better way, but I need to clean them up a bit before I push it out. I'll try to get that done this weekend, judging by your testing it should fix the hang on boot.

I am not surprised that things don't work well on g3290 because it has a lot of slowdown due to the debug code I added. Hopefully a proper build with fixes included will work smoother for you.

Play/pause on the WPS is indeed mapped to both the touchpad and physical button. Keymaps are currently not ideal right now, but the button problem you described is more the fault of Rockbox's default settings. This is not fixable by keymaps, or at the driver/firmware level without introducing other gotchas.

If you enable "Advanced Key lock" (aka. softlock) and turn on Autolock On, Always Autolock, Exempt Volume, Exempt Play, and Disable Touch in the submenu, then you get something approximating normal screen locking -- the touchpad turns off when locked, and you can still play/pause and control the volume.

IMO, the way to go is improving softlock and making it more consistent, then enabling it by default on the M3K. I'm sure other touch-enabled players would benefit from this too.
Logged

Offline KatsuoHana

  • Member
  • *
  • Posts: 6
Re: Fiio M3k
« Reply #181 on: April 17, 2021, 02:44:15 AM »
Quote from: amachronic on April 16, 2021, 04:30:16 PM
Hi, KatsuoHana, I am still working on the M3K. Thanks for trying out g3290 and taking the initiative... did you use the latest patchset 22? IIRC, the main change there is the PLL/system clock initialization. I've got some changes locally which do the same thing in a better way, but I need to clean them up a bit before I push it out. I'll try to get that done this weekend, judging by your testing it should fix the hang on boot.
Yeah, I've fully merged the g3290, including the patchset 22. As I mentioned before, it boots fine if you remove the debug DIE() function in main.c.
Quote from: amachronic on April 16, 2021, 04:30:16 PM
If you enable "Advanced Key lock" (aka. softlock) and turn on Autolock On, Always Autolock, Exempt Volume, Exempt Play, and Disable Touch in the submenu, then you get something approximating normal screen locking -- the touchpad turns off when locked, and you can still play/pause and control the volume.
I think I've already tried that on Linux-based build, and it still does not block touchpad button. For now I only exempted volume controls, so I have to unlock the keys every time I want to pause playback.
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #182 on: April 17, 2021, 07:59:38 AM »
Quote from: KatsuoHana on April 17, 2021, 02:44:15 AM
I think I've already tried that on Linux-based build, and it still does not block touchpad button
The hosted port was lacking the proper code to filter out the touchpad afaik; it definitely works properly on the native port.

From what you've reported, https://gerrit.rockbox.org/r/c/rockbox/+/3334 should fix the boot hang that you and dconrad are getting. Try re-flashing again after that's merged. NB, it'll break the usbboot method of loading Rockbox, so you will need jztool from https://gerrit.rockbox.org/r/c/rockbox/+/3326 to do the install.
Logged

Offline KatsuoHana

  • Member
  • *
  • Posts: 6
Re: Fiio M3k
« Reply #183 on: April 17, 2021, 11:25:57 AM »
Quote from: amachronic on April 17, 2021, 07:59:38 AM
From what you've reported, https://gerrit.rockbox.org/r/c/rockbox/+/3334 should fix the boot hang that you and dconrad are getting. Try re-flashing again after that's merged. NB, it'll break the usbboot method of loading Rockbox, so you will need jztool from https://gerrit.rockbox.org/r/c/rockbox/+/3326 to do the install.
Alright, I'll try to flash it again after it stabilizes and gets merged. Thank you for your hard work.
Logged

Offline KatsuoHana

  • Member
  • *
  • Posts: 6
Re: Fiio M3k
« Reply #184 on: April 18, 2021, 02:56:53 AM »
Now that it's merged, I've tried it, and it seems to work fine. Tested it out for a few minutes (listened to some MP3s, played Boomshine), haven't noticed any severe bugs. Sadly, it doesn't boot from exFAT-formatted card, saying it's unable to mount the filesystem; I had to explicitly format my card in FAT32. Other than that nitpick, great job.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9214
Re: Fiio M3k
« Reply #185 on: April 18, 2021, 10:17:40 AM »
exFAT is definitely not supported, so no surprise there.
Logged

Offline dconrad

  • Developer
  • Member
  • *
  • Posts: 135
Re: Fiio M3k
« Reply #186 on: April 18, 2021, 11:28:22 AM »
amachronic, great news! The changes you pushed fixed my issue! I went through and used jztool and it just kind of worked. I guess there's no way to know exactly what it was (not worth the effort to drill down and find out), but presumably it was the clock init change?
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #187 on: April 18, 2021, 01:09:50 PM »
Alright, glad it's working for everyone now ;D. My guess is the clock setup was the problem -- perhaps some units are not 100% stable with the current configuration.
Logged

Offline KatsuoHana

  • Member
  • *
  • Posts: 6
Re: Fiio M3k
« Reply #188 on: April 22, 2021, 09:20:21 AM »
Tested out the updated bootloader, installing it with jztool over the older one works fine, and I like that you don't need to reboot the player after inserting card if you turned it on without it. Rockbox itself works fine as well, no crashes or bugs detected during few days of usage. How long until the port gets moved from unusable to unstable?
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #189 on: April 22, 2021, 11:53:08 AM »
I simply haven't considered moving the M3K port to unstable yet, although it's very much usable in my opinion. The only concrete thing missing is a binary release of the bootloader and jztool, according to the wiki (https://www.rockbox.org/wiki/TargetClassifications). I suppose it will encourage more much-needed testing if Rockbox is easy to install, so I'll definitely ask about getting the port moved up to unstable.
Logged

Offline heyspencerb

  • Member
  • *
  • Posts: 30
Re: Fiio M3k
« Reply #190 on: April 25, 2021, 10:20:20 PM »
Hey! Checking back in because I hadn't updated my bare-metal version in about three weeks, amazing job guys! I can't believe you got USB multimedia working so soon! That's a huge help, even for dev work too! What do the different USB Keyboard Modes mean? The multimedia/Presentation/Browser?

Also, the new bootloader is great! But I do think the new instructions are even less beginner friendly than the last one.

Couple things, in this line:
../../tools/configure --target=fiiom3k --type=x

there is one too many ../ It should only be
../tools/configure --target=fiiom3k --type=x

Also, right after that the tutorial says:
"If all goes well you should have files build-spl/spl.m3k and build-boot/bootloader.m3k."

but doesn't say that you need to run 'make' in both of these directories first. Then at the end, it doesn't tell people how to 'make' rockbox the normal way in order to get your new .rockbox folder.

I know these are super obvious steps to people experienced with linux and with rockbox specifically but any beginner just trying to follow along is gonna get scary looking error messages if they try and follow the steps exactly and they don't know they have to run make, or don't know what the ../ stands for and why it says the file they are looking for doesn't exist. I just wanted to make sure so that people don't keep posting in this thread for tech support when they try and get stuck.

But, great job to all the devs! Super excited about all the new features!!
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #191 on: April 26, 2021, 08:50:42 AM »
Quote
Also, the new bootloader is great! But I do think the new instructions are even less beginner friendly than the last one.
Thanks for pointing out the mistakes! I'll definitely fix those.

In any event, the M3K native port has now been moved to unstable so there's daily builds available to download. I'm planning on providing a binary build of the bootloader so people don't have to go through the trouble of compiling anything, and encourage more people to install Rockbox on the M3K.

I would've released the current bootloader, but speachy pointed out to me that having separate SPL and bootloader might cause confusion down the road especially if someone mixes up the files from two different builds. Plus, it's not very user friendly. Probably for the best anyway -- I'm taking the opportunity to do some much-needed reorganization and smooth over the install process.
Logged

Offline KarlJ

  • Member
  • *
  • Posts: 4
Re: Fiio M3k
« Reply #192 on: April 28, 2021, 02:53:27 AM »
Can I flash my M3k with my Mac? it's work with Big Sur
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 269
Re: Fiio M3k
« Reply #193 on: April 28, 2021, 10:23:20 AM »
Quote from: KarlJ on April 28, 2021, 02:53:27 AM
Can I flash my M3k with my Mac? it's work with Big Sur
In theory jztool should work on Mac. But, I don't have a Mac, so I haven't tested it myself. It should compile without a hitch but you'll have to edit the makefile and point it at the libusb library and headers.
Logged

Offline KarlJ

  • Member
  • *
  • Posts: 4
Re: Fiio M3k
« Reply #194 on: April 28, 2021, 07:11:53 PM »
Quote from: amachronic on April 28, 2021, 10:23:20 AM
Quote from: KarlJ on April 28, 2021, 02:53:27 AM
Can I flash my M3k with my Mac? it's work with Big Sur
In theory jztool should work on Mac. But, I don't have a Mac, so I haven't tested it myself. It should compile without a hitch but you'll have to edit the makefile and point it at the libusb library and headers.
I download the libusb and copy to the folder include ,but when I compile jztool ,system reminds me endian.h is missing,I don't know how to fix it.
Logged

  • Print
Pages: 1 ... 11 12 [13] 14 15 ... 27
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Fiio M3k
 

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

Page created in 0.04 seconds with 15 queries.