ao tentar criar minha imagem Debian Wheezy para um computador de placa única ARM mini210s da FriendlyARM, estou me deparando com esse problema.
Eu abri um terminal via serial sudo screen /dev/cu.usbserial 115200
e minha saída atual:
[ 3.398751] apple 0003:05AC:0220.0003: input: USB HID v1.11 Device [Apple, Inc Apple Keyboard] on usb-s5p-ehci-1.4.2/input1
INIT: version 2.88 booting
INIT: Entering runlevel: 2
INIT: Id "X1" respawning too fast: disabled for 5 minutes
Debian GNU/Linux 7 FriendlyARM ttySAC0
FriendlyARM login: root <======= entered root and hit return
Unable to determine your tty name. <===== THE ISSUE
Debian GNU/Linux 7 FriendlyARM ttySAC0
FriendlyARM login:
INIT: Id "6" respawning too fast: disabled for 5 minutes
INIT: Id "5" respawning too fast: disabled for 5 minutes
INIT: Id "4" respawning too fast: disabled for 5 minutes
INIT: Id "3" respawning too fast: disabled for 5 minutes
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: Id "X1" respawning too fast: disabled for 5 minutes
INIT: Id "5" respawning too fast: disabled for 5 minutes
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: Id "6" respawning too fast: disabled for 5 minutes
INIT: Id "4" respawning too fast: disabled for 5 minutes
INIT: Id "3" respawning too fast: disabled for 5 minutes
Na tela sensível ao toque, tenho uma mensagem dizendo:
"login: falha no PAM, abortando: erro crítico - aborto imediato"
Alguém pode me ajudar a descriptografar o que isso me diz?
Como criei meu rootfs
sudo debootstrap --arch=armel --foreign wheezy rootfs/ http://ftp.us.debian.org/debian
echo "proc /proc proc none 0 0" >> rootfs/etc/fstab
echo "mini210s-anybots"
echo "mini210s-anybots" > rootfs/etc/hostname
mkdir -p rootfs/usr/share/man/man1/
mknod rootfs/dev/console c 5 1
mknod rootfs/dev/tty1 c 4 1
mknod dev/ttySAC0 c 204 64 <==== the serial port
então eu criei uma imagem com yaffs2utils
e inicializei no meu FriendlyARM (eu descrevo o processo aqui, é um pouco longo).
Eu copiei o inittab
de uma imagem em funcionamento do Debian Squeeze, que contém estas linhas
T1:2345:respawn:/sbin/getty 115200 ttySAC0 <=== terminal on serial port RS232
X1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
Certamente estou faltando alguns passos.
UPDATE Adicionado dispositivos ausentes
Aparentemente, preciso configurar alguns dispositivos. Eu me inspirado a partir este post
mknod -m 0600 ./rootfs/dev/console c 5 1
mknod -m 0660 ./rootfs/dev/full c 1 7
mknod -m 0640 ./rootfs/dev/kmem c 1 2
mknod -m 0660 ./rootfs/dev/loop0 b 7 0
mknod -m 0640 ./rootfs/dev/mem c 1 1
mknod -m 0666 ./rootfs/dev/null c 1 3
mknod -m 0640 ./rootfs/dev/port c 1 4
mknod -m 0666 ./rootfs/dev/random c 1 8
mknod -m 0660 ./rootfs/dev/tty c 5 0
mknod -m 0666 ./rootfs/dev/urandom c 1 9
mknod -m 0666 ./rootfs/dev/zero c 1 5
mknod -m 0660 ./rootfs/dev/tty0 c 5 0
mknod -m 0660 ./rootfs/dev/tty1 c 5 1
mknod -m 0660 ./rootfs/dev/tty2 c 5 2
mknod -m 0660 ./rootfs/dev/tty3 c 5 3
mknod -m 0660 ./rootfs/dev/tty4 c 5 4
mknod -m 0660 ./rootfs/dev/tty5 c 5 5
... mas ainda está enfrentando o problema.
agora adicionando estes
mknod -m 0660 ./rootfs/dev/ram0 b 1 0
mknod -m 0660 ./rootfs/dev/ram1 b 1 1
mknod -m 0660 ./rootfs/dev/ram2 b 1 2
mknod -m 0660 ./rootfs/dev/ram3 b 1 3
mknod -m 0660 ./rootfs/dev/ram4 b 1 4
mknod -m 0660 ./rootfs/dev/ram5 b 1 5
mknod -m 0660 ./rootfs/dev/ram6 b 1 6
mknod -m 0660 ./rootfs/dev/ram7 b 1 7
mknod -m 0660 ./rootfs/dev/ram8 b 1 8
mknod -m 0660 ./rootfs/dev/ram9 b 1 9
mknod -m 0660 ./rootfs/dev/ram10 b 1 10
mknod -m 0660 ./rootfs/dev/ram11 b 1 11
mknod -m 0660 ./rootfs/dev/ram12 b 1 12
mknod -m 0660 ./rootfs/dev/ram13 b 1 13
mknod -m 0660 ./rootfs/dev/ram14 b 1 14
mknod -m 0660 ./rootfs/dev/ram15 b 1 15
Meu novo rootfs/dev
root@ubuntu:/home/joel/debian-mini210s/rootfs/dev# ls -al
total 8
drwxr-xr-x 2 root root 4096 Jan 19 17:27 .
drwxr-xr-x 19 root root 4096 Jun 22 2012 ..
crw-r--r-- 1 root root 5, 1 Jan 19 14:07 console
crw-rw---- 1 root root 1, 7 Jan 19 17:05 full
crw-r----- 1 root root 1, 2 Jan 19 17:05 kmem
brw-rw---- 1 root root 7, 0 Jan 19 17:05 loop0
crw-r----- 1 root root 1, 1 Jan 19 17:05 mem
crw-rw-rw- 1 root root 1, 3 Jan 19 17:05 null
crw-r----- 1 root root 1, 4 Jan 19 17:05 port
brw-rw---- 1 root root 1, 0 Jan 19 17:27 ram0
brw-rw---- 1 root root 1, 1 Jan 19 17:27 ram1
brw-rw---- 1 root root 1, 10 Jan 19 17:27 ram10
brw-rw---- 1 root root 1, 11 Jan 19 17:27 ram11
brw-rw---- 1 root root 1, 12 Jan 19 17:27 ram12
brw-rw---- 1 root root 1, 13 Jan 19 17:27 ram13
brw-rw---- 1 root root 1, 14 Jan 19 17:27 ram14
brw-rw---- 1 root root 1, 15 Jan 19 17:27 ram15
brw-rw---- 1 root root 1, 2 Jan 19 17:27 ram2
brw-rw---- 1 root root 1, 3 Jan 19 17:27 ram3
brw-rw---- 1 root root 1, 4 Jan 19 17:27 ram4
brw-rw---- 1 root root 1, 5 Jan 19 17:27 ram5
brw-rw---- 1 root root 1, 6 Jan 19 17:27 ram6
brw-rw---- 1 root root 1, 7 Jan 19 17:27 ram7
brw-rw---- 1 root root 1, 8 Jan 19 17:27 ram8
brw-rw---- 1 root root 1, 9 Jan 19 17:27 ram9
crw-rw-rw- 1 root root 1, 8 Jan 19 17:05 random
crw-rw---- 1 root root 5, 0 Jan 19 17:05 tty
crw-rw---- 1 root root 5, 0 Jan 19 17:07 tty0
crw-r--r-- 1 root root 4, 1 Jan 19 14:47 tty1
crw-rw---- 1 root root 5, 2 Jan 19 17:07 tty2
crw-rw---- 1 root root 5, 3 Jan 19 17:07 tty3
crw-rw---- 1 root root 5, 4 Jan 19 17:07 tty4
crw-rw---- 1 root root 5, 5 Jan 19 17:07 tty5
crw-r--r-- 1 root root 204, 64 Jan 19 14:11 ttySAC0
crw-rw-rw- 1 root root 1, 9 Jan 19 17:05 urandom
crw-rw-rw- 1 root root 1, 5 Jan 19 17:05 zero
mas ainda recebendo Unable to determine your tty name
UPDATE - adicionado ttySAC0
a /etc/securetty
Em vim /etc/pam.d/login
linha:
auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so
isto deve allo login sem senha, se o dispositivo estiver listado. ... mas isso não funcionou como eu esperava.
Encontrado na Internet sobre esse problema
Em AskUbuntu
eBook sobre a questão