Bembel-B Blog

2008/01/19

My 4th very own custom Rockbox build for Sansa e200

A lot has changed with the Rockbox sources, so it’s been a while since publishing my last build. With this one I drop many of the patches for WPS layouts (xy-margins etc.), basically only keep the bmp resizing and the Sansa specific patches.

SanDisk Sansa e200

Dropping the WPS patches has two reasons: Firstly an official replacement for the xy-margin patches called ViewPorts is in the making, which should be the way to go. And secondly these patches are mostly outdated and the effort to get them working with the current sources is far beyond my knowledge and time.

You may download my Rockbox build and its bootloader from my box.net share. It’s based on todays svn revision 16109.

These patches have become obsolete since my last build (3rd build 2007-08-17):
album_art_20071005.patch -> merged into official sources
random_album.patch -> merged into official sources

These patches are too hard to sync or unwanted (see above):
ymargin-scrollinfo_20071002.patch
scroll-margins_20071006-2.patch
multifont-20071011.patch
customlist-20071015.patch
customline-20071015.patch
progressbar_slider_20070622.patch

These patches have been updated at the tracker:
bmpresize-1205.patch
sansa_playlist_converter_V3.3.diff
backlight-thread-fading_r16053M-080111.patch

Patch Log

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/bmpresize-1205.patch

FS#7542 – This patch moves all the playlist creation from the root dir to the PLAYLISTS directory.
patch -p0 < /home/scheff/downloads/playlist_folder.patch

FS#7565 – support for the TPA tag
patch -p1 < /home/scheff/downloads/50-id3TPA.patch

FS#6800 – Sansa e200 backlight behaviour
patch -p0 < /home/scheff/downloads/backlight-thread-fading_r16053M-080111.patch

FS#4988 – Optionally keep backlight on while plugins are running
patch -p0 < /home/scheff/downloads/plugin-backlight_070303.patch
**
Hunk #1 FAILED at 390.
1 out of 1 hunk FAILED — saving rejects to file apps/settings.h.rej
** no-brainer fix

FS#6884 – Sansa E200 m3u/m3u8 to pla playlist converter
patch -p0 < /home/scheff/downloads/sansa_playlist_converter_V3.3.diff
**
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED — saving rejects to file apps/plugins/CATEGORIES.rej
** no-brainer fix

Fix Compilation Error

Building the release aborted with the following error:

CC pictureflow.c
pictureflow.c: In function ‘create_albumart_cache’:
pictureflow.c:609: error: too few arguments to function ‘rb->read_bmp_file’
make[2]: *** [/home/scheff/src/rockbox-16109/build/apps/plugins/pictureflow.o] Error 1

I already expected this as it’s mentioned in the patch tracker comments. I fixed the PictureFlow source to be compatible with the bmp resize patch.

scheff@p512o:~/src/rockbox-16109$ diff -Naur apps/plugins/pictureflow.c.orig apps/plugins/pictureflow.c
--- apps/plugins/pictureflow.c.orig     2008-01-19 18:55:27.000000000 +0100
+++ apps/plugins/pictureflow.c  2008-01-19 20:05:10.000000000 +0100
@@ -606,7 +606,10 @@
         input_bmp.data = (char *)input_bmp_buffer;
         ret = rb->read_bmp_file(tmp_path_name, &input_bmp,
                                 sizeof(fb_data)*MAX_IMG_WIDTH*MAX_IMG_HEIGHT,
-                                FORMAT_NATIVE);
+                                FORMAT_NATIVE,
+                                PREFERRED_IMG_WIDTH,
+                                PREFERRED_IMG_HEIGHT,
+                                BMP_RESIZE_FILL);
         if (ret <= 0) {
             rb->splash(HZ, "Could not read bmp");
             continue; /* skip missing/broken files */

Upgrading

Be sure to rebuild your database properly. I had to do that twice, because I got duplicate entries. This seems to be normal, at least it always was for me when initializing the database. I also had problems with duplicate and orphaned (left over entries after deleting files) entries in previous versions.

Remind that old themes and WPS depending on the dropped patches won’t work anymore. I’ve been using SaagarsBigArt and now switched to Cabbie 2.0.

While being at it, I also updated the official SanDisk firmware and the Rockbox firmware using sansapatcher. Shouldn’t be required though.

A quick test of my build looks promising. The WPS seems a little slow at times. The database initialisation was a little confusing, as described above. The PictureFlow plugin (found in Demos category) looks really great!
Most obviously the keymapping was changed: In the WPS you access the context menu by holding the select button, where the down (menu) button brings up the main menu. Pressing the power button will stop the playback.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: