BUGbase sound
From BUG Wiki
The BUGbase has more robust sound support as of R1.2 of the rootfs and kernel. The instructions below assume that you've already upgraded your kernel and rootfs to R1.2 (or higher). If not, please see Flash Your MMC Card to upgrade your rootfs, then Kernel Flashing.
Manually loading the bug_audio Kernel Module
- Boot your BUG
- Get to a console by using either telnet or ssh
- modprobe the bug_audio module
# /sbin/modprobe bug_audio
- Load some fun audio files onto your BUG either by popping your MMC into your host computer or SCP
$ scp my_fun_audio.mp3 root@10.10.10.10:/root $ scp my_fun_audio.wav root@10.10.10.10:/root
- Set up your alsa mixer and volume controls
# amixer -c 0 cset iface=MIXER,name='Master Playback Volume',index=0 127 # amixer set Master 127 # aplay /root/my_fun_audio.wav # madplay /root/my_fun_audio.mp3
Automagically load the bug_audio Kernel Module
- Boot your BUG
- Get to a console by using either telnet or ssh
- Edit your rc.local file
# vi /etc/rc.d/rc.local
- Add the following lines in bold:
... /sbin/modprobe bmi_gps /sbin/modprobe bmi_motion /sbin/modprobe bug_camera /sbin/modprobe bug_v4l2_capture /sbin/modprobe bmi_camera_ov2640 /sbin/modprobe bmi_lcd_core /sbin/modprobe bmi_mdacc /sbin/modprobe bug_audio /usr/bin/amixer -c 0 cset iface=MIXER,name='Master Playback Volume',index=0 127
- Wham you're done. Reboot to test out.
