Bembel-B Blog

2009/04/26

My FTPSync.pl Native Windows Build

I needed a Windows command line tool for syncing local files with an FTP server and couldn’t find any lightweight ones. There’s FTPSync.pl for Unix/Linux with a Cygwin build available (seems to be gone now). Instead of using that, I built an EXE of FTPSync.pl with ActivePerl for Windows.

Main reason for not using the Cygwin build is that using different versions of cygwin.dll simultaneously isn’t possible, which could happen easily when for example additionally having a full Cygwin install with running services. Stand alone Cygwin builds need to be shipped with the cygwin.dll which it is linked to.
Also that Cygwin build is outdated.

So, to make short things short, here you can download ftpsync-1.3.01.W32.zip (and my previous build ftpsync-1.2.33.W32.zip).

As far as I remember the build was straight forward. I installed ActivePerl 5.10, added a 3rd party PPM Repository (bribes.org I think) for installing the PAR Packer. Then all I had to do was issuing pp -o ftpsync.pl.exe ftpsync.pl in the directory with the FTPSync.pl sources.
You can reduce the EXE file size using UPX if you need to.
So far the EXE is working without problems.

ChangeLog

[2009-04-27: New build of latest version.]

No More Custom Rockbox Builds No More

Filed under: Album Art,build,Cover Art,e200,e250,patch,Rockbox,SanDisk,Sansa,Sansa e200,software — FrankZabbath @ 17:35

In case anyone would be interested, I won’t do any Sansa e200 Rockbox builds anymore.SanDisk Sansa e200

The official build now has all the functionality I need previously only available through patches. Specifically that’s album art resizing, USB mass storage support and battery charging.

2008/07/14

My 16th very own custom Rockbox build for Sansa e200

After a few recent failed patch and build attempts, I bring you my latest patched Rockbox build based on yesterdays SVN Revision 18026. I had severe stability issues (crashes, playlists corrupted on shutdown) with my previous build, which seem to have vanished with this one as I can say from my todays tests. As usual you get USB MSC support along with Sansa specific and eyecandy patches.SanDisk Sansa e200

News

Rockbox Wiki states the following major changes:

Source: MajorChanges < Main < TWiki
Address: http://www.rockbox.org/twiki/bin/view/Main/MajorChanges
Date Visited: Sun Jul 13 2008 22:16:41 GMT+0200 (CEST)
DONE 2008-07-07: Added keybox plugin.
2008-06-23: Change the progressbar tags, and remove the left margin tag from the WPS, details in CustomWPS
DONE 2008-06-23: Add conditional viewports to the WPS, details in CustomWPS

What I’ve found new so far:

Updated Patches

  • customlist-20080623.patch
  • multifont-20080630.patch
  • backlight_fading_e200_17915.patch
  • charge_e200_17614.patch

Removed Patches

  • rec_button_080325.patch (build fails)

Download

Patch Log

FS#8799 – User definable list dimensions (custom list for viewports)
patch -p0 < /home/scheff/downloads/customlist-20080623.patch

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont-20080630.patch
**
Hunk #1 FAILED at 673.
1 out of 1 hunk FAILED — saving rejects to file apps/gui/wps_parser.c.rej
** moved to apps/gui/viewport.c. change there.

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080415.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.patch
**
Hunk #3 FAILED at 822.
1 out of 3 hunks FAILED — saving rejects to file apps/screens.c.rej
** no-brainer fix (function parameters changed)

FS#7542 – This patch moves all the playlist creation from the root dir to the PLAYLISTS directory.
patch -p0 < /home/scheff/downloads/playlist_folder-060508.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_fading_e200_17915.patch

FS#6884 – Sansa E200 m3u/m3u8 to pla playlist converter
patch -p0 < /home/scheff/downloads/sansa_playlist_converter_V3.3.diff
** fix plugin_start paramters as with my previous build.

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/batt_bench_v3.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_17423.diff

FS#7871 – Go to WPS from metadata viewer, pitchscreen and quickscreen for e200
patch -p0 < /home/scheff/downloads/play_to_wps_v2.diff

FS#8768 – Instrument tuner plugin
** implementing and fixing like with my previous build.

Build Log

**
gui/viewport.c: In function ‘viewport_parse_viewport’:
gui/viewport.c:129: error: ‘struct screen’ has no member named ‘width’
gui/viewport.c:130: error: ‘struct screen’ has no member named ‘width’
gui/viewport.c:131: error: ‘struct screen’ has no member named ‘height’
gui/viewport.c:132: error: ‘struct screen’ has no member named ‘height’
make[1]: *** [/home/scheff/src/rockbox-18026/build/apps/gui/viewport.o] Error 1
make: *** [build] Fehler 2
** fix according to tracker comment:

Source: FS#8799: User definable list dimensions (custom list for viewports)
Address: http://www.rockbox.org/tracker/task/8799
Date Visited: Sun Jul 13 2008 21:55:46 GMT+0200 (CEST)
Comment by Corey (blackthunder) – Thursday, 03 July 2008, 03:28 GMT+2
I’m having troubling with this patch. it patches okay, but I have build errors with viewport.c ‘struct screen; has no member named ‘width’ and ‘heighth’ lines 129-132
Comment by Travis Tooke (tdtooke) – Thursday, 03 July 2008, 04:36 GMT+2
Change width and height to lcdwidth and lcdheight on those lines.

ChangeLog

[2009-04-26: Fix box.net links.]

2008/05/19

My 15th very own custom Rockbox build for Sansa e200

An updated build based on yesterdays Revision 17577 with my selected patches and USB Mass Storage support. I can’t remember any important changes with this build, except for the ones below.SanDisk Sansa e200

News

  • RockDoom and PictureFlow Plugins are working again (by dropping some patches)
  • Flashlight Plugin was renamed to Lamp (so you can delete the old flashlight.rock in the .rockbox/rocks directory)
  • Instrument Tuner Plugin (called Pitch) has been added this time

Removed Patches

  • doom_scroll3_sync20070915.patch – was crashing rockbox
  • pf_album_title_v3.diff – was crashing rockbox

Updated Patches

  • customlist_vp_v8c.diff
  • multifont_for_customlist-20080515.patch
  • playlist_folder-060508.patch
  • charge_e200_17423.diff

Download

Patch Log

FS#8799 – User definable list dimensions (custom list for viewports)
patch -p0 < /home/scheff/downloads/customlist_vp_v8c.diff

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont_for_customlist-20080515.patch

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080415.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.patch
**
Hunk #3 FAILED at 822.
1 out of 3 hunks FAILED — saving rejects to file apps/screens.c.rej
** no-brainer fix (function parameters changed)

FS#7542 – This patch moves all the playlist creation from the root dir to the PLAYLISTS directory.
patch -p0 < /home/scheff/downloads/playlist_folder-060508.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_fading_e200_17138.patch

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
**
playlist_converter.c:405: error: conflicting types for ‘plugin_start’
/home/scheff/src/rockbox-17577/apps/plugin.h:815: error: previous declaration of ‘plugin_start’ was here
make[2]: *** [/home/scheff/src/rockbox-17577/build/apps/plugins/playlist_converter.o] Error 1
** fix plugin_start paramters:

--- apps/plugins/playlist_converter.c.orig	2008-05-19 01:18:32.000000000 +0200
+++ apps/plugins/playlist_converter.c	2008-05-19 01:49:37.000000000 +0200
@@ -401,7 +401,7 @@
 }
 
 /* this is the plugin entry point */
-enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
+enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
 {
 
     rb = api;

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/batt_bench_v3.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_17423.diff

FS#5555 – Record Button Configuration
patch -p0 < /home/scheff/downloads/rec_button_080325.patch
**
Hunk #1 FAILED at 1149.
1 out of 1 hunk FAILED — saving rejects to file apps/settings_list.c.rej
** Simply put the rejected code-block before CHOICE_SETTING. Eventually the new Study Mode will not be covered?

FS#7871 – Go to WPS from metadata viewer, pitchscreen and quickscreen for e200
patch -p0 < /home/scheff/downloads/play_to_wps_v2.diff

FS#8768 – Instrument tuner plugin
Following the HowTo at http://www.rockbox.org/twiki/bin/view/Main/HowtoWritePlugins
cp -p /home/scheff/downloads/pitch.c.080418-stevetuc apps/plugins/pitch.c
add pitch to apps/plugins/SOURCES and apps/plugins/CATEGORIES:

--- apps/plugins/CATEGORIES.orig	2008-05-19 01:19:04.000000000 +0200
+++ apps/plugins/CATEGORIES	2008-05-19 01:29:54.000000000 +0200
@@ -50,6 +50,7 @@
 pacbox,games
 pegbox,games
 pictureflow,demos
+pitch,apps
 plasma,demos
 playlist_converter,viewers
 pong,games
--- apps/plugins/SOURCES.orig	2008-05-19 01:18:32.000000000 +0200
+++ apps/plugins/SOURCES	2008-05-19 01:29:28.000000000 +0200
@@ -8,6 +8,7 @@
 jackpot.c
 logo.c
 mosaique.c
+pitch.c
 properties.c
 random_folder_advance_config.c
 rockblox.c

**
pitch.c:501: error: conflicting types for ‘plugin_start’
/home/scheff/src/rockbox-17577/apps/plugin.h:815: error: previous declaration of ‘plugin_start’ was here
make[2]: *** [/home/scheff/src/rockbox-17577/build/apps/plugins/pitch.o] Error 1
rm /home/scheff/src/rockbox-17577/build/apps/plugins/dict.elf /home/scheff/src/rockbox-17577/build/apps/plugins/credits.elf /home/scheff/src/rockbox-17577/build/apps/plugins/firmware_flash.elf /home/scheff/src/rockbox-17577/build/apps/plugins/chessclock.elf /home/scheff/src/rockbox-17577/build/apps/plugins/jackpot.elf /home/scheff/src/rockbox-17577/build/apps/plugins/logo.elf /home/scheff/src/rockbox-17577/build/apps/plugins/cube.elf /home/scheff/src/rockbox-17577/build/apps/plugins/battery_bench.elf /home/scheff/src/rockbox-17577/build/apps/plugins/mosaique.elf
make[1]: *** [rocks] Error 2
** fix plugin_start paramters:

--- apps/plugins/pitch.c.orig	2008-04-24 17:59:35.000000000 +0200
+++ apps/plugins/pitch.c	2008-05-19 01:46:23.000000000 +0200
@@ -497,7 +497,7 @@
 }
 #endif
 
-enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
+enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
 {
   (void)parameter;
   rb=api;

2008/04/24

My 14th very own custom Rockbox build for Sansa e200

This build is based on revision 17238. I made it to keep up with the latest codebase and patches and to try a few new patches too. Unfortunately two of those new patches don’t seem to work, more exactly doom and pictureflow plugins will crash in this build. Additionally the Instrument Tuner Plugin I wanted to include didn’t make it into the build. I also made 3 new fonts in sizes 8 to 13 px out of the new Windows Vista TTFs.SanDisk Sansa e200

  • flashlight plugin
  • various optimizations: wma and nsf codec,
  • skipping tracks,
  • viewports,
  • themes with bitmap strips

New Patches

Updated Patches

  • albumart-smooth_resize-080415.patch
  • playlist_folder.patch (I renamed it to playlist_folder-080418-vmh.patch)
  • [backlight_fading_e200_17138.patch]
  • batt_bench_v3.patch
  • charge_e200_17131.diff

Removed Patches

  • bootloader_boost.patch (committed)

Download

Patch Log

FS#8799 – User definable list dimensions (custom list for viewports)
patch -p0 < /home/scheff/downloads/customlist_vp_v8b.diff
**
Hunk #1 FAILED at 40.
1 out of 7 hunks FAILED — saving rejects to file apps/gui/bitmap/list.c.rej
** no-brainer

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont_for_customlist-20080403.patch
**
Hunk #1 FAILED at 46.
1 out of 10 hunks FAILED — saving rejects to file firmware/font.c.rej
Hunk #1 FAILED at 23.
1 out of 4 hunks FAILED — saving rejects to file firmware/font_cache.c.rej
** no-brainer

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080415.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.patch
**
Hunk #3 FAILED at 1225.
1 out of 3 hunks FAILED — saving rejects to file apps/screens.c.rej
** no-brainer fix (function parameters changed)

FS#7542 – This patch moves all the playlist creation from the root dir to the PLAYLISTS directory.
patch -p0 < /home/scheff/downloads/playlist_folder-080418-vmh.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_r16180M-080128.patch
**
Hunk #2 FAILED at 36.
1 out of 4 hunks FAILED — saving rejects to file firmware/target/arm/sandisk/backlight-c200_e200.c.rej
** Oops! Should have used the recent patch from the tracker.. :) DCDC15 identifier is now called AS3514_DCDC15. Fix manually.

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

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/batt_bench_v3.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_17131.diff

FS#8768 – Instrument tuner plugin
cp -p /home/scheff/downloads/pitch.c.080418-stevetuc apps/plugins/pitch.c
** Missing! Copying wasn’t enough to get it into the build.. should investigate next time!

FS#5555 – Record Button Configuration
patch -p0 < /home/scheff/downloads/rec_button_080325.patch

FS#5153 – Doom Scrollwheel Patch
patch -p0 < /home/scheff/downloads/doom_scroll3_sync20070915.patch
** Not Working! Crashes Rockbox as soon as Scroll Wheel is used in the Doom Plugin.

FS#7871 – Go to WPS from metadata viewer, pitchscreen and quickscreen for e200
patch -p0 < /home/scheff/downloads/play_to_wps_v2.diff

FS#8335 – album title config & small improvements for PictureFlow
patch -p0 < /home/scheff/downloads/pf_album_title_v3.diff
**
Hunk #2 FAILED at 1535.
1 out of 10 hunks FAILED — saving rejects to file apps/plugins/pictureflow.c.rej
** no-brainer
**
CC pictureflow.c
pictureflow.c: In function ‘album_name_menu’:
pictureflow.c:1544: error: too few arguments to function ‘rb->do_menu’
make[2]: *** [/home/scheff/src/rockbox-17238/build/apps/plugins/pictureflow.o] Error 1
** Simply extended function parameters by guessing from other occourances from “rb->do_menu(&album_name_menu,&selection);” to “rb->do_menu(&album_name_menu,&selection,NULL,false);”)
** Not Working! Crashes Rockbox on Picture Flow startup while initializing the Album Art.

2008/04/09

My 13th very own custom Rockbox build for Sansa e200

So this is my latest build based on revision 17055. With my previous build I had a few crashes (black screen, still powered on until battery drain) and “data abort”. Also had the “normal” duplicates in database after updating to my last build. Now the View Ports Custom List Patch is included (again?). I also simply removed two less important patches, one being the cause for wrong parameter count in function ‘is_backlight_on’ when I tried to build with those.SanDisk Sansa e200

Update

Darn! I forgot to enable USB in the Makefile. Sorry for this inconvinience. Downloads are now with USB enabled.

News

  • new(?) game pegbox
  • many default themes now using new stripped bitmaps (included in “full zip”)
  • smooth resize committed
  • fixes for Sansa OF USB detection
  • fixes for WMA codec
  • multi-core tweaks

New Patches

  • customlist_vp_v8b.diff
  • multifont_for_customlist-20080403.patch

Updated Patches

  • albumart-smooth_resize-080407.patch

Removed Patches

Download

Patch Log

FS#8799 – User definable list dimensions (custom list for viewports)
patch -p0 < /home/scheff/downloads/customlist_vp_v8b.diff

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont_for_customlist-20080403.patch

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080407.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.patch
**
Hunk #3 FAILED at 1225.
1 out of 3 hunks FAILED — saving rejects to file apps/screens.c.rej
** no-brainer fix (function parameters changed)

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_r16180M-080128.patch

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

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/sansa_batt_bench.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_16657.diff

FS#8642 – Improve boot time on Sansa
patch -p0 < /home/scheff/downloads/bootloader_boost.patch

ChangeLog

[2008-04-12: Initial build accidently was without USB support.]
[2008-04-24: Use categories instead of tags.]

2008/03/30

My 12th very own custom Rockbox build for Sansa e200

Just another patched Rockbox based on this evening’s SVN Revision 16892. The svn commit r16817 fixes loading the OF, which prevents the system freeze I got when plugging in USB in OF using my previous patched bootloader build! Album Art maximum dimensions are now again restricted to the display width. I don’t think anything else important has changed since my last build.SanDisk Sansa e200

Updated Patches

  • multifont-20080322a.patch
  • albumart-smooth_resize-080325.patch

Removed Patches

  • viewports-wps-v3.diff (viewports-wps-v4.1.diff got committed into svn)

Download

Patch Log

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont-20080322a.patch

FS#8308 – Port of a imlib2 based smooth scaling algorithm for bitmaps
patch -p1 < /home/scheff/downloads/smooth_resize.patch

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080325.patch

FS#8523 – Disable WPS updating when the backlight is off.
patch -p0 < /home/scheff/downloads/wps-2.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.patch
**
Hunk #3 FAILED at 1224.
1 out of 3 hunks FAILED — saving rejects to file apps/screens.c.rej
** no-brainer fix (function parameters changed)

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_r16180M-080128.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

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/sansa_batt_bench.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_16657.diff

FS#8642 – Improve boot time on Sansa
patch -p0 < /home/scheff/downloads/bootloader_boost.patch

ChangeLog

[2009-04-26: Fix box.net links.]

2008/03/21

My 11th very own custom Rockbox build for Sansa e200

My latest patched Rockbox build based on yesterday’s Revision 16718. As before it includes USB Mass Storage (High Speed), USB Serial, smooth resized Album Art, Viewports patches and Fast Charge. I also built a patched bootloader, which replaces the whole Sandisk bootloader decreasing the boot time to about 3 seconds (more than 10 seconds before)!SanDisk Sansa e200

I made this build to try the new bootloader and to see if the increased boost ratio I believe to get with the recent builds would drop.
The bootloader is working very fine! But you should be careful to take this step and be sure to read the patch tracker page. To apply the bootloader attach your Sansa to USB, be sure to unmount it, and use Sansapatcher (x86 binaries for Linux and Windows) like this: ./sansapatcher -bl bootloader.bin
High boost ratio seems to persist; though I’m not sure if it really increased. Maybe the higher boost is because of using the multiband equalizer now, instead of just the bass/treble settings like before or I simply don’t remember correctly. Should compare the boost behaviour with an unpatched build..
There haven’t been very grave changes in the codebase as far as I can see. There have been fixes to USB Storage, microSD hot-swapping, charging strategy, WPS tags. Additionally some DSP routines rewritten in ARM assembler.

Updated Patches

viewports-wps-v3.diff
multifont-20080317.patch
charge_e200_16657.diff

Removed Patches

multivolume_dircache_20080310b.patch (committed to svn)

New Patches

bootloader_boost.patch

Download

rockbox-16718.zip
rockbox-full-16718.zip
rockbox-bootloader-16718.zip Optional! Removes Sandisk Bootloader (i.e. loosing Recovery Mode)!

Patch Log

FS#8385 – Viewports
patch -p0 < /home/scheff/downloads/viewports-wps-v3.diff

FS#4733 – Multifont
patch -p0 < /home/scheff/downloads/multifont-20080317.patch

FS#8308 – Port of a imlib2 based smooth scaling algorithm for bitmaps
patch -p1 < /home/scheff/downloads/smooth_resize.patch

FS#5697 – bmp resize patch
patch -p0 < /home/scheff/downloads/albumart-smooth_resize-080221.patch

FS#8523 – Disable WPS updating when the backlight is off.
patch -p0 < /home/scheff/downloads/wps-2.patch

FS#7661 – Make ID3 info screen more readable
patch -p0 < /home/scheff/downloads/expand_id3_screen_line_width.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_r16180M-080128.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

FS#8070 – Sansa battery_bench plugin buffer overflow
patch -p0 < /home/scheff/downloads/sansa_batt_bench.patch

FS#8363 – Charger configuration for Sansa e200/c200
patch -p0 < /home/scheff/downloads/charge_e200_16657.diff

FS#8642 – Improve boot time on Sansa
patch -p0 < /home/scheff/downloads/bootloader_boost.patch

ChangeLog

[2009-04-26: Fix box.net links.]

2008/03/19

Fixed-point Ogg Vorbis and Musepack Decoder Packages for Debian Etch ARM

