* MIPS kernel hangs: Warning: unable to open an initial console. /sbin/init
@ 2008-05-15 12:55 abhiruchi.g
2008-05-15 13:38 ` Manuel Lauss
0 siblings, 1 reply; 3+ messages in thread
From: abhiruchi.g @ 2008-05-15 12:55 UTC (permalink / raw)
To: linux-kernel, linux-mips, kernel-testers
Hi,
My kernel hangs by initializing the system. My target is Alchemy DB1200. I use crosstool-ng to build MIPS cross toolchain and ptxdist to build ext2 filesystem.
kernel version:linux-2.6.22
I added some printk's linux/init/main.c to see what happens.
#############################################################
.
.
.
(void) dup(0);
(void) dup(0);
/*
* We try each of these until one succeeds.
*
* The Bourne shell can be used instead of init if we are
* trying to recover a really broken machine.
*/
if (execute_command)
run_init_process(execute_command);
printk("before /sbin/init\n");
run_init_process("/sbin/init");
printk("before /etc/init\n");
run_init_process("/etc/init");
printk("before /bin/init\n");
run_init_process("/bin/init");
printk("before /bin/sh\n");
run_init_process("/bin/sh");
it hangs after /sbin/init
What could be the problem?
I tried to give init="/sbin/abhi"
"abhi" is an executable file with printf statement.
but kernel stops after :
Waiting 10sec before mounting root device...
scsi 0:0:0:0: Direct-Access Ut163 USB2FlashStorage 0.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 983808 512-byte hardware sectors (504 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 983808 512-byte hardware sectors (504 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
VFS: Mounted root (ext2 filesystem) readonly.
mount_block_root: name=/dev/root fs=ext2 flags=32769
Freeing unused kernel memory: 156k freed
Warning: unable to open an initial console.
---ag: /sbin/abhi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MIPS kernel hangs: Warning: unable to open an initial console. /sbin/init
2008-05-15 12:55 MIPS kernel hangs: Warning: unable to open an initial console. /sbin/init abhiruchi.g
@ 2008-05-15 13:38 ` Manuel Lauss
2008-05-28 3:15 ` Jun Ma
0 siblings, 1 reply; 3+ messages in thread
From: Manuel Lauss @ 2008-05-15 13:38 UTC (permalink / raw)
To: abhiruchi.g; +Cc: linux-kernel, linux-mips, kernel-testers
On Thu, May 15, 2008 at 08:55:39AM -0400, abhiruchi.g@vaultinfo.com wrote:
> Hi,
>
> My kernel hangs by initializing the system. My target is Alchemy DB1200. I use crosstool-ng to build MIPS cross toolchain and ptxdist to build ext2 filesystem.
> kernel version:linux-2.6.22
Try and add "console=ttyS0,115200" to the kernel commandline (either in
yamon or kernel config).
Manuel Lauss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MIPS kernel hangs: Warning: unable to open an initial console. /sbin/init
2008-05-15 13:38 ` Manuel Lauss
@ 2008-05-28 3:15 ` Jun Ma
0 siblings, 0 replies; 3+ messages in thread
From: Jun Ma @ 2008-05-28 3:15 UTC (permalink / raw)
To: Manuel Lauss; +Cc: abhiruchi.g, linux-kernel, linux-mips, kernel-testers
On Thu, May 15, 2008 at 9:38 PM, Manuel Lauss
<mano@roarinelk.homelinux.net> wrote:
> On Thu, May 15, 2008 at 08:55:39AM -0400, abhiruchi.g@vaultinfo.com wrote:
>> Hi,
>>
>> My kernel hangs by initializing the system. My target is Alchemy DB1200. I use crosstool-ng to build MIPS cross toolchain and ptxdist to build ext2 filesystem.
>> kernel version:linux-2.6.22
>
> Try and add "console=ttyS0,115200" to the kernel commandline (either in
> yamon or kernel config).
>
>
And you must have a tty node in your /dev directory, e.g. /dev/ttyS0
--
FIXME if it is wrong.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-28 3:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-15 12:55 MIPS kernel hangs: Warning: unable to open an initial console. /sbin/init abhiruchi.g
2008-05-15 13:38 ` Manuel Lauss
2008-05-28 3:15 ` Jun Ma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®