lkml.org 
[lkml]   [2008]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MIPS toolchain : should I choose shared library option for Alchemy DB1200
Hi

On Thu, May 15, 2008 at 3:14 PM, <abhiruchi.g@vaultinfo.com> wrote:
> hi,
> To build cross toolchain for MIPS, should I choose shared library option. My kernel hangs after :
>
> Warning: unable to open an initial console.
> /sbin/init

The "unable to open an initial console" message is a red herring. I
have seen it many times, e.g. running OpenWrt. It doesn't seem to be
a problem.

> The function is in init/main.c.
>
> static int noinline init_post(void)
> {
> ..
> ..
> ..
>
> if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
> printk(KERN_WARNING "Warning: unable to open an initial console.
> \n");
>
> (void) sys_dup(0);
> (void) sys_dup(0);
>
> if (ramdisk_execute_command) {
> run_init_process(ramdisk_execute_command);
> printk(KERN_WARNING "Failed to execute %s\n",
> ramdisk_execute_command);
> }
>
> ..
> ..
> printk(KERN_WARNING "-- ag. sbin init\n");
> run_init_process("/sbin/init");
> printk(KERN_WARNING "-- ag. etc init\n");
> run_init_process("/etc/init");
> printk(KERN_WARNING "-- ag. bin init\n");
> run_init_process("/bin/init");
> printk(KERN_WARNING "-- ag. bin sh\n");
> run_init_process("/bin/sh");
>
> panic("No init found. Try passing init= option to kernel.");
>
> }

--
Michael Wood <esiotrot@gmail.com>


\
 
 \ /
  Last update: 2008-05-15 15:35    [W:0.034 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site