I’m using Firefly Media Server on a Linksys NSLU2 running Debian Etch to stream my whole music collection to my Pinnacle SoundBridge HomeMusic. Many files in my collection are in Ogg Vorbis format and a few in Musepack too, which unfortunately aren’t natively supported by the SoundBridge. Luckily Firefly can transcode audio files on the fly e.g. using the ssc plug-in and any console application via shell scripts. But the problem with the Debian packages is that they don’t take into account the missing floating point unit (FPU) of the NSLU2 hardware, and that makes oggdec/ogg123 and mpc123 take ages – way below real-time – to transcode. Fixed point versions of the transcoders aren’t available in the Debian Etch package repositories even the sourcecode already exists, so I had to build them myself.
Linksys NSLU2
I first searched the Debian packages for fixed point versions.
I found the libvorbisidec package, which is the fixed point version of libvorbis also going by the name Tremor. The vorbis-tools is only available as normal floating-point version linked to libvorbisdec. For Musepack there are (floating-point) packages libmpcdec3 for the library and mpc123 for the application.
In the Firefly forums I found patches for vorbis-tools (providing the ogg123 and oggdec transcoders), so that I could build Tremor versions of the transcoder apps.
In the Musepack sources there’s already a define variable to build with fixed point math only. So I would just have to enable that and rebuild the library and transcoder.

To make a long story short, here are the Debian Etch ARM binary packages for fixed-point Ogg Vorbis and Musepack:

I will gladly provide the sources. Feel free to ask for them! You can download the Deb sources for libmpcdec and vorbis-tools further below.

Update

These are the integer Lenny ARM binaries. Libvorbisidec is available through the official repos.:

Update 2

Here are the Deb sources (.dsc, .diff.gz and .orig.tar.gz) to build your own binary Deb packages.

Performance now is very good on my 266 MHz NSLU2. From what I’ve seen in top, mpc123 and ogg123 stay below 50% CPU usage and decoding is done faster than real-time.

Only to show off how unbelievably cool I am ;), and in case somebody would like to reproduce these builds on another distribution, I’ll roughly describe the steps I’ve taken.

Build libvorbisidec

Pretty straight forward. As far as I remember I only had to rebuild the source package:

mkdir -p ~/debuild/libvorbisdec
cd ~/debuild/libvorbisdec
dget -x http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/libvorbisidec_1.0.2+svn14261-1.dsc
cd libvorbisidec-1.0.2
debuild -rfakeroot -uc -us
cd ..
sudo dpkg -i libvorbisidec1_1.0.2+svn14261-1_arm.deb libvorbisidec-dev_1.0.2+svn14261-1_arm.deb

Patch and build vorbis-tools

This one was trickier. The patches found on the forum aren’t complete. The older one is blindly changing the endianess of the resulting audio data, thereby producing only noise on the little endian Debian I use. The newer one misses linking mpcdec to libvorbisidec.

mkdir -p ~/debuild/vorbis-tools
cd ~/debuild/vorbis-tools
dget -x http://ftp.de.debian.org/debian/pool/main/v/vorbis-tools/vorbis-tools_1.1.1-6.dsc
cp -pr vorbis-tools_1.1.1 vorbis-tools_1.1.1.wrk
cd vorbis-tools_1.1.1.wrk
[apply and manually fix the tremor patch]
[create tremor patch file against vorbis-tools_1.1.1/]
[copy patch file to vorbis-tools_1.1.1/debian/patches]
[add patch file at bottom of vorbis-tools_1.1.1/debian/patches/series]
[add libvorbisidec-dev dependency to vorbis-tools_1.1.1/debian/control and document Tremor versions in description]
[increase version and add changes in changelog via dch -i]
cd vorbis-tools_1.1.1
debuild -rfakeroot -uc -us
cd ..
dpkg -i vorbis-tools_1.1.1-7_arm.deb

Patch and build libmpcdec

Here I add a patch to enable the fixed-point define. Beware, the following steps are just written down from memory in a hurry. So expect flaws. :)

mkdir -p ~/debuild/libmpcdec
cd ~/debuild/libmpcdec
dget -x http://ftp.de.debian.org/debian/pool/main/libm/libmpcdec/libmpcdec_1.2.2-1.dsc
cp -pr libmpcdec-1.2.2 libmpcdec-1.2.2.wrk
vim libmpcdec-1.2.2.wrk/include/mpcdec/math.h
[uncomment #define MPC_FIXED_POINT]
mkdir libmpcdec-1.2.2.wrk/debian/patches
diff -Naur libmpcdec-1.2.2 libmpcdec-1.2.2.wrk > libmpcdec-1.2.2.wrk/debian/patches/enable_fixed_point.diff
cd libmpcdec-1.2.2.wrk
dch -i
[increases version in changelog. add some notes.]
debuild -rfakeroot -uc -us
cd ..
dpkg -i libmpcdec3_1.2.2-2_arm.deb libmpcdec-dev_1.2.2-2_arm.deb

Build mpc123

This one has only to be rebuilt with the fixed-point libmpcdec version above installed.

mkdir -p ~/debuild/mpc123
cd ~/debuild/mpc123
dget -x http://ftp.de.debian.org/debian/pool/main/m/mpc123/mpc123_0.2.1-1.dsc
cd mpc123-0.2.2
debuild -rfakeroot -uc -us
cd ..
dpkg -i mpc123_0.2.2-1_arm.deb

I haven’t found a fast enough way to transcode Monkey’s Audio (aka. APE) files yet, but that’s mainly because I don’t have any (which haven’t been transcoded to mp3 by myself already). For your information: Building the Monkey’s Audio Codec (MAC) for Linux did work.
I think when looking for more low resource or fixed-point codecs, a good place to look for is the Rockbox Wiki. That’s what I used too.

To make this Firefly Transcoding post more complete, here’s my current version of the ssc script:

#!/bin/sh
#
# script to facilitate server-side transcoding of ogg files
#
#
# Usage: mt-daapd-ssc.sh   
#
# You may need to fix these paths:
#

WAVSTREAMER=/opt/mt-daapd-ssc/wavstreamer
OGGDEC=oggdec
OGG123=ogg123
FLAC=flac
MPC=mpc123
FFMPEG=/opt/mt-daapd-ssc/ffmpeg-quiet.sh
MAC=mac

ape_file() {
    $MAC "$FILE" - -d | $WAVSTREAMER -o $OFFSET $FORGELEN
}

ffmpeg_file() {
    $FFMPEG -i "$FILE" -acodec pcm_s16le -f wav - | $WAVSTREAMER -o $OFFSET $FORGELEN
}

mpc_file() {
    $MPC --quiet --wav - "$FILE" | $WAVSTREAMER -o $OFFSET $FORGELEN
}

ogg_file() {
#    $OGGDEC --quiet -o - "$FILE" | $WAVSTREAMER -o $OFFSET $FORGELEN
    $OGG123 -q -d wav -f - "$FILE" | $WAVSTREAMER -o $OFFSET $FORGELEN
}

flac_file() {
    $FLAC --silent --decode --stdout "$FILE" | $WAVSTREAMER -o $OFFSET $FORGELEN
}

FILE=$1
OFFSET=${2:-0}

# this is nonsense!
if [ "$3" != "" ]; then
  FORGELEN="-l ${3%.*}"
fi

case "$1" in
  *.[sS][hH][nN])
  ape_file
  ;;
  *.[sS][hH][nN])
  ffmpeg_file
  ;;
  *.[mM][pP][cC])
  mpc_file
  ;;
  *.[oO][gG][gG])
  ogg_file
  ;;
  *.[fF][lL][aA][cC])
  flac_file
  ;;
  *)
# here you could cat a generic "error" wav...
# cat /path/to/error.wav
  ;;
esac

Oh, FYI I’m using mt-daapd 0.2.4+r1376-1 from the Debian repo. I got the wavstreamer binary and the ssc script example by extracting them from a newer Debian package. The Firefly Wiki provides more information on transcoding implementation.

ChangeLog

[2008-04-11: Add Lenny Debs.]
[2008-06-06: Add Deb sources for libmpcdec and vorbis-tools.]
[2009-04-26: Fix box.net links.]

2008/03/13

ScummVM v0.11.1 for GP2X

The ScummVM binaries I found in the web aren’t up to date (v0.10) and therefore new games like Elvira series are missing. (v0.11). I already made some GP2X build of ScummVM (SVN) before. The current SVN didn’t run, so I built the latest stable version.ScummVM Logo

It’s built with the open2x toolchain against their standard SDL and the MAD (mp3), Tremor (Vorbis), and libmpeg2 (mpeg2) libraries. What’s missing is fluidsynth and FLAC, but those were also missing in the other GP2X builds AFAIK.

Download the build here: scummvm-gp2x-0.11.1.zip

One bug that persists in my builds is the stereo sound in games switches the balance to the right channel after a few seconds. Otherwise this build seems fine. I guess it has to do with the SDL_mixer in the open2x libraries.

ChangeLog

[2008-03-19: Categories for the post]
[2009-04-26: Fix box.net links.]

Next Page »

Blog at WordPress.com.