This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM355 U-Boot Compile

Hi, I have a problem building u-boot. I've copied the whole u-boot folder to a local directory (unchanged), when I run the make I get an error:

[steve@localhost u-boot-1.2.0]$ make dm355_evm_config
: invalid option
make: *** [dm355_evm_config] Error 1

Not many clues there, so I ran make with -d option to try getting a bit more info, though still not much:

[steve@localhost u-boot-1.2.0]$ make -d dm355_evm_config          
GNU Make 3.80
((( I chopped a load of stuff out of here )))
Updating goal targets....
Considering target file `dm355_evm_config'.
 File `dm355_evm_config' does not exist.
  Considering target file `unconfig'.
   File `unconfig' does not exist.
   Finished prerequisites of target file `unconfig'.
  Must remake target `unconfig'.
Putting child 0x08ef0d50 (unconfig) PID 300 on the chain.
Live child 0x08ef0d50 (unconfig) PID 300
Got a SIGCHLD; 1 unreaped children.
Reaping winning child 0x08ef0d50 PID 300
Removing child 0x08ef0d50 PID 300 from chain.
  Successfully remade target file `unconfig'.
 Finished prerequisites of target file `dm355_evm_config'.
Must remake target `dm355_evm_config'.
: invalid option
Got a SIGCHLD; 2 unreaped children.
Putting child 0x08ef0d50 (dm355_evm_config) PID 301 on the chain.
Live child 0x08ef0d50 (dm355_evm_config) PID 301
Reaping losing child 0x08ef0d50 PID 301
make: *** [dm355_evm_config] Error 1
Removing child 0x08ef0d50 PID 301 from chain.

Maybe someone has some ideas for why the make fails? Many thanks.

  • Did you type

    > make mrproper

    Before you tried 'make dm355_evm_config'; FYI, make mrproper is similar to make clean for u-boot.  I was getting errors (not as many though) before I execited the above command.

  • Yep, the cleaning appeared to do good things, but the make config just stops with the error:

    [steve@localhost u-boot-1.2.0]$ make mrproper
    find /home/steve/Documents/u-boot-1.2.0 -type f \
    \( -name 'core' -o -name '*.bak' -o -name '*~' \
    -o -name '*.o'  -o -name '*.a'  \) -print \     
    | xargs rm -f                                   
    rm -f examples/hello_world examples/timer \     
          examples/eepro100_eeprom examples/sched \ 
          examples/mem_to_mem_idma2intr examples/82559_eeprom \
          examples/smc91111_eeprom examples/interrupt \       
          examples/test_burst                                 
    rm -f tools/img2srec tools/mkimage tools/envcrc \         
            tools/gen_eth_addr                                
    rm -f tools/mpc86x_clk tools/ncb                          
    rm -f tools/easylogo/easylogo tools/bmp_logo
    rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
    rm -f tools/env/fw_printenv tools/env/fw_setenv
    rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
    rm -f board/netstar/eeprom board/netstar/crcek board/netstar/crcit
    rm -f board/netstar/*.srec board/netstar/*.bin
    rm -f board/trab/trab_fkt board/voiceblue/eeprom
    rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
    rm -f include/bmp_logo.h
    rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
    find /home/steve/Documents/u-boot-1.2.0 -type f \( -name .depend \
    -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
    -print0 \
    | xargs -0 rm -f
    rm -f  *.bak ctags etags TAGS include/version_autogenerated.h
    rm -fr *.*~
    rm -f u-boot u-boot.map u-boot.hex
    rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
    rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
    rm -rf include/asm/proc include/asm/arch include/asm
    [ ! -d /home/steve/Documents/u-boot-1.2.0/nand_spl ] || find nand_spl -lname "*" -print | xargs rm -f

     

    [steve@localhost u-boot-1.2.0]$ make dm355_evm_config
    : invalid option
    make: *** [dm355_evm_config] Error 1
    [steve@localhost u-boot-1.2.0]$

  • This is odd as it worked for me; can you check your Makefile (at root u-boot source tree directory) and ensure dm355_evm_config is a valid build option.  From the error, it appears it is having difficulty finding all the files associated with this configuration, so the Makefile would be a good place to start tracing from.  Optionally, you can just untar u-boot source tree again and maybe that fixes things.  Finally, I would try building as the root (as opposed to <user>).

    These are just some ideas to try, please let us know your results.

  • I got the u-boot compile working - I untared the whole source tree again to a different directory and it builds fine now, thanks for the suggestions.

  • This is great news; thank you for sharing your solution with our community