All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] BDI2000 and MPC8260
@ 2005-09-01 10:43 Alex Zeffertt
  2005-09-01 17:42 ` Dan Malek
  0 siblings, 1 reply; 13+ messages in thread
From: Alex Zeffertt @ 2005-09-01 10:43 UTC (permalink / raw)
  To: u-boot

Hi,

I hope this isn't considered off topic here....

I am trying to load u-boot.bin into the flash device on my PM828 board using a BDI2000 and the
config file ftp://ftp.denx.de/pub/BDI2000/pm826.cfg.  On the PM828 platform the HRW - hard reset
configuration word- is loaded into the CPU from bottom of the flash device on CS0.

The problem I am seeing is that the bdi2000 cannot communicate with the PM828 if the HRW is not
present in the flash device.  I.e. you need u-boot.bin already loaded into flash in order to load
u-boot.bin into flash!

At the moment I can work around this problem by setting some jumpers on the board to remap CS0 to a
PROM device containing u-boot, writing the HRW into flash, and returning the jumpers so that CS0 is
mapped to the flash again.  Unfortunately I will not be able to do this on our custom hardware as
there will only be a flash device and no PROM.

Here is the output from the BDI2000 session when the flash on CS0 is erased (i.e. the HRW is
0xffffffff):


- TARGET: waiting for target Vcc
- TARGET: waiting for target Vcc
- TARGET: waiting for target Vcc

	[ PM828 is switched on ]
	
- TARGET: processing power-up delay
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x00000001 => 0x00000001
- JTAG exists check passed
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- Target PVR is 0x80822011
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0xFFF00100
- BDI resumes program execution
- Waiting for target stop passed
- TARGET: Target PVR is 0x80822011
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed

	[ 10 second gap ]

*** TARGET: reset detected, restarting target
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x00000001 => 0x00000001
- JTAG exists check passed
- COP status is 0x05
- Check running state failed
- TARGET: Target PVR is 0x80822011
*** TARGET: resetting target failed
# PPC: unexpected response from target
- TARGET: target will be restarted in 10 sec
- TARGET: processing user reset request

	[ the above repeats indefinitely ]


Does anybody have any idea how to work around this circular dependency?

Regards,

Alex

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot-Users] BDI2000 and MPC8260
@ 2005-09-01 19:18 Rune Torgersen
  0 siblings, 0 replies; 13+ messages in thread
From: Rune Torgersen @ 2005-09-01 19:18 UTC (permalink / raw)
  To: u-boot

> -----Original Message-----
> From: Pantelis Antoniou
> Sent: Thursday, September 01, 2005 13:44

> > That doesn't sound quite right, but worst case all you need to do
> > is pull RSTCONF to ground and the 82xx will use an internal
> > configuration word to get you going.

> If your boot flash is not written correctly, you'd better
> have a way to pull RSTCONF low. Different BDI settings are
> required however, beware.

Eh.. According to the 8260 Users manual it is excactly opposite...
(8260UM ch 5.4)
RSTCONF should be tied to GND for reading HRCW from EPROM. RSTCONF
should 
be tied to VCC for slave configuration or if you want to use the default

all 0 HRCW.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot-Users] BDI2000 and MPC8260
@ 2005-09-01 16:44 Rune Torgersen
  2005-09-06 15:44 ` Jerry Van Baren
  0 siblings, 1 reply; 13+ messages in thread
From: Rune Torgersen @ 2005-09-01 16:44 UTC (permalink / raw)
  To: u-boot

> -----Original Message-----
> From: Wolfgang Denk
> Sent: Thursday, September 01, 2005 10:50
> In message 
> <20050901111214.457804dc.ajz@cambridgebroadband.com> you wrote:
> > 
> > The problem I am seeing is that the bdi2000 cannot 
> communicate with the PM828 if the HRW is not
> > present in the flash device.  I.e. you need u-boot.bin 
> already loaded into flash in order to load
> > u-boot.bin into flash!
> 
> This is normal; with an erased flash, the processor will read a  HRCW
> which  sets external bus arbitration and CPU core disabled - there is
> nothing left for the BDI to communicate with.

We have anoter solution working here. To initally program the HRCW into
flash we use another JTAG device (a Corellis JTAG interface) to wiggle
th pins on the 8260 to program the flash. This works, but is fairly
slow. To program 256 bytes of HRCW takes 10 - 15 seconds.

After this we switch to BDI2000 and program U-Boot.

This way we don't need yet another piece of HW on the board.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot-Users] BDI2000 and MPC8260
@ 2005-09-01 10:12 Alex Zeffertt
  2005-09-01 15:50 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Alex Zeffertt @ 2005-09-01 10:12 UTC (permalink / raw)
  To: u-boot

Hi,

I hope this isn't considered off topic here....

I am trying to load u-boot.bin into the flash device on my PM828 board using a BDI2000 and the
config file ftp://ftp.denx.de/pub/BDI2000/pm826.cfg.  On the PM828 platform the HRW - hard reset
configuration word- is loaded into the CPU from bottom of the flash device on CS0.

The problem I am seeing is that the bdi2000 cannot communicate with the PM828 if the HRW is not
present in the flash device.  I.e. you need u-boot.bin already loaded into flash in order to load
u-boot.bin into flash!

At the moment I can work around this problem by setting some jumpers on the board to remap CS0 to a
PROM device containing u-boot, writing the HRW into flash, and returning the jumpers so that CS0 is
mapped to the flash again.  Unfortunately I will not be able to do this on our custom hardware as
there will only be a flash device and no PROM.

Here is the output from the BDI2000 session when the flash on CS0 is erased (i.e. the HRW is
0xffffffff):


- TARGET: waiting for target Vcc
- TARGET: waiting for target Vcc
- TARGET: waiting for target Vcc

	[ PM828 is switched on ]
	
- TARGET: processing power-up delay
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x00000001 => 0x00000001
- JTAG exists check passed
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- Target PVR is 0x80822011
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0xFFF00100
- BDI resumes program execution
- Waiting for target stop passed
- TARGET: Target PVR is 0x80822011
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed

	[ 10 second gap ]

*** TARGET: reset detected, restarting target
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x00000001 => 0x00000001
- JTAG exists check passed
- COP status is 0x05
- Check running state failed
- TARGET: Target PVR is 0x80822011
*** TARGET: resetting target failed
# PPC: unexpected response from target
- TARGET: target will be restarted in 10 sec
- TARGET: processing user reset request

	[ the above repeats indefinitely ]


Does anybody have any idea how to work around this circular dependency?

Regards,

Alex

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-09-06 19:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01 10:43 [U-Boot-Users] BDI2000 and MPC8260 Alex Zeffertt
2005-09-01 17:42 ` Dan Malek
2005-09-01 18:43   ` Pantelis Antoniou
  -- strict thread matches above, loose matches on Subject: below --
2005-09-01 19:18 Rune Torgersen
2005-09-01 16:44 Rune Torgersen
2005-09-06 15:44 ` Jerry Van Baren
2005-09-06 18:05   ` Dan Malek
2005-09-06 19:36   ` Wolfgang Denk
2005-09-06 19:48     ` Jerry Van Baren
2005-09-06 19:52       ` Wolfgang Denk
2005-09-01 10:12 Alex Zeffertt
2005-09-01 15:50 ` Wolfgang Denk
2005-09-01 15:56   ` Alex Zeffertt

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.