Skip to content

Commit

Permalink
Issue 20: Additonal packages for Buildroot ver. 2011.11
Browse files Browse the repository at this point in the history
1. Added startup script and ALSA state configuration file for Beagleboard-xM;
2. Added gzip compression for RootFS image.
  • Loading branch information
Max Galemin committed Mar 3, 2012
1 parent 1610837 commit 06eb403
Show file tree
Hide file tree
Showing 4 changed files with 870 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/beagle_xm_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttyO2"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_PORTMAP=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_TAR_GZIP=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="omap3_beagle"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.0"
Expand Down
1 change: 1 addition & 0 deletions configs/beagle_xm_full_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ BR2_PACKAGE_MODULE_INIT_TOOLS=y
BR2_PACKAGE_DSP_TOOLS=y
BR2_PACKAGE_NANO=y
BR2_PACKAGE_VIM=y
BR2_TARGET_ROOTFS_TAR_GZIP=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="omap3_beagle"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.0"
Expand Down
32 changes: 32 additions & 0 deletions fs/skeleton/etc/init.d/S30alsa
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
#
# Start the ALSA.
#

# Make sure the alsactl progam exists
[ -f /usr/sbin/alsactl ] || exit 0

ALSA_BB_XM_STATE=/var/lib/alsa/asound-bb-xm.state

case "$1" in
start)
echo -n "Starting ALSA... "
/usr/sbin/alsactl -f $ALSA_BB_XM_STATE restore
echo "done."
;;
stop)
echo -n "Stopping ALSA... "
/usr/sbin/alsactl -f $ALSA_BB_XM_STATE store
echo "done."
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo $"Usage: $0 {start|stop|restart|reload}"
exit 1
esac

exit $?

Loading

0 comments on commit 06eb403

Please sign in to comment.