#!/bin/sh PWD=`pwd` export ECOS_REPOSITORY=${PWD}/ecos/packages # checks if [ ! -d ${ECOS_REPOSITORY} ]; then echo "no redboot source?" exit -1 fi # od of existing files od -Ax -tx4 redboot-fab4-0003.bin > redboot-fab4-0003.old.od od -Ax -tx4 redboot-fab4-0004.bin > redboot-fab4-0004.old.od od -Ax -tx4 redboot-fab4-0005.bin > redboot-fab4-0005.old.od # get to known state (cd ecos; quilt push -a) # PB1 (rev 0003) (cd ecos; quilt pop logitech/0900-fab4-PB1.patch) if [ $? -ne 0 ]; then echo "quilt push failed" exit -1 fi rm -rf ecos-build ./build.sh if [ $? -ne 0 ]; then echo "build failed" exit -1 fi cp ecos-build/install/bin/redboot.bin redboot-fab4-0003.bin # PB1+TO2 (rev 0004) (cd ecos; quilt push logitech/0901-fab4-PB1-TO2-freescale-DDR2.patch) if [ $? -ne 0 ]; then echo "quilt push failed" exit -1 fi rm -rf ecos-build ./build.sh if [ $? -ne 0 ]; then echo "build failed" exit -1 fi cp ecos-build/install/bin/redboot.bin redboot-fab4-0004.bin # PB2 (rev 0005) (cd ecos; quilt push logitech/0902-fab4-PB2.patch) if [ $? -ne 0 ]; then echo "quilt push failed" exit -1 fi rm -rf ecos-build ./build.sh if [ $? -ne 0 ]; then echo "build failed" exit -1 fi cp ecos-build/install/bin/redboot.bin redboot-fab4-0005.bin # od of new files od -Ax -tx4 redboot-fab4-0003.bin > redboot-fab4-0003.od od -Ax -tx4 redboot-fab4-0004.bin > redboot-fab4-0004.od od -Ax -tx4 redboot-fab4-0005.bin > redboot-fab4-0005.od # diff check echo "redboot-fab4-0003 diffs:" diff redboot-fab4-0003.old.od redboot-fab4-0003.od | wc echo "redboot-fab4-0004 diffs:" diff redboot-fab4-0004.old.od redboot-fab4-0004.od | wc echo "redboot-fab4-0005 diffs:" diff redboot-fab4-0005.old.od redboot-fab4-0005.od | wc