kernel panic after VFS mount in FPGA board
Kristof Provost
kristof at sigsegv.be
Wed Apr 11 10:04:54 EDT 2012
On 2012-04-11 19:03:42 (+0530), pcuser p <pcuser.mails at gmail.com> wrote:
> I'm getting kernel panic after cramfs root file system is mounted,I am
> expecting to enter login prompt after root file system is mounted.
>
> Kernel cmd line : mem=32M console=ttySAC0,115200 root=/dev/ram0
> rootfstype=cramfs init=/linuxrc initrd=0x80800000,8M user_debug=31
>
> *linuxrc init script*
> #!/bin/sh**
> /bin/echo "mount /etc as ramfs"
> /bin/mount -n -t ramfs ramfs /etc
> /bin/mount -n -t tmpfs tmpfs /tmp
> exec /sbin/init
>
> I tried with this init script,but kernel is hanging without any message..
> I changed it a bit as below, to see if it reads the init script
>
> #!/bin/sh
> /bin/echo "Entering Init script"
>
Init isn't allowed to exit.
That's probably why you're seeing the panic. Try starting a shell after
the /bin/echo, or just using /bin/sh as init.
> with this changes,I am expect to get print message "Entering Init script"
> after cramfs is mounted,but I am getting panic message which is attached
> below.
>
Probably because the system panics before the stdout buffers make it to
the console.
Regards,
Kristof
More information about the Kernelnewbies
mailing list