From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Tue, 19 Jun 2007 17:38:53 -0400 Subject: [U-Boot-Users] compile problems with u-boot In-Reply-To: <7ee1596c0706191409q390773a5n7adec05ef54d750@mail.gmail.com> References: <7ee1596c0706191409q390773a5n7adec05ef54d750@mail.gmail.com> Message-ID: <46784CED.4060006@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de sapirf fersht wrote: > I am trying to compile u-boot and i get the following error: > > common/libcommon.a(main.o): In function `readline': > u-boot-1.2.0/common/main.c:953: undefined reference to `get_ticks' > common/libcommon.a(main.o): In function `reset_cmd_timeout': > u-boot-1.2.0/common/main.c:519: undefined reference to `get_ticks' > u-boot-1.2.0/common/main.c:519: undefined reference to `get_tbclk' > common/libcommon.a(main.o): In function `abortboot': > u-boot-1.2.0/common/main.c:97: undefined reference to `get_ticks' > u-boot-1.2.0/common/main.c:97: undefined reference to `get_tbclk' > u-boot-1.2.0/common/main.c:163: undefined reference to `get_ticks' > > I checked for this error in google and it was suggested to add the > following lines to include/configs/stamp.h > > #define CONFIG_BOOT_RETRY_TIME 0 > #define CONFIG_BOOT_RETRY_MIN 20 > > I added them and it still throws the same error. > > It compiled before. The only changes i made are: > > #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ > #define CONFIG_AUTOBOOT_KEYED > #define CONFIG_AUTOBOOT_PROMPT "\nEnter password - autoboot > in %d seconds...\n" > #define CONFIG_AUTOBOOT_DELAY_STR "somekey" > #define CONFIG_BOOT_RETRY_TIME 900 > #define CONFIG_BOOT_RETRY_MIN 30 > > Sapir Hi Sapir, Google knows everything, but everything google knows isn't necessarily true. ;-) I don't see any way your search results apply to your problem. I don't know much about what you are doing (CPU, board, etc.), but it looks to me like you added a need to read the time when you configured for a boot delay but did not provide a means of reading time. The functions get_ticks() (returning the current time) and get_tbclk() (tb = timebase register) apparently don't exist in your code/configuration. Add them and it will link. HTH, gvb >From "abiyani at unix dot telasic dot com" at unix.telasic.com Wed Jun 20 00:08:15 2007 From: "abiyani at unix dot telasic dot com" at unix.telasic.com (Arun Biyani) Date: Tue, 19 Jun 2007 15:08:15 -0700 Subject: [U-Boot-Users] U-Boot 1.2 - Cannot run hello_world In-Reply-To: <4677E737.2070507@alum.mit.edu> References: <4677E737.2070507@alum.mit.edu> Message-ID: <200706192208.PAA23857@unix.telasic.com> 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 > > > 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]