Rockbox Technical Forums

Third Party => Unsupported Builds => Topic started by: cereal_killer on October 04, 2016, 10:05:00 AM

Title: Build for Cowon D2/D2+
Post by: cereal_killer 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 (https://www.file-upload.net/download-12691155/rockbox.zip.html)

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.
Title: Re: Build for Cowon D2/D2+
Post by: roebeet on November 02, 2016, 05:51:39 PM
Thanks.  Been using 3.1.3 for awhile now because of the dev build issues.
Title: Re: Build for Cowon D2/D2+
Post by: 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.
Title: Re: Build for Cowon D2/D2+
Post by: cereal_killer on November 13, 2016, 02:39:39 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.
Title: Re: Build for Cowon D2/D2+
Post by: cereal_killer on August 06, 2017, 09:07:23 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...
Title: Re: Build for Cowon D2/D2+
Post by: 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
Title: Re: Build for Cowon D2/D2+
Post by: __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.
Title: Re: Build for Cowon D2/D2+
Post by: cereal_killer on August 24, 2017, 01:51:01 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?

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.
Title: Re: Build for Cowon D2/D2+
Post by: Bilgus on August 24, 2017, 02:08:43 PM
it sounds to me that it is trying to write the internal drive and panic-ing
Title: Re: Build for Cowon D2/D2+
Post by: cereal_killer on September 03, 2017, 06:08:41 AM
I have updated the first post to a more recent build.

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?
Title: Re: Build for Cowon D2/D2+
Post by: Bilgus 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

Title: Re: Build for Cowon D2/D2+
Post by: cereal_killer 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.
Title: Re: Build for Cowon D2/D2+
Post by: Bilgus 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
Title: Re: Build for Cowon D2/D2+
Post by: saratoga 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.