title: Linux Kernel 3.4.1 hangs after printing "VFS: Mounted root (ubifs filesystem)."
body: <p>I am trying to bring up Linux-3.4.1 on our cutom MIPS based hardware. It hung after printing the line </p>
  
  <pre><code>VFS:Mounted root (ubifs filesystem)
  </code></pre>
  
  <p>On further debugging, it was found that kernel is hanging in free_init_mem() [arch/mips/mm/init.c] . My debug prints to determine the place of hang in free_init_mem is as below :</p>
  
  <pre><code>Freeing unused kernel memory:  8038e000 - 803bb000
  Freeing unused kernel memory: 8038e000 page
  Freeing unused kernel memory: 8038f000 page
  Freeing unused kernel memory: 80390000 page
  Freeing unused kernel memory: 80391000 page
  Freeing unused kernel memory: 80392000 page
  Freeing unused kernel memory: 80393000 page
  Freeing unused kernel memory: 80394000 page
  .....
  Freeing unused kernel memory: 803b4000 page
  &lt;hang&gt;
  </code></pre>
  
  <p>Any help to debug the above hang will be very useful.</p>