linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PPCBoot and IMMR remapping for linux 2.4 on sbc8260
@ 2001-09-20 21:29 Craig MacDonald
  2001-09-20 22:41 ` Dan Malek
  2001-09-23 18:00 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Craig MacDonald @ 2001-09-20 21:29 UTC (permalink / raw)
  To: linuxppc-embedded


The immr_base value in PPCBoot on my sbc8260 is
0x0f000000. I have been reading here that the
best value for linux is 0xf0000000.

I don't have easy access to flash my PPCBoot
to a new immr_base value, but I want to run
linux. I have been trying to change the immr_base
in assembly, but it does not seem to work.

Can I setup linux correctly using this method.


   .set    IMMR_H,      0x0f01
   .set    IMMR_L,      0x01a8


   lis     r4,IMMR_H
   ori     r4,r4,0x0000
   lwz     r4,IMMR_L(r4)       // get the current value of the IMMR

   lis     r5,0xfff8
   ori     r5,r5,0xffff        // Zero out the ISB field
   and.    r4,r4,r5

   lis     r5,0x0004           // Change the IMMR reg to be at 0xf0000000
   or.     r5,r4,r5

   lis     r4,IMMR_H
   ori     r4,r4,0x0000
   stw     r5,IMMR_L(r4)       // modify the immr register


Best,
Craig MacDonald


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

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

* Re: PPCBoot and IMMR remapping for linux 2.4 on sbc8260
  2001-09-20 21:29 PPCBoot and IMMR remapping for linux 2.4 on sbc8260 Craig MacDonald
@ 2001-09-20 22:41 ` Dan Malek
  2001-09-23 18:00 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Malek @ 2001-09-20 22:41 UTC (permalink / raw)
  To: Craig MacDonald; +Cc: linuxppc-embedded


Craig MacDonald wrote:

> .....I have been trying to change the immr_base
> in assembly, but it does not seem to work.

If the boot rom hasn't changed the default address (which they
sometimes do but don't tell you :-), just to this:

	lis	r5, 0x0f01
	lis	r4, 0xf000
	stw	r4, 0x1a8(r5)


	-- Dan

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

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

* Re: PPCBoot and IMMR remapping for linux 2.4 on sbc8260
  2001-09-20 21:29 PPCBoot and IMMR remapping for linux 2.4 on sbc8260 Craig MacDonald
  2001-09-20 22:41 ` Dan Malek
@ 2001-09-23 18:00 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2001-09-23 18:00 UTC (permalink / raw)
  To: Craig MacDonald; +Cc: linuxppc-embedded


Dear Craig,

in message <4E48AD2F.671BD424.031B03A1@netscape.net> you wrote:
>
> The immr_base value in PPCBoot on my sbc8260 is
> 0x0f000000. I have been reading here that the
> best value for linux is 0xf0000000.

THis is your own bug, then. The default configuration of PPCBoot  for
the SBC8260 uses this definition in "include/config_sbc8260.h":

        #define CFG_IMMR 0xf0000000

> I don't have easy access to flash my PPCBoot
> to a new immr_base value, but I want to run

Where exactly is the problem? It is a trivial job to use any  running
version   of  PPCBoot  to  upgrade  to  a  new  version  (just  using
"tftp", "protect off", "erase" and "cp.b" commands).


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
While most peoples' opinions change, the conviction of their correct-
ness never does.

** 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:[~2001-09-23 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-20 21:29 PPCBoot and IMMR remapping for linux 2.4 on sbc8260 Craig MacDonald
2001-09-20 22:41 ` Dan Malek
2001-09-23 18:00 ` Wolfgang Denk

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