I downloaded the prebuilt squeeze
rootfs and used the installer (to install to SD card): worked fine.
I then modified DebianSheeva1-03.sh to refer to lenny instead of squeeze and executed the script on my SD-booting squeeze plug. The rootfs was fine except
for /dev/ttyS0, which wasn't created (and I didn't notice until I tried to log in). Double-checked the script, yes, the chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64
there. Manually executed chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64
and tar czf ../rootfs.tar.gz *
and this time it worked fine.
Tried a second time, by renaming the original debian directory and this time I noticed mknod: `/dev/ttyS0': File exists
(and I double checked, it did seem to exist). Tested the new rootfs usiung the installer; same result (can't login using serial):
INIT: Id "T0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
ssh'ed in and mknod -m 660 /dev/ttyS0 c 4 64
; now I can log in via serial port.
Third attempt. Go back to previous filesystem; manually executed
chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64
tar czf ../rootfs.tar.gz *
Re-run installer, serial login fine now.
Does that make sense? Line 152 in the script chroot ./debian/ mknod -m 660 /dev/ttyS0 c 4 64
isn't behaving the way we want it to ... for me, at least.