[U-Boot-Users] Help :: PQ2FADS / BDI2000
uboot at sundmangroup.com
uboot at sundmangroup.com
Wed Mar 10 16:04:06 CET 2004
Comrades,
I have the Motorola PQ2FADS reference board and have successfully
built Uboot-1.0.2 to it. I also have a BDI2000. When I try to debug
the PQ2FADS board with the BDI2000 solely ( by means of e.g TI/TC ) or
with ppc82xx_gdb I get a ,
reset detected at 0xfff00124
Always, I can never debug boyond this point due to the reset.
When I run without the BDI2000 , Uboot starts fine. Can someone give
me a hint on what I am doing wrong...
Code snippet and point where the Reset is received:
====================================================
_start:
li r21, BOOTFLAG_COLD /* Normal Power-On: Boot from FLASH*/
nop
b boot_cold
. = EXC_OFF_SYS_RESET + 0x10
.globl _start_warm
_start_warm:
li r21, BOOTFLAG_WARM /* Software reboot */
b boot_warm
boot_cold:
#if defined(CONFIG_MPC8260ADS)
lis r3, CFG_DEFAULT_IMMR at h
nop
lwz r4, 0(r3)
nop <<<----------------------------RESET!!!
rlwinm r4, r4, 0, 8, 5
Register file for the BDI2000:
==========================================================
; bdiGDB configuration file for PQ2FADS-ZU board
; ----------------------------------------------
;
[INIT]
; init core register
WREG MSR 0x00001002 ;MSR : ME,RI
WM32 0x0F010004 0xFFFFFFC3 ;SYPCR: disable watchdog
WM32 0x0F0101A8 0x04700000 ;IMMR : internal space @ 0x04700000
WM32 0x04710024 0x100C0001 ;BCR : Single PQ2, ..
WM32 0x04710c94 0x00000001 ;RMR : checkstop reset enable
;
; init memory controller
WM32 0x04710104 0xFF800876 ;OR0: Flash 8MB, CS early negate, 11 w.s.,
Timing relax
WM32 0x04710100 0xFF801801 ;BR0: Flash @0xFF800000, 32bit, no parity
WM32 0x0471010C 0xFFFF8010 ;OR1: BCSR 32KB, all types accesse, 1 w.s.
WM32 0x04710108 0x04501801 ;BR1: BCSR @0x04500000, 32bit, no parity
; init SDRAM Init (PPC bus)
WM16 0x04710184 0x2800 ;MPTPR: Divide Bus clock by 41
WM8 0x0471019C 0x13 ;PSRT : Divide MPTPR output by 20
WM32 0x04710114 0xfe002ec0 ;OR2 : 32MB, 2 banks, row start at A9, 11 rows
WM32 0x04710110 0x00000041 ;BR2 : SDRAM @0x00000000, 64bit, no parity
WM32 0x04710190 0x824b36a3 ;PSDMR: Precharge all banks
WM32 0x04710190 0xaa4b36a3
WM8 0x00000000 0x00 ;Access SDRAM
WM32 0x04710190 0x8a4b36a3 ;PSDMR: CBR Refresh
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM32 0x04710190 0x9a4b36a3 ;PSDMR: Mode Set
WM8 0x00000190 0x00 ;Access SDRAM
WM32 0x04710190 0xc24b36a3 ;PSDMR: enable refresh, normal operation
; init Local Bus SDRAM (100MHz)
WM8 0x047101a4 0x13 ;LSRT
WM32 0x0471011c 0xff803280 ;OR3
WM32 0x04710118 0xd0001861 ;BR3
WM32 0x04710194 0x828737a3 ;LSDMR: Precharge all banks
WM32 0x04710194 0xaa8737a3
WM8 0xd0000000 0x00 ;Access SDRAM
WM32 0x04710194 0x8a8737a3 ;LSDMR: CBR Refresh
WM8 0xd0000000 0xFF ;Access SDRAM
WM8 0xd0000000 0xFF ;Access SDRAM
WM8 0xd0000000 0xFF ;Access SDRAM
WM8 0xd0000000 0xFF ;Access SDRAM
WM32 0x04710194 0x9a8737a3 ;LSDMR: Mode Set
WM8 0xd00000cc 0x00 ;Access SDRAM
WM32 0x04710194 0xc28737a3 ;LSDMR: enable refresh, normal operation
;WM16 0xfff00000 0x0060
;WM16 0xfff00000 0x00D0
;WM16 0xfff00000 0xffff
[TARGET]
CPUTYPE 8275 ;the CPU type
JTAGCLOCK 0 ;use 16 MHz JTAG clock
BDIMODE AGENT
STARTUP RESET
BREAKMODE HARD
STEPMODE HWBP
VECTOR CATCH
;MMU XLAT
POWERUP 5000 ;start delay after power-up detected in ms
BOOTADDR 0xfff00100 ;boot address used for start-up break
WORKSPACE 0x04700000 ;workspace in target RAM for fast download
MEMDELAY 2000 ;additional memory access delay
[HOST]
IP 134.138.242.88
;FILE E:\cygwin\home\bdidemo\mpc8260\vxworks
;FORMAT ELF
FORMAT ROM
FILE /root/montavista/devrocket/workspace/Uboot/u-boot
;FORMAT BIN 0x00000000
;FORMAT BIN 0x04708000
;LOAD MANUAL ;load code MANUAL or AUTO after reset
LOAD AUTO
DEBUGPORT 2001
PROMPT 8275+> ;new prompt for Telnet
;DUMP E:\temp\dump.bin
;DUMP dump.bin ;Linux: dump.bin must already exist and
public writable
[FLASH]
CHIPTYPE I28BX8 ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 |
I28BX16)
CHIPSIZE 0x200000 ;The size of one flash chip in bytes (e.g.
AM29F010 = 0x20000)
BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16
| 32 | 64)
WORKSPACE 0x04700000 ;workspace in dual port RAM
FILE u-boot.bin
;FILE E:\tornado\target\config\ads8260\test.hex ;The file to program
;FILE E:\cygwin\home\bdidemo\mpc8260\vxworks ;The file to program
;FORMAT BIN 0xFF900000
FORMAT BIN 0xFFF00000
;UNLOCK 0xfff00000 0x40000 10
ERASE 0xfff00000
;ERASE 0xFF900000 ;erase sector 4 of flash SIMM (LH28F016SCT)
;ERASE 0xFF940000 ;erase sector 5 of flash SIMM
;ERASE 0xFF980000 ;erase sector 6 of flash SIMM
;ERASE 0xFF9c0000 ;erase sector 7 of flash SIMM
[REGS]
DMM1 0x04700000
FILE reg8280.def
More information about the U-Boot
mailing list