[U-Boot-Users] write u-boot.bin on mpc8349e-mITX-gp with bdi2000

7 Jun
2007
7 Jun
'07
9:17 a.m.
Hello.
Now I'm trying to write u-boot.bin on mpc8349e-mITX-gp with bdi2000. But I don't have correct bdi2000 configuration file for mpc8349e-mITX-gp.
How can I write u-boot.bin on that board? Unfortunately I erased u-boot area on that board so there no u-boot anymore on that board. Is there anyone can show bdi2000 configuration file for mpc8349e-mITX-gp? Or please let me know how to write u-boot on that board with bdi2000.
I'll appreciate any comments.
--
View this message in context: http://www.nabble.com/write-u-boot.bin-on-mpc8349e-mITX-gp-with-bdi2000-tf38...
Sent from the Uboot - Users mailing list archive at Nabble.com.

7 Jun
7 Jun
4:35 p.m.
Soohyung Cho wrote:
Hello.
Now I'm trying to write u-boot.bin on mpc8349e-mITX-gp with bdi2000. But I don't have correct bdi2000 configuration file for mpc8349e-mITX-gp.
Here's mine.
--
Timur Tabi
Linux Kernel Developer @ Freescale
; BDI-2000 Configuration file for the MPC8349E-mITX-GP
; Tip: If after a reset, the BDI-2000 fails to halt at 0x100,
; you may need to power-down the board for a few seconds.
[INIT]
; We cannot relocate the IMMR to 0xE0000000 because U-Boot
; expects it to be at 0xFF400000. To be sure, we relocate it back
; to 0xFF400000 if it's at E0000000.
;WM32 0xE0000000 0xFF400000
; The rest of the [INIT] section is used to configure flash and DDR so that
; we can do flash updates from the BDI-2000.
; Keep in mind that U-Boot expects the processor and all IMMR registers to
; be at their power-on default values, so the stuff we do here could prevent
; U-Boot from booting properly. If in doubt, just delete this section and
; try again.
; The first thing we do is program the memory window for flash. Normally,
; we'd use LBLAWBAR0, but that interferes with U-Boot. But if we do that, then
; U-Boot won't boot. Using LBLAWBAR3, etc usually works, though.
; WINDOW 0 - Flash
WM32 0xFF400038 0xFE000000 ; LBLAWBAR3
WM32 0xFF40003C 0x80000016 ; LBLAWAR3
WM32 0xFF405018 0xfe001001 ; BR3
WM32 0xFF40501C 0xff806ff7 ; OR3 (8MB flash)
; DDR Local Access Windows
; WINDOW 0 - 1st DDR SODIMM
WM32 0xFF4000a0 0x00000000 ; DDRLAWBAR0
WM32 0xFF4000a4 0x8000001A ; DDRLAWAR0 (128MB)
; Temporarily disable the memory interface for reconfiguration
WM32 0xFF402110 0x42000000 ; DDR_SDRAM_CFG
; Now program the DDR with the right configuration and timing values. These
; values are specific to the DDR module you have installed. The easiest way
; to determine these values is from a working U-Boot. Just read these
; registers with the "md" command. Remember that U-Boot relocates the IMMR
; to 0xE0000000.
;WM32 0xFF402000 0x00000007 ; CS0_BNDS
;WM32 0xFF402080 0x80000101 ; CS0_CONFIG
WM32 0xFF402108 0x36332321 ; TIMING_CONFIG_1
WM32 0xFF40210C 0x00000800 ; TIMING_CONFIG_2
WM32 0xFF402118 0x00000022 ; SDRAM MODE
WM32 0xFF402124 0x045b0100 ; SDRAM INTERVAL
WM32 0xFF402130 0x00000000 ; SDRAM CLOCK CONTROL
; Re-enable the DDR memory controller
WM32 0xFF402110 0xC2000000 ; DDR_SDRAM_CFG
;WM32 0xFF4050d0 0x00000000 ; LBCR
;WM32 0xFF4050d4 0x80000004 ; LCRR
; Unlock flash in BCSR1
WM32 0xFF400800 0x00000000 ; ACR
[TARGET]
CPUTYPE 8349
JTAGCLOCK 0
STARTUP RESET
BREAKMODE HARD
STEPMODE HWBP
BOOTADDR 0x00000100
;If flash has been corrupted, you may need to uncomment this line.
RCW 0xb060a000 0x04040000
;If you're getting "Writing to workspace failed" errors during flash operations,
;then try uncommenting this line instead. This moves the flash window to
;high memory, leaving low memory available for DDR.
;RCW 0xb460a000 0x04040000
[HOST]
IP 192.168.1.1
FILE $u-boot.bin
LOAD MANUAL
PROMPT 8349E-mITX-GP>
DUMP itx-dump.bin
[FLASH]
CHIPTYPE AM29BX16
CHIPSIZE 0x800000
BUSWIDTH 16
;WORKSPACE 0x1000
FORMAT BIN 0xfe000000
;flash_image.bin is an image file of an entire 8MB flash region.
;Flash this file at 0xfe0000000 to restore all of flash.
;ERASE 0xFE000000 0x10000 127 ; 127 sectors @ 64KB each
;ERASE 0xFE7F0000 0x2000 8 ; 8 sectors @ 8KB each
;FILE $flash_image.bin
;Use these lines if you just want to flash U-Boot
ERASE 0xfe000000 0x10000 4 ; Erase 256KB, each sector is 64KB
FILE $u-boot.bin
[REGS]
FILE $reg8349e.def
;Register definition for MPC8349
;===============================
;
; name: user defined name of the register
; type: the type of the register
; GPR general purpose register
; SPR special purpose register
; MM memory mapped register
; DMMx direct memory mapped register with offset
; x = 1..4
; the base is defined in the configuration file
; e.g. DMM1 0x02200000
; addr: the number, adddress or offset of the register
; size the size of the register (8,16 or 32)
;
;name type addr size
;-------------------------------------------
;
sp GPR 1
;
xer SPR 1
lr SPR 8
ctr SPR 9
dsisr SPR 18
dar SPR 19
dec SPR 22
sdr1 SPR 25
srr0 SPR 26
srr1 SPR 27
csrr0 SPR 58
csrr1 SPR 59
;
tbl SPR 268
tbu SPR 269
sprg0 SPR 272
sprg1 SPR 273
sprg2 SPR 274
sprg3 SPR 275
sprg4 SPR 276
sprg5 SPR 277
sprg6 SPR 278
sprg7 SPR 279
ear SPR 282
tbl SPR 284
tbu SPR 285
svr SPR 286
pvr SPR 287
;
ibcr SPR 309
dbcr SPR 310
mbar SPR 311
dabr2 SPR 317
;
ibat0u SPR 528
ibat0l SPR 529
ibat1u SPR 530
ibat1l SPR 531
ibat2u SPR 532
ibat2l SPR 533
ibat3u SPR 534
ibat3l SPR 535
;
dbat0u SPR 536
dbat0l SPR 537
dbat1u SPR 538
dbat1l SPR 539
dbat2u SPR 540
dbat2l SPR 541
dbat3u SPR 542
dbat3l SPR 543
;
ibat4u SPR 560
ibat4l SPR 561
ibat5u SPR 562
ibat5l SPR 563
ibat6u SPR 564
ibat6l SPR 565
ibat7u SPR 566
ibat7l SPR 567
;
dbat4u SPR 568
dbat4l SPR 569
dbat5u SPR 570
dbat5l SPR 571
dbat6u SPR 572
dbat6l SPR 573
dbat7u SPR 574
dbat7l SPR 575
;
dmiss SPR 976
dcmp SPR 977
hash1 SPR 978
hash2 SPR 979
imiss SPR 980
icmp SPR 981
rpa SPR 982
;
hid0 SPR 1008
hid1 SPR 1009
iabr SPR 1010
hid2 SPR 1011
dabr SPR 1013
iabr2 SPR 1018
;
; System Configuration Registers
immrbar MBAR 0x00000
altcbar MBAR 0x00008
lblawbar0 MBAR 0x00020
lblawar0 MBAR 0x00024
lblawbar1 MBAR 0x00028
lblawar1 MBAR 0x0002C
lblawbar2 MBAR 0x00030
lblawar2 MBAR 0x00034
lblawbar3 MBAR 0x00038
lblawar3 MBAR 0x0003c
pcilawbar0 MBAR 0x00060
pcilawar MBAR 0x00064
pcilawbar1 MBAR 0x00068
pcilawar1 MBAR 0x0006C
ddrlawbar0 MBAR 0x000A0
ddrlawar0 MBAR 0x000A4
ddrlawbar1 MBAR 0x000A8
ddrlawar1 MBAR 0x000AC
sgprl MBAR 0x00100
sgprh MBAR 0x00104
spridr MBAR 0x00108
spcr MBAR 0x00110
sicrl MBAR 0x00114
sicrh MBAR 0x00118
;
; Watch Dog Timer (WDT) Registers
swcrr MBAR 0x00204
swcnr MBAR 0x00208
swsrr MBAR 0x0020E 16
;
; Real Time Clock Module Registers (RTC)
rtcnr MBAR 0x00300
rtldr MBAR 0x00304
rtpsr MBAR 0x00308
rtctr MBAR 0x0030C
rtevr MBAR 0x00310
rtalr MBAR 0x00314
;
; Periodic Interval Timer (PIT) Registers
ptcnr MBAR 0x00400
ptldr MBAR 0x00404
ptpsr MBAR 0x00408
ptctr MBAR 0x0040C
ptevr MBAR 0x00410
;
; Global Timers Module 1
gt1cfr1 MBAR 0x00500 8
gt1cfr2 MBAR 0x00504 8
gt1mdr1 MBAR 0x00510 16
gt1mdr2 MBAR 0x00512 16
gt1rfr1 MBAR 0x00514 16
gt1rfr2 MBAR 0x00516 16
gt1cpr1 MBAR 0x00518 16
gt1cpr2 MBAR 0x0051A 16
gt1cnr1 MBAR 0x0051C 16
gt1cnr2 MBAR 0x0051E 16
gt1mdr3 MBAR 0x00520 16
gt1mdr4 MBAR 0x00522 16
gt1rfr3 MBAR 0x00524 16
gt1rfr4 MBAR 0x00526 16
gt1cpr3 MBAR 0x00528 16
gt1cpr4 MBAR 0x0052A 16
gt1cnr3 MBAR 0x0052C 16
gt1cnr4 MBAR 0x0052E 16
gt1evr1 MBAR 0x00530 16
gt1evr2 MBAR 0x00532 16
gt1evr3 MBAR 0x00534 16
gt1evr4 MBAR 0x00536 16
gt1psr1 MBAR 0x00538 16
gt1psr2 MBAR 0x0053A 16
gt1psr3 MBAR 0x0053C 16
gt1psr4 MBAR 0x0053E 16
;
; Global Timers Module 2
gt2cfr1 MBAR 0x00600 8
gt2cfr2 MBAR 0x00604 8
gt2mdr1 MBAR 0x00610 16
gt2mdr2 MBAR 0x00612 16
gt2rfr1 MBAR 0x00614 16
gt2rfr2 MBAR 0x00616 16
gt2cpr1 MBAR 0x00618 16
gt2cpr2 MBAR 0x0061A 16
gt2cnr1 MBAR 0x0061C 16
gt2cnr2 MBAR 0x0061E 16
gt2mdr3 MBAR 0x00620 16
gt2mdr4 MBAR 0x00622 16
gt2rfr3 MBAR 0x00624 16
gt2rfr4 MBAR 0x00626 16
gt2cpr3 MBAR 0x00628 16
gt2cpr4 MBAR 0x0062A 16
gt2cnr3 MBAR 0x0062C 16
gt2cnr4 MBAR 0x0062E 16
gt2evr1 MBAR 0x00630 16
gt2evr2 MBAR 0x00632 16
gt2evr3 MBAR 0x00634 16
gt2evr4 MBAR 0x00636 16
gt2psr1 MBAR 0x00638 16
gt2psr2 MBAR 0x0063A 16
gt2psr3 MBAR 0x0063C 16
gt2psr4 MBAR 0x0063E 16
;
; Integrated Programmable Interrupt Controller
sicfr MBAR 0x00700
sivcr MBAR 0x00704
sipnr_h MBAR 0x00708
sipnr_l MBAR 0x0070C
siprr_a MBAR 0x00710
siprr_d MBAR 0x0071C
simsr_h MBAR 0x00720
simsr_l MBAR 0x00724
sepnr MBAR 0x0072C
smprr_a MBAR 0x00730
smprr_b MBAR 0x00734
semsr MBAR 0x00738
secnr MBAR 0x0073C
sersr MBAR 0x00740
sermr MBAR 0x00744
sercr MBAR 0x00748
sifcr_h MBAR 0x00750
sifcr_l MBAR 0x00754
sefcr MBAR 0x00758
serfr MBAR 0x0075C
;
; System Arbiter Registers
acr MBAR 0x00800
atr MBAR 0x00804
aer MBAR 0x0080C
aidr MBAR 0x00810
amr MBAR 0x00814
aeatr MBAR 0x00818
aeadr MBAR 0x0081C
aerr MBAR 0x00820
;
; Reset Module
rcwlr MBAR 0x00900
rcwhr MBAR 0x00904
rsr MBAR 0x00910
rmr MBAR 0x00914
rpr MBAR 0x00918
rcr MBAR 0x0091C
rcer MBAR 0x00920
;
; Clock Module
spmr MBAR 0x00A00
occr MBAR 0x00A04
sccr MBAR 0x00A08
;
; Power Management Control Module
pmccr MBAR 0x00B00
pmcer MBAR 0x00B04
pmcmr MBAR 0x00B08
;
; GPIO1 Registers
gp1dir MBAR 0x00C00
gp1odr MBAR 0x00C04
gp1dat MBAR 0x00C08
gp1ier MBAR 0x00C0C
gp1imr MBAR 0x00C10
gp1icr MBAR 0x00C14
;
; GPIO2 Registers
gp2dir MBAR 0x00D00
gp2odr MBAR 0x00D04
gp2dat MBAR 0x00D08
gp2ier MBAR 0x00D0C
gp2imr MBAR 0x00D10
gp2icr MBAR 0x00D14
;
; DDR Memory Controller Memory Map
cs0_bnds MBAR 0x02000
cs1_bnds MBAR 0x02008
cs2_bnds MBAR 0x02010
cs3_bnds MBAR 0x02018
cs0_config MBAR 0x02080
cs1_config MBAR 0x02084
cs2_config MBAR 0x02088
cs3_config MBAR 0x0208C
timing_cfg_1 MBAR 0x02108
timing_cfg_2 MBAR 0x0210C
ddr_cfg MBAR 0x02110
ddr_mode MBAR 0x02118
ddr_interval MBAR 0x02124
ddr_clk_cntl MBAR 0x02130
err_inj_hi MBAR 0x02E00
err_inj_lo MBAR 0x02E04
ecc_err_inj MBAR 0x02E08
cap_data_hi MBAR 0x02E20
cap_data_lo MBAR 0x02E24
cap_ecc MBAR 0x02E28
err_detect MBAR 0x02E40
err_disable MBAR 0x02E44
err_int_en MBAR 0x02E48
cap_attr MBAR 0x02E4C
cap_address MBAR 0x02E50
err_sbe MBAR 0x02E58
debug_1 MBAR 0x02F00
;
; Local Bus Controller Registers
br0 MBAR 0x05000
br1 MBAR 0x05008
br2 MBAR 0x05010
br3 MBAR 0x05018
br4 MBAR 0x05020
br5 MBAR 0x05028
br6 MBAR 0x05030
br7 MBAR 0x05038
or0 MBAR 0x05004
or1 MBAR 0x0500C
or2 MBAR 0x05014
or3 MBAR 0x0501C
or4 MBAR 0x05024
or5 MBAR 0x0502C
or6 MBAR 0x05034
or7 MBAR 0x0503C
mar MBAR 0x05068
mamr MBAR 0x05070
mbmr MBAR 0x05074
mcmr MBAR 0x05078
mrtpr MBAR 0x05084
mdr MBAR 0x05088
lsdmr MBAR 0x05094
lurt MBAR 0x050A0
lsrt MBAR 0x050A4
ltesr MBAR 0x050B0
ltedr MBAR 0x050B4
lteir MBAR 0x050B8
lteatr MBAR 0x050BC
ltear MBAR 0x050C0
lbcr MBAR 0x050D0
lcrr MBAR 0x050D4
;
6544
Age (days ago)
6544
Last active (days ago)
1 comments
2 participants
participants (2)
-
Soohyung Cho
-
Timur Tabi