Wrtradio 0.1 not for 4MB Flash

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 0.1 not for 4MB Flash

Post by ilinux »

Hello everybody,

I've just finish to compile a new firmware with a mpd patched to last version (0.17.5) in the 8.09.1 fimware.

All my work is ready for testing by you if you want.

I change audio server to alsa because with this version mpc volume command wasn't working. In the future the mpc volume will be removed from mpc source and you can use amixer included in the repo.

The file /etc/mpc.conf should have this

audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}

I've also put in the repo some useful packages for mount usb devices and windows sharing (cifs).

I will also add support for hid ir remote (ir remote seen like a usb keyboard).

All the work is under CC licence.

Some other info about mpd
Supported decoders:
[mad] mp3 mp2
[vorbis] ogg oga
[flac] flac
Supported outputs:
shout null fifo alsa oss httpd
Supported protocols:
file:// http:// lastfm:// mms:// mmsh:// mmst:// mmsu://

Useful changelog of mpd is in the NEWS file here:
https://sourceforge.net/projects/musicp ... 2/download

Let me know if all is ok, i've test the mpd /mpc with slay radio and works ;)

@MigthyOhm and all

If you want share a creation of ready firmware with all included (mpd,mpc,sound server,ecc...)

All this is at:
http://www.sandrofabbro.com/wrtradio/
Last edited by ilinux on Sun Feb 07, 2010 3:01 am, edited 1 time in total.
regiscruzbr
Posts: 16
Joined: Fri Jul 24, 2009 10:54 pm

Re: New firmware compiled & for testing!

Post by regiscruzbr »

Very nice job ilinux!!!

I had try upgrade my mpd about hundred times, but I don't have the necessaries skills to build my own package. Than I concentrate my little free time on the hardware interface to my radio, I hope show it for you guys soon.
I'm very excited to test your version.

Thanks, thanks, thanks!!!
:D
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: New firmware compiled & for testing!

Post by mightyohm »

ilinux -

Wow, nice job! I know a lot of people will be excited to try out the new version of mpd.

How much free space is available on your router (WL-520gU?) with ALSA and the new mpd / dependencies installed?
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: New firmware compiled & for testing!

Post by ilinux »

Hi Jeff,

This is steps I follow after flashing:

Add this repo and comment the openwrt default:
src/gz snapshots http://www.sandrofabbro.com/wrtradio/v0.1/packages

root@wrtradio:/# opkg update
root@wrtradio:/# opkg install kmod-usb-ohci kmod-alsa kmod-sound-core alsa-utils alsa-lib mpd mpc ntpclient

(maybe alsa-utils is not necessary but alsa-lib yes because mpd cannot play for libasound2.so error :D )

root@wrtradio:/# df -h / && df -h /jffs/
Filesystem Size Used Available Use% Mounted on
mini_fo:/jffs 1.4M 1.4M 0 100% /
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock/4 5.9M 4.0M 1.9M 68% /jffs

There also some other packages like usb storage if someone need and cifs module utils for mount samba / windows filesharing

I've tested mp3 streaming and lastfm and work. I've some problem with mms like streaming (maybe il libmms5 buggy I don't know :evil: )
Last edited by ilinux on Mon Jan 18, 2010 11:11 pm, edited 2 times in total.
eli2k
Posts: 22
Joined: Mon Jul 27, 2009 12:38 am

Re: New firmware compiled & for testing!

Post by eli2k »

Is this the proper way to mount windows shares?

Code: Select all

mount -t cifs //10.0.0.100/some_share /mnt/cifs -o username=shareuser,password=sharepassword,domain=nixcraft
What do you do if there is no username/password or domain?
andn
Posts: 4
Joined: Sat Jan 16, 2010 12:18 pm

Re: New firmware compiled & for testing!

Post by andn »

Hi Jeff, hello everybody!

This is a great project, I'm really amazed. Thank you.

Trying to set up my 500 gP with the new build by ilinux, have some difficulties to master. Some of them are quite strange to me for which I couldn't find any help on the net. I'll try to describe it. Hope you'll be patient (my first forum post in english).

1. Opkg errors due to architecture compatibility. My opkg.conf:
Hashed repos are earlier trials to get them right. Cannot install anything by direct links too.

2. Most important to me: no go with streaming at 128 kbit. Connection is right, but no output. The same thing with files stored on the memory. Is it possible that my soundcard can't handle it? Should the connection not break if the decoder isn't able to manage the stream?

3. Volume control isn't working. Actually it works but in a strange manner: mpc volume n/a, alsamixer only very limited (full or at 10% almost full volume). The config is taken from mpd site:
  • audio_output {
    type "alsa"
    name "My alsa Device"
    device "mpdvol" # optional
    ## format "44100:16:2" # optional

    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    }

    mixer_type "alsa"
    mixer_device "mpdvol"
    mixer_control "MPD"
http://mpd.wikia.com/wiki/Configuration ... me_control

4. Obviously I'm doing something wrong trying to compile the svn. The router just blinks with its power led, no telnet. At last can reflash it with no problems. With no serial cable can't check the boot listing. Frustrating.

Even dough it's a really, really nice project, which I want to push forward with building an simple but good gainclone amp and speakers, remote.


Thanks for any help.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: New firmware compiled & for testing!

Post by mightyohm »

Are you using a 500gP or a 500gP v2? Easiest way to tell is if the wifi card is a separate plugin module in the router. The code that ilinux posted should work on the v2, but probably not the original since it uses a different wifi chipset. This might explain the opkg problems.

Definitely get a serial cable if you plan to spend any time flashing / debugging different firmware builds. You are working blind without one.
andn
Posts: 4
Joined: Sat Jan 16, 2010 12:18 pm

Re: New firmware compiled & for testing!

Post by andn »

Thank you for reply. The thing is I have the v1, wi-fi works great on ilinuxes build. Still can't find a workaround for that mess with repos, but I'm desperatly working on it.

By the way: ever heard of slimserver or firefly media server?
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: New firmware compiled & for testing!

Post by mightyohm »

What error message are you getting from opkg?

Have you tried asking over on the OpenWrt forums? Maybe a search over there will turn up the answer.

I have heard of both firefly and slimserver, but I have no experience with either. My primary goal for the wifi radio was to listen to shoutcast streams. Once I got that working I put the radio into regular use and haven't needed to change anything since. :) I know a lot of people are interested in getting those apps working on the 520gu, so if you do make any progress, please post back here.
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: New firmware compiled & for testing!

Post by ilinux »

Hello,

This is my /etc/opkg.conf:

#src/gz snapshots http://downloads.openwrt.org/snapshots/ ... 4/packages
src/gz snapshots http://www.sandrofabbro.com/wrtradio/v0.1/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs

For /etc/mpd.conf:

music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}

This is the alsamixer with c-media soundcard
Image
Post Reply