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
|-+  Third Party
| |-+  Unsupported Builds
| | |-+  Build for Cowon D2/D2+
« previous next »
  • Print
Pages: [1]

Author Topic: Build for Cowon D2/D2+  (Read 8554 times)

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Build for Cowon D2/D2+
« on: October 04, 2016, 11:05:00 AM »
Here is a "working" build for the Cowon D2/D2+ (Version: e2271edM-170831). The panics after starting playback are gone, but saving bookmarks results in panic (no proper read-only support).

Download

See the discussion on IRC for further information: http://www.rockbox.org/irc/log-20160919#16:09:39

Thanks to pamaury and gevaerts for their kind assistance.
« Last Edit: September 03, 2017, 07:03:40 AM by cereal_killer »
Logged

Offline burkjavier

  • Member
  • *
  • Posts: 92
Re: Build for Cowon D2/D2+
« Reply #1 on: November 02, 2016, 06:51:39 PM »
Thanks.  Been using 3.1.3 for awhile now because of the dev build issues.
Logged
Current RB'd devices: Gigabeat F / X, Cowon D2+

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9215
Re: Build for Cowon D2/D2+
« Reply #2 on: November 07, 2016, 05:34:24 PM »
Why not just disable the internal storage entirely and use an SD card?  Then the D2 could be a normal target and you wouldn't have to worry about the read only file system.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #3 on: November 13, 2016, 02:39:39 PM »
Quote from: saratoga on November 07, 2016, 05:34:24 PM
Why not just disable the internal storage entirely and use an SD card?

Good idea, but I want to use the OF and Flash Skins with it as well. Some of them are not easy to configure with SD cards so I just leave my music on the internal storage.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #4 on: August 06, 2017, 10:07:23 AM »
Quote from: Boxey on August 04, 2017, 04:29:54 AM
any updates on this?

As far as I know nobody is developing for the D2 anymore. Maybe I compile a new build with the current code and the changes that avoid the panics...
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Build for Cowon D2/D2+
« Reply #5 on: August 22, 2017, 06:44:18 PM »
Hmm, maybe you could do the same thing we are doing with the multiboot bootloader and mark the sd card as your internal drive
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 405
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Build for Cowon D2/D2+
« Reply #6 on: August 22, 2017, 08:23:34 PM »
As far as I know, the latest dev build should have fixed the panics on the D2.
Logged
No support questions by PM, please.

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #7 on: August 24, 2017, 02:51:01 PM »
Quote from: Bilgus on August 22, 2017, 06:44:18 PM
Hmm, maybe you could do the same thing we are doing with the multiboot bootloader and mark the sd card as your internal drive

Isn't this the way how rockbox on the D2 works right now?

Quote from: __builtin on August 22, 2017, 08:23:34 PM
As far as I know, the latest dev build should have fixed the panics on the D2.

Still panic with dev build 492dda0-170822. Now right after boot. With older non-working builds at least playback was working.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Build for Cowon D2/D2+
« Reply #8 on: August 24, 2017, 03:08:43 PM »
it sounds to me that it is trying to write the internal drive and panic-ing
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #9 on: September 03, 2017, 07:08:41 AM »
I have updated the first post to a more recent build.

Quote from: saratoga on November 07, 2016, 05:34:24 PM
Why not just disable the internal storage entirely and use an SD card?  Then the D2 could be a normal target and you wouldn't have to worry about the read only file system.

I want to come back to this. How would this be achieveable? Just a few code line changes?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Build for Cowon D2/D2+
« Reply #10 on: September 03, 2017, 06:20:21 PM »
Was this not you I talked to in IRC?

https://www.rockbox.org/irc/log-20170824#21:42:18

Change  for (int i = 0; i < NUM_DRIVES; i++)

https://github.com/Rockbox/rockbox/blob/03dd4b92be7dcd5c8ab06da3810887060e06abd5/firmware/common/disk.c#L261

to  'for (int i = 1; i < NUM_DRIVES; i++)' to disable the internal drive completely
 or to
 'for (int i = NUM_DRIVES - 1 ; i >= 0; i--)' to have it keep the internal drive but mount the external as the rockbox drive

Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #11 on: September 04, 2017, 11:11:23 AM »
Hey Bilgus, yes that was me on IRC, but I didn't understand what you meant back then and didn't want to bother you more, so I asked here.
Thanks for the clarification. I am sure, this is very helpful for some people.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Build for Cowon D2/D2+
« Reply #12 on: September 04, 2017, 01:01:05 PM »
if you want something commitable for the cowon I think you could probably do some editing in its config file but it would take some testing and it would disable the internal drive completely

https://github.com/Rockbox/rockbox/blob/master/firmware/export/config/cowond2.h#L61
#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
#define HAVE_MULTIDRIVE
#define HAVE_HOTSWAP
#define NUM_DRIVES 2

would become

#define CONFIG_STORAGE (STORAGE_SD)
//#define HAVE_MULTIDRIVE
//#define HAVE_HOTSWAP
#define NUM_DRIVES 1

that might not be all that needs changed but it would need to have a bootloader and new firmware compiled
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9215
Re: Build for Cowon D2/D2+
« Reply #13 on: September 04, 2017, 01:54:05 PM »
I don't have a D2, but I still think the best solution would be to require installing on the SD card in the official build, and then mounting the internal storage as read only, secondary storage. 
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 430
Re: Build for Cowon D2/D2+
« Reply #14 on: March 09, 2019, 01:03:27 PM »
Quote from: Bilgus on September 04, 2017, 01:01:05 PM
if you want something commitable for the cowon I think you could probably do some editing in its config file but it would take some testing and it would disable the internal drive completely

https://github.com/Rockbox/rockbox/blob/master/firmware/export/config/cowond2.h#L61
#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
#define HAVE_MULTIDRIVE
#define HAVE_HOTSWAP
#define NUM_DRIVES 2

would become

#define CONFIG_STORAGE (STORAGE_SD)
//#define HAVE_MULTIDRIVE
//#define HAVE_HOTSWAP
#define NUM_DRIVES 1

that might not be all that needs changed but it would need to have a bootloader and new firmware compiled

I tried to compile a build with the changes mentioned above but I got the following errors: https://pastebin.com/jHQ8vKVS

Simply disabling the internal storage by 'for (int i = 1; i < NUM_DRIVES; i++)' results in the player claiming that there is no .rockbox folder and that the installation is incomplete.

All I want to achieve is the following: disbale the internal storage and only use my 512GB SDXC card, which is partitioned to a small one that just carries the .rockbox folder and a bigger one with all my music. (I have also added #define HAVE_MULTIVOLUME to cowond2.h)

Occasionally I want to use the OF. Too many files will make the OF freak out, but the second partition of the SD card is not visible to the OF, so that's the reason for the second partition on the card.

Quote from: saratoga on September 04, 2017, 01:54:05 PM
I don't have a D2, but I still think the best solution would be to require installing on the SD card in the official build, and then mounting the internal storage as read only, secondary storage. 

How would I do this?

I appreciate any help.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Third Party
| |-+  Unsupported Builds
| | |-+  Build for Cowon D2/D2+
 

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

Page created in 0.041 seconds with 18 queries.