Welcome to my fonera hacking page

!!! READ THE COMPLETE INFO BEFORE YOU FIRE UP THE SOLDERING IRON !!!
!!! i take no responsibility for you frying your fonera, your house, your cat, yourself or anything else that might go wrong !!!
!!! These hacks blatently void your warranty, so don't come crying if it blows up !!!
(they all work for me, and my cat is still running around my home)
if used within these parameters it will work out of the box :-)

MP3 MOD for the fonera

This hack basically turns your fonera into a shoutcast/icecast enabled streaming client.
Before we start, here are some images.

Prototype

Top

Bottom

So whats this all about ?
Streaming has never been easier. The hack is based around the VS1011e mp3 decoder made by vlsi which does all the number crunching for us. As i am a openwrt dev-team member, i obviously used owrt for making the software. Tht fonmp3 is fully supported in kamikaze 7.09 and trunk/.
Where is the software ?
The software comes in 3 parts, kernel driver, userspace statemachine and mini web-gui. you can control the fon-mp3 from command line, over tcp and using a webinterface running on a real pc (the php webinterface code has basic functionality working, but is still growing). Using the php code, you can stream your own music collection to the fonera. The php code supports streaming different music to several fons, so you can have one in every room, as i do at home :-)

To make sure, you do not need to compile your own software, there are is a openwrt kamikaze 7.09 image, that has all the software already installed here
Where can i get the PCB ?
I have setup a small webshop, from where you can buy the pcb and all the components needed to mod your own fonera into a fonmp3.

The shop is located here

Alternatively you can make the pcb yourselv, look at the picture of my "ugly" prototype above. To make it yourselve, you need the schematics, which are dwnloadable below
Soldering the PCB
!!! Take care, to get the direction of capacitors correct and the rotation of the VS1011E !!!
Make sure to take care when soldering the PCB. Do the usual stuff, like checking solder point for short-circuits etc. The usual stuff, if you do not know what you are doing, think if you wanna do it, i am not wanting to give beginners support.

The finished pcb
The layout
The Schematic


These are the values of the components
NameValue
R11MOhm
R210KOhm
C1100uF
C2100uF
C333pF
C433pF
C5100nF
C6100nF
C7100uF
L1Choke 10uH
Q1Crystal 12.288Mhz
Preparing the fonera ?
First of all, some components need to be removed from the fon pcb to make it work. The fonera will still be fully functional afterwards, with the exception of reset button and wlan-led (although wlan led does not work on openwrt anyways and reset is only needed if the device crashes, which does not happen, if you use openwrt :-)

Reset button, the resistor and capacito above it r? and c?
4 capacitors on top, next to ethernet jack C141 C142 C144 C145
4 resistors on bottom, next to ethernet jack R? R? R? R?
transistor next to wlan led - Q3
Next you should locate the TP3 as shown on this image


How do i connect the PCB to my fonera ?
You are now set, to connect the PCB and the fonera as shown in the following list
SW1 are the pins on the fonera next to the ethernet jack. Having the fonera lying in front of you, the pins are numbered 1-8 from RIGHT to LEFT !!!
The conenctor on the mp3-pcb with the pcb lying infront of you, jack on the laft and power on the right it numbered 1-9 LEFT to RIGHT !!!
MP3-PCBFonera
1 - GNDblack wire on this image
2 - RESETWLAN LED - transistor pad bottom left look at the image
3 - SORESET button on this image
4 - CSTP3 look at the image
5 - BSYNCSW1-2
6 - SISW1-3
7 - DREQSW1-7
8 - SCKSW1-6
9 - 5Vred wire on this image
Next make sure to put some insulation under the mp3-pcb, otherwhise it will short circuti with the radiation screen thing from the cpu

Finally, you need to drill a hole into the lid of the fonera for the arial
Before you power it up !!!!!!
Make sure you got the cardboard!!!
check the wiring
check components are correctly placed and soldered
connected mp3-pcb to fonera 5V ?
do the list again !!
Loading the software
here are the images build with kamikaze 7.09 tag, i will update these soon to also include the x-wrt webinterface
Here is a howto on flashing the images to your fonera. if oyu have problems with the flashing, ask on #openwrt irc channel on freenode
Using the software on the fonera
The bootlog should have the following in it when connected to the console

blah
blah


If you see lots of zeros, there is something wrong and you will want to check the wiring/soldering !!
After boot up, you prolly want to change your ip and setup wifi etc
The mp3d process starts automatically
You can connect to it using the mplay tool. here are some examples

set volumemplay VOLUME 10
set bassmplay BASS 10
play a streammplay STREAM pls "http://shoutcast.com/sbin/shoutcast-playlist.pls?rn=68669&file=filename.pls"
make sure to uses the " character here
stop playingmplay STOP
Using the stream server on your mp3-fileserver

Info is being prepared and will be added in the next few days

Contacting me
I get flooded with mails as it is already, so your best bet if to find me in #openwrt on the irc-freenode servers (nick = blogic). Just send me a message, and i will answer eventually.



MMC driver version 0.1 for fonera

will be added to the kamikaze tree very soon
My first hack is a mmc driver. it uses gpio bitbanging. ther code is currently being reworked a bit to make it look nicer :-)
Known issues
These issues will be fixed within the next days. the driver runs stable, as long as you do not insert or remove the card while the driver is loaded
Changelog
Project status : 99%