title: qemu is not able to boot u-boot uImage binary
body: <p>I've used buildroot to build a qemu compatible Linux kernel and root filesystem. I am emulating for the MPC8544DS machine and used the <code>qemu_ppc_mpc8544ds_defconfig</code> to generate these components. I was able to successfully build the kernel and the root filesystem. And was able to run it under qemu.</p>
  
  <p>However when I tried to run uboot instead of the Linux Kernel (and the associated rootfs) it fails. Here is the way I invoke qemu to boot u-boot: </p>
  
  <p><code>qemu-system-ppc -nographic -M mpc8544ds -m 512 -kernel ~/CrossCompilation/u-boot.bin</code> and it fails like so:</p>
  
  <p><code>Wrong image type 52, expected 2
  qemu: could not load kernel '~/CrossCompilation/u-boot.bin'</code></p>
  
  <p>I do not understand what else could be wrong. I've checked various blog posts over the internet and almost all of them use uboot.bin as the kernel (as opposed to srec and other formats)</p>
  
  <p>could someone shed some light on the various image type numbers and which ones fit where?</p>
  
  <p>UPDATE: This is how I compiled my u-boot</p>
  
  <pre><code>cd to u-boot dir
  
  make distclean
  make mrproper
  
  make ARCH=powerpc CROSS_COMPILE=~/CrossCompilation/buildroot-2014.08/output/host/usr/bin/powerpc-buildroot-linux-gnuspe- MPC8544DS_defconfig
  
  make ARCH=powerpc CROSS_COMPILE=~/CrossCompilation/buildroot-2014.08/output/host/usr/bin/powerpc-buildroot-linux-gnuspe-
  </code></pre>