All of lore.kernel.org
 help / color / mirror / Atom feed
From: John <john@gelake.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] The problem on porting to similar FADS860 board
Date: Tue, 13 May 2003 11:46:51 +0800	[thread overview]
Message-ID: <001d01c31902$4c141780$844da93d@john> (raw)

 Hello list!

I've checked the archives, but have not found anyone using the 860 with my
problem.

I have a MPC860 board ported from FADS860 board. ( TEXT_BASE is also 0x2800000,
but IMMR is 0x2200000). I have vxworks run OK on it. But when I am porting
U-Boot on it. I met booting problem on it.

For Example as following:  (ELDK1.0 + U-boot-0.3.0)
--------------------------------------------------------
located in /cpu/mpc8xx/start.S
 .globl _start
 .extern testLed
_start:
 lis r3, 0x220 /* my IMMR addr is 0x2200000 */
 ori r3, r3, 0x0000
 mtspr 638, r3  /*IMMR SPR is 638*/

 bl  testLed  /* this is to light LEDs on board(PA0 - PA3)*/
----------------------------------------------------------
located in /cpu/mpc8xx/cpu_init.c
void testLed(void)
{
 int i,k;
 for(k=0;k<5;k++)
 {
  * (  (volatile unsigned short *) (0x2200000 + 0x950) ) = 0xA000; /* light LED
*/
  for (i=0; i<0xFFFF;i++)
  {;};
  * (  (volatile unsigned short *) (0x2200000 + 0x950) ) = 0x0000; /* unlight
LED */
  for (i=0; i<0xFFFF;i++)
  {;};
 };
};

When I build to *.bin and burn into bootrom flash, after power on, the LEDs of
board are not lighting. But, I tested these codes under Vxworks Bootrom code
(rominit.S), that's OK.

maybe it is linking problem? I 'm confused. Could you like to help me or give me
any comments ?

Thanks in advance!
John

             reply	other threads:[~2003-05-13  3:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13  3:46 John [this message]
2003-05-13  8:15 ` [U-Boot-Users] The problem on porting to similar FADS860 board Wolfgang Denk
2003-05-13 13:40   ` John
2003-05-13 13:56     ` Wolfgang Denk
2003-05-15 15:44       ` [U-Boot-Users] About porting MPC8260ADS board John
2003-05-15 17:00         ` Wolfgang Denk

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='001d01c31902$4c141780$844da93d@john' \
    --to=john@gelake.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.