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
translations translations
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
|-+  Support and General Use
| |-+  Hardware
| | |-+  Open source player?
« previous next »
  • Print
Pages: [1] 2

Author Topic: Open source player?  (Read 4072 times)

Offline code_311

  • Member
  • *
  • Posts: 5
Open source player?
« on: October 22, 2023, 11:04:04 AM »
I searched but didn't find any posts, has anyone seen this yet? Open source player called tangara.

https://sr.ht/~jacqueline/tangara/

https://www.crowdsupply.com/cool-tech-zone/tangara

Is an ESP32 capable of running rockbox?
« Last Edit: October 22, 2023, 11:06:48 AM by code_311 »
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #1 on: October 23, 2023, 05:11:22 AM »
The most powerful ESP32 has about a 0.5MB of RAM. I think it's not enough.
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 654
Re: Open source player?
« Reply #2 on: October 23, 2023, 09:53:19 AM »
Quote from: Trzyzet on October 23, 2023, 05:11:22 AM
The most powerful ESP32 has about a 0.5MB of RAM. I think it's not enough.

This device is built around an ESP32-WROVER module with two ESP32 cores @230MHz, and 8MB of QSPI-attached external PSRAM.    Use of PSRAM will yield a perforamance hit but the overall system shoud still be plenty fast enough for the full rockbox feature set.

