All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] compile problems with u-boot
Date: Tue, 19 Jun 2007 17:38:53 -0400	[thread overview]
Message-ID: <46784CED.4060006@smiths-aerospace.com> (raw)
In-Reply-To: <7ee1596c0706191409q390773a5n7adec05ef54d750@mail.gmail.com>

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]

      reply	other threads:[~2007-06-19 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 21:09 [U-Boot-Users] compile problems with u-boot sapirf fersht
2007-06-19 21:38 ` Jerry Van Baren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46784CED.4060006@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.