OpenWrt Forum Archive

Topic: Router for mpd like Asus WL 500g

The content of this topic has been archived between 1 Apr 2018 and 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

tobbes wrote:

Hi mpd-mini is installed over trunk packages over backfire rc4 without error messages.

But now I get an error like this:

root@OpenWrt:~# /etc/init.d/mpd start

Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 128
  Mono:
  Front Left: Playback 40 [31%] [0.00dB] [on]
  Front Right: Playback 40 [31%] [0.00dB] [on]
BusyBox v1.15.3 (2010-11-11 23:54:31 PST) multi-call binary

Usage: nice [-n ADJUST] [PROG [ARGS]]

Run PROG with modified scheduling priority

Options:
    -n ADJUST    Adjust priority by ADJUST

/etc/rc.common: line 78: service_start: not found

Could I fix this? (Maybe opkg upgrade on trunk...?)

Thanks for helping me!
Tobbes

replace content of the /etc/init.d/mpd file with this https://dev.openwrt.org/browser/branche … s/mpd.init

Thank you flux!
I have changed the /etc/init.d/mpd file.

Now I get this:
root@OpenWrt:/usr/bin# /etc/init.d/mpd start
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 128
  Mono:
  Front Left: Playback 40 [31%] [0.00dB] [on]
  Front Right: Playback 40 [31%] [0.00dB] [on]
/usr/bin/mpd: can't resolve symbol 'pipe2'

The binary file /usr/bin/mpd exists.

Can I do something?

tobbes wrote:

Thank you flux!
I have changed the /etc/init.d/mpd file.

Now I get this:
root@OpenWrt:/usr/bin# /etc/init.d/mpd start
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 128
  Mono:
  Front Left: Playback 40 [31%] [0.00dB] [on]
  Front Right: Playback 40 [31%] [0.00dB] [on]
/usr/bin/mpd: can't resolve symbol 'pipe2'

The binary file /usr/bin/mpd exists.

Can I do something?

no. A binary from the trunk is not supposed to work with the backfire.

Hello flux,

an upgrade from backfire rc4 to trunk via opkg upgrade will not work or do you think I should try it?

Tobbes

tobbes wrote:

Hello flux,

an upgrade from backfire rc4 to trunk via opkg upgrade will not work or do you think I should try it?

Tobbes

NEVER do opkg upgrade. It won't work!

Hello tobbes,
did you make it work on the asus wl 600 g? I bought the same router to put the mpd on it. I could flash it with this version of openwrt : http://downloads.openwrt.org/backfire/1 … fs-cfe.bin (from the wiki page of this router). My first problem occures now while putting the entire thing into the client mode. I think the problem is the b43 driver that doesn't support this mode.Which image of openwrt did you put on your router and could you finally configure it to make a wifi radio with mpd work?

Regards.
Nicolas

Hi EUM,
I was not able to use the box as wifi radio. MPD was always stopping for seconds ...

The wifi config I have done in the web menu of the router. I was also not able to do it in the terminal.

Sorry but this will not help you.

Now I use a Synology NAS for mp3 streaming and wifi radio. (For mpd my DS 108J is also to weak - so I use the DS Audio app.)
But I am looking forward to buy a DS 111 ....

Tobbes

(Edited)
Hi, I think to use this router as a wifi radio should be possible, and without extroot. I'm using a diferent router but with almost the same hardware and it works quite fine.

The problem here is the flash and RAM size, they are too small capacity. I've built Openwrt Backfire for this router without lot of the default stuff:

- without sshd (dropbear)
- without luci
- without dnsmask (dhcp server)
- without iptables, no firewall
- without other minor stuff

- with OHCI and EHCI modules
- with support for mounting storage drives (vfat or ext2)
- support for telnet logging with password
- with alsa and alsalib (libasound), mpd already configured with alsa
- with amixer
- with mpc
- with other minor stuff (playlist, etc).

It should fit in a 4 MiB flash chip.

I've included all the required packages to play internet radios. To configure you must set manually an IP in your computer in the range 192.168.1.x
then telnet 192.168.1.1 and configure Openwrt with the text editor vi

vi /etc/config/wireless
vi /etc/config/network

This can be called a "dumb" wifi-radio. Some stuff is already preconfigured. The wifi interface is prepared to act as a wifi client, you only need to edit /etc/config/wireless, and put your wep key and AP name you connect to. The wifi interface is separated from lan (192.168.1.1). Of course you can configure however you want, but remember you don't have iptables, as a result of this no complex network configurations are allowed.

Ok this is just for testing. Some feedback is welcome, post your dmesg, cpu usage, or any issues you have. I don't own this router so I don't know if this custom firmware will work.

WL600g_Backfire_10.03.2_wifiradio3.zip

The above firmware maybe compatible with other bcm6348 routers.

(Last edited by danitool on 6 Oct 2012, 19:12)

danitool wrote:

(Edited)
Hi, I think to use this router as a wifi radio should be possible, and without extroot. I'm using a diferent router but with almost the same hardware and it works quite fine.

The problem here is the flash and RAM size, they are too small capacity. I've built Openwrt Backfire for this router without lot of the default stuff:

- without sshd (dropbear)
- without luci
- without dnsmask (dhcp server)
- without iptables, no firewall
- without other minor stuff

- with OHCI and EHCI modules
- with support for mounting storage drives (vfat or ext2)
- support for telnet logging with password
- with alsa and alsalib (libasound), mpd already configured with alsa
- with amixer
- with mpc
- with other minor stuff (playlist, etc).

It should fit in a 4 MiB flash chip.

I've included all the required packages to play internet radios. To configure you must set manually an IP in your computer in the range 192.168.1.x
then telnet 192.168.1.1 and configure Openwrt with the text editor vi

vi /etc/config/wireless
vi /etc/config/network

This can be called a "dumb" wifi-radio. Some stuff is already preconfigured. The wifi interface is prepared to act as a wifi client, you only need to edit /etc/config/wireless, and put your wep key and AP name you connect to. The wifi interface is separated from lan (192.168.1.1). Of course you can configure however you want, but remember you don't have iptables, as a result of this no complex network configurations are allowed.

Ok this is just for testing. Some feedback is welcome, post your dmesg, cpu usage, or any issues you have. I don't own this router so I don't know if this custom firmware will work.

WL600g_Backfire_10.03.2_wifiradio3.zip

The above firmware maybe compatible with other bcm6348 routers.

Wow, thank you very much Danitool for trying this!!!

I have been searching for this for a while. I bought 4 Asus WL-HDD routers when a local store was clearing them out. I have been running Oleg firmware on one for almost 3 years. The unit is quite slow in today's standard, but I don't use it as my main router, I basically use it for BT stuff.

A few days ago, I happened to see a clip on YouTube on how to make Wifi Radio, I thought I could give these WL-HDDs new livies again, so I unwraped another one, and started to explore...

Unfortunately the firmware from mightyohm doesn't work, also the one called "wrtradio0.3" didn't work either. I have tried to put Backfire brcm47xx or brcm-2.4 on it, both are running fine. Especially the Backfire brcm-2.4, following the wiki, I got everything running smoothly. For those having WL-HDD and want to run Backfire, I highly recommend the brcm-2.4 build.

But the issue is, after loading the Backfire, there ares not a lot of space left on the device (only 4M of rom), so I can't install mpd. WL-HDD has only one USB 1.1 port, so I can't use it for additional storage. I also don't want to install an internal 2.5" IDE HDD (which is possible with WL-HDD), because of the noise and the fact that the Wifi Radio will be used by everyone in my family, except me, no one will be bothered to shut it down properly, so the internal HDD will be so corrupted before I know it.

Last night, I found the firmware you posted, and I gave it a try today on my WL-HDD with Asus Restoration Tool. At first, the tool doesn't like the .BIN file type, so I tried to be smart, rename it to .TRX file which is the type for WL-HDD, but the tool still doesn't like it, gave me some weird error message.

I am planning to install the lastest Ubuntu and try to compile Backfire and mpd/mpc myself, but it will take a while before it can be realized. Meanwhile, I am wondering if you can help by complie your image again for WL-HDD? I can help the community by testing it.

