[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2490 and devboard_lx-R2_2_0


Attempts at flashing an image from devboard_lx version R2.2.0 on a 2490 
fail with an error during the 'ftp put'. So what's the trick to getting 
this image over to the 2490 via FTP? Of course, since there is no 'boot 
net' button on this model, using FTP would be the preferred method.

And just for the records, I am aware that modding the 2490 voids the 
warrantee and that it is also not the reccomended to use the 2490 for 
development, but it's the device available to me currently.

Here's the error from FTP:
ftp> put fimage flash_all
local: fimage remote: flash_all
227 Entering Passive Mode (10,1,1,4,4,1)
150-Preparing to flash.
Allocating memory.
150 Opening data connection.
550 Partition table differs from flash partition table. Verify file and 
try again.

Here's the contents of my script for building the image:
# build_axis.sh - Rebuild AXIS image
export LANG

function die {
	echo "$1"; exit 1

cd $BUILD || die "Unable to chdir to $BUILD"
echo "Removing directory $DEVBOARDDIR"
rm -rf $DEVBOARDDIR || die "Unable to rm $DEVBOARDDIR"
echo "Extracting devboard tar"
tar -xzf $DEVBOARDTAR || die "Error untarring $DEVBOARDTAR"

echo "Extracting linux kernel"
mkdir $DEVBOARDDIR/os || die "Unable to mkdir $DEVBOARDDIR/os"
cd $DEVBOARDDIR/os || die "Unable to chdir to $DEVBOARDDIR/os"
tar xzf $SOURCE/linux-2.4.26.tar.gz || die "Error untarring linux kernel"
patch -f -p3 < ../$KERNELDIF
ln -s linux-$KERNELVER linux || die "Error running ln -s"

cd $DEVBOARDDIR || die "Unable to chdir to $DEVBOARDDIR"
# force suid to 'no'
perl -i.bak -pe 's/read _ANSWER/echo n | read _ANSWER/g' 
perl -i.bak -pe "s/^HWID\s*=\s*\d+/HWID = $HWID/g" Makefile

. init_env
make everything

Thanks in advance,


Scott Hardin <scott.hardin@xxxxxxx.de>
Hard 'n Software Consulting GmbH
Am Holzweg 60, D-65843 Sulzbach/Taunus, Germany
Tel: +49 6196 580317, Mobile: +49 177 406 4687