Hi,<br>I&#39;m doing kernel porting to arm926 based FPGA board,very minimal setup (uart + timer only)
<br>I&#39;m getting kernel panic after cramfs root file system is mounted,I am expecting to enter login prompt after root file system is mounted.<br>
<br>
Below are the details<br><br>
#define PLAT_PHYS_OFFSET       0x80000000 (with 128 MB SDRAM)<br>
#define CONFIG_PAGE_OFFSET  0xc0000000<br><br><br>Physical memory : 128MB (0x80000000 to 88000000)<br><br>ZRELADDR = 0x80008000<br>PARAMS_PHYS = 0x80000100<br>INITRD_PHYS = 0x80800000<br><br>Kernel cmd line : mem=32M console=ttySAC0,115200 root=/dev/ram0 rootfstype=cramfs init=/linuxrc initrd=0x80800000,8M user_debug=31<br>




<br>executables in cramfs (/bin) are built with busy box with all libraries statically linked.<br><br><u><b>linuxrc init script</b></u><br>#!/bin/sh<u><b></b></u><br>/bin/echo &quot;mount /etc as ramfs&quot;<br>/bin/mount -n -t ramfs ramfs /etc<br>

/bin/mount -n -t tmpfs tmpfs /tmp<br>

exec /sbin/init<br><br>I tried  with this init script,but kernel is hanging without any message..<br>I changed it a bit as below, to see if it reads the init script <br><br>#!/bin/sh<br>/bin/echo &quot;Entering Init script&quot;<br>



<br>with this changes,I am expect to get print message &quot;Entering Init script&quot; after cramfs is mounted,but I am getting panic message which is attached below.<br>Can some one suggest how to fix this..<br><br><br>


<b><u>Kernel message:</u></b><br><u><b>memory layout:</b></u><br>
  Virtual kernel memory layout:<br>    vector  : 0xffff0000 - 0xffff1000   (   4 kB)<br>    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)<br>    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)<br>
    vmalloc : 0xc2800000 - 0xf6000000   ( 824 MB)<br>    lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)<br>    modules : 0xbf000000 - 0xc0000000   (  16 MB)<br>      .text : 0xc0008000 - 0xc0169000   (1412 kB)<br>      .init : 0xc0169000 - 0xc017d000   (  80 kB)<br>




      .data : 0xc017e000 - 0xc018b720   (  54 kB)<br>       .bss : 0xc018b744 - 0xc019c6fc   (  68 kB)<br><br>RAMDISK: cramfs filesystem found at block 0<br>RAMDISK: Loading 5868KiB [1 disk] into ram disk... -<br>done.<br>




VFS: Mounted root (cramfs filesystem) readonly on device 1:0.<br>Freeing init memory: 80K<br><br><u><b>Panic message:</b></u><br>Kernel panic - not syncing: Attempted to kill init!<br>Backtrace:<br>[&lt;c000c378&gt;] (dump_backtrace+0x0/0x10c) from [&lt;c000c49c&gt;] (dump_stack+0x18/0x1c)<br>




 r6:c1822000 r5:c018bb40 r4:c018bb60 r3:60000013<br>[&lt;c000c484&gt;] (dump_stack+0x0/0x1c) from [&lt;c0017d3c&gt;] (panic+0x64/0x1b0)<br>[&lt;c0017cd8&gt;] (panic+0x0/0x1b0) from [&lt;c001b5d8&gt;] (do_exit+0x2b8/0x6b4)<br>




 r3:c0184294 r2:00000000 r1:00000001 r0:c014f394<br> r7:c1822000<br>[&lt;c001b320&gt;] (do_exit+0x0/0x6b4) from [&lt;c001bd3c&gt;] (do_group_exit+0xd8/0xe0)<br> r7:000000f8<br>[&lt;c001bc64&gt;] (do_group_exit+0x0/0xe0) from [&lt;c001bd5c&gt;] (sys_exit_group+0x18/0x20)<br>




 r4:0008eba4 r3:00000000<br>[&lt;c001bd44&gt;] (sys_exit_group+0x0/0x20) from [&lt;c0009460&gt;] (ret_fast_syscall+0x0/0x2c)<br>