linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Relocating PPCBoot into SRAM
@ 2003-02-16 17:54 Arun Dharankar
  2003-02-16 18:37 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Dharankar @ 2003-02-16 17:54 UTC (permalink / raw)
  To: linuxppc-embedded


Greetings!

- On MPC75x and MPC7410 boards with MPC8260 in companion
  mode, SRAM on 1M and 2M respectively are available.

- Is it possible to relocate PPCBoot to this SRAM mapped
  as private memory? Note that, this is a second relocation;
  the first would already have occured when it is relocated
  from Flash to SDRAM.

- And if this possible, a re-relocation from SRAM back to
  SDRAM?


If this is possible, what needs to be done? The idea I
would like to explore is to do a full memory test (walking
bit, aligned/non-aligned access, refresh, alternating
pattern, random pattern test - basically extensive testing)
without executing PPCBoot in SDRAM.

And that these tests are part of PPCBoot commands (or
applications, perhaps).



Best regards,
-Arun.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <200302161415.19790.ADharankar@ATTBI.Com>]
* RE: Relocating PPCBoot into SRAM
@ 2003-02-18 23:27 Kerl, John
  2003-02-19  2:36 ` Arun Dharankar
  0 siblings, 1 reply; 5+ messages in thread
From: Kerl, John @ 2003-02-18 23:27 UTC (permalink / raw)
  To: 'ADharankar@attbi.com', Wolfgang Denk; +Cc: linuxppc-embedded


> If PPCBoot/U-Boot were to be relocated into SRAM in the first place,
> is there a potential for any problem (the CPM SDMA? probably not -
> the buffer descriptors are in DPRAM...)?

I've run software out of both SRAM & SDRAM; the CPM doesn't
seem to care.  (For some simple devices (e.g. UARTs) the
BDs might have to be in DPRAM; for others (e.g. SCC, FEC)
the BDs can be in external memory -- SRAM or SDRAM.  & I
think that for all CPM devices I've seen, the I/O buffers
(what the BDs point to) can be in any memory.  You have to
make sure you tell the CPM the physical, not virtual addresses,
and also make sure the CPU doesn't have those areas cached.
But these issues apply equally to SDRAM, SRAM and DPRAM.)

> To test the region of SDRAM where PPCBoot/U-Boot resides, how could
> a non-destructive test be implemented? Perhaps, would one way would be
>  do these test for that region of PPCBoot/U-Boot before it is
> located to SDRAM?
>
> Some of the x86 PC BIOSs/Bootloaders/Monitors seem to be able to do
> full/destructive memory test without a reboot. That is what seems
> to be appealing to for PPCBoot/U-Boot.

1.	BIOSes, at startup, seem to have code in about 1K of RAM, and
	do a minimal test of the *rest*.  (I think, just 1-pass
	address uniqueness.)  This is a weak test.

2.	If you run out of one memory (e.g. SRAM) you can test all of
	another memory.  This is what we do at Avnet Design Services
	-- run out of SRAM to test SDRAM.

	If you don't have an SRAM, then you might be able to fit a
	very compact memory tester entirely into DPRAM.

	(On one previous project, not with a PPC, I ran an SDRAM
	test while taking instructions from flash & with stack/data
	in a small on-chip RAM.  The memory test passed.  Then I
	ran the same test code, but with instructions taken from
	SRAM.  The test now failed because I was hitting the memory
	more quickly, & found a timing problem.  Caveat emptor.)

3.	memtest86 runs out of main memory (whatever is on your PC
	-- SDRAM, DDRAM, etc.) and does shared-library/ELF tricks
	to run out of one position to test some memory, then copy
	itself to another location & then test the memory it had
	been running out of.  Nice trick, if you want to pull it off,
	but it does take a fair amount of setup & personally I think
	option 2 above is preferable when possible.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-02-19  2:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-16 17:54 Relocating PPCBoot into SRAM Arun Dharankar
2003-02-16 18:37 ` Wolfgang Denk
     [not found] <200302161415.19790.ADharankar@ATTBI.Com>
2003-02-16 19:48 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-02-18 23:27 Kerl, John
2003-02-19  2:36 ` Arun Dharankar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).