public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: btuch@usa.net (Brian T.)
To: linux-mtd@lists.infradead.org
Subject: Unable to open console /start init
Date: Tue, 11 Mar 2003 10:58:26 -0600	[thread overview]
Message-ID: <003901c2e7ef$6ef75c60$150a0ac0@jbmsoft.com> (raw)

I realize that this probably isn't a JFFS2 problem, but was hoping someone
here might be able to point me in the right direction to fix this.  I am
trying to get JFFS2 with 2.4.20 running on an embedded unit with an Intel
chipset. I have modified nettel.c, so the chipset is detected with the right
MTD partition sizes.  The system seems to be hanging on starting init, but
not before it cannot open the console.  Console on my 2.2.18 build always
came up on /dev/ttyS0.  The last messages I get on bootup is:

VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Warning: unable to open an initial console.
trying /sbin/init

My console is console,c,5,1 and ttyS0 is ttyS0,c,4,64. I have tried making a
sym link from ttyS0 -> console with no luck either.

On boot the kernel sees the serial devices:

ttyS00 at 0x03f8 (irq = 4) is a 16550A   (dunno the extra 0 is in there, but
its right)
ttyS03 at 0x02e8 (irq = 3) is a 16550A

Also:

I modified main.c so I can tell how far it is getting with init:

--snip--
        if (execute_command)
        {
                 printk("Execute command passed: %s\n",execute_command);
                execve(execute_command,argv_init,envp_init);
        }
         printk("init: trying /sbin/init\n");
        execve("/sbin/init",argv_init,envp_init);
         printk("init: trying /etc/init\n");
        execve("/etc/init",argv_init,envp_init);
         printk("init: trying /bin/init\n");
        execve("/bin/init",argv_init,envp_init);
         printk("init: trying /bin/sh\n");
        execve("/bin/sh",argv_init,envp_init);
        panic("No init found.  Try passing init= option to kernel.");
--snip--

If I remove /sbin/init then it prints out the other 3 messages as well that
I added in, but then it still hangs.  the init is part of Busybox, but have
tried using a standard /sbin/init also, with the same results.

Has anyone else ever had these problems?

-Brian

             reply	other threads:[~2003-03-11 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-11 16:58 Brian T. [this message]
2003-03-11 19:30 ` Unable to open console /start init - more info (jffs2) Brian T.
2003-03-12  8:54   ` Thomas Gleixner
2003-03-12 18:27     ` Brian T.
2003-03-13 13:06       ` Brian T.
2003-03-13 12:32   ` Bob Chiodini

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='003901c2e7ef$6ef75c60$150a0ac0@jbmsoft.com' \
    --to=btuch@usa.net \
    --cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox