* Is the ramdisk mounted?
@ 2000-07-08 0:40 Kwansuk Kim
2000-04-07 8:04 ` Ben Sapp
2000-07-08 1:48 ` Wang Yong
0 siblings, 2 replies; 3+ messages in thread
From: Kwansuk Kim @ 2000-07-08 0:40 UTC (permalink / raw)
To: linuxppc-embedded
I just mounted the ramdisk with a warning.
Is there any problem with unchecked fs? But I copied the image to host 'dd if=ramdisk.image of=/dev/ram' and I worked well. (It was given 2.2.13 kernel on linuxppc.org)
Anyway, actual problem appeared at calling at init process. I saw the source and it seems if there is no init then the kernel calls /bin/sh.
Of coarse, the shell is in the image, but the kernel couldn't find it.
---------------------------
Now booting the kernel
ttyS00 at 0x0380 is a SMC
ttyS01 at 0x0100 is a SCC
ttyS02 at 0x0200 is a SCC
pty: 256 Unix98 ptys configured
RAM disk driver initialized: 16 RAM disks of 4096K size
eth0: CPM ENET Version 0.2, 00:01:c4:00:00:b1
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 28k init
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel.
Rebooting in 180 seconds..
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is the ramdisk mounted?
2000-07-08 0:40 Is the ramdisk mounted? Kwansuk Kim
@ 2000-04-07 8:04 ` Ben Sapp
2000-07-08 1:48 ` Wang Yong
1 sibling, 0 replies; 3+ messages in thread
From: Ben Sapp @ 2000-04-07 8:04 UTC (permalink / raw)
To: Kwansuk Kim; +Cc: linuxppc-embedded
I have seen these errors before on an MVME2301. My problem was caused
by not having the proper devices in /dev. I had to add /dev/console and
/dev/ttyS0. Output from my (working) machine:
sh-2.03# ls -l /dev/console /dev/ttyS0
crw--w--w- 1 root root 5, 1 Jul 8 07:19 /dev/console
crw--w--w- 1 root root 4, 64 Apr 13 08:39 /dev/ttyS0
I also have to give the command boot option:
console=/dev/ttyS0
Now it works. Good Luck.
Kwansuk Kim wrote:
>
> I just mounted the ramdisk with a warning.
>
> Is there any problem with unchecked fs? But I copied the image to host 'dd if=ramdisk.image of=/dev/ram' and I worked well. (It was given 2.2.13 kernel on linuxppc.org)
>
> Anyway, actual problem appeared at calling at init process. I saw the source and it seems if there is no init then the kernel calls /bin/sh.
>
> Of coarse, the shell is in the image, but the kernel couldn't find it.
>
> ---------------------------
>
> Now booting the kernel
> ttyS00 at 0x0380 is a SMC
> ttyS01 at 0x0100 is a SCC
> ttyS02 at 0x0200 is a SCC
> pty: 256 Unix98 ptys configured
> RAM disk driver initialized: 16 RAM disks of 4096K size
> eth0: CPM ENET Version 0.2, 00:01:c4:00:00:b1
> RAMDISK: Compressed image found at block 0
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 28k init
> Warning: unable to open an initial console.
> Kernel panic: No init found. Try passing init= option to kernel.
> Rebooting in 180 seconds..
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is the ramdisk mounted?
2000-07-08 0:40 Is the ramdisk mounted? Kwansuk Kim
2000-04-07 8:04 ` Ben Sapp
@ 2000-07-08 1:48 ` Wang Yong
1 sibling, 0 replies; 3+ messages in thread
From: Wang Yong @ 2000-07-08 1:48 UTC (permalink / raw)
To: Kwansuk Kim, linuxppc-embedded
of course the root fs has been mounted. maybe there is something wrong with your shell or
execve() itself.
there is a sequence of execve() at the end of init() and if all these calling fail, a message
will be shown as : 'No init found. Try passing init= option to kernel.'
w.y.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-07-08 1:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-08 0:40 Is the ramdisk mounted? Kwansuk Kim
2000-04-07 8:04 ` Ben Sapp
2000-07-08 1:48 ` Wang Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).