(I'm 95% certain only 4MB of PSRAM is directly mappable at a time, but it _should_ be possible to play games with the MMU to work around that)
Logged

Offline llnx1

  • Member
  • *
  • Posts: 13
  • 0123456789
Re: Open source player?
« Reply #3 on: October 23, 2023, 12:25:31 PM »
Is there any price estimate ?
Logged
Sandisk Sansa Clip+ / 32gb Micro SD
Sandisk Fuze v2 / 32gb Micro SD
Earbuds: NiceHCK YD30 / KBEAR Stellar

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 305
Re: Open source player?
« Reply #4 on: October 23, 2023, 04:55:03 PM »
Quote from: speachy on October 23, 2023, 09:53:19 AM
(I'm 95% certain only 4MB of PSRAM is directly mappable at a time, but it _should_ be possible to play games with the MMU to work around that)

Yep, the ESP32 reference manual is pretty explicit that the entire virtual address space is 4 MB -- the MMU section makes this a bit more obvious. I think it'd be like PAE on x86, if you could segment things into processes of 4 MB max memory you'd be okay. But trying to use all 8 MB from a single process would be impossible without major hacks.

The ESP32-S3 has 32 MB of virtual address space, however, which would be plenty.
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 654
Re: Open source player?
« Reply #5 on: October 23, 2023, 05:25:26 PM »
Quote from: amachronic on October 23, 2023, 04:55:03 PM
The ESP32-S3 has 32 MB of virtual address space, however, which would be plenty.

Alas, the "not recommended for new designs" WROVER module in this proposed Tangara design only has a pair of LX6 cores, not the LX7s found in the -S3.
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #6 on: October 24, 2023, 05:02:17 AM »
Quote from: speachy on October 23, 2023, 09:53:19 AM
Use of PSRAM will yield a perforamance hit

In a perfect world SPI RAM speed is about 40MB/s, with larger files its even half that speed. I don't know if rockbox uses it but there is no DMA.
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 654
Re: Open source player?
« Reply #7 on: October 24, 2023, 10:23:23 AM »
Quote from: Trzyzet on October 24, 2023, 05:02:17 AM
In a perfect world SPI RAM speed is about 40MB/s, with larger files its even half that speed. I don't know if rockbox uses it but there is no DMA.

PSRAM is handled completely transparently by the ESP32's memory controller (so DMA is a non-issue).  It's also 4-bit parallel (ie QSPI) that can clock up to 120MHz, and there's a cache in front of it.  Worst-case performance will be in random writes (and to a lesser extent reads), but larger bulk transfers can hit just shy of 60MB/s.  This doesn't seem like a lot, but consider that most code can be directly executed from flash (and the truly critical stuff can live in IRAM).
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #8 on: October 24, 2023, 10:39:46 AM »
If it is like you describe I am happy with that. Everything I described in earlier post was my prepandemic experience with esp32.
I had 6 different modules and none of it was able to run with PSRAM clocks faster than 60MHz.
Logged

Offline spaceship9876

  • Member
  • *
  • Posts: 11
Re: Open source player?
« Reply #9 on: November 17, 2023, 07:33:02 AM »
a possible player for $42: https://www.cnx-software.com/2023/11/16/lilygo-t-display-s3-pro-a-2-33-inch-esp32-s3-color-touchscreen-display-with-enclosure/
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 654
Re: Open source player?
« Reply #10 on: November 17, 2023, 09:01:27 AM »
Quote from: spaceship9876 on November 17, 2023, 07:33:02 AM
a possible player for $42: https://www.cnx-software.com/2023/11/16/lilygo-t-display-s3-pro-a-2-33-inch-esp32-s3-color-touchscreen-display-with-enclosure/

Unfortunately, The lack of an audio jack and only two physical buttons make this a poor candidate for a DAP.
Logged

Offline spaceship9876

  • Member
  • *
  • Posts: 11
Re: Open source player?
« Reply #11 on: November 21, 2023, 07:17:57 AM »
It looks like there might be a new flagship chip from Actions Semi: ATS2158. specs: https://www.actions-semi.com/index.php?c=download&id=2758&siteId=4

The previous flagship audio chip from them was the ATJ2167, here was the specs for that chip: https://voz.vn/attachments/screenshot_20221011-232140-png.1434540/
« Last Edit: November 21, 2023, 10:45:28 AM by spaceship9876 »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 654
Re: Open source player?
« Reply #12 on: November 21, 2023, 10:23:58 AM »
Quote from: spaceship9876 on November 21, 2023, 07:17:57 AM
It looks like there might be a new flagship chip from Actions Semi: ATJ2158. specs: https://www.actions-semi.com/index.php?c=download&id=2758&siteId=4

I don't know if I could call this a "flagship" chip; it's not clear from this quick spec sheet this part doesn't have anywhere near enough RAM to implement full Rockbox feature set.  We'd also effectively be forced to run only the codecs the hardware is cabable of handling. Of course, that presumes we'd get usable documentation, someting that Actions Semi has historically not provided.  :)

Also, the ATJ2159 is probably the better choice than the 2158, as it drops the DSP core in favor of a much higher clock speed on the Cortex-M4, plus also supporting more codecs and 24-bit/96KHz operation.  (I suspect the 2158 is intended to be used in noise-canceling headphone appliations)

...Actions did produce SoCs that are capable of running the full rockbox feature set (eg the ATJ213x family) but the 2127/2157/2167 parts are intended for shovelware low-end DAPs.

Logged

Offline spaceship9876

  • Member
  • *
  • Posts: 11
Re: Open source player?
« Reply #13 on: November 21, 2023, 11:36:05 AM »
are there any plans for rockbox to support risc-v, if so maybe this would be viable? - https://www.gigadevice.com/product/mcu/risc-v/gd32vw553kmq7
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9369
Re: Open source player?
« Reply #14 on: November 21, 2023, 01:35:03 PM »
Quote from: spaceship9876 on November 21, 2023, 11:36:05 AM
are there any plans for rockbox to support risc-v, if so maybe this would be viable? - https://www.gigadevice.com/product/mcu/risc-v/gd32vw553kmq7

Aside from it being a lot of work, porting to a different ISA is possible and people have done it in the past.  However that device has very little memory and so would not be a good choice.  While you could squeeze into slightly less, anything under 2 MB of RAM is probably not worth it.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Open source player?
 

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

Page created in 0.184 seconds with 19 queries.