Hello, You are creating /dev/console after the system is trying to use it. No second attempt is made to open /dev/console, so the system stays blocked.
/dev/console should be created before the point where the warning currently is displayed... Best regards, Thomas 2008/7/31 Hinko Kocevar <[EMAIL PROTECTED]>: > Hi, > > I would like my kernel to create /dev/console device entry if one is not > present on root filesystem. > > I've used code from init/noinitramfs.c and copied it in init/main.c (see the > patch). The problem is that /dev/console indeed gets created, but the system > won't boot further. > I can verify existence of /dev/console, because I use NFS root filesystem and > the /dev/console appears upon boot on NFS server. > Upon second boot (power cycle) the system boot fine (/dev/console exista, > since it was created on first boot). > > What am I missing here?? > > ... > [42949376.297514] Looking up port of RPC 100003/2 on 10.0.0.1 > [42949376.314490] Looking up port of RPC 100005/1 on 10.0.0.1 > [42949376.398672] VFS: Mounted root (nfs filesystem). > [42949376.405593] Freeing unused kernel memory: 56k freed > [42949376.411909] Warning: unable to open an initial console. > [42949376.428129] Success creating /dev/console. > ^^^^^^^^^^^ > HANG > > Thank you, > Hinko > > -- > ČETRTA POT, d.o.o., Kranj > Planina 3 > 4000 Kranj > Slovenia, Europe > Tel. +386 (0) 4 280 66 03 > E-mail: [EMAIL PROTECTED] > Http: www.cetrtapot.si > >
