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




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

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

Offline cereal_killer

  • Member
  • *
  • Posts: 331
Build for Cowon D2/D2+
« on: October 04, 2016, 10: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, 06:03:40 AM by cereal_killer »
Logged

Offline burkjavier

  • Member
  • *
  • Posts: 68
Re: Build for Cowon D2/D2+
« Reply #1 on: November 02, 2016, 05:51:39 PM »
Thanks.  Been using 3.1.3 for awhile now because of the dev build issues.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8647
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: 331
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: 331
Re: Build for Cowon D2/D2+
« Reply #4 on: August 06, 2017, 09:07:23 AM »
Quote from: Boxey on August 04, 2017, 03: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: 330
Re: Build for Cowon D2/D2+
« Reply #5 on: August 22, 2017, 05: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: 305
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Build for Cowon D2/D2+
« Reply #6 on: August 22, 2017, 07: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: 331
Re: Build for Cowon D2/D2+
« Reply #7 on: August 24, 2017, 01:51:01 PM »
Quote from: Bilgus on August 22, 2017, 05: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, 07: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: 330
Re: Build for Cowon D2/D2+
« Reply #8 on: August 24, 2017, 02: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: 331
Re: Build for Cowon D2/D2+
« Reply #9 on: September 03, 2017, 06: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: 330
Re: Build for Cowon D2/D2+
« Reply #10 on: September 03, 2017, 05: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: 331
Re: Build for Cowon D2/D2+
« Reply #11 on: September 04, 2017, 10: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: 330
Re: Build for Cowon D2/D2+
« Reply #12 on: September 04, 2017, 12: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: 8647
Re: Build for Cowon D2/D2+
« Reply #13 on: September 04, 2017, 12: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

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

  • SMF 2.0.6 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.082 seconds with 63 queries.