Personal tools
Mpd mpc
From Qi Hardware
Installation
First, run an update in the OpenWRT source folder:
$ cd openwrt-xburst $ scripts/feeds update
Then, install mpd/mpc and alsa utils:
$ scripts/feeds install alsa-lib $ scripts/feeds install alsa-utils $ scripts/feeds install alsa-utils-tests $ scripts/feeds install mpd $ scripts/feeds install mpc
Configuration
In the openwrt-xburst folder run:
$ make menuconfig
In the Sound menu, enable [mpc] [mpd]. In Base system, enable libstdcpp. Then, run make.
$ make
You will then have mpd/mpc in your rootfs. You need to change /etc/mpd.conf to make mpd work. uncomment :
music_directory "~/music" playlist_directory "~/.mpd/playlists" db_file "~/.mpd/database" log_file "~/.mpd/log" pid_file "~/.mpd/pid" state_file "~/.mpd/state"
add default gateway
$ route add default gw 192.168.1.2
run "alsamixer" enable DAC then you can run those command to play online Radio
$ mpc add http://sc-rly.181.fm:80/stream/1023 $ mpc play
Host side
# ifconfig usb0 192.168.1.2 # modprobe iptable_nat # echo "1" > /proc/sys/net/ipv4/ip_forward # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
