Debian on SheevaPlug

# create boot disc, sd-card with vfat filesystem
wget ftp://ftp.debian.org/debian/dists/stable/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uImage
wget ftp://ftp.debian.org/debian/dists/stable/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd

mmc rescan
fatload mmc 0:1 0x00800000 /uImage
fatload mmc 0:1 0x01100000 /uInitrd
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most
bootm 0x00800000 0x01100000

# allow root login (change settins on sd card)
cat /etc/ssh/sshd_config | grep Root
PermitRootLogin yes

# INSTALL

#setenv bootargs_console console=ttyS0,115200
#setenv bootcmd_mmc 'mmc init; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd'
#setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000'
#saveenv
#reset

setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=3 loglevel=7'
setenv bootcmd_mmc 'ext4load mmc 0:1 0x00800000 /boot/uImage; ext4load mmc 0:1 0x01100000 /boot/uInitrd'
setenv bootcmd 'setenv bootargs $(bootargs); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv
reset

# Install Debian Squeze on SheevaPlug
http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

# upgrade
apt-get update
apt-get -y dist-upgrade
flash-kernel

! DEPRECTED !

# crate partitions
fdisk /dev/mmcblk0

o
n
p
1
2048
+3G
n
p
2
[ENTER]
+512M
t
2
82
a
1
p
w

# format
mkfs.ext2 /dev/mmcblk0p1
mkswap /dev/mmcblk0p2

# mount
mount /dev/mmcblk0p1 /mnt/

# download
wget http://people.debian.org/~tbm/sheevaplug/lenny/base.tar.bz2 -P /tmp

# extract
tar xjf /tmp/base.tar.bz2 -C /mnt/

# boot

# login to console
setenv mainlineLinux yes
setenv arcNumber 2097
saveenv
reset

setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda1 rootdelay=10'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /boot/uInitrd; ext2load usb 0:1 0x400000 /boot/uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000'
saveenv

run bootcmd

# login
user: root
pass: root

# set new password for root
passwd

# sync time
ntpdate pool.ntp.org

# update system
apt-get update
apt-get -y dist-upgrade

## sd card
fdisk -l /dev/mmcblk0

mkfs.ext2 /dev/mmcblk0p1
mkswap /dev/mmcblk0p2

mount /dev/mmcblk0p1 /mnt/

wget http://people.debian.org/~tbm/sheevaplug/lenny/base.tar.bz2 -P /tmp

tar xjf /tmp/base.tar.bz2 -C /mnt/

debian:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
# Boot from USB:
#/dev/sda1 / ext3 errors=remount-ro 0 1
#/dev/sda2 none swap sw 0 0
# Boot from SD/MMC:
/dev/mmcblk0p1 / ext3 errors=remount-ro 0 1
/dev/mmcblk0p2 none swap sw 0 0

umount

# Links
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html