linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Limon & PowerQUICC II
@ 2000-09-21 16:29 Ruedi.Hofer
  2000-09-21 19:05 ` Jerry Van Baren
  0 siblings, 1 reply; 3+ messages in thread
From: Ruedi.Hofer @ 2000-09-21 16:29 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: systemboot

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1044 bytes --]

Hi

I ordered an EST SBC8260 evaluation board and I finally got it!!!

As always I try to run Linux on it. First of all, I found the bootloader
Limon on the net, cross compiled it and tried to run it.

I failed!! Why??

Questions:

1. Does someone know the correct value of the reset word required
by limon?

 I use  04 38 02 05 for the 8 bit flash / 66MHz
  0c 38 02 05 for the 32 bit flash / 66MHz

2. Does limon run on the 32 bit flash or on the 8 bit flash?

3. I use the Abatron BDI to program the flash memory. Am I right
when I load the srec-file into the bdi and overwrite the first 4 bytes
with the reset word (then write the stuff to flash)?

4. I have set IMMR to 0xF000000. Is that correct for limon?

5. I read in the sourcecode that limon wants to run at 0xfff00100.
Where do I have to set this address? (In the enclosed memory map
I found a drawing sayin that the flash should be at 0xfe000000!)

6. Can someone provide the correct values for the BRx / ORx?
I used the ones from limon -> reset.c!


Thank you for any help

Ruedi

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

* Re: Limon & PowerQUICC II
  2000-09-21 16:29 Limon & PowerQUICC II Ruedi.Hofer
@ 2000-09-21 19:05 ` Jerry Van Baren
  2000-09-22  1:06   ` Neil Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2000-09-21 19:05 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: systemboot


At 05:29 PM 9/21/00 +0100, Ruedi.Hofer@ascom.ch wrote:
>Hi
>
>I ordered an EST SBC8260 evaluation board and I finally got it!!!
>
>As always I try to run Linux on it. First of all, I found the bootloader
>Limon on the net, cross compiled it and tried to run it.
>
>I failed!! Why??
>
>Questions:
>
>1. Does someone know the correct value of the reset word required
>by limon?
>
>  I use  04 38 02 05 for the 8 bit flash / 66MHz
>   0c 38 02 05 for the 32 bit flash / 66MHz

I'm currently using vxWorks' boot loader, not using limon (I used limon
but never burned it into flash), but the principle is the same.  You
may need to open CNFG7 (the DIP switch MSB) to program flash if the
reset word is really screwed up.  You have to _cycle_power_ for the
8260 to pick up the reset word (asserting HRESET with the power/reset
switch is not sufficient).  Other DIP switch settings may be desirable
depending on the clock rating of your CPU.

For 66MHz, I use 0C 32 02 05:
S309FE0000000C000000EC
S309FE00000832000000BE
S309FE00001002000000E6
S309FE00001805000000DB
I set the DIP switches to xxxxxOOC for 166/133/66 (CPU/CPM/bus)

For 33MHz, I use 0C 32 02 02:
S309FE0000000C000000EC
S309FE00000832000000BE
S309FE00001002000000E6
S309FE00001802000000DE
I set the DIP switches to xxxxxCOO for 166/133/33

O = open
C = closed
The last (rightmost) three spots of DIP switch are labeled CNFG1,2,3

>2. Does limon run on the 32 bit flash or on the 8 bit flash?

Should run in either.  I boot out of 32 bit flash.  EST ships their
diagnostics monitor in 8 bit flash.  It is nice to be able to run that
occasionally when the board is AFU, just as a sanity check (switch the
CS0/CS6 fleaclip jumpers).

>3. I use the Abatron BDI to program the flash memory. Am I right
>when I load the srec-file into the bdi and overwrite the first 4 bytes
>with the reset word (then write the stuff to flash)?
>
>4. I have set IMMR to 0xF000000. Is that correct for limon?

The reset config word is what sets the IMMR.  It has to agree with the
limon's notion of where the IMMR is.  Beyond that, it is your
choice.  The EST default value is 0x0F000000 which is unfortunately
different from the linux convention.

The linux source you probably will be trying to run next wants the IMMR
at 0xF0000000.  You can change it with the reset word or by changing it
in software before starting linux.


>5. I read in the sourcecode that limon wants to run at 0xfff00100.
>Where do I have to set this address? (In the enclosed memory map
>I found a drawing sayin that the flash should be at 0xfe000000!)

The 32bit flash is mapped starting at 0xFE000000 and is duplicated four
times (4Mbytes of flash in a 16Mbyte space).  The 8260 picks up its
reset vector from 0xFFF00100 (end-of-memory less 1Mbyte + 0x100) so you
have to build limon so that its entry point is at the reset
vector.  This will be 3Mbytes into the last copy of the flash.  It is
easiest to just program it there and your JTAG programmer should Do The
Right Thing.  You do have to be careful that you don't inadvertently
erase the reset word when programming limon and vice versa (I've
inadvertently erased my monitor when erasing the reset word a time or two).


>6. Can someone provide the correct values for the BRx / ORx?
>I used the ones from limon -> reset.c!
>
>
>Thank you for any help
>
>Ruedi

You're welcome.

gvb


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

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

* Re: Limon & PowerQUICC II
  2000-09-21 19:05 ` Jerry Van Baren
@ 2000-09-22  1:06   ` Neil Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Russell @ 2000-09-22  1:06 UTC (permalink / raw)
  To: Jerry Van Baren, linuxppc-embedded; +Cc: systemboot


On Thu, Sep 21, 2000 at 03:05:00PM -0400, Jerry Van Baren wrote:
> >4. I have set IMMR to 0xF000000. Is that correct for limon?
>
> The reset config word is what sets the IMMR.  It has to agree with the
> limon's notion of where the IMMR is.  Beyond that, it is your
> choice.  The EST default value is 0x0F000000 which is unfortunately
> different from the linux convention.

Actually, limon will read the reset configuration word to find what the IMMR
should be, then changes it to 0xf0000000.  If you flash limon and have the
reset conf word right, all will be well.  If you download limon using the
vxWorks loader, then the reset conf word needs to set IMMR to 0x0f000000,
so the vxWorks loader and limon can agree.


Neil.


--
Neil Russell <caret@c-side.com>

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

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

end of thread, other threads:[~2000-09-22  1:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-21 16:29 Limon & PowerQUICC II Ruedi.Hofer
2000-09-21 19:05 ` Jerry Van Baren
2000-09-22  1:06   ` Neil Russell

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).