Latest openwrt trunk with older version mpd 0.13.2 works

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
cj6666
Posts: 24
Joined: Fri Apr 24, 2009 8:01 am

Latest openwrt trunk with older version mpd 0.13.2 works

Post by cj6666 »

Hi,

I finally figure out how to compile with the recent release of openwrt (r19501) to make an image for WiFi radio. And I can confirm that mpd 0.15 bring in quite a bit of libraries (glib2 for example), and the compiled image won't fit into the 4MB ROM (the image size is about 3.8MB, but I think anything more than 3.5MB is problem) . So the trick is to go into feeds/packages/sound/mpd directory and replace the makefile with older version of makefile. The makefile contain instruction of how to install source code and dependency of libraries. One can go into dev.openwrt.org to retrieve older version of makefile. For my case, the makefile for mpd-0.13.2.

The compiled image is about 2.5MB and is working nicely as WiFi radio now.

Thought I share in case someone is also trying to compile their own.
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Latest openwrt trunk with older version mpd 0.13.2 works

Post by ilinux »

Thanks for sharing,

The glib2 is request from newer version of mpd because:

From mpd site:

Glib

Glib was added to remove old MPD code which had been mostly unmaintained and probably improperly factored in the first place. This dependency addition creates a more stable MPD while decreasing MPD maintenance.

The problem is that this lib are circa 500 Kb and is an uge size for a device with only 4 Mb. My firmware il made for run on a Asus wl500gp2 that have a bigger memory for firmware.

@MightyOhm

We should make a faq for those that select to rebuild the firmware and note this "problem"
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Latest openwrt trunk with older version mpd 0.13.2 works

Post by mightyohm »

ilinux - I didn't realize you were targetting the WL-500. This explains how you are able to run mpd 0.15 without running out of flash like the others who have tried.

There isn't a FAQ as of yet... All it takes is for someone to create a post labeled "Frequently asked questions" in the forum. <hint hint> :D

Oh yeah, and now we have a wiki too!
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Latest openwrt trunk with older version mpd 0.13.2 works

Post by ilinux »

My device is a WL500GP2 and I have 8 Mb of flash if I'm not in wrong.

I tought that where the same flash or above...So my first build was based on updated version of mpd and after test on my device I pubblish.

For the future I will use mpd 0.13.2 because mpd need glib2.

If openwrt will add mplayer I hope that will fit in all asus and will work with aac also.

For the moment I will use mpd 0.13.2 also because the addons non work (mms support) and I don't need lastfm.

In the future if the project make mpd work with aac and mms I will build this mpd version and an 0.13.2 version

I fix all links on forum and say that firmware v0.1 is for upper 4MB but I would don't delete if from my site :lol:

Thanks to this project
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Latest openwrt trunk with older version mpd 0.13.2 works

Post by mightyohm »

ilinux -

Thanks for contributing your firmware!

I also use 0.13 because I had issues with later versions, beyond just the glib bloat. 0.13 works for me, so why change? :)

I listen to only shoutcast anyway...
Post Reply