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.]

Advertisements

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/26

Neo Diggler Actions I Find Useful

Neo Diggler is a Firefox Add-on that lets you define and run actions based on your current URL, like jumping to parent folders. It’s the successor of Diggler compatible with newer browser versions. It’s a very useful Add-on, I’d say. I’ll provide some actions I hacked together over the time. I guess there’s be much room for improvement, but they are indeed working real nice for me.Firefox 2

Reload the current page from CoralCDN.

Name: CoralCDN
Matching Regular Expression: ^http://(.+)$
Show Action as Menu Entry: no
Action: http://$h.nyud.net$p

Opens the BugMeNot entries for the current domain in another window. Doesn’t work in Windows.

Name: BugMeNot
Matching Regular Expression: ^(.+)$
Show Action as Menu Entry: no
Action: javascript:window.open("http://www.bugmenot.com/view/$h", "$h"); javascript:window.reload();

Loads the current page with an www subdomain (http://some.example.com/foobar.php becomes http://www.example.com/foobar.php).

Name: www Subdomain
Matching Regular Expression: ^(.+//)([\d\w]+\.|)(.+)$
Show Action as Menu Entry: yes
Action: $1www.$3

Loads the current page’s base address with a www subdomain (http://some.example.com/dig/around/here.html becomes http://www.example.com/).

Name: www Subdomain Index
Regular Expression: ^(.+//)([\d\w]+\.|)([\d\w\.]+\.[\w]+/)(.*)$
Show Action as Menu Entry: yes
Action: $1www.$3

Loads a current http page as https (ssl).

Name: https
Regular Expression: ^http([^s].+)$
Show Action as Menu Entry: yes
Action: https$1

Click the left thumbnail to see how these actions appear in Neo Digglers context menu next to the Firefox address bar.

A great help when building Regular Expressions is KDE’s kregexpeditor, part of kdeutils. You can visually compose and analyse your regexes and match them against desired text.
And well, while this regex might seem like black magic at first (and second ;) sight, and it can be kind of mind boggling oftentimes, it’s really worth learning it! The syntax is being used in so many places (tools, programming languages) and will come very handy for parsing and substituting texts.

ChangeLog

[2008-03-30: Fix https action. BugMeNot not working in Windows.]

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.]

Prevent Debian on Linksys NSLU2 Going Out of Memory

After switching from Unslung to Debian I constantly got various programs (mt-daapd, rtorrent, gcc) terminating, because they ran out of memory. Tweaking or even disabling the oom-killer kernel feature didn’t do the trick, so I took a look at the ulimits and found most of them set to unlimited. Setting some of the ulimit defaults like on Ubuntu Linux solved these problems.
Linksys NSLU2

Update

Thanks to Michael the solution to any oom problem is upgrading to Debian Unstable (aka. Lenny). My “solution” didn’t proof. See the comments for more detail.

After some experimenting, I now have two ulimit settings – stack size and max locked memory – pointed out, but am not sure if really both are mandatory. But it shouldn’t hurt either. These limits, being unlimited by default, now got set to sane values as follows.

You can set the ulimits for the current shell with ulimit -l 32 -s 8192. System wide defaults are defined in /etc/security/limits.conf e.g. by adding this:

#restrictions to avoid oom using ubuntu defaults
*       hard    memlock 32
*       hard    stack   8192

As mentioned before, I currently have oom-killer disabled. But I should try to enable it again, to benefit from this feature. This can be done with the sysctl tool and in the /etc/sysctl.conf file.

While I’m at it, that would be the output of the stock Debian settings:

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
max nice                        (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) unlimited
max rt priority                 (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

That’s the output for Ubuntu Gutsy:

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 8191
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 8191
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

ChangeLog

[2008-04-11: Better upgrade to Lenny.]

Next Page »

Create a free website or blog at WordPress.com.