* [U-Boot-Users] compile problems with u-boot
@ 2007-06-19 21:09 sapirf fersht
2007-06-19 21:38 ` Jerry Van Baren
0 siblings, 1 reply; 2+ messages in thread
From: sapirf fersht @ 2007-06-19 21:09 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] compile problems with u-boot
2007-06-19 21:09 [U-Boot-Users] compile problems with u-boot sapirf fersht
@ 2007-06-19 21:38 ` Jerry Van Baren
0 siblings, 0 replies; 2+ messages in thread
From: Jerry Van Baren @ 2007-06-19 21:38 UTC (permalink / raw)
To: u-boot
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: <mailman.29221.1182256330.29999.u-boot-users@lists.sourceforge.net>
<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
> <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]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-19 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 21:09 [U-Boot-Users] compile problems with u-boot sapirf fersht
2007-06-19 21:38 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox