2010-03.a errata

From AlwaysInnovating

Jump to: navigation, search

2010-03.a has a still few small errors and contains some experimental features.

As a result, the default version remains 2010-01.b, so you can't reinstall the system directly from your Touch Book. To upgrade your system anyway, you must manually reinstall the OS on another computer using the install-sd script forcing the version to install:

sudo ./install-sd.sh -v 2010-03.a -d your_SD_card_location

See the following sections to easily fix these errors directly on your device.

AIOS

Sound adjustment is broken. To fix it, you need to open a terminal and type:

sudo -s
sed -e 's/DAC1/DAC2/' -i /usr/bin/ai/sounds/adjust.sh

Ubuntu

3D service is broken (only in Ubuntu, not AIOS). Here is the proper /etc/init.d/pvr-init file (lines 3 and 25 have been modified):

#!/bin/sh

CPUTYPE="OMAP3530"

if [ "$1" = "" ]; then
	echo PVR-INIT: Please use start, stop, or restart.
	exit 1
fi

if [ "$1" = "stop" -o  "$1" = "restart" ]; then
	echo Stopping PVR
	#rmmod bc_example
	rmmod omaplfb 2>/dev/null
	rmmod pvrsrvkm 2>/dev/null
fi

if [ "$1" = "stop" ]; then
	exit 0
fi

if [ $CPUTYPE = "OMAP3530" ]; then
	echo Starting PVR
	insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
	#modprobe bc_example
	insmod $(busybox find /lib/modules/$(uname -r) -name "omaplfb.ko")

	pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`

	if [ -e /dev/pvrsrvkm ] ; then 
		rm -f /dev/pvrsrvkm
	fi

	mknod /dev/pvrsrvkm c $pvr_maj 0 
	chmod 666 /dev/pvrsrvkm

	touch /etc/powervr-esrev

	SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
	ES_REVISION="$(cat /proc/cpuinfo | grep "CPU revision" | awk -F: '{print $2}')"

	if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
		echo -n "Starting SGX fixup for"
		if [ "${ES_REVISION}" = " 3" ] ; then
			echo " ES3.x"
			cp -a /usr/lib/ES3.0/* /usr/lib
			cp -a /usr/bin/ES3.0/* /usr/bin	
		else
			echo "ES 2.x"
			cp -a /usr/lib/ES2.0/* /usr/lib
			cp -a /usr/bin/ES2.0/* /usr/bin	
		fi
		echo "${ES_REVISION}" > /etc/powervr-esrev
	fi
	/usr/bin/pvrsrvinit
else
	echo No SGX hardware, not starting PVR
fi
Personal tools