Skip to contentSkip to conversation

PPCBoot and IMMR remapping for linux 2.4 on sbc8260

DISCUSSION Craig MacDonald 3 participants 3 messages Sep 20, 2001 – Sep 23, 2001

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 2 lines · Craig MacDonald

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

#2 lore raw
In reply to Craig MacDonald

Dear Craig,

Quoted 4 lines · in message <[email protected]> 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
Quoted 2 lines

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: [email protected] 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/