public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] troubles
@ 2005-11-30 14:23 Alexandr Kuleschov
  2005-11-30 15:09 ` Daniel Stenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandr Kuleschov @ 2005-11-30 14:23 UTC (permalink / raw)
  To: u-boot

Hi people!

I work with based on AT91RM9200  board.
When i define
- CONFIG_SKIP_LOWLEVEL_INIT
- CONFIG_SKIP_RELOCATE_UBOOT 

then i see troubles:

cpu/arm920t/start.o:/home/ask/distr/u-boot-1.1.3/cpu/arm920t/start.S:265:
undefined reference to `lowlevel_init'

How to solve a problem?
Thank
P.S. host OS - ASPLinux 9.2

Alexandr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] troubles
  2005-11-30 14:23 [U-Boot-Users] troubles Alexandr Kuleschov
@ 2005-11-30 15:09 ` Daniel Stenberg
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Stenberg @ 2005-11-30 15:09 UTC (permalink / raw)
  To: u-boot

On Wed, 30 Nov 2005, Alexandr Kuleschov wrote:

> When i define
> - CONFIG_SKIP_LOWLEVEL_INIT
> - CONFIG_SKIP_RELOCATE_UBOOT
>
> then i see troubles:
>
> cpu/arm920t/start.o:/home/ask/distr/u-boot-1.1.3/cpu/arm920t/start.S:265:
> undefined reference to `lowlevel_init'
>
> How to solve a problem?

You need this:

Index: cpu/arm920t/start.S
===================================================================
RCS file: /cvsroot/u-boot/u-boot/cpu/arm920t/start.S,v
retrieving revision 1.14
diff -u -r1.14 start.S
--- cpu/arm920t/start.S 6 Oct 2005 21:47:43 -0000       1.14
+++ cpu/arm920t/start.S 30 Nov 2005 15:09:02 -0000
@@ -225,6 +225,7 @@
  _start_armboot:        .word start_armboot


+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
  /*
   *************************************************************************
   *
@@ -265,7 +266,8 @@
         mov     lr, ip
         mov     pc, lr

-
+#endif
+
  /*
   *************************************************************************
   *


-- 
          -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] troubles
@ 2005-12-06  8:46 Alexandr Kuleschov
  2005-12-06  9:14 ` Anders Larsen
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandr Kuleschov @ 2005-12-06  8:46 UTC (permalink / raw)
  To: u-boot

Hi people!

I work with based on AT91RM9200  board. (SDRAM 16Mbitx16)
When i use "mtest" then U-BOOT does not work
But if to change a line
#define CFG_MEMTEST_END  CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144

to a line

#define CFG_MEMTEST_END CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 2000000
works correctly

How to solve a problem?
Thank

Alexandr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] troubles
  2005-12-06  8:46 Alexandr Kuleschov
@ 2005-12-06  9:14 ` Anders Larsen
  0 siblings, 0 replies; 5+ messages in thread
From: Anders Larsen @ 2005-12-06  9:14 UTC (permalink / raw)
  To: u-boot

Alexandr Kuleschov <kuleschov@alpha.tula.net> schrieb am Dienstag, 6. Dezember 2005 um 09:46 +0100:
>I work with based on AT91RM9200  board. (SDRAM 16Mbitx16)
>When i use "mtest" then U-BOOT does not work
>But if to change a line
>#define CFG_MEMTEST_END  CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
>
>to a line
>
>#define CFG_MEMTEST_END CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 2000000
>works correctly
>
>How to solve a problem?

Hi,

it seems the mtest is overwriting heap and stack.
AFAICT it would suffice to use
#define CFG_MEMTEST_END CFG_MEMTEST_START+PHYS_SDRAM_SIZE-1220608

(PHYS_SDRAM + PHYS_SDRAM_SIZE - TEXT_BASE + CFG_MALLOC_LEN +
 CONFIG_STACKSIZE - 4)

Cheers
 Anders

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] troubles
@ 2005-12-07  9:38 Alexandr Kuleschov
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandr Kuleschov @ 2005-12-07  9:38 UTC (permalink / raw)
  To: u-boot

Hi people!

I work with based on AT91RM9200  board. (SDRAM 16Mbitx16)
When i use  "#define CONFIG_SKIP_LOWLEVEL_INIT"  and "#define
CONFIG_SKIP_RELOCATE_UBOOT" then U-BOOT does not work.

But if to change a lines  in file "/cpu/arm920t/at91rm9200/lowlevel_init.S"  :

    ldr     r0, =SMRDATA
    ldr     r1, _MTEXT_BASE
    sub     r0, r0, r1
    add     r2, r0, #32  //this number valid for me
and
    ldr     r0, =SMRDATA1
    ldr     r1, _MTEXT_BASE
    sub     r0, r0, r1
    add     r2, r0, #160  //this number valid for me

to a line

    ldr     r0, =SMRDATA
    add     r2, r0, #32  //this number valid for me
and
    ldr     r0, =SMRDATA1
    add     r2, r0, #160 //this number valid for me

works correctly

How to solve a problem?
Thank

Alexandr



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-07  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 14:23 [U-Boot-Users] troubles Alexandr Kuleschov
2005-11-30 15:09 ` Daniel Stenberg
  -- strict thread matches above, loose matches on Subject: below --
2005-12-06  8:46 Alexandr Kuleschov
2005-12-06  9:14 ` Anders Larsen
2005-12-07  9:38 Alexandr Kuleschov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox