Debian on the TS-219

Notes.

Installation

Debian «squeeze», expert install.

Disk setup

Needed to adjust /etc/crypptab (had strange, not-working UUID=… stuff in it):

md0_crypt /dev/md0 none luks

Reminder for dmcrypt/lvm stuff:

mdadm /dev/md0 --run
cryptsetup luksOpen /dev/md0 md0_crypt
pvscan
vgchange -ay fry
mount /dev/mapper/fry-... /target/...
...
cp -rav /dev/mapper /target/dev

MAC address

Debian (Linux) takes MAC address from u-boot environment, which is the wrong one. I configured the real MAC address from the sticker:

printenv ethaddr
setenv oldethaddr 00:00:00:00:05:09
setenv ethaddr 00:08:9B:8C:27:79
saveenv

ssh in initrd (to unlock the crypted device)

aptitude install dropbear busybox

Add ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> kernel boot parameter (described in kernel/Documentation/filesystems/nfsroot.txt.

setenv bootargs console=ttyS0,115200 root=/dev/ram initrd=0xa00000,0x900000 ramdisk=32768 ip=10.0.0.17::10.0.0.1:255.255.255.0:fry:eth0:none
setenv bootargs console=ttyS0,115200 root=/dev/ram initrd=0xa00000,0x900000 ramdisk=32768 ip=:::::eth0:dhcp