Skip to contentSkip to conversation

U-Boot Not Loading Successfully

U-Boot-Users Jeff Stevens 1 participant 1 message Jan 2, 2004

lore
Share & tools
lore
#0 lore raw

Sam,
I'm not sure what reset vector is. I am assuming
that you are talking about CFG_RESET_ADDRESS, which I
have set to 0x80000000. I'm not sure exactly what to
set that to, since some board configuration files tell
you to set it to a known invalid address, and then some have it set to flash base plus 0x100. Also, the
speed of the flash I am using is a 70ns flash device.

Thanks for the help!

Quoted 117 lines
Quoted 11 lines · --- SAM SONG

Date: Wed, 31 Dec 2003 13:21:29 -0800 (PST)
From: Jeff Stevens <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] U-Boot Not Loading Successfully

I am porting U-Boot over to a new product and am having some difficulty getting U-Boot to load successfully. I have placed our board on a logic analyzer and found (based on System.map) that

U-Boot

Quoted 1 line

seems to crash in cpu/mpc8xx/cpu_init.c in

function

Quoted 5 lines

cpu_init_f at lines:

memctl->memc_br0 = CFG_BR0_PRELIM;
memctl->memc_or0 = CFG_OR0_PRELIM;

Quoted 8 lines

Here is my board configuration:

CPU:   MPC855T
FLASH: AMD AM29LV040B (512kB 8-bit on CS0)
SDRAM: Micron MT48LC4M32 (16MB 32-bit on CS2)
NVRAM: Simtek STK14C88 (32kB 8-bit on CS4)

The board is set to have the IMMR come up at 0xFF000000 (on hard reset), and that is what I

have

Quoted 3 lines

CFG_IMMR set to in my board configuration file. Could
this be a problem with the placement of the IMMR.

I

Quoted 1 line

previously had the IMMR at 0x00000000 on hard

reset

Quoted 1 line

and then moved it to 0xFA200000 with CFG_IMMR,

which

Quoted 5 lines

had the same effect. Or, could this be an issue with
my BR0 and OR0 settings?

---------------------------------------------------

Quoted 3 lines

Both settings on CFG_IMMR are OK.Only you set CFG_IMMR
on 0xFFF80000 would have some problems.I guess

your

Quoted 2 lines

trouble don't relate with CFG_IMMR settings.

---------------------------------------------------

Quoted 28 lines

I read something in that
file before those two lines above, which talked about
CFG_OR0_REMAP, but didn't quite understand it. Should
I be using this?

Here are my BRx, ORx settings:

#define FLASH_BASE_PRELIM     0xFFF80000
#define CFG_PRELIM_OR_AM      0xFFFF0000
#define CFG_OR_TIMING_FLASH   (OR_CSNT_SAM |

OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX | OR_EHTR)

-----------------------------------------------
Pls tell us the FLASH SPEED or we cannot check the OR0
configuration for you.Meanwhile,what's your reset vector prefix?0x0000 or 0xfff0?
------------------------------------------------

#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM |
CFG_OR_TIMING_FLASH)
#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM &
BR_BA_MSK) | (BR_PS_8 & BR_PS_MSK) | BR_V)

Quoted 7 lines

#define SDRAM_BASE_PRELIM 0x00000000
#define SDRAM_MAX_SIZE 0x01000000

#define CFG_OR_TIMING_SDRAM (OR_G5LA | OR_G5LS)
#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM |
CFG_OR_TIMING_SDRAM )
#define CFG_BR2_PRELIM ((SDRAM_BASE_PRELIM

&

Quoted 7 lines

BR_BA_MSK) | BR_MS_UPMA | BR_V )

#define CFG_NVRAM_BASE 0xFA000000
#define CFG_OR4_PRELIM (CFG_PRELIM_OR_AM |
CFG_OR_TIMING_FLASH)
#define CFG_BR4_PRELIM ((CFG_NVRAM_BASE &
BR_BA_MSK) | (BR_PS_8 & BR_PS_MSK) | BR_V |

OR_EHTR)

Quoted 2 lines

I would appreciate anyones input, since I'm not

too

Quoted 9 lines

familiar with the U-Boot beyond the board specific files.

Thanks in advance!

------------------------------------------

Best regards,

Quoted 8 lines

SAM

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Quoted 5 lines

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/