|
|
|
@ -696,119 +696,7 @@ sudo mv /tmp/chrome.desktop /usr/share/applications/chrome.desktop
|
|
|
|
|
|
|
|
|
|
latest_chrome
|
|
|
|
|
|
|
|
|
|
cat > ${TEMPDIR}/dsp-init <<dspscript
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
case "\$1" in
|
|
|
|
|
start)
|
|
|
|
|
modprobe mailbox_mach
|
|
|
|
|
modprobe bridgedriver base_img=/lib/dsp/baseimage.dof
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
dspscript
|
|
|
|
|
|
|
|
|
|
cat > ${TEMPDIR}/install-dsp-init.sh <<installDSP
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
DIR=\$PWD
|
|
|
|
|
|
|
|
|
|
if [ \$(uname -m) == "armv7l" ] ; then
|
|
|
|
|
|
|
|
|
|
# if [ -e \${DIR}/dsp_libs.tar.gz ]; then
|
|
|
|
|
|
|
|
|
|
# echo "Extracting target files to rootfs"
|
|
|
|
|
# sudo tar xf dsp_libs.tar.gz -C /
|
|
|
|
|
|
|
|
|
|
if which lsb_release >/dev/null 2>&1 && [ "\$(lsb_release -is)" = Ubuntu ]; then
|
|
|
|
|
|
|
|
|
|
if [ \$(lsb_release -sc) == "jaunty" ]; then
|
|
|
|
|
sudo cp /uboot/boot/tools/dsp/dsp-init /etc/rcS.d/S61dsp.sh
|
|
|
|
|
sudo chmod +x /etc/rcS.d/S61dsp.sh
|
|
|
|
|
else
|
|
|
|
|
#karmic/lucid/maverick/etc
|
|
|
|
|
sudo cp /uboot/boot/tools/dsp/dsp-init /etc/init.d/dsp
|
|
|
|
|
sudo chmod +x /etc/init.d/dsp
|
|
|
|
|
sudo update-rc.d dsp defaults
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
sudo cp /uboot/boot/tools/dsp/dsp-init /etc/init.d/dsp
|
|
|
|
|
sudo chmod +x /etc/init.d/dsp
|
|
|
|
|
sudo update-rc.d dsp defaults
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# else
|
|
|
|
|
# echo "dsp_libs.tar.gz is missing"
|
|
|
|
|
# exit
|
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
echo "This script is to be run on an armv7 platform"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
installDSP
|
|
|
|
|
|
|
|
|
|
cat > ${TEMPDIR}/install-gst-dsp.sh <<installgst
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
DIR=\$HOME
|
|
|
|
|
|
|
|
|
|
function no_connection {
|
|
|
|
|
|
|
|
|
|
echo "setup internet connection before running.."
|
|
|
|
|
exit
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ping -c 1 -w 100 www.google.com | grep "ttl=" || no_connection
|
|
|
|
|
|
|
|
|
|
sudo apt-get -y install git-core pkg-config build-essential gstreamer-tools libgstreamer0.10-dev
|
|
|
|
|
|
|
|
|
|
mkdir -p \${DIR}/git/
|
|
|
|
|
|
|
|
|
|
if ! ls \${DIR}/git/gst-dsp >/dev/null 2>&1;then
|
|
|
|
|
cd \${DIR}/git/
|
|
|
|
|
git clone git://github.com/felipec/gst-dsp.git
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd \${DIR}/git/gst-dsp
|
|
|
|
|
make clean
|
|
|
|
|
git pull
|
|
|
|
|
make CROSS_COMPILE=
|
|
|
|
|
sudo make install
|
|
|
|
|
cd \${DIR}/
|
|
|
|
|
|
|
|
|
|
if ! ls \${DIR}/git/gst-omapfb >/dev/null 2>&1;then
|
|
|
|
|
cd \${DIR}/git/
|
|
|
|
|
git clone git://github.com/felipec/gst-omapfb.git
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd \${DIR}/git/gst-omapfb
|
|
|
|
|
make clean
|
|
|
|
|
git pull
|
|
|
|
|
make CROSS_COMPILE=
|
|
|
|
|
sudo make install
|
|
|
|
|
cd \${DIR}/
|
|
|
|
|
|
|
|
|
|
if ! ls \${DIR}/git/dsp-tools >/dev/null 2>&1;then
|
|
|
|
|
cd \${DIR}/git/
|
|
|
|
|
git clone git://github.com/felipec/dsp-tools.git
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd \${DIR}/git/dsp-tools
|
|
|
|
|
make clean
|
|
|
|
|
git pull
|
|
|
|
|
make CROSS_COMPILE=
|
|
|
|
|
sudo make install
|
|
|
|
|
cd \${DIR}/
|
|
|
|
|
|
|
|
|
|
installgst
|
|
|
|
|
|
|
|
|
|
sudo mkdir -p ${TEMPDIR}/disk/tools/dsp
|
|
|
|
|
sudo mkdir -p ${TEMPDIR}/disk/tools
|
|
|
|
|
sudo cp -v ${TEMPDIR}/readme.txt ${TEMPDIR}/disk/tools/readme.txt
|
|
|
|
|
|
|
|
|
|
sudo cp -v ${TEMPDIR}/update_boot_files.sh ${TEMPDIR}/disk/tools/update_boot_files.sh
|
|
|
|
@ -826,15 +714,6 @@ installgst
|
|
|
|
|
sudo cp -v ${TEMPDIR}/get_chrome.sh ${TEMPDIR}/disk/tools/get_chrome.sh
|
|
|
|
|
sudo chmod +x ${TEMPDIR}/disk/tools/get_chrome.sh
|
|
|
|
|
|
|
|
|
|
sudo cp -v ${TEMPDIR}/dsp-init ${TEMPDIR}/disk/tools/dsp/dsp-init
|
|
|
|
|
sudo chmod +x ${TEMPDIR}/disk/tools/dsp/dsp-init
|
|
|
|
|
|
|
|
|
|
sudo cp -v ${TEMPDIR}/install-dsp-init.sh ${TEMPDIR}/disk/tools/dsp/install-dsp-init.sh
|
|
|
|
|
sudo chmod +x ${TEMPDIR}/disk/tools/dsp/install-dsp-init.sh
|
|
|
|
|
|
|
|
|
|
sudo cp -v ${TEMPDIR}/install-gst-dsp.sh ${TEMPDIR}/disk/tools/dsp/install-gst-dsp.sh
|
|
|
|
|
sudo chmod +x ${TEMPDIR}/disk/tools/dsp/install-gst-dsp.sh
|
|
|
|
|
|
|
|
|
|
cd ${TEMPDIR}/disk
|
|
|
|
|
sync
|
|
|
|
|
cd ${DIR}/
|
|
|
|
|