Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: nerdrunner on January 25, 2015, 06:12:55 PM

Title: Slimming down the kernel
Post by: nerdrunner on January 25, 2015, 06:12:55 PM
I've successfully compiled the main branch for the Sansa C200 and it seems to run fine, but I found that it can no longer play some of my larger midi files.  I suspect that the current kernel is larger than the 3.13 kernel, so that the midi player is possibly running out of room.  (Perhaps there is a way to find out if I'm running out of memory??)

Since I never use the "database" feature, that might be the easiest place to start cutting.  Is there a "gentle" way of compiling Rockbox without the database feature, or is that feature so integral that it will be hard to cut out?

Thx in advance for any help.
Title: Re: Slimming down the kernel
Post by: saratoga on January 25, 2015, 06:23:21 PM
I suspect that the current kernel is larger than the 3.13 kernel, so that the midi player is possibly running out of room.  (Perhaps there is a way to find out if I'm running out of memory??)

I would say the main binary got larger, since the kernel in rockbox is extremely simple and very small.

Since I never use the "database" feature, that might be the easiest place to start cutting.  Is there a "gentle" way of compiling Rockbox without the database feature, or is that feature so integral that it will be hard to cut out?

Under firmware / export / config /  you can find the config file for your device and disable features.  Note that you may have to make minor fixes to the code if you disable some features.