Thank You In Advanced! (this is really long, isn't it?)

Fish

Well my firmware isn't for bcm47xx targets, it is for bcm63xx targets. Well, we can try to build backfire for your target to fit in a 4MiB flash, it shouldn't be so difficult.

Regards.

danitool wrote:

Well my firmware isn't for bcm47xx targets, it is for bcm63xx targets. Well, we can try to build backfire for your target to fit in a 4MiB flash, it shouldn't be so difficult.

Regards.

Much appreciated!!!

I read very little about how to compile firmware. I know my WL-HDD is using a different CPU than wl-500g, but I thought I should give it try anyways.

I don't know much about WL-HDD hardware. However this is an attempt to build it for bcm47xx target. I suppose it uses bcm43-legacy drivers, I didn't include stuff for mounting external hard drives, and switch since this device only has 1 eth. Nor preconfigured nothing for the network, do it yourself, remember to use vi to edit the proper files. Let me know if works or not, or if you have any issues.

WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio.zip

And post a bootlog if possible.

Maybe I'll try later to build the  brcm-2.4 target for this device.



EDIT:
Since I'm not sure which are the correct drivers I've built it again withou b43legacy, but with b43 instead. Let me know which one works.
WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio2.zip

(Last edited by danitool on 8 Nov 2012, 17:27)

danitool wrote:

I don't know much about WL-HDD hardware. However this is an attempt to build it for bcm47xx target. I suppose it uses bcm43-legacy drivers, I didn't include stuff for mounting external hard drives, and switch since this device only has 1 eth. Nor preconfigured nothing for the network, do it yourself, remember to use vi to edit the proper files. Let me know if works or not, or if you have any issues.

WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio.zip

And post a bootlog if possible.

Maybe I'll try later to build the  brcm-2.4 target for this device.



EDIT:
Since I'm not sure which are the correct drivers I've built it again withou b43legacy, but with b43 instead. Let me know which one works.
WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio2.zip

Hi Dani, thank you for the effort you put into this. I have tried both of them. The second one (wifiradio2.zip) flashes successfully through Asus Restoration Tool, but the unit goes back to Recovery mode right after it reboots. So looks like it doesn't work.

Now the first one(wifiradio.zip) lets the unit boot successfully after the flash, and I can log into 192.168.1.1, but /etc/config/wireless is empty (is this on purpose?); I managed to create one and then tried to enable it using command "wifi", but received some error messages, too bad I didn't note it down (I closed the terminal window by accident), it's something like device 'wl0' (type 'broadcom') not supported.. ... Since I tried both brcm47xx and brcm-2.4 Backfire before, I kind of remember in brcm47xx, it uses device name 'radio0' for wirelss, so I changed the /etc/config/wireless again to reflect that, but the result is the same, except this time it complains about device 'radio0' ... ... I don't know how to capture a bootlog, or I will post it here.

You said you didn't include stuff for switch, don't I need it to route between client and wireless AP? If space permit, can you just leave it there?

My personal experience is that brcm-2.4 is more stable on these WL-HDD units, so I hope one day I can test a build targeting brcm-2.4 on these units.

Thanks again. Even it didn't work, at least we started, and I am truely happy that I have something to try out on these WL-HDDs.

Fish

(Last edited by TorontoFish on 9 Nov 2012, 20:36)

Finally build an Backfire image for my Asus WL-HDD! It turned out, I only had to take out Dropbear and Luci from the default selection. The final 2.4 image is about 3.3M in size, with all USB / Sound and mpd-mini support in it.

If anyone wants to give it a try, let me know, I will then post it here.

Thanks,

Fish

TorontoFish wrote:

Finally build an Backfire image for my Asus WL-HDD! It turned out, I only had to take out Dropbear and Luci from the default selection. The final 2.4 image is about 3.3M in size, with all USB / Sound and mpd-mini support in it.

If anyone wants to give it a try, let me know, I will then post it here.

Thanks,

Fish

Hi,

Could you please post your wifi radio image? I'd like to try it.

Thanks.

danitool wrote:

(Edited)
Hi, I think to use this router as a wifi radio should be possible, and without extroot. I'm using a diferent router but with almost the same hardware and it works quite fine.

The problem here is the flash and RAM size, they are too small capacity. I've built Openwrt Backfire for this router without lot of the default stuff:

- without sshd (dropbear)
- without luci
- without dnsmask (dhcp server)
- without iptables, no firewall
- without other minor stuff

- with OHCI and EHCI modules
- with support for mounting storage drives (vfat or ext2)
- support for telnet logging with password
- with alsa and alsalib (libasound), mpd already configured with alsa
- with amixer
- with mpc
- with other minor stuff (playlist, etc).

It should fit in a 4 MiB flash chip.

I've included all the required packages to play internet radios. To configure you must set manually an IP in your computer in the range 192.168.1.x
then telnet 192.168.1.1 and configure Openwrt with the text editor vi

vi /etc/config/wireless
vi /etc/config/network

This can be called a "dumb" wifi-radio. Some stuff is already preconfigured. The wifi interface is prepared to act as a wifi client, you only need to edit /etc/config/wireless, and put your wep key and AP name you connect to. The wifi interface is separated from lan (192.168.1.1). Of course you can configure however you want, but remember you don't have iptables, as a result of this no complex network configurations are allowed.

Ok this is just for testing. Some feedback is welcome, post your dmesg, cpu usage, or any issues you have. I don't own this router so I don't know if this custom firmware will work.

WL600g_Backfire_10.03.2_wifiradio3.zip

The above firmware maybe compatible with other bcm6348 routers.


Hello! I have a WL520GU already configured as a radio and it works great. I also have a WL600G and I tried to configure it as a radio using the same steps as for the WL520GU, but I failed. Then I found this post and tried to download your zip file from MyOpera and found a dead link. Can you please provide a new download link for the file, so I can have one more try with my router? Thank you very much!

Hi, here you have
https://drive.google.com/file/d/0B-EMoB … sp=sharing
But this firmware probably won't work with a usb1.1 audio card, it must be USB2.0. If you have an USB1.1 sound card you can plug a usb2.0 hub between the router and the sound card to make it work.

BTW nobody tested the firmware, I can't say if it at least will boot ok.

danitool wrote:

Hi, here you have
https://drive.google.com/file/d/0B-EMoB … sp=sharing
But this firmware probably won't work with a usb1.1 audio card, it must be USB2.0. If you have an USB1.1 sound card you can plug a usb2.0 hub between the router and the sound card to make it work.

BTW nobody tested the firmware, I can't say if it at least will boot ok.

Thank you very much. Your firmware booted just fine and telnet also works. I changed the config files to connect to my network, and again, every thing was ok. The soundcard powered-up only through a USB-hub, just as you said, but mpd does not recognize it. It reports an error with the oss device declared in the mpd.conf file, it has no plugin for it. I have to find out what kind of chip my soundcard has and find that plugin for it.
Anyway, until now I was unable to install mpd, due to low space warnings, so your firmware is a great step forward. Now it's my job to read more about this new problem and find a solution.
Once again, thank you!

danitool wrote:

Hi, here you have
https://drive.google.com/file/d/0B-EMoB … sp=sharing
But this firmware probably won't work with a usb1.1 audio card, it must be USB2.0. If you have an USB1.1 sound card you can plug a usb2.0 hub between the router and the sound card to make it work.

BTW nobody tested the firmware, I can't say if it at least will boot ok.

Could you send or list the packages for your wl600G netradio firmware?
I trying build image for wl500G (4MiB) with alsa, mpc, mpd based your description. Now the firmware is 4,3MiB, it is too big.
******************
Configuring libc.
Configuring libogg.
Configuring libtheora.
Configuring opkg.
Configuring kernel.
Configuring kmod-usb-core.
Configuring librt.
Configuring libpthread.
Configuring kmod-input-core.
Configuring kmod-sound-core.
Configuring alsa-lib.
Configuring busybox.
Configuring glib2.
Configuring wireless-tools.
Configuring kmod-wlcompat.
Configuring libvorbisidec.
Configuring zlib.
Configuring libopenssl.
Configuring libcurl.
Configuring kmod-diag.
Configuring kmod-ppp.
Configuring kmod-pppoe.
Configuring kmod-ipt-core.
Configuring kmod-ipt-conntrack.
Configuring base-files.
Configuring libmms.
Configuring libaudiofile.
Configuring kmod-switch.
Configuring kmod-usb-ohci.
Configuring libflac.
Configuring libspeex.
Configuring libmpdclient.
Configuring mpc.
Configuring libfaad2.
Configuring libmad.
Configuring libvorbis.
Configuring libshout.
Configuring libid3tag.
Configuring mpd.
Configuring libuci.
Configuring uci.
Configuring mtd.
Configuring kmod-brcm-wl.
Configuring libgcc.
Configuring nvram.
Configuring ppp.
Configuring kmod-lp.
Configuring kmod-ipt-nat.
Configuring kmod-ipt-nathelper.
Configuring wlc.
Configuring nas.
Configuring ppp-mod-pppoe.
*****************************

Hi foldif, I can't remember exactly the packages I used for the build. But essentially I used the ones, as I said previously
- without sshd (dropbear)
- without luci
- without dnsmask (dhcp server)
- without iptables, no firewall
- without other minor stuff

- with OHCI and EHCI modules
- with support for mounting storage drives (vfat or ext2)
- support for telnet logging with password
- with alsa and alsalib (libasound), mpd already configured with alsa
- with amixer
- with mpc
- with other minor stuff (playlist, etc).

BTW the Asus wl500g (brcm47xx) and wl600g (brcm63xx), are different routers. The best option for you is to use the old Openwrt Backfire version for the brcm2.4 target.

You don't need firewall, nor luci, nor dropbear, nor the kmod-ipt-... stuff among other things.

Using more modern versions of Openwrt may also be possible, but the mpd package is fat as a cow in latest versions. You can but using the old 0.13.2 mpd version (you may need port the old mpd for a modern Openwrt version).

Regards.

(Last edited by danitool on 11 Oct 2015, 17:04)

Thanks. I use backfire 2.4. I know the routers different, but i have only 4MiB as wl600g. I use image builder.
I trying. Yes with mpd the size is 4,3M, without 1,9M. I don't need all of libs of mpd, i don't now how inhibit them during image building.

(Last edited by foldif on 11 Oct 2015, 18:15)

Looks like the mpd version in backfire is still too new. You need to downgrade the mpd version to 0.13.2, this can be done in the Makefile of mpd. As an example these are the modifications I made some time ago.

Index: feeds/packages/sound/mpd/Makefile
===================================================================
--- feeds/packages/sound/mpd/Makefile    (revision 33131)
+++ feeds/packages/sound/mpd/Makefile    (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mpd
-PKG_VERSION:=0.16.5
-PKG_RELEASE:=2
+PKG_VERSION:=0.13.2
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=@SF/musicpd
-PKG_MD5SUM:=f7564cff12035f6a1112cce770655df7
+PKG_SOURCE_URL:=http://www.musicpd.org/uploads/files/
+PKG_MD5SUM:=b461896369949ff3cff955692ead9f8b
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_BUILD_PARALLEL:=1
@@ -86,7 +86,6 @@
 
 
 CONFIGURE_ARGS += \
-    $(call autoconf_bool,CONFIG_IPV6,ipv6) \
     --disable-debug \
     --disable-documentation \
     --disable-gprof \
@@ -124,11 +123,8 @@
     \
     --enable-curl \
     --enable-flac \
-    --enable-httpd-output \
     $(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \
-    $(call autoconf_bool,CONFIG_AUDIO_SUPPORT,oss) \
     --enable-tcp \
-    --enable-un \
 
 CONFIGURE_VARS += \
     FLAC_CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/FLAC" \
@@ -169,8 +165,8 @@
 
   # oggflac is not compatible with tremor
   CONFIGURE_ARGS += \
+    $(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \
     --disable-aac \
-    --disable-alsa \
     --disable-audiofile \
     --disable-fifo \
     --disable-ffmpeg \
@@ -184,7 +180,12 @@
     --disable-sndfile \
     --disable-vorbis \
     --disable-vorbis-encoder \
-    --with-tremor=yes \
+    --with-tremor=no \
+    --with-vorbis=no \
+--disable-oggvorbis \
+--disable-ipv6 \
+--disable-oss \
+--disable-flac \
 
 endif
 
@@ -192,9 +193,14 @@
     $(INSTALL_DIR) $(1)/usr/bin
     $(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
     $(INSTALL_DIR) $(1)/etc
-    $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
     $(INSTALL_DIR) $(1)/etc/init.d
     $(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
+    $(INSTALL_DIR) $(1)/etc/wifiradio/playlists #mod
+    $(INSTALL_DATA) ./files/radiostations.m3u $(1)/etc/wifiradio/playlists #mod
+    $(INSTALL_BIN) ./files/mailsend.sh $(1)/etc/wifiradio #mod
+    $(INSTALL_CONF) ./files/mpd.conf $(1)/etc/ #mod
+    $(INSTALL_BIN) ./files/usbplay.sh $(1)/etc/wifiradio #mod
+    $(INSTALL_BIN) ./files/sleep.sh $(1)/etc/wifiradio #mod
 endef
 
 define Package/mpd-full/install

The important parts are, the mpd version, and support for alsa for the mpd mini. I had better results with alsa instead OSS.

Thank you again. It is exciting. I will report about result.

I was not success. No more time to experiment with it.

Please renew files
WL600g_Backfire_10.03.2_wifiradio3.zip
WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio2.zip
WL-HDD_Backfire_bcm47xx_10.03.2_wifiradio.zip
service myopera.com is closed sad

(Last edited by drsmoll on 11 Dec 2015, 09:19)

The discussion might have continued from here.