Let’s start gradually exploring the hidden capabilities of our router ). We’ll attach a sound card to it, since it’s hard to imagine a modern PC without a sound card these days.
Now that OpenWrt allows us to install additional packages from a local repository, we will mark all new packages with
The following modules need to be selected during the OpenWrt configuration phase:
Kernel modules:
Sound Support:
Sound:
Installation: root@OpenWrt:/# opkg update
root@OpenWrt:/# opkg install kmod-sound-core kmod-usb-audio madplay
Installing kmod-sound-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-sound-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-input-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-input-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-usb-audio (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-usb-audio_2.6.36-1_brcm47xx.ipk.
Installing madplay (0.15.2b-3) to root...
Downloading ftp://ftp:ftp@192.168.1.9/madplay_0.15.2b-3_brcm47xx.ipk.
Installing libid3tag (0.15.1b-3) to root...
Downloading ftp://ftp:ftp@192.168.1.9/libid3tag_0.15.1b-3_brcm47xx.ipk.
Installing zlib (1.2.5-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/zlib_1.2.5-1_brcm47xx.ipk.
Installing libmad (0.15.1b-3) to root...
Downloading ftp://ftp:ftp@192.168.1.9/libmad_0.15.1b-3_brcm47xx.ipk.
Configuring kmod-input-core.
Configuring zlib.
Configuring libid3tag.
Configuring libmad.
Configuring madplay.
Configuring kmod-sound-core.
Configuring kmod-usb-audio.
Connect the sound card and check its information: root@OpenWrt:/# cat /proc/asound/cards
0 [Set ]: USB-Audio - USB Headphone Set
USB Headphone Set at usb-ssb0:1-1.3, full speed
Listen to music: root@OpenWrt:/# madplay /home/song.mp3
Listen to internet radio: wget -q -O- http://w01-cn01.akadostream.ru:8000/europaplus128.mp3 | madplay -
