Samstag, 2. August 2008

Make Debian Upgrade

Remount SD-Card:
mount -o rw,remount /dev/root

Configure NIC to acquire configuration via DHCP:
Add lines to /etc/network/interfaces:
auto eth0
iface eth0 inet dhcp

And remove every other lines regarding eth0.

Set up NIC:
ifdown eth0
ifup eth0
NIC should acquire a new DHCP Lease now.

Configure sources for Upgrade:
Add lines to /etc/apt/sources.list:

deb http://ftp.de.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.de.debian.org/debian/ etch main non-free contrib
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free


Repair package list:
cp /var/lib/dpkg/status-old /var/lib/dpkg/status

Get new package list:
apt-get update

Do upgrade:
apt-get upgrade

Debian Update

Get new Debian image:
wget ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7800-linux/
binaries/ts-images/512mbsd-latest.dd.bz2


Unpack:
tar -xf 512mbsd-latest.dd.bz2

Write image to SD-Card:
Windows: dd if=512mbsd-latest.dd of=\\?\Device\Harddisk1\Partition0

Linux: dd if=512mbsd-latest.dd of=\dev\sdb1


Put SD-Card into TS-7800, set J1 (in order to boot from SD-Card) and switch TS-7800 on.

Log in via serial console (e.g. Hyperterminal) or telnet 192.168.0.50.

Execute createmtroot to write new image to NAND (this might take some minutes).