无线路由器刷Openwrt挂USB声卡播放MP3
我的无线路由是db120-wg刷db120-openwrt.org.cn-backfire-10.03.166-mini-0620.bin中文版openwrt1、修改软件包源 ,指向openwrt中文网
vi /etc/opkg.conf
#src/gz packages http://downloads.openwrt.org/backfire/10.03/brcm63xx/packages
src/gz packages http://www.openwrt.org.cn/downlo ... 3/brcm63xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
2、安装USB声卡驱动
oot@OpenWrt:/# opkg install kmod-usb-audio
Installing kmod-usb-audio (2.6.32.10-1) to root...
Downloading http://www.openwrt.org.cn/downlo ... .10-1_brcm63xx.ipk.
Installing kmod-sound-core (2.6.32.10-1) to root...
Downloading http://www.openwrt.org.cn/downlo ... .10-1_brcm63xx.ipk.
Installing kmod-input-core (2.6.32.10-1) to root...
Downloading http://www.openwrt.org.cn/downlo ... .10-1_brcm63xx.ipk.
Configuring kmod-input-core.
Configuring kmod-sound-core.
Configuring kmod-usb-audio.
root@OpenWrt:/# ls dev
audio
dsp
显示audio、dsp表示声卡安装成功
3、安装播放器
madplay播放器从英文网安装 修改opkg.conf
vi /etc/opkg.conf
src/gz packages http://downloads.openwrt.org/backfire/10.03/brcm63xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/bac ... ckages/Packages.gz.
Inflating http://downloads.openwrt.org/bac ... ckages/Packages.gz.
Updated list of available packages in /var/opkg-lists/packages.
root@OpenWrt:/# opkg install madplay
Installing madplay (0.15.2b-3) to root...
Downloading http://downloads.openwrt.org/bac ... .2b-3_brcm63xx.ipk.
Installing libid3tag (0.15.1b-3) to root...
Downloading http://downloads.openwrt.org/bac ... .1b-3_brcm63xx.ipk.
Installing libmad (0.15.1b-3) to root...
Downloading http://downloads.openwrt.org/bac ... .1b-3_brcm63xx.ipk.
Configuring libid3tag.
Configuring libmad.
Configuring madplay.
播放mp3
root@OpenWrt:/# madplay /mnt/usb/*
简易方法
opkg install http://www.openwrt.org.cn/downlo ... 2.10-1_brcm63xx.ipk
opkg install http://www.openwrt.org.cn/downlo ... 2.10-1_brcm63xx.ipk
opkg install http://www.openwrt.org.cn/downlo ... 2.10-1_brcm63xx.ipk
opkg install http://downloads.openwrt.org/bac ... 5.1b-3_brcm63xx.ipk
opkg install http://downloads.openwrt.org/bac ... 5.1b-3_brcm63xx.ipk
opkg install http://downloads.openwrt.org/bac ... 5.2b-3_brcm63xx.ipk
madplay /mnt/usb/*
页:
[1]