Skip to content

Debian on the TS-219

Notes.

Installation

Debian «squeeze», expert install.

Disk setup

  • /dev/sda1 and /dev/sdb1/dev/md0 (raid1)
  • /dev/md0/dev/mapper/md0_crypt (dmcrypt)
  • /dev/mapper/md0_crypt/dev/mapper/fry-{root,var,tmp,swap,home} (LVM2)

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:

Marvell>> printenv ethaddr
ethaddr=00:00:00:00:05:09
Marvell>> setenv ethaddr-orig 00:00:00:00:05:09
Marvell>> setenv ethaddr 00:08:9B:8C:27:79
Marvell>> saveenv
Saving Environment to Flash...
................................................................
.
Un-Protected 1 sectors
Erasing Flash...
.
Erased 1 sectors
Writing to Flash... done
................................................................
.
Protected 1 sectors

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.

created: 2008-03-07, updated: 2015-09-16