All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
To: sparclinux@vger.kernel.org
Subject: Re: Linux on Sun e10k
Date: Sat, 27 Jan 2007 00:39:59 +0000	[thread overview]
Message-ID: <1169858399.4809.49.camel@localhost.localdomain> (raw)
In-Reply-To: <1169241607.30406.19.camel@duo.jes.ee>

On Fri, 2007-01-26 at 17:17 -0600, Tom 'spot' Callaway wrote:
> On Sat, 2007-01-27 at 00:12 +0100, Jan Engelhardt wrote:
> > >On Fri, 2007-01-26 at 16:05 -0600, Tom 'spot' Callaway wrote:
> > >> On Sun, 2007-01-21 at 17:25 +0200, Meelis Roos wrote:
> > >> > TS> Warning: unable to open an initial console.
> > >> > 
> > >> > Try to use network console if the native console is not supported.
> > >> > netconsole=..., see Documentation/networking/netconsole.txt
> > >> 
> > >> It was a good idea, but unfortunately:
> > >> 
> > >> eth0: Quattro HME slot 0 (SBUS) 10/100baseT Ethernet 08:00:20:b7:8f:c8 
> > >> eth1: Quattro HME slot 1 (SBUS) 10/100baseT Ethernet 08:00:20:b7:8f:c9 
> > >> eth2: Quattro HME slot 2 (SBUS) 10/100baseT Ethernet 08:00:20:b7:8f:ca 
> > >> eth3: Quattro HME slot 3 (SBUS) 10/100baseT Ethernet 08:00:20:b7:8f:cb 
> > >> netconsole: eth0 doesn't support polling, aborting.
> > >> 
> > >> Yes, I have an e10k too. :)
> > >
> > >Even when I mount a valid root over NFS, the kernel always says: 
> > >Warning: unable to open an initial console.
> > 
> > 
> > >VFS: Mounted root (nfs filesystem) readonly.
> > >Warning: unable to open an initial console.
> > 
> > Create /dev/console as char(5,1) on the root fs.
> 
> Already existed:
> 
> [root@odyssey gdb]# ls -l dev/console
> crw--w---- 1 root tty 5, 1 Jan 25 10:33 dev/console

Also tried mounting the nfsroot rw, but still:

TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
IP-Config: Complete:
      device=eth0, addr\x10.15.36.9, mask%5.255.255.0, gw\x10.15.36.254,
     host=spot1, domain=, nis-domain=(none),
     bootserver\x10.15.36.3, rootserver\x10.15.36.3, rootpathLooking up port of RPC 100003/2 on 10.15.36.3
Looking up port of RPC 100005/1 on 10.15.36.3
VFS: Mounted root (nfs filesystem).
Warning: unable to open an initial console.
eth0: Link is up using internal transceiver at 10Mb/s, Half Duplex.
eth0: Happy Meal out of receive descriptors, packet dropped.
eth0: Happy Meal out of receive descriptors, packet dropped.

Looking at init/main.c:

if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
   printk(KERN_WARNING "Warning: unable to open an initial console.\n");

... so, if root is mounted (over nfs), and root is mounted rw,
and /dev/console exists on the nfsroot, and it has rw permissions (I
gave it chmod 777 to just be sure), why would that sys_open call fail
and trigger that printk?

~spot


  parent reply	other threads:[~2007-01-27  0:39 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19 21:20 Linux on Sun e10k Tõnu Samuel
2007-01-21 15:25 ` Meelis Roos
2007-01-26 22:05 ` Tom 'spot' Callaway
2007-01-26 22:15 ` Tom 'spot' Callaway
2007-01-26 23:12 ` Jan Engelhardt
2007-01-26 23:17 ` Tom 'spot' Callaway
2007-01-27  0:39 ` Tom 'spot' Callaway [this message]
2007-01-27  2:10 ` David Miller
2007-01-27  3:42 ` Tom 'spot' Callaway
2007-01-27  4:28 ` Tom 'spot' Callaway
2007-01-27 10:19 ` Tõnu Samuel
2007-01-27 11:17 ` Jan Engelhardt
2007-01-27 15:37 ` Tom 'spot' Callaway
2007-01-27 16:05 ` Jan Engelhardt
2007-01-27 16:31 ` Tom 'spot' Callaway
2007-01-27 16:53 ` Jan Engelhardt
2007-01-28  2:38 ` David Miller
2007-01-28 12:26 ` Jan Engelhardt
2007-01-29 15:08 ` Meelis Roos
2007-01-29 16:39 ` David Miller
2007-01-29 16:52 ` Tom 'spot' Callaway
2007-01-29 17:34 ` David Miller
2007-01-29 19:45 ` Tom 'spot' Callaway
2007-01-29 20:07 ` David Miller
2007-02-21 16:01 ` Peter Jones
2007-02-22 11:09 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1169858399.4809.49.camel@localhost.localdomain \
    --to=tcallawa@redhat.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.