From 8fbf46f8112fb854a338d10d2d937fead1574b5d Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Sat, 16 Apr 2011 09:41:08 -0500 Subject: [PATCH] panda, now that its running at full speed needs more memory for the smsc95xx Signed-off-by: Robert Nelson --- mk_mmc.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index ff1861b..871bb74 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -32,8 +32,9 @@ unset USB_ROOTFS unset PRINTK unset HASMLO unset ABI_VER +unset SMSC95XX_MOREMEM -SCRIPT_VERSION="1.07" +SCRIPT_VERSION="1.08" IN_VALID_UBOOT=1 MIRROR="http://rcn-ee.net/deb/" @@ -134,6 +135,10 @@ function set_defaults { sed -i 's/bootargs/bootargs earlyprintk/g' ${DIR}/scripts/boot.scr/serial*.cmd fi + if [ "$SMSC95XX_MOREMEM" ];then + sed -i 's/8192/12288/g' ${DIR}/scripts/*.diff + fi + } function dl_xload_uboot { @@ -431,7 +436,11 @@ esac #work around for the kevent smsc95xx issue sudo touch ${TEMPDIR}/initrd-tree/etc/sysctl.conf - echo "vm.min_free_kbytes = 8192" | sudo tee -a ${TEMPDIR}/initrd-tree/etc/sysctl.conf + if [ "$SMSC95XX_MOREMEM" ];then + echo "vm.min_free_kbytes = 12288" | sudo tee -a ${TEMPDIR}/initrd-tree/etc/sysctl.conf + else + echo "vm.min_free_kbytes = 8192" | sudo tee -a ${TEMPDIR}/initrd-tree/etc/sysctl.conf + fi if [ "${SERIAL_MODE}" ] ; then sudo touch ${TEMPDIR}/initrd-tree/etc/rcn-serial.conf @@ -731,6 +740,10 @@ function reset_scripts { sed -i 's/bootargs earlyprintk/bootargs/g' ${DIR}/scripts/boot.scr/serial*.cmd fi + if [ "$SMSC95XX_MOREMEM" ];then + sed -i 's/12288/8192/g' ${DIR}/scripts/*.diff + fi + } function check_mmc { @@ -792,6 +805,7 @@ case "$UBOOT_TYPE" in DO_UBOOT=1 HASMLO=1 ABI_VER=2 + SMSC95XX_MOREMEM=1 ;; touchbook)