title: Invalid ELF file error in CFE bootloader
body: <p>I have a <code>Broadcom</code> switch board with a <code>MPC8548E</code> PowerPC CPU on it. I have created a toolchain for this very CPU using <code>crosstool-ng</code>. When I try to load the compiled binary using the <code>CFE&gt;</code> boot loader on this board with the command <code>load -elf 10.13.51.131:main</code>, I get the following output:</p>
  
  <pre><code>CFE&gt; load -elf 10.13.51.131:main
  Loader:elf Filesys:tftp Dev:eth0 File:10.13.51.131:main Options:(null)
  Loading: Warning: negative seek on tftp file attempted
  Failed.
  Could not load 10.13.51.131:main: Invalid ELF file
  *** command status = -16
  </code></pre>
  
  <p>Why would it say <code>Invalid ELF file</code>? <code>readelf -h</code> shows me the following info:</p>
  
  <pre><code>$ readelf -h main
  ELF Header:
    Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
    Class:                             ELF32
    Data:                              2's complement, big endian
    Version:                           1 (current)
    OS/ABI:                            UNIX - System V
    ABI Version:                       0
    Type:                              EXEC (Executable file)
    Machine:                           PowerPC
    Version:                           0x1
    Entry point address:               0x100002c8
    Start of program headers:          52 (bytes into file)
    Start of section headers:          3972 (bytes into file)
    Flags:                             0x0
    Size of this header:               52 (bytes)
    Size of program headers:           32 (bytes)
    Number of program headers:         7
    Size of section headers:           40 (bytes)
    Number of section headers:         28
    Section header string table index: 25
  </code></pre>
  
  <p>How do I get the ELF file loaded, I don't even want to run anything yet, it first needs to accept the ELF. I have another ELF that's (supposedly) ready to run compiled with VxWorks but I get the same error using that one, too.</p>
  
  <p>This for a <code>Broadcom</code> reference board for the switch <code>BCM956440</code>.</p>