Third Party > Unsupported Builds
Build for Cowon D2/D2+
Bilgus:
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
cereal_killer:
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.
Bilgus:
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
saratoga:
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.
cereal_killer:
--- 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
--- End quote ---
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.
--- End quote ---
How would I do this?
I appreciate any help.
Navigation
[0] Message Index
[*] Previous page
Go to full version