title: Wrong image format for "source" command for U-boot
body: <p>I'm trying to write a script to run commands automatically at U-boot.</p>
  
  <p>I followed the instructions on the website [1]. </p>
  
  <p><strong>Below is what I did.</strong></p>
  
  <p>I compiled the script on the NVIDIA Jetson board and put the compiled file into /boot/setenv.img</p>
  
  <p>Now when I reboot the board, load the script image with the command:</p>
  
  <p><code>ext2load mmc 0:1 100000 /boot/setenv.img</code></p>
  
  <p>I got the following output:</p>
  
  <p><code>1096 bytes read in 403 ms (2 KiB/s)</code></p>
  
  <p>Note that when I run command <code>imi</code>, it reports "Command not found" on Jetson board.</p>
  
  <p>I run the loaded image with the command:</p>
  
  <p><code>source 100000</code></p>
  
  <p>It gives me the following output (error message):</p>
  
  <pre><code>\## Executing script at 00100000
  
  Wrong image format for "source" command
  </code></pre>
  
  <p><strong>My question is:</strong></p>
  
  <p>Why is the image format incorrect for the <code>source</code> command?</p>
  
  <p>Is there any method that I can debug the error?</p>
  
  <p>Any help or advice about how to debug the error is really appreciated!</p>
  
  <p>[1] <a href="http://www.denx.de/wiki/view/DULG/UBootScripts" rel="nofollow">http://www.denx.de/wiki/view/DULG/UBootScripts</a></p>
  
  <p>Thank you very much!</p>