title: Unable to boot kernel image built for vexpress-a9 on qemu : Blank Screen
body: <p>I have compiled linux kernel v4.9 using the following steps : </p>
  
  <pre><code>export ARCH=arm
  export CROSS_COMPILE=arm-linux-gnueabi-
  make vexpress_defconfig
  make all -j40
  </code></pre>
  
  <p>Then I created ramdisk with a simple hello world program as init process</p>
  
  <pre><code>#include &lt;stdio.h&gt; 
  
  void main() {
    printf("Hello World!\n");
    while(1);
  }
  
  //compile and pack
  arm-linux-gnueabi-gcc -static init.c -o init
  echo init|cpio -o --format=newc &gt; initramfs
  </code></pre>
  
  <p>Now when I try to run with qemu, I get a black  screen  and nothing else</p>
  
  <pre><code>qemu-system-arm -M vexpress-a9 -kernel linux-4.9/arch/arm/boot/zImage -initrd initramfs -append "console=tty1"
  </code></pre>
  
  <p>Also, on my terminal from which qemu was launched, I get the following prints (which look irrelevant)</p>
  
  <pre><code>pulseaudio: set_sink_input_volume() failed
  pulseaudio: Reason: Invalid argument
  pulseaudio: set_sink_input_mute() failed
  pulseaudio: Reason: Invalid argument
  </code></pre>
  
  <p>This is my qemu screen (completely blank) : 
  <a href="https://i.stack.imgur.com/EW04T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EW04T.png" alt="enter image description here"></a></p>
  
  <p>I am using Qemu for the first time and was using <a href="https://balau82.wordpress.com/2012/03/31/compile-linux-kernel-3-2-for-arm-and-emulate-with-qemu/" rel="nofollow noreferrer">this article</a> for reference.</p>