Unfortunately still not working. Last part of the bootlog:
[ 2.180000] Freeing unused kernel memory: 1508k freed
- preinit -
[ 2.880000] PHY: fixed-0:01 - Link is Up - 100/Full
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -
[ 6.880000] PHY: fixed-0:01 - Link is Down
The network goes down when leaving preinit, and doesn't go up again.
Now I saw that according to inittab the system is started by '/etc/init.d/rcS S boot'. When I run that manually I get:
root@(none):/# exec 2>&1
root@(none):/# ifconfig eth0 down
[ 20.880000] PHY: fixed-0:01 - Link is Down
root@(none):/# ps
PID USER VSZ STAT COMMAND
1 root 1456 S {init} /bin/sh /init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [sync_supers]
8 root 0 SW [bdi-default]
9 root 0 SW< [kblockd]
10 root 0 SW< [rpciod]
11 root 0 SW [kworker/0:1]
12 root 0 SW [kswapd0]
13 root 0 SW< [nfsiod]
14 root 0 SW [kworker/u:1]
57 root 1376 S telnetd -l /bin/login.sh
61 root 1372 S lock /tmp/.failsafe
62 root 1384 S ash --login
68 root 0 SW [kworker/0:2]
69 root 1380 R ps
root@(none):/# /etc/init.d/rcS S boot
root@(none):/#
root@OpenWrt:/# ps
PID USER VSZ STAT COMMAND
1 root 1456 S {init} /bin/sh /init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
7 root 0 SW [sync_supers]
8 root 0 SW [bdi-default]
9 root 0 SW< [kblockd]
10 root 0 SW< [rpciod]
11 root 0 SW [kworker/0:1]
12 root 0 SW [kswapd0]
13 root 0 SW< [nfsiod]
14 root 0 SW [kworker/u:1]
57 root 1376 S telnetd -l /bin/login.sh
61 root 1372 S lock /tmp/.failsafe
62 root 1384 S ash --login
68 root 0 SW [kworker/0:2]
72 root 1416 S {rcS} /bin/sh /etc/init.d/rcS S boot
74 root 1380 S logger -s -p 6 -t sysinit
123 root 1372 S /sbin/klogd
140 root 1436 S {S50dropbear} /bin/sh /etc/rc.common /etc/rc.d/S50dr
141 root 960 R /usr/bin/dropbearkey -t rsa -f /tmp/dropbear/dropbea
162 root 1384 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
165 root 1380 R ps
Apparently this works fine, as dropbear and ntpd are started. But it didn't bring up the network. But starting network manually:
root@OpenWrt:/# /etc/init.d/network start
root@OpenWrt:/# [ 78.880000] PHY: fixed-0:01 - Link is Up - 100/Full
What happens?
And I can't use the network to login. Trying to login using telnet:
[user@EEE2 tmp]$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1 (192.168.1.1).
Escape character is '^]'.
Connection closed by foreign host.
And telnetd is gone. For logging in via ssh I first have to set a password, and then I get:
[user@EEE2 tmp]$ ssh root@192.168.1.1
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.
root@192.168.1.1's password:
PTY allocation request failed on channel 0
shell request failed on channel 0
[user@EEE2 tmp]$ ssh root@192.168.1.1 /bin/sh -i
root@192.168.1.1's password:
BusyBox v1.19.4 (2012-04-07 15:31:41 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/root # sh: /usr/bin/X11/xauth: not found
/bin/sh: can't access tty; job control turned off
/root # mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14784k)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
Why are there no PTY's?