All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Scharsig <js_at_ng@scharsoft.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [ARM] start.s for 920t brocken?
Date: Tue, 14 Dec 2010 20:38:27 +0100	[thread overview]
Message-ID: <4D07C7B3.6090201@scharsoft.de> (raw)

Hello,

is it possible that, start.s for arm920t is broken with relocation?

I try make my board run with relocation and start from NOR Flash.

<snip>
start_code:
	/*
	 * set the cpu to SVC32 mode
	 */
	mrs	r0, cpsr
	bic	r0, r0, #0x1f
	orr	r0, r0, #0xd3
	msr	cpsr, r0

	bl	coloured_LED_init
	bl	red_LED_on

#if	
<snip>

I found out, that the board crashes on calling coloured_LED_init.

So I comment out "bl coloured_LED_init" and "bl red_LED_on" and the board boots.
I think this both calls should be removed at this position or moved to a better place. 
At this early position the C environment and stack are not initialized !?

Can anybody confirm this? Any suggestions or patches?

Thanks

Jens Scharsig 

                 reply	other threads:[~2010-12-14 19:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D07C7B3.6090201@scharsoft.de \
    --to=js_at_ng@scharsoft.de \
    --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.