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:

Thank You for your continued support and contributions!

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

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

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 653
Re: Open source player?
« Reply #15 on: November 21, 2023, 04:22:41 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

Rockbox has been natively ported to four distinct CPU architectures, and the hosted port can run on anything that is capable of running Linux or SDL.  So there's no inherent reason why a RISC-V port can't be done, other than the willingness of a suitably skilled someone to undertake the effort. 

However, it's not going to be to that particular gigadevice SoC - It only has 320KB of RAM, placing it in the same general class of shovelware SoCs like the RKNano and ATJ212x/215x/216x series, sporting an order of magnitude less RAM than is needed for something that would have the features users expect from something called "rockbox".

While we already support slightly-feature-limited low-res monochrome targets with only 2MB of RAM,  The full feature set (with a color screen) requires at least 4MB of RAM, and ideally over 8MB for the full set of plugins.
Logged

Offline spaceship9876

  • Member
  • *
  • Posts: 11
Re: Open source player?
« Reply #16 on: November 25, 2023, 04:41:57 AM »
I saw in a different post that psram would work with esp32 chips. I have found a couple of risc-v based chips that use psram, would these be suitable?

Bouffalo Lab BL606P: https://en.bouffalolab.com/product/?type=detail&id=16
https://files.sekorm.com/opt/fileStore/cms/nps/editor/20220905/1662390034905031533th.jpg
http://www.semiinsights.com/uploadfile/2021/1217/20211217044459863.png - supports 4-32MB PSRAM

Bouffalo Lab BL702: https://en.bouffalolab.com/product/?type=detail&id=4
BL702 datasheet: https://github.com/bouffalolab/bl_docs/blob/main/BL702_RM/en/BL702_BL704_BL706_RM_en_1.2.pdf

Bouffalo SDK: https://github.com/bouffalolab/bouffalo_sdk

I'm also wondering if rockbox could run on a 16bit microcontroller.
« Last Edit: November 25, 2023, 09:17:16 AM by spaceship9876 »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 653
Re: Open source player?
« Reply #17 on: November 25, 2023, 09:27:32 AM »
Quote from: spaceship9876 on November 25, 2023, 04:41:57 AM
Bouffalo Lab BL606P: https://en.bouffalolab.com/product/?type=detail&id=16

Given the asymmetric nature of the processor cores (one native 64-bit, one native 32-bit) I don't know if we can utilize both simultaneously, but even limited to a single core it should be more than powerful enough for an uncompromised rockbox por.

Quote from: spaceship9876 on November 25, 2023, 04:41:57 AM
Bouffalo Lab BL702: https://en.bouffalolab.com/product/?type=detail&id=4

This one is _possible_, but the processor is pretty slow -- we're likely to struggle with many of the codecs.

Quote from: spaceship9876 on November 25, 2023, 04:41:57 AM
I'm also wondering if rockbox could run on a 16bit microcontroller.

Every Rockbox port has been to a 32-bit processor, so I'd expect that a port to a 16-bit processor would be quite perilous due to deeply-embedded assumptions like "int==32bits" and the expectation a linear 32-bit address space.  Plus, there would be the inherent performance impact (you'd probably need a dedicated mp3/etc hardware decoder to handle the audio output in realtime).  It's probably _doable_ but... why?  Especially when 32-bit MCUs can be had for pennies.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9369
Re: Open source player?
« Reply #18 on: November 25, 2023, 11:21:32 AM »
Unless your goal is to make your life as difficult as possible, pick a CPU with either a few MB of SRAM or the ability to add an extra dollar or two of DRAM to the board.
Logged

Offline spaceship9876

  • Member
  • *
  • Posts: 11
Re: Open source player?
« Reply #19 on: January 11, 2024, 09:03:42 AM »
it looks like we might have a perfect chip for rockbox if risc-v support is added: https://www.cnx-software.com/2024/01/11/spacetouch-spv60-ai-audio-processor-features-a-400-mhz-andes-d25f-risc-v-core/
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9369
Re: Open source player?
« Reply #20 on: January 11, 2024, 10:27:39 AM »
Quote from: spaceship9876 on January 11, 2024, 09:03:42 AM
it looks like we might have a perfect chip for rockbox if risc-v support is added: https://www.cnx-software.com/2024/01/11/spacetouch-spv60-ai-audio-processor-features-a-400-mhz-andes-d25f-risc-v-core/

I don't think that SoC makes any sense. It's a way faster CPU then you need, has a bunch of useless DSP/AI hardware and only has a tiny amount of memory without a real memory controller.  You'd be making your life extremely difficult and probably be limited in what you could do with it.
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #21 on: March 27, 2024, 02:31:30 PM »
Hi,

I started to think about that kind of project, a Rockbox dedicated, open source player and I found something which could be a very nice start.
https://www.cnx-software.com/2022/12/02/pine64-ox64-sbc-bl808-risc-v-multi-protocol-wisoc-64mb-ram/
Nice CPU, plenty of RAM, I2S support, low power draw and a lot of modern things like bluetooth and wifi.

With some effort it can be a fully featured DAP similar to a Surfans F20 and others with same CPU.
MIPI sounds like a nice, 3.5 inch 640x480 screen, with I2S there can be support for HiRes.

The problem might be a CPU architecture but there should be a linux for this board and for Linux, we can run something like a hosted port.
« Last Edit: March 27, 2024, 02:36:56 PM by Trzyzet »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 653
Re: Open source player?
« Reply #22 on: March 27, 2024, 03:25:51 PM »
Quote from: Trzyzet on March 27, 2024, 02:31:30 PM
https://www.cnx-software.com/2022/12/02/pine64-ox64-sbc-bl808-risc-v-multi-protocol-wisoc-64mb-ram/
It's a nice SoC, that's for sure -- especially the embedded DRAM.  Taking the hosted port approach would be the path of least resistance, and there's enough RAM to still have plenty of resources for Rockbox.  But while that Pine64 board might make for the basis of an early prototype on a breadboard, the real hurdle is the physical enclosure. That dictates the design of the PCB and the other major components (screen, battery, etc)

...the tooling to make the case can be pretty expensive (and paid up-front), but you amortize it over your production run, so the more you make, the lower the overall per-unit cost.  But the larger your production run, the more money you need up-front to pay for components.  Economies of scale on component pricing don't really kick in until you're looking at 1000-10000 units.

...If we had some folks that speak one of the common Chinese languages, we might be able to negotiate with an existing OEM to produce us a palette-load of an existing player design, contingent on supplying complete board schematics and all relevant source code.  Or even just purchase a pile of empty cases for us to design our own PCB into. 

I wonder if it's feasible to design a new PCB to go into a classic iPod enclosure.  Actually it would probably be cheaper to buy a pile of those shovelware atj2127-based players, throw the PCBs out, and put a new PCB in there instead...
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #23 on: March 27, 2024, 04:32:05 PM »
I've already started some basic PCB design. It will be similar to tangara from this thread - PCB with PMIC, buttons, charge/data USB port, socket for LCD and you just need to solder the ox64. I'm opting for a removable battery like Nokias BL-xx
When I finish the basics I will share kicad project on github. Maybe someone will have some time and will to improve it. Also, there is a few different BL808 based modules, I'm sure there will be something more like ESP32 size.

I was thinking about 3D printed cases. Even PLA will be looking factory-like when you will smooth it with acetone.

The only thing about SoC which hurts me really bad is lack of USB 3.0 support. USB 2.0 is so outdated these days it just hurts.
« Last Edit: March 28, 2024, 10:36:21 AM by Trzyzet »
Logged

Offline Trzyzet

  • Member
  • *
  • Posts: 24
Re: Open source player?
« Reply #24 on: March 31, 2024, 07:49:03 PM »
I will put this as new post, it is quite important.

To make it able to build it by a hobbyist from scratch, as many components as possible must be an off shelf ones.
BL808 used in that risc-v board is a version C which is lacking MIPI support for a display. Only a non-existent D version has them.
Still, no pain because we can use just an SPI display. I have an open question to community, which one we should use?

I'm opting for something ILI9341 based, because they are widely available but they are more expensive than SBC itself, which is kinda weird.
If someone knows some LCD with resolution at least 320x240 and they are cheaper than the ones I mentioned, I will be happy to use 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.152 seconds with 21 queries.