Re: Warning: unable to open an initial console.
stappers@stappers.nl (Geert Stappers) writes:
>
> Hello D.I.S.T.,
>
> On an Intel computer that boot by pxelinux.0 from the syslinux package,
> I get these last messages
>
> RAMDISK: Compressed image found at block 0
> Freeing initrd memory: 1452k freed
> VFS: Mounted root (ext2 filesystem) readonly.
> Freeing unused kernel memory: 76k freed
> Warning: unable to open an initial console.
Your missing devfs.
> I spend so time on this patch:
>
> --- rootskel/src/linuxrc 27 Sep 2003 12:13:45 -0000 1.13
> +++ rootskel/src/linuxrc 14 Oct 2003 22:04:25 -0000
> @@ -1,6 +1,6 @@
> #!/bin/sh
> # Set up filesystem as root and pivot into it.
> -echo "Setting up filesystem, please wait ..."
> +# not yet a console available, so we can't inform the user
> mount -t shm shm mnt
> cp -a `ls -1 | grep -v mnt | grep -v proc | grep -v dev | grep -v lost+found` mnt
> cd mnt
> @@ -8,6 +8,8 @@
> pivot_root . initrd
> mount -t proc proc proc
> mount -t devfs devfs dev
> +mknod dev/console c 5 1
> +echo Hello World!
> # Close all open files on the initrd, and run busybox init.
> rm -f linuxrc # this program
> ln -s /sbin/init linuxrc
Thats whats userdevfs is for.
>
>
> But that dies also in
>
> Warning: unable to open an initial console.
/dev/vc/0 - 4 are missing.
> My question is:
>
> What is the first file where output in userland (= none kernel land) happens?
In the future /sbin/init, till then /linuxrc.
> Geert Stappers
MfG
Goswin
Reply to: