Rockbox is an open source firmware for mp3 players, written from scratch. It runs on a wide range of players.

http://repo.openpandora.org/?page=detail&app=rockbox.thomasjfox.003