title: How to load kernel from fat partition in u-boot under qemu ( arm versatile pb )
body: <p>I have added to u-boot versatile pb config file located in include/configs/versatile.h this lines:</p>
  
  <pre><code>#define CONFIG_CMD_FAT
  #define CONFIG_DOS_PARTITION           1
  </code></pre>
  
  <p>to add fatload command to u-boot. So I have fatload command suported.
  And I'm starting u-boot this way:</p>
  
  <pre><code>qemu-system-arm -M versatilepb -m 128M -nographic -kernel u-boot
  </code></pre>
  
  <p>Now question is how to pass to qemu file that contains fat filesystem with kernel ( im interested in booting FreeBSD kernel, but i think example with loading Linux could help me too ) and then load kernel and boot it under u-boot.</p>