Bug#484366: rootskel: cttyhack requires the serial console to be /dev/ttyS0
Package: rootskel
Version: 1.62
Severity: normal
I tried to install Debian on Versatile/PB using qemu and the armel
installer (Lenny beta 1). It is quickly stuck complaining
"cttyhack: '/dev/ttyS0': No such file or device".
That's because the serial port on Versatile is named ttyAMA0. I ran
qemu with -nographic and put console=ttyAMA0 on the command line.
This causes two problems:
1. Initially there is a /dev/ttyS0 but it is device 4/0. ttyAMA0 is
204/64. I could recreate it from the second debug shell or by appending
to init-udev-devices.
2. When udev runs, it recreates /dev. udev successfully creates
/dev/ttyAMA0 with the proper major/minor. But it naturally does not
create /dev/ttyS0. So that doesn't work either and I created the
symlink by replacing 'exit 0' with 'ln -s ttyAMA0 /dev/ttyS0' at
the end of S02udev.
Frans warns that finish-install's 90console script may also have a
problem. I haven't gotten there yet.
I don't know a clean fix for this problem. It could be detected by
checking /proc/devices, most likely - there's ttyAMA but no ttyS.
On a related note, I thought cttyhack was supposed to give things
enough of a controlling terminal to use job control. But cttyhack
/bin/sh still complains that there is no job control...
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-rc9 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: