[U-Boot-Users] U-Boot 1.2 - Cannot run hello_world

Arun Biyani "abiyani at unix dot telasic dot com" at unix.telasic.com
Wed Jun 20 00:08:15 CEST 2007


Jude Miller wrote:
>
> First check that your U-Boot implements the bootelf command, e.g. by typing
> it on the command line. If it is not found, add CFG_CMD_ELF to your U-Boot
> commands and rebuild U-Boot, e.g.
>
>     #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CONFIG_CMD_ELF)
>     make
>     <re-install U-Boot>
>
> Now, get the ELF file into memory somewhere NOT where it is linked. I use
>   
When I add CFG_CMD_ELF to the configuration, I get the error below. 
Maybe the CFG_CMD_ELF needs
to be coupled with some other configuration option. Please help.

My current definition is -

#define CONFIG_COMMANDS     (                              \
                           CONFIG_CMD_DFL       |     \
               CFG_CMD_ELF          |    \
               CFG_CMD_MII          |    \
               CFG_CMD_JFFS2        |     \
               CFG_CMD_NET          |     \
               CFG_CMD_DHCP         |     \
               CFG_CMD_PING             \
               )

The error I get is - (dcache_status & dcache_disable missing):

          cd /home/abiyani/wrk/u-boot-1.2.0 && m68k-elf-ld -Bstatic -T 
/home/abiyani/wrk/u-boot-1.2.0/board/m5272c3/u-boot.lds -Ttext 
0xfe000000  -n $UNDEF_SYM cpu/mcf52x2/start.o \
           --start-group lib_generic/libgeneric.a 
board/m5272c3/libm5272c3.a cpu/mcf52x2/libmcf52x2.a lib_m68k/libm68k.a 
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a 
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a 
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a 
drivers/libdrivers.a drivers/nand/libnand.a 
drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a 
post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L 
/home/local/bin/../lib/gcc/m68k-uclinux/4.1.1/m5307/msep-data -lgcc \
                        -Map u-boot.map -o u-boot
common/libcommon.a(cmd_elf.o): In function `do_bootelf':
/home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:62: undefined reference 
to `dcache_status'
/home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:63: undefined reference 
to `dcache_disable'
make: *** [u-boot] Error 1
[u-boot-1.2.0$:1046]






More information about the U-Boot mailing list