Thread (3 messages) flat view 3 messages, 2 authors, 2012-04-16

kernel panic after VFS mount in FPGA board

From: Kristof Provost <hidden>
Date: 2012-04-11 14:04:54

On 2012-04-11 19:03:42 (+0530), pcuser p [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help