Skip to contentSkip to conversation

MMU setup in u-boot

U-Boot-Users john ashfield 4 participants 5 messages May 12, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

u-boot setups MMU for maximum of 256M memory using Block Address Translation. Do you have any idea how to setup MMU for more than 256M (for example 1G of memory)?

Thanks

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

#1 lore raw
Quoted 4 lines · John Ashfield

u-boot setups MMU for maximum of 256M memory using Block Address Translation. Do you have any idea how to setup MMU for more than 256M (for
example 1G of memory)?

You did not specify which processor, but in any case, the answer can be found in your processor manaul. For example, for the 603e core, found in many Motorola embedded PowerPC processors, you cannot access more than 256 MB using a single BAT register. I believe this is a PowerPC architectural limitation. However, you might be able to juggle your system resources/configuration to use more than one BAT for mapping in memory. There are four pairs of BAT registers used for translating data accesses, and another four pairs for instruction accesses. See "PowerPC Microprocessor Family: The Programming Environments" (the green book) and your processor manual for details.

Regards,

Chris Hallinan
DS4.COM, Inc.

#2 lore raw

In message <[email protected]>

Quoted 8 lines · Chris Hallinan
Quoted 4 lines · John Ashfield

u-boot setups MMU for maximum of 256M memory using Block Address Translation. Do you have any idea how to setup MMU for more than 256M (for
example 1G of memory)?

You did not specify which processor, but in any case, the answer can be found in your processor manaul. For example, for the 603e core,

For PowerPC boards please see the CONFIG_VERY_BIG_RAM config option as used by the sacsng board.

[John, please consider getting a different email address. We're blocking all mail from hotmail.com, so if Chris had not replied to your message I would never have seen it.]

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
f u cn rd ths, itn tyg h myxbl cd.
#3 lore raw
In reply to john ashfield
Quoted 3 lines · john ashfield

u-boot setups MMU for maximum of 256M memory using Block Address Translation. Do you have any idea how to setup MMU for more than 256M (for example 1G of memory)?

Hmm, normally the MMU is not used in U-Boot at all! This should be the task of the kernel (or whatever you boot).

Robert

Signature · 5 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
#4 lore raw
Quoted 10 lines · john ashfield
Quoted 2 lines

u-boot setups MMU for maximum of 256M memory using Block Address Translation. Do you have any idea how to setup MMU for

more than 256M

Quoted 1 line

(for example 1G of memory)?

Hmm, normally the MMU is not used in U-Boot at all! This should be the
task of the kernel (or whatever you boot).

Actually, I/DBATS *are* part of the MMU. :) They are simply *one* of the translation mechanisms provided by the PPC architecture!! The MMU is enabled in start.S for 824x like this:

	/*
	 * Setup BATs - cannot be done in C since we don't have a stack yet
	 */
	bl	setup_bats

	/* Enable MMU.
	 */
	mfmsr	r3
	ori	r3, r3, (MSR_IR | MSR_DR)
	mtmsr	r3

Regards,

Chris Hallinan
DS4.COM, Inc.