Wrtradio firmware v0.3!

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Wrtradio firmware v0.3!

Post by ilinux »

I make a new release of wrtradio firmware.

This new version is based on openwrt 8.09.2 because I want allow the stability and allow to use the official openwrt repo.

This version have oss sound server and for mpd 0.13.2 version and mpc 0.17 version (the last that support mpc volume command)

This version has a buffer for better internet radio playback.

The firmware is here: http://www.sandrofabbro.com/wrtradio/v0.3/

The image size is 2.1 MB and include all the need for this project.

The serial interface and other configuration is readymade.

For access to box you have to use ssh and use the default password "wrtradio"

For configure the box you have to edit the file in the /root directory and no other file ;)

/root/startup : For enable lcd, interface, disable wifi (will turn off wifi if you use cable on wan)
/root/lcd: For setup lcd (you have to edit)
/root/interface: For setup knot (you have to edit)
/root/radio: For add radios streams (read the comment in file)

The mpd will autostart and play the radio into /root/radio file. For add radios to /root radio file use this syntax:

mpc_pls http://www.example.com/radio.pls
mpc_pls_multi http://www.example.com/radio.pls (multiple different radio into playlist)
mpc_m3u http://www.example.com/radio.m3u

For add di.fm or sky.fm premium use winamp 256k streams:
TIP: With di.fm or sky.fm premium you can edit playlist online. Edit "My station" playlist ;)

For normal playlist:
mpc_pls http://username:password@www.sky.fm/lis ... xxxxxxxxxx

For My Station playlist:
mpc_pls_multi http://username:password@www.sky.fm/lis ... xxxxxxxxxx

And after restart mpd: /etc/init.d/mpd restart

If you have openwrt into box make a backup of your configuration and use mtd for flash:

cd /tmp
wget http://www.sandrofabbro.com/wrtradio/v0 ... uashfs.trx
mtd unlock linux
mtd -r write openwrt-brcm-2.4-squashfs.trx linux

The box will update and reboot. Please wait until finish.

If you don't have openwrt installed use tftp procedure
emoon
Posts: 8
Joined: Thu Feb 18, 2010 7:32 am

Re: Wrtradio firmware v0.3!

Post by emoon »

Hey ilinux,
This is good stuff, thanks.

One question - I'm guessing you didn't compile the kernel with either vfat or cifs as options (either <*> or <M> in the menuconfig). Is that correct?
I believe that unless you have them selected, the kernel compile doesn't pull in nls-base, and therefore if you add them as packages from the repository at openwrt, they won't install properly. This leads to the following error:

Code: Select all

root@wrtradio:~# insmod cifs
insmod: unresolved symbol load_nls
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Wrtradio firmware v0.3!

Post by ilinux »

This firmware is a very lite build that allow only internet radios.
emoon
Posts: 8
Joined: Thu Feb 18, 2010 7:32 am

Re: Wrtradio firmware v0.3!

Post by emoon »

ilinux wrote:This firmware is a very lite build that allow only internet radios.

Yeah, my post was more of a notice to others that other modules/packages may require a recompile. It took me a bit to track down why I was getting that error.

Thanks.
regiscruzbr
Posts: 16
Joined: Fri Jul 24, 2009 10:54 pm

Re: Wrtradio firmware v0.3!

Post by regiscruzbr »

That was Wonderful, excellent job ilinux!!!
:D
Thanks
mtennant
Posts: 27
Joined: Sun Jul 04, 2010 9:46 am

Re: Wrtradio firmware v0.3!

Post by mtennant »

ilinux, many thanks for making your firmware. It is excellent.

I have used it to create a minimal cost radio with portable capabilities.

First of all, I found a super cheap dual 5v USB power source with a built-in lithium battery for portable use.

See http://www.walmart.com/ip/Music-Power-E ... ry/5750793 It works with my system when plugged into the wall and also when it is unplugged. I've gotten about two hours of play time off the included battery. I consider it a great find with multiple uses for various devices.

I use a set of USB powered speakers (from an old eMachines desktop computer) and a modified power cable with a USB connector for the WL-520gu power source.

My USB audio device is a 7.1 surround sound adapter with the volume up/down and mic/speaker mute buttons. I got it cheap from Hong Kong off eBay.

I'm using my iPhone as a control device running the MPoD app. I also have the Music Player Minion add-on for Firefox. My favorite station is Radio Paradise. What a wonderful mix of music.

I don't plan on adding the LCD display outlined here, but would really like to install the 1-Button internet radio player solution that Cyk disclosed in his comments here:

http://mightyohm.com/blog/2009/02/build ... g-control/

I tried installing the scripts he posted, but they did not work for me.

ilinux, have you tried to implement the 1-Button internet radio player using your firmware v0.3? Even better, how about a version that takes advantage of the four buttons found on the USB audio adapter I'm using?

Perhaps this could be v0.4??

Many thanks to all that have contributed to this most worthy project.
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Wrtradio firmware v0.3!

Post by ilinux »

Hi to all,

@Jeff (mightyohm): I think that can be usefull a post where all remote control software are index

@mtennant

I don't have any tuning control like the original project. I use a wireless mouse for change from stations and any lcd (I've a wl500 gp v2)

For install tuning control I think you have to edit those file that you can find in /root

/root/startup : It runs all need script for wrtradio . Uncomment the line /root/interface

/root/interface : It runs all interface that can interface with mpd and is a empty for allow users to edit it as user want.

"ilinux, have you tried to implement the 1-Button internet radio player using your firmware v0.3? Even better, how about a version that takes advantage of the four buttons found on the USB audio adapter I'm using?"

This is not more clear for me I don't understand. Do you want to use usb button like a remote control via usb? Or what?

I don't have any 0.4 moment until september or after. I've to switch to blackfire or upgrade the kamikaze and find if is enough small to fit into wl520 that more user have in this forum. (I have a WL500GP V2 that have more flash)

I'm happy that my firmware was usefull for your so Happy Hacking :D
chicknking
Posts: 2
Joined: Fri Nov 05, 2010 9:14 am

Re: Wrtradio firmware v0.3!

Post by chicknking »

Hey guys, i am new to this project
I configured LAN and WLAN on my Asus WL-520GU and i used your firmware (wrtradio v0.3)

Now my question: are the drivers (usb,...) , mpc and mpd already installed or
must i do the step MightyOhm page 5 (http://mightyohm.com/blog/2008/11/build ... ome-noise/)

And finally, sorry about my english :)
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Wrtradio firmware v0.3!

Post by ilinux »

Hi,

Thanks for install this firmware...Mpd and mpc are already installed. You have to change the radio file /root/radio like explain in the first post.

Edit /root/radio file using the text editor "vi" :

Code: Select all

#!/bin/sh

mpc_pls http://www.example.com/radio.pls
mpc_pls_multi http://www.example.com/radio.pls (multiple different radio into playlist)
mpc_m3u http://www.example.com/radio.m3u
User avatar
gerben
Posts: 164
Joined: Sat Oct 16, 2010 8:41 am
Location: Netherlands

Re: Wrtradio firmware v0.3!

Post by gerben »

@mtennant
check my post for how to control playback using the one ez-setup button:
viewtopic.php?f=2&t=247
It doesn't do volume controle, but does playnext, playprev, play first, stop. It however faily easy to add new commands.
Post